/* ==========================================================================
   BONEBANA: SINGLE PRODUCT PREMIUM STYLING (DESKTOP)
   ========================================================================== */

/* Main split layout container */
.bb-single-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    /* Reduced gap between columns */
    align-items: start;
    margin-top: 2rem;
}

/* Left Column: Sticky Buy Box & Details */
.bb-single-details-col {
    position: sticky;
    top: 120px;
    /* Aligns below the sticky navigation header */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* Reduced gap between details blocks */
}

/* Rating & Sold Row (Matched to Figma) */
.bb-single-rating-sold-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.825rem;
    font-weight: 400;
    color: #707070;
}

.bb-single-rating-icon {
    font-size: 0.95rem;
    color: #707070;
    line-height: 1;
    margin-top: -2px;
}

.bb-single-rating-score {
    font-weight: 600;
    color: #1C1B18;
}

.bb-single-sold-count {
    color: #888888;
}

/* Category & Title Section */
.bb-single-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.bb-single-category {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--im-color-muted, #9E9B95);
}

.bb-single-wishlist-trigger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--im-color-text, #1C1B18);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bb-single-wishlist-trigger:hover {
    transform: scale(1.1);
    color: var(--im-color-brand-red, #825d63);
}

.bb-single-title {
    font-family: var(--im-font-heading, serif);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--im-color-text, #1C1B18);
    margin: 0;
    line-height: 1.25;
}

