/* =============================================================
   BOCC – product.css
   Styles specific to Product.cshtml
   ============================================================= */

/* ── Two-column layout ─────────────────────────────────────── */
#productContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 24px 0 64px;
    align-items: start;
}

/* ── Gallery (left column) ─────────────────────────────────── */
.product-gallery {
    position: sticky;
    top: 96px;
}

.product-gallery__main {
    background: #fff;
    border: 1px solid #DDE3F0;
    border-radius: 12px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-gallery__main-img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    display: block;
}
/* Gallery uses a larger badge than the card badge */
.product-gallery__brand-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #000B57;
    color: #C9A84C;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .1em;
    padding: 6px 11px;
    border-radius: 3px;
}

.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.product-gallery__thumb {
    width: 82px;
    height: 82px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #DDE3F0;
    cursor: pointer;
    padding: 4px;
    overflow: hidden;
}

    .product-gallery__thumb.active {
        border-color: #000B57;
    }

    .product-gallery__thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.product-gallery__disclaimer {
    padding-top: 10px;
    font-size: 12px;
    color: #6B7A99;
}

/* ── Info panel (right column) ─────────────────────────────── */
.product-brand-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .16em;
    color: #C9A84C;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #000B57;
    margin-bottom: 14px;
    margin-top: 0;
}

.product-add-desc {
    color: #3a4366;
    font-size: 15px;
    margin-top: -6px;
    margin-bottom: 14px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    font-size: 13.5px;
}

.product-code {
    font-family: ui-monospace, Menlo, monospace;
    color: #6B7A99;
    letter-spacing: .04em;
}

.stock-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.stock-badge--in {
    color: #16A34A;
}

.stock-badge--out {
    color: #DC2626;
}

.stock-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-badge--in .stock-badge__dot {
    background: #16A34A;
}

.stock-badge--out .stock-badge__dot {
    background: #DC2626;
}

/* ── Price ─────────────────────────────────────────────────── */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.price-current {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 34px;
    color: #000B57;
}

.price-original {
    font-size: 16px;
    color: #6B7A99;
    margin-left: 4px;
}

.price-vat-note {
    font-size: 13px;
    color: #6B7A99;
    margin-left: 4px;
}

.sale-badge {
    margin-left: 6px;
    background: #DC2626;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* ── Warranty box ──────────────────────────────────────────── */
.warranty-box {
    margin: 24px 0;
    padding: 18px;
    background: #F8F9FC;
    border: 1px solid #DDE3F0;
    border-radius: 8px;
}

.warranty-box__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #000B57;
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.warranty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .warranty-row input[type="radio"] {
        margin: 0;
        cursor: pointer;
    }

    .warranty-row label {
        font-size: 13.5px;
        color: #0A0E2A;
        cursor: pointer;
    }

.warranty-price {
    font-weight: 700;
    color: #000B57;
    margin-left: 4px;
}

.warranty-included {
    font-size: 13.5px;
    color: #3a4366;
    font-weight: 500;
}

/* ── Special offers ────────────────────────────────────────── */
.offers-section {
    margin: 24px 0;
}

.offers-section__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #000B57;
    display: block;
    margin-bottom: 12px;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-item {
    border: 1px dashed #C9A84C;
    background: #FFFDF7;
    padding: 14px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.offer-item__details {
    flex: 1;
}

.offer-item__name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    color: #0A0E2A;
}

.offer-item__pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.offer-item__price {
    font-weight: 800;
    color: #000B57;
    font-size: 15px;
}

.offer-item__savings {
    background: #16A34A;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.offer-item__apply-btn {
    background: transparent;
    border: 1px solid #000B57;
    color: #000B57;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* ── Variant selector (substitutes) ───────────────────────── */
.variants-section {
    margin-bottom: 26px;
    padding-top: 16px;
    border-top: 1px solid #DDE3F0;
}

.variants-label-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.variants-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #0A0E2A;
}

.variants-selected {
    font-size: 13px;
    color: #6B7A99;
}

    .variants-selected strong {
        color: #000B57;
        font-weight: 600;
    }

.variants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1.5px solid #DDE3F0;
    background: #fff;
    border-radius: 8px;
    padding: 9px 14px 9px 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease;
}

.variant-option--active {
    border-color: #000B57;
    background: #FFFDF7;
}

.variant-option__thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: repeating-linear-gradient(135deg, #eef1f7 0 7px, #fafbfe 7px 14px);
    border: 1px solid #DDE3F0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .variant-option__thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.variant-option__name {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #0A0E2A;
    line-height: 1.2;
}

/* ── Add-to-cart row ───────────────────────────────────────── */
.add-to-cart-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin: 28px 0;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #DDE3F0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.qty-control__btn {
    padding: 0 16px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #000B57;
    font-weight: 700;
}

