/* ==========================================================================
   YES! Shop — product detail / cart styles.
   Adds a small Bootstrap-compatibility layer so Botble ecommerce markup
   (which ships without Bootstrap CSS in this theme) renders correctly.
   ========================================================================== */

/* ---------- Bootstrap-lite layer (scoped) ---------- */
.yes-shop-page .form-label,
.yes-shop-page label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #27272a;
}

.yes-shop-page .form-control,
.yes-shop-page .form-select,
.yes-shop-page input[type='text'],
.yes-shop-page input[type='email'],
.yes-shop-page input[type='tel'],
.yes-shop-page input[type='number'],
.yes-shop-page input[type='password'],
.yes-shop-page select,
.yes-shop-page textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #111;
    border-radius: 10px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    outline: none;
}

.yes-shop-page .form-control:focus,
.yes-shop-page .form-select:focus,
.yes-shop-page select:focus,
.yes-shop-page textarea:focus {
    border-color: #ff007f;
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.18);
}

.yes-shop-page .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.yes-shop-page .form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #ff007f;
    flex: none;
}

.yes-shop-page .form-check-label {
    font-size: 14px;
    font-weight: 700;
}

.yes-shop-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 2px solid #111;
    border-radius: 12px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.yes-shop-page .btn:hover {
    background-color: #ffe600;
}

.yes-shop-page .btn-primary,
.yes-shop-page .btn[type='submit'] {
    background-color: #ff007f;
    color: #fff;
    box-shadow: 4px 4px 0 0 #111;
}

.yes-shop-page .btn-primary:hover,
.yes-shop-page .btn[type='submit']:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
    background-color: #ff007f;
}

.yes-shop-page .btn-secondary {
    background-color: #ffe600;
}

.yes-shop-page .btn-link {
    border: 0;
    background: none;
    padding: 0;
    color: #d10069;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #ffe600;
    text-decoration-thickness: 3px;
    cursor: pointer;
}

.yes-shop-page .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.yes-shop-page .table > thead > tr > th {
    padding: 12px 14px;
    border-bottom: 3px solid #111;
    background-color: #ffe600;
    font-weight: 900;
    text-align: left;
}

.yes-shop-page .table > tbody > tr > td {
    padding: 12px 14px;
    border-bottom: 2px solid #e4e4e7;
    vertical-align: middle;
}

.yes-shop-page .alert {
    padding: 12px 16px;
    border: 2px solid #111;
    border-radius: 12px;
    font-weight: 700;
}

.yes-shop-page .alert-warning {
    background-color: #fff8db;
}

.yes-shop-page .alert-danger {
    background-color: #ffe8ee;
}

.yes-shop-page .text-danger {
    color: #d10069;
}

.yes-shop-page .text-muted,
.yes-shop-page .text-secondary {
    color: #71717a;
}

.yes-shop-page .d-flex { display: flex; }
.yes-shop-page .align-items-center { align-items: center; }
.yes-shop-page .justify-content-between { justify-content: space-between; }
.yes-shop-page .flex-wrap { flex-wrap: wrap; }
.yes-shop-page .w-100 { width: 100%; }
.yes-shop-page .mb-0 { margin-bottom: 0; }
.yes-shop-page .mb-2 { margin-bottom: 8px; }
.yes-shop-page .mb-3 { margin-bottom: 16px; }

.yes-shop-page .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.yes-shop-page .row > [class*='col-'] {
    padding: 0 12px;
}

.yes-shop-page .col-12 { width: 100%; }
.yes-shop-page .col-md-6 { width: 100%; }

@media (min-width: 768px) {
    .yes-shop-page .col-md-6 { width: 50%; }
    .yes-shop-page .col-md-4 { width: 33.3333%; }
}

/* ---------- Product detail ---------- */
.yes-shop-page .yes-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

@media (min-width: 1024px) {
    .yes-shop-page .yes-product-detail {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 44px;
    }
}

.yes-shop-page .yes-product-panel {
    border: 4px solid #111;
    border-radius: 20px;
    background-color: #fff;
    padding: 24px;
    box-shadow: 6px 6px 0 0 #111;
}