.bb-single-price {
    font-family: var(--im-font-heading, serif);
    font-size: 1.5rem;
    color: var(--im-color-text, #1C1B18);
    font-weight: 400;
}

.bb-single-price del {
    font-size: 1.125rem;
    color: var(--im-color-muted, #9E9B95);
    margin-right: 0.5rem;
}

.bb-single-price ins {
    text-decoration: none;
    color: var(--im-color-brand-red, #825d63);
    font-weight: 600;
}

.bb-single-desc-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.bb-single-short-desc {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.875rem;
    color: #4A4A4A;
    line-height: 1.6;
    margin: 0;
    max-height: 4.8em;
    /* Exactly 3 lines (1.6 line-height * 3) */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bb-single-short-desc.expanded {
    max-height: 1000px;
}

.bb-desc-toggle-btn {
    background: none;
    border: none;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--im-color-text, #1C1B18);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    outline: none;
    display: none;
    /* Will be shown by JS if text overflows */
}

/* Variations Block Styling */
.bb-variation-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bb-variation-header-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    margin-bottom: 0.25rem !important;
}

.bb-variation-label {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--im-color-text, #1C1B18);
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.bb-variation-label span.bb-selected-variant-val {
    font-weight: 500;
    color: var(--im-color-muted, #9E9B95);
    margin-left: 0.35rem;
    text-transform: none;
    letter-spacing: 0;
}

.bb-all-colors-link {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--im-color-text, #1C1B18) !important;
    text-decoration: none !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(28, 27, 24, 0.25);
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    text-align: right !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bb-all-colors-link:hover {
    background-color: var(--im-color-text, #1C1B18);
    color: #fff !important;
    border-color: var(--im-color-text, #1C1B18);
}

.bb-all-colors-link span {
    font-size: 0.65rem;
    display: inline-block;
    transform: translateY(-1px);
}

/* Variant Image Swatches */
.bb-image-swatches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Limit details page swatches to 6 items and exactly 1 row (no wrapping, full width of column) */
.bb-image-swatches-grid:not(.bb-image-swatches-grid--drawer) {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

.bb-image-swatches-grid:not(.bb-image-swatches-grid--drawer) .bb-image-swatch-wrapper:nth-child(n+7) {
    display: none !important;
}

.bb-image-swatch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    /* Grow to fill grid cell */
    gap: 0.25rem;
}

.bb-image-swatch-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Perfect vertical portrait aspect ratio */
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    overflow: hidden;
    background-color: #ECE9E3;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bb-image-swatch-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.bb-image-swatch-item:hover {
    border-color: var(--im-color-text, #1C1B18);
    transform: translateY(-2px);
}

.bb-image-swatch-item.active {
    border: 1.5px solid var(--im-color-text, #1C1B18) !important;
}

.bb-image-swatch-label {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    color: #4A4A4A;
    text-align: left;
    line-height: 1.2;
    margin-top: 0.15rem;
    word-break: break-word;
}

/* Size Option Selectors */
.bb-size-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bb-size-swatch-item {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
}

.bb-size-swatch-item:hover {
    border-color: var(--im-color-text, #1C1B18);
    background-color: #FAF9F5;
}

.bb-size-swatch-item.active {
    border-color: var(--im-color-text, #1C1B18);
    background-color: var(--im-color-text, #1C1B18);
    color: #FFFFFF;
}

/* Actions Row: Qty + Buttons side-by-side */
.bb-action-buttons-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* Custom Quantity Selector */
.bb-qty-selector {
    display: none !important;
    /* Hidden as per request */
}

.bb-qty-btn {
    background: none;
    border: none;
    width: 32px;
    height: 100%;
    cursor: pointer;
    font-family: var(--im-font-body);
    font-size: 1.125rem;
    color: var(--im-color-text, #1C1B18);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.bb-qty-input {
    border: none;
    background: transparent;
    width: 40px;
    height: 100%;
    text-align: center;
    font-family: var(--im-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--im-color-text, #1C1B18);
    outline: none;
    -moz-appearance: textfield;
}

.bb-qty-input::-webkit-outer-spin-button,
.bb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Variation Error Message styling */
.bb-variation-error-msg {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    margin-top: 0.85rem;
    margin-bottom: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: none;
    line-height: 1.4;
    text-align: center;
}

.bb-variation-error-msg.error {
    color: #C62828 !important;
}

.bb-variation-error-msg.success {
    color: #2E7D32 !important;
}

/* Buy buttons styling */
.bb-btn-add-to-bag {
    flex: 1.2;
    height: 48px;
    border: 1px solid var(--im-color-text, #1C1B18);
    background-color: transparent;
    color: var(--im-color-text, #1C1B18);
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bb-btn-add-to-bag:hover {
    background-color: var(--im-color-text, #1C1B18);
    color: #FFFFFF;
}

.bb-btn-buy-now {
    flex: 1.5;
    height: 48px;
    border: none;
    background-color: var(--im-color-brand-red, #825d63);
    color: #FFFFFF;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bb-btn-buy-now:hover {
    background-color: #6c4b50;
}

/* Accordions Section */
.bb-accordions-group {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.bb-accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bb-accordion-header {
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    display: grid;
    grid-template-columns: 1fr 1.2fr 40px;
    /* Spaced header to align title and subtitle */
    align-items: center;
    cursor: pointer;
    outline: none;
}

.bb-accordion-title {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--im-color-text, #1C1B18);
    text-align: left;
}

.bb-accordion-subtitle {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.75rem;
    color: var(--im-color-text, #1C1B18);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bb-accordion-item.active .bb-accordion-subtitle {
    opacity: 1;
    visibility: visible;
}

.bb-accordion-icon {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--im-color-text, #1C1B18);
    transition: transform 0.25s ease;
    text-align: right;
    padding-right: 0.25rem;
}

.bb-accordion-item.active .bb-accordion-icon {
    transform: rotate(45deg);
    /* Turns the '+' into a 'x' */
}

.bb-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bb-accordion-content-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr 40px;
    /* Align content to the subtitle column */
    padding-bottom: 1.5rem;
    align-items: start;
}

.bb-accordion-col-spacer {
    /* Empty spacer column 1 */
}

.bb-accordion-col-content {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.6;
    text-align: left;
}

.bb-accordion-col-icon-spacer {
    /* Empty spacer column 3 */
}

/* Right Column: Stacked Product Gallery */
.bb-gallery-stacked {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.bb-gallery-image-wrapper {
    background-color: #ECE9E3;
    aspect-ratio: 3 / 4;
    /* Editorial portrait aspect ratio */
    overflow: hidden;
}

.bb-gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.bb-gallery-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
}

/* Reviews Breakdown Block */
.bb-reviews-breakdown {
    background-color: #F6F6F6;
    /* Clean light grey background matching Figma */
    border: none;
    /* Removed all borders */
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1.8fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.bb-reviews-average {
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    /* Clean vertical divider */
    padding-right: 2.5rem;
}

.bb-reviews-average-score {
    font-family: var(--im-font-body, sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--im-color-text, #1C1B18);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.bb-reviews-average-star {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--im-color-text, #1C1B18);
    margin-top: -4px;
}

.bb-reviews-average-count {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    color: #707070;
    margin-top: 0.65rem;
    line-height: 1.3;
}

.bb-reviews-bars-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bb-reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.75rem;
}

.bb-reviews-bar-label {
    width: 35px;
    font-weight: 500;
    color: var(--im-color-text, #1C1B18);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bb-reviews-bar-track {
    flex: 1;
    height: 4px;
    background-color: #EAE8E3;
    position: relative;
}

.bb-reviews-bar-fill {
    height: 100%;
    background-color: var(--im-color-text, #1C1B18);
    width: 0%;
    /* Dynamic */
}

.bb-reviews-bar-pct {
    width: 35px;
    text-align: right;
    color: var(--im-color-muted, #9E9B95);
}

/* Reviews List */
.bb-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.bb-review-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bb-review-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-review-author-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bb-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ECE9E3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--im-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--im-color-text, #1C1B18);
}

.bb-review-author-name {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--im-color-text, #1C1B18);
}

.bb-review-date {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    color: var(--im-color-muted, #9E9B95);
}

.bb-review-text {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.875rem;
    color: #4A4A4A;
    line-height: 1.6;
    margin: 0;
}

.bb-review-product-variant {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    color: var(--im-color-muted, #9E9B95);
    background-color: #F8F7F4;
    padding: 0.5rem 0.75rem;
    align-self: start;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
    .bb-single-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .bb-single-details-col {
        position: static;
    }

    .bb-reviews-breakdown {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bb-reviews-average {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }
}

/* ALL COLORS button: hidden by default on desktop, shown only on mobile when 5-6 colors */
.bb-all-colors-link--mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .bb-single-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .bb-gallery-column-wrapper {
        order: 1 !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }

    .bb-gallery-stacked {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        width: 100vw !important;
        gap: 0 !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .bb-gallery-stacked::-webkit-scrollbar {
        display: none !important;
    }

    .bb-gallery-image-wrapper {
        flex: 0 0 100vw !important;
        width: 100vw !important;
        scroll-snap-align: start !important;
        aspect-ratio: 3 / 4 !important;
        padding-bottom: 0 !important;
        height: auto !important;
    }

    .bb-gallery-sub-grid {
        display: contents !important;
    }

    .bb-gallery-progress-bar-container {
        display: block !important;
        width: 80px;
        height: 2px;
        background-color: #EAE8E3;
        margin: 1rem auto 0.5rem;
        position: relative;
        overflow: hidden;
        border-radius: 2px;
    }

    .bb-gallery-progress-bar-fill {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 25%;
        background-color: #1C1B18;
        transition: left 0.1s ease;
        /* Smooth transition for fluid scroll sliding */
    }

    .bb-single-details-col {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        padding: 0 1.25rem !important;
    }

    /* Details elements mobile layout ordering */
    .bb-single-rating-sold-row {
        order: 1 !important;
        margin-top: 0.5rem !important;
    }

    .bb-single-title-block {
        order: 2 !important;
    }

    .bb-single-price {
        order: 3 !important;
        margin-top: 0 !important;
    }

    .bb-single-desc-wrapper {
        order: 4 !important;
        margin-top: 0 !important;
    }

    .bb-variation-block--color {
        order: 5 !important;
        margin-top: 0 !important;
    }

    .bb-variation-block--size {
        order: 6 !important;
        margin-top: 0 !important;
    }

    .bb-action-buttons-row {
        order: 7 !important;
        margin-top: 0.5rem !important;
    }

    .bb-accordions-group {
        order: 8 !important;
        margin-top: 1rem !important;
    }

    .bb-reviews-container {
        order: 9 !important;
        margin-top: 1.5rem !important;
    }



    /* Additional layout tweaks for mobile */
    .bb-single-meta-row {
        margin-bottom: 0.5rem !important;
    }

    .bb-single-title {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    .bb-single-price {
        font-size: 1.25rem !important;
    }

    .bb-action-buttons-row {
        flex-direction: row !important;
        /* Keep quantity selector and action buttons on same row */
        gap: 0.5rem !important;
    }

    .bb-btn-add-to-bag,
    .bb-btn-buy-now {
        font-size: 0.725rem !important;
        padding: 0 0.5rem !important;
    }

    .bb-accordion-header {
        grid-template-columns: 1.2fr 1fr 30px !important;
    }

    .bb-accordion-content-inner {
        grid-template-columns: 1.2fr 1fr 30px !important;
    }

    .bb-image-swatches-grid:not(.bb-image-swatches-grid--drawer) {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.4rem !important;
    }

    .bb-image-swatches-grid:not(.bb-image-swatches-grid--drawer) .bb-image-swatch-wrapper:nth-child(n+5) {
        display: none !important;
    }

    .bb-all-colors-link--mobile-only {
        display: inline-flex !important;
    }
}

/* ==========================================================================
   COLOR DRAWER & SOLD SWATCH OVERLAYS
   ========================================================================== */
/* Color drawer background color override */
#bb-colors-drawer {
    background-color: #FFFFFF !important;
}

/* Drawer Grid layout (3 equal columns) */
.bb-image-swatches-grid--drawer {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem .25rem !important;
}

.bb-image-swatches-grid--drawer .bb-image-swatch-wrapper {
    width: 100% !important;
}

/* Disabled Buy Buttons (Out of Stock State) */
.bb-btn-add-to-bag:disabled,
.bb-btn-buy-now:disabled {
    background-color: #EAE8E3 !important;
    color: #9E9B95 !important;
    border-color: #EAE8E3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Disabled/Unavailable Variant Swatches styling */
.bb-size-swatch-item.disabled,
.bb-size-swatch-item:disabled {
    opacity: 0.45 !important;
    background-color: #F8F7F4 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #9E9B95 !important;
    position: relative !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Crisp diagonal cross line through disabled size button */
.bb-size-swatch-item.disabled::after,
.bb-size-swatch-item:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    right: -20%;
    height: 1.5px;
    background-color: #A3A09A;
    transform: rotate(-25deg);
    pointer-events: none;
}

.bb-image-swatch-item.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative !important;
    filter: grayscale(0.5);
}

/* Subtle diagonal slash across disabled color image */
.bb-image-swatch-item.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    right: -20%;
    height: 1.5px;
    background-color: rgba(60, 60, 60, 0.6);
    transform: rotate(-35deg);
    pointer-events: none;
}

.bb-image-swatch-wrapper.swatch-disabled {
    opacity: 0.55 !important;
    pointer-events: none !important;
}

.bb-image-swatch-wrapper.swatch-disabled .bb-image-swatch-label {
    color: #A8A59E !important;
    text-decoration: line-through;
}

/* ── Out of Stock / Unpurchasable State (Forbidden Icon) ── */
.bb-action-buttons-row--archived {
    display: flex;
    width: 100%;
}

.bb-btn-out-of-stock {
    flex: 1;
    width: 100%;
    height: 48px;
    border: 1px solid #D1CFC7;
    background-color: #F0EFEA;
    color: #7D7A72;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.bb-btn-out-of-stock .bb-icon-forbidden {
    flex-shrink: 0;
    stroke: #8E8B83;
}

/* Grayscale nuance on unpurchasable/draft product detail gallery */
.bb-single-layout--unpurchasable .bb-single-gallery-grid img,
.bb-single-layout--unpurchasable .bb-mobile-slider img {
    filter: grayscale(100%);
    opacity: 0.9;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.bb-single-layout--unpurchasable .bb-single-gallery-grid img:hover {
    filter: grayscale(50%);
    opacity: 1;
}