.qty-control__value {
    padding: 0 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    min-width: 24px;
    text-align: center;
}

.btn-add-to-cart {
    flex: 1;
    background: #000B57;
    color: #fff;
    border: none;
    padding: 16px 28px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-enquire {
    flex: 1;
    background: #C9A84C;
    color: #000B57;
    border: none;
    padding: 16px 28px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

/* ── Trust bullets ─────────────────────────────────────────── */
.trust-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid #DDE3F0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #3a4366;
}

.trust-item__diamond {
    width: 9px;
    height: 9px;
    background: #C9A84C;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ── Accordion ─────────────────────────────────────────────── */
#productDetailsAccordion {
    border-top: 1px solid #DDE3F0;
    margin-top: 48px;
    padding-top: 12px;
}

.accordion-row {
    border-bottom: 1px solid #DDE3F0;
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.accordion-trigger__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 19px;
    color: #000B57;
}

.accordion-icon {
    font-size: 22px;
    color: #6B7A99;
    font-weight: 300;
    width: 24px;
    text-align: center;
}

.accordion-trigger.active .accordion-icon {
    color: #000B57;
}

.accordion-content {
    display: none;
    padding-bottom: 28px;
    font-size: 15px;
    line-height: 1.65;
    color: #3a4366;
}

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

    .features-table tr {
        border-bottom: 1px solid #F0F3F9;
    }

    .features-table td {
        padding: 12px 0;
    }

        .features-table td:first-child {
            color: #6B7A99;
            font-weight: 500;
        }

        .features-table td:last-child {
            color: #0A0E2A;
            font-weight: 600;
            text-align: right;
        }

.docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.doc-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #F8F9FC;
    border: 1px solid #DDE3F0;
    padding: 12px 20px;
    border-radius: 6px;
    color: #0A0E2A;
}

.doc-link__name {
    font-size: 13.5px;
    font-weight: 500;
    color: #3a4366;
}

.doc-link__action {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #000B57;
}

/* ── Product unavailable state ─────────────────────────────── */
.product-unavailable {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Manrope', sans-serif;
}

.product-unavailable__inner {
    text-align: center;
    padding: 32px;
    max-width: 460px;
}

.product-unavailable__img {
    max-height: 140px;
    margin-bottom: 24px;
}

.product-unavailable__title {
    font-weight: 800;
    color: #000B57;
    font-size: 24px;
    margin-bottom: 12px;
}

.product-unavailable__text {
    color: #6B7A99;
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.product-unavailable__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000B57;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 6px;
    width: 100%;
}

#webDescriptionContainer * {
    background-color: transparent !important;
}

#webDescriptionContainer p span {
    font-family: var( --bocc-font-body) !important;
    color: var(--bocc-text-mid) !important;
    font-weight: 500 !important;
}

#webDescriptionContainer ul li span {
    font-family: var( --bocc-font-body) !important;
    color: var(--bocc-text-mid) !important;
    font-weight: 600 !important;
}

#webDescriptionContainer span {
    font-family: var(--bocc-font-body) !important;
    color: var(--bocc-navy) !important;
    font-weight: 500 !important;
}



/* ── Responsive: Tablet (≤ 1023px) ────────────────────────── */
    @media (max-width: 1023px) {
        #productContainer {
            gap: 36px;
        }

        .product-title {
            font-size: 28px;
        }

        .price-current {
            font-size: 28px;
        }

        .product-gallery__main {
            height: 420px;
        }

        .accordion-trigger__title {
            font-size: 17px;
        }
    }
    /* ── Responsive: Mobile (≤ 767px) ─────────────────────────── */
    @media (max-width: 767px) {
        /* Stack to single column: gallery then info */
        #productContainer {
            grid-template-columns: 1fr;
            gap: 24px;
            padding: 16px 0 48px;
        }

        /* Gallery: un-sticky */
        .product-gallery {
            position: static;
            top: auto;
        }

        .product-gallery__main {
            height: 300px;
        }

        .product-gallery__thumb {
            width: 66px;
            height: 66px;
        }

        /* Typography */
        .product-title {
            font-size: 24px;
        }

        .price-current {
            font-size: 26px;
        }

        .accordion-trigger__title {
            font-size: 16px;
        }

        .accordion-trigger {
            padding: 18px 0;
        }

        /* Add-to-cart: stack on narrow screens */
        .add-to-cart-row {
            flex-wrap: wrap;
            gap: 10px;
        }

        .qty-control {
            min-width: 120px;
        }

        /* Variants: full-width chips */
        .variant-option {
            flex: 1 0 140px;
        }

        /* Offers */
        .offer-item {
            flex-direction: column;
            gap: 12px;
            align-items: flex-start;
        }

        /* Specs table */
        .features-table td {
            padding: 10px 0;
            font-size: 13px;
        }
    }