.yes-shop-page .yes-product-gallery {
    border: 4px solid #111;
    border-radius: 20px;
    background-color: #fff;
    padding: 16px;
    box-shadow: 6px 6px 0 0 #111;
}

/* Gallery (plugin markup) */
.yes-shop-page .bb-product-gallery {
    display: flex;
    gap: 14px;
    flex-direction: column;
}

.yes-shop-page .bb-product-gallery-images {
    position: relative;
    border: 2px solid #111;
    border-radius: 14px;
    overflow: hidden;
    background-color: #fff1f6;
}

.yes-shop-page .bb-product-gallery-images img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.yes-shop-page .bb-product-gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yes-shop-page .bb-product-gallery-thumbnails > div {
    width: 74px;
    height: 74px;
    border: 2px solid #111;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff1f6;
    cursor: pointer;
}

.yes-shop-page .bb-product-gallery-thumbnails > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .yes-shop-page .bb-product-gallery[data-video-position] {
        flex-direction: row;
    }

    .yes-shop-page .bb-product-gallery.bb-product-gallery-vertical .bb-product-gallery-thumbnails {
        flex-direction: column;
        flex-wrap: nowrap;
    }
}

/* Quantity stepper */
.yes-shop-page .yes-qty {
    display: inline-flex;
    align-items: center;
    border: 2px solid #111;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}

.yes-shop-page .yes-qty__btn {
    width: 44px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background-color: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    color: #111;
}

.yes-shop-page .yes-qty__btn:hover {
    background-color: #ffe600;
}

.yes-shop-page .yes-qty input {
    width: 62px;
    height: 46px;
    border: 0;
    border-left: 2px solid #111;
    border-right: 2px solid #111;
    border-radius: 0;
    text-align: center;
    font-weight: 900;
    -moz-appearance: textfield;
}

.yes-shop-page .yes-qty input::-webkit-outer-spin-button,
.yes-shop-page .yes-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tabs */
.yes-shop-page .yes-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 4px solid #111;
    padding-bottom: 14px;
}

.yes-shop-page .yes-tabs__link {
    padding: 9px 18px;
    border: 2px solid #111;
    border-radius: 999px;
    background-color: #fff;
    color: #27272a;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.yes-shop-page .yes-tabs__link.is-active {
    background-color: #ff007f;
    color: #fff;
    box-shadow: 4px 4px 0 0 #111;
}

.yes-shop-page .yes-tabs__panel {
    display: none;
    padding-top: 24px;
}

.yes-shop-page .yes-tabs__panel.is-active {
    display: block;
}

/* Reviews / specification tables inside detail panels */
.yes-shop-page .yes-product-panel .table {
    margin-top: 8px;
}

.yes-shop-page .yes-product-panel .row {
    margin-left: -12px;
    margin-right: -12px;
}

/* ---------- Cart ---------- */
.yes-shop-page .yes-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (min-width: 1024px) {
    .yes-shop-page .yes-cart-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

.yes-shop-page .yes-cart-list {
    border: 4px solid #111;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 6px 6px 0 0 #111;
    overflow: hidden;
}

.yes-shop-page .yes-cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-bottom: 2px solid #e4e4e7;
}

.yes-shop-page .yes-cart-item:last-child {
    border-bottom: 0;
}

.yes-shop-page .yes-cart-item__thumb {
    width: 96px;
    height: 96px;
    border: 2px solid #111;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff1f6;
}

.yes-shop-page .yes-cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yes-shop-page .yes-cart-item__name {
    font-size: 16px;
    font-weight: 900;
    color: #111;
}

.yes-shop-page .yes-cart-item__remove {
    border: 0;
    background: none;
    padding: 0;
    color: #d10069;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

@media (min-width: 768px) {
    .yes-shop-page .yes-cart-item {
        grid-template-columns: 96px minmax(0, 1fr) 150px 120px 44px;
        align-items: center;
    }
}

.yes-shop-page .yes-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
}

.yes-shop-page .yes-summary-row--total {
    border-top: 2px dashed #d4d4d8;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 900;
}

/* ---------- Cart row (desktop) ---------- */
@media (min-width: 768px) {
    .yes-shop-page .yes-cart-item {
        grid-template-columns: 96px minmax(0, 1fr) 130px 140px 110px 84px;
        align-items: center;
    }
}
