/* Build a Palette Kit Customizer Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bpk-bg-charcoal: #120e0e;
    --bpk-bg-tray: #1c1515;
    --bpk-rose-gold: #B55B7F;
    --bpk-rose-gold-light: #E579B1;
    --bpk-gold-champagne: #FEB037;
    --bpk-text-white: #ffffff;
    --bpk-text-muted: #a39595;
    --bpk-glass-bg: rgba(22, 17, 17, 0.88);
    --bpk-glass-border: rgba(181, 91, 127, 0.18);
    --bpk-danger-red: #d32f2f;
}

/* Base Wrapper Overrides */
.bpk-preview-container-wrapper, 
.bpk-preview-container-wrapper *,
.bpk-customizer-wrapper,
.bpk-customizer-wrapper * {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box !important;
}

/* ==========================================
   1. VISUAL PALETTE PREVIEW (Left Column)
   ========================================== */

.bpk-preview-container-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 150px auto 24px auto;
    border-radius: 24px;
    padding: 18px;
    background: radial-gradient(circle at 50% 50%, var(--bpk-bg-tray) 0%, var(--bpk-bg-charcoal) 100%);
    border: 1px solid var(--bpk-glass-border);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.bpk-palette-preview {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bpk-palette-inner {
    background: #0f0a0a;
    border: 2px solid #2d2020;
    border-radius: 18px;
    padding: 24px 16px 20px 16px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

.bpk-palette-brand {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--bpk-rose-gold);
    opacity: 0.5;
    letter-spacing: 4px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.bpk-palette-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bpk-text-white);
    opacity: 0.85;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* 2x3 Grid layout for glitter slots */
.bpk-palette-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
}

.bpk-palette-slot {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #070404;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.8), 0 1px 1px rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bpk-palette-slot:hover {
    transform: scale(1.05);
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.8), 0 0 8px rgba(183, 110, 121, 0.4);
}

.bpk-palette-slot.empty {
    border: 2px dashed #3a2828;
}

.bpk-palette-slot.filled {
    border: 2.5px solid var(--bpk-rose-gold);
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.25);
}

.bpk-slot-number {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #251818;
    color: var(--bpk-rose-gold);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--bpk-glass-border);
}

.bpk-slot-plus {
    font-size: 18px;
    font-weight: 600;
    color: #3d2c2c;
    transition: color 0.2s ease;
}

.bpk-palette-slot:hover .bpk-slot-plus {
    color: var(--bpk-rose-gold);
}

/* Image filled state inside palette slots */
.bpk-slot-fill-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Shiny lip sheen effect overlay */
.bpk-slot-fill-image::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    width: 60%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50% 50% 40% 40% / 80% 80% 20% 20%;
    transform: rotate(-15deg);
}

/* Slot change pop animation */
.bpk-palette-slot.bpk-animate {
    animation: bpkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Hover remove overlay for filled slots */
.bpk-slot-remove {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--bpk-text-white);
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
    font-weight: 300;
}

.bpk-palette-slot.filled:hover .bpk-slot-remove {
    opacity: 1;
}

@keyframes bpkPop {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* Accessories list row (Gel bottle + Brush) */
.bpk-palette-accessories {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(183, 110, 121, 0.1);
    padding-top: 30px;
    padding-bottom: 32px;
    margin-top: 4px;
}

.bpk-accessory-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 33%;
    transition: all 0.3s ease;
    opacity: 0.65;
}

.bpk-accessory-slot.filled,
.bpk-accessory-slot.included {
    opacity: 1;
}

.bpk-accessory-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f0a0a;
    border: 1px solid #2d2020;
    color: var(--bpk-text-muted);
    transition: all 0.3s ease;
}

.bpk-accessory-slot.filled .bpk-accessory-icon {
    color: var(--bpk-rose-gold);
    border-color: var(--bpk-rose-gold);
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.15);
    background: rgba(183, 110, 121, 0.05);
}

.bpk-accessory-slot.included .bpk-accessory-icon {
    color: var(--bpk-gold-champagne);
    border-color: rgba(229, 193, 88, 0.3);
    background: rgba(229, 193, 88, 0.04);
}

.bpk-vector-svg {
    width: 24px;
    height: 24px;
}

.bpk-accessory-label {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--bpk-text-muted);
    text-align: center;
    line-height: 1.3;
}

.bpk-accessory-slot.filled .bpk-accessory-label {
    color: var(--bpk-text-white);
}

.bpk-accessory-slot.included .bpk-accessory-label {
    color: var(--bpk-gold-champagne);
}

.bpk-label-sub {
    font-size: 12.5px;
    opacity: 0.6;
    font-weight: 500;
}

/* Floating Branded Badge */
.bpk-preview-badge {
    position: relative;
    margin: 16px auto 0 auto;
    width: max-content;
    background: #E579B1;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(183, 110, 121, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    pointer-events: none;
    z-index: 20;
    text-align: center;
}

.bpk-preview-badge span {
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Loader Overlay */
.bpk-preview-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 14, 14, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    border-radius: 18px;
}

.bpk-spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid rgba(183, 110, 121, 0.15);
    border-top-color: var(--bpk-rose-gold);
    border-radius: 50%;
    animation: bpkSpin 1s infinite linear;
}

@keyframes bpkSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ==========================================
   2. CONFIGURATION PANEL (Right Column)
   ========================================== */

.bpk-customizer-wrapper {
    background: var(--bpk-glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bpk-glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    color: var(--bpk-text-white);
    margin-bottom: 24px;
    width: 100% !important;
    max-width: 100% !important;
}

/* Pricing Alert banner */
.bpk-pricing-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.15), rgba(229, 193, 88, 0.08));
    border: 1px solid rgba(183, 110, 121, 0.25);
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.bpk-pricing-alert-icon {
    font-size: 18px;
    line-height: 1;
}

.bpk-pricing-alert-text {
    font-size: 13px;
    line-height: 1.4;
}

.bpk-pricing-alert-text strong {
    color: var(--bpk-rose-gold-light);
    font-weight: 700;
}

.bpk-pricing-alert-text span {
    color: var(--bpk-text-muted);
}

/* Customizer Tab Headers */
.bpk-tabs-header {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    border-bottom: 1px solid rgba(183, 110, 121, 0.15);
    padding-bottom: 12px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.bpk-tabs-header::-webkit-scrollbar {
    display: none;
}

.bpk-tab-btn {
    flex: 1;
    min-width: 90px;
    background: transparent;
    border: none;
    outline: none !important;
    padding: 10px 4px;
    color: var(--bpk-text-muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.bpk-tab-btn:hover {
    color: var(--bpk-text-white);
    background: rgba(255, 255, 255, 0.03);
}

.bpk-tab-btn.active {
    background: linear-gradient(135deg, var(--bpk-rose-gold) 0%, #8c4650 100%);
    color: var(--bpk-text-white);
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tab Panels */
.bpk-tab-panel {
    display: none;
    animation: bpkFadeIn 0.3s ease forwards;
}

.bpk-tab-panel.active {
    display: block;
}

@keyframes bpkFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bpk-panel-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--bpk-text-white);
}

.bpk-panel-desc {
    font-size: 12.5px;
    color: var(--bpk-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

/* Grid of option cards */
.bpk-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bpk-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: visible;
}

.bpk-option-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(183, 110, 121, 0.3);
}

.bpk-option-card.active {
    background: rgba(183, 110, 121, 0.08);
    border-color: var(--bpk-rose-gold);
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.15);
}

/* Badge for selection count (handling duplicate choices) */
.bpk-selection-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--bpk-rose-gold);
    color: var(--bpk-text-white);
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    animation: bpkPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Images & fallbacks inside grid cards */
.bpk-option-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.bpk-thumbnail-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

.bpk-option-card:hover .bpk-thumbnail-img {
    transform: scale(1.08);
}

.bpk-color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4), 0 3px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.bpk-option-card:hover .bpk-color-swatch {
    transform: scale(1.06);
}

.bpk-option-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--bpk-text-white);
    text-align: center;
    line-height: 1.3;
}

.bpk-option-desc {
    font-size: 9.5px;
    color: var(--bpk-text-muted);
    text-align: center;
    margin-top: 4px;
    line-height: 1.2;
}

.bpk-out-of-stock {
    font-size: 9px;
    color: var(--bpk-danger-red);
    display: block;
    margin-top: 2px;
    font-weight: 600;
}

/* Static inclusions list */
.bpk-included-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.bpk-included-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 14px 16px;
    border-radius: 14px;
}

.bpk-included-icon {
    font-size: 24px;
    line-height: 1;
}

.bpk-included-text h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--bpk-text-white);
}

.bpk-included-text p {
    margin: 0;
    font-size: 12px;
    color: var(--bpk-text-muted);
    line-height: 1.4;
}

/* Selection Summary panel */
.bpk-selection-summary {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--bpk-rose-gold);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 24px 0 16px 0;
}

.bpk-summary-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bpk-rose-gold-light);
    margin-bottom: 10px;
}

.bpk-summary-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bpk-summary-item-full {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bpk-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.bpk-summary-label {
    color: var(--bpk-text-muted);
    font-weight: 600;
    font-size: 12px;
}

#bpk-summary-glitters-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    color: var(--bpk-text-white);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
}

#bpk-summary-glitters-list li {
    margin-bottom: 2px;
}

.bpk-summary-empty-item {
    color: #4c373a;
    font-style: italic;
}

/* Validation Warning banner */
.bpk-validation-warning {
    background: rgba(211, 47, 47, 0.15);
    border: 1px solid rgba(211, 47, 47, 0.35);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #ff8a80;
    font-weight: 500;
}

/* ==========================================
   3. ADD TO CART AND PRICING CONTAINER
   ========================================== */

.bpk-add-to-cart-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(183, 110, 121, 0.15);
    padding-top: 20px;
    margin-top: 16px;
}

.bpk-price-display {
    display: flex;
    flex-direction: column;
}

.bpk-price-label {
    font-size: 10px;
    color: var(--bpk-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.bpk-price-display .price,
.bpk-price-display .amount {
    font-size: 24px !important;
    font-weight: 800;
    color: var(--bpk-rose-gold) !important;
}

.bpk-qty-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bpk-qty-btn-group .quantity {
    margin: 0 !important;
}

.bpk-qty-btn-group .quantity input.qty {
    width: 48px !important;
    height: 46px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--bpk-glass-border) !important;
    border-radius: 12px !important;
    color: var(--bpk-text-white) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Premium Glossy Add to Cart Button */
.bpk-add-button {
    height: 46px;
    padding: 0 28px !important;
    background: linear-gradient(135deg, var(--bpk-rose-gold) 0%, #844c54 100%) !important;
    color: var(--bpk-text-white) !important;
    font-weight: 800 !important;
    font-size: 14.5px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(183, 110, 121, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.bpk-add-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.bpk-add-button:hover::after {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

.bpk-add-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(183, 110, 121, 0.45) !important;
    filter: brightness(1.1);
}

.bpk-add-button:active {
    transform: translateY(1px) !important;
}

.bpk-add-button.disabled,
.bpk-add-button:disabled {
    background: #252020 !important;
    color: #5a5050 !important;
    border-color: rgba(255,255,255,0.03) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    filter: none !important;
}


/* ==========================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================== */

@media (max-width: 991px) {
    .bpk-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .bpk-preview-container-wrapper {
        max-width: 320px;
        margin-top: 10px;
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .bpk-palette-preview {
        gap: 14px;
    }
    
    .bpk-palette-inner {
        padding: 16px 12px;
    }
    
    .bpk-palette-title {
        margin-bottom: 12px;
    }
    
    .bpk-palette-slots-grid {
        gap: 10px;
    }
    
    .bpk-palette-slot {
        width: 58px;
        height: 58px;
    }
    
    .bpk-customizer-wrapper {
        padding: 16px;
    }
    
    .bpk-options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .bpk-option-card {
        padding: 10px 4px;
        border-radius: 12px;
    }
    
    .bpk-option-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 6px;
    }
    
    .bpk-option-name {
        font-size: 10px;
    }
    
    .bpk-tabs-header {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding-bottom: 8px !important;
    }
    
    .bpk-tab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 8px 16px !important;
        min-width: 0 !important;
        font-size: 11.5px;
    }
    
    #bpk-summary-glitters-list {
        grid-template-columns: 1fr;
    }
    
    .bpk-add-to-cart-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .bpk-price-display {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .bpk-qty-btn-group {
        justify-content: space-between;
    }
    
    .bpk-add-button {
        flex-grow: 1;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .bpk-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   5. BLOCK/FSE THEME COMPATIBILITY OVERRIDES
   ========================================== */

.bpk-customizer-product-page .wp-block-woocommerce-product-image > *:not(.bpk-preview-container-wrapper),
.bpk-customizer-product-page .woocommerce-product-gallery > *:not(.bpk-preview-container-wrapper) {
    display: none !important;
}

.bpk-customizer-product-page .wp-block-woocommerce-product-add-to-cart,
.bpk-customizer-product-page .product .cart:not(.bpk-customizer-form) {
    display: none !important;
}

/* ==========================================
   6. GRID ALIGNMENT & BREADCRUMBS DESIGN
   ========================================== */

@media screen and (min-width: 768px) {
    body.bpk-customizer-product-page div.product {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 1% !important;
        float: none !important;
        width: 100% !important;
    }
    body.bpk-customizer-product-page div.product .images.bpk-preview-images-column {
        flex: 0 0 48% !important;
        max-width: 48% !important;
        width: 48% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    body.bpk-customizer-product-page div.product .summary.entry-summary {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    body.bpk-customizer-product-page div.product .woocommerce-tabs {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 30px !important;
    }
}

/* Step Indicators Bar */
.bpk-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bpk-glass-border);
    border-radius: 12px;
    padding: 10px 16px;
}
.bpk-step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.bpk-step.active {
    opacity: 1;
}
.bpk-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--bpk-text-white);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.15);
}
.bpk-step.active .bpk-step-number {
    background: var(--bpk-rose-gold);
    border-color: var(--bpk-rose-gold);
}
.bpk-step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bpk-text-white);
    letter-spacing: 0.5px;
}
.bpk-step-line {
    flex-grow: 1;
    height: 1px;
    background: var(--bpk-glass-border);
    margin: 0 10px;
}

/* Navigation Buttons Inside Tabs */
.bpk-tab-nav-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    border-top: 1px solid var(--bpk-glass-border);
    padding-top: 20px;
}
.bpk-next-btn {
    background: var(--bpk-rose-gold);
    color: var(--bpk-text-white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.2);
}
.bpk-next-btn:hover:not(.disabled) {
    background: var(--bpk-rose-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(183, 110, 121, 0.35);
}
.bpk-next-btn.disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--bpk-text-muted) !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

/* Accessory Slot Image Styling */
.bpk-accessory-image {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    border: 1px solid var(--bpk-rose-gold);
}
.bpk-accessory-slot.included .bpk-accessory-image {
    border-color: var(--bpk-rose-gold);
}
.bpk-accessory-slot.empty .bpk-accessory-image {
    display: none;
}
.bpk-included-thumb-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--bpk-glass-border);
}

/* Card Action Bubbles */
.bpk-card-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through if not on a button */
    z-index: 10;
}

.bpk-card-action-btn {
    position: absolute !important;
    pointer-events: auto !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    background: #ffffff00 !important;
    color: var(--bpk-rose-gold) !important;
    border: 1px solid var(--bpk-glass-border) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    outline: none !important;
    text-transform: none !important;
}

.bpk-card-action-btn:hover {
    transform: scale(1.15) !important;
    background: #E579B1 !important;
    color: var(--bpk-text-white) !important;
    border-color: var(--bpk-rose-gold) !important;
    box-shadow: 0 4px 10px rgba(183, 110, 121, 0.5) !important;
}

.bpk-action-zoom {
    top: -6px;
    left: -6px;
}

.bpk-action-minus {
    top: -6px;
    right: 18px; /* Sit right next to the selection count badge */
    background: #3a181c; /* Slightly red-ish dark background for minus */
    color: #ff8e9b;
}

.bpk-action-minus:hover {
    background: #d63346;
    border-color: #d63346;
}

/* Image Zoom Modal */
.bpk-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 4, 4, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.bpk-zoom-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 185%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.bpk-zoom-img-container {
    position: relative;
    width: 65vh;
    height: 80vh;
    max-width: 80vw;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid var(--bpk-glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
    background: #000;
    cursor: crosshair;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bpk-zoom-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.bpk-zoom-caption {
    margin-top: 16px;
    color: var(--bpk-text-white);
    text-align: center;
    font-size: 15px;}

.bpk-zoom-caption strong {
    font-size: 18px;
    color: var(--bpk-gold-champagne);
    display: block;
    margin-bottom: 4px;
}

.bpk-zoom-caption span {
    font-size: 13px;
    color: var(--bpk-text-muted);
}

.bpk-zoom-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--bpk-text-muted);
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bpk-zoom-close:hover {
    color: var(--bpk-text-white);
}

@media (max-width: 767px) {
    .bpk-zoom-image {
        max-height: 55vh;
    }
    .bpk-zoom-caption strong {
        font-size: 15px;
    }
    .bpk-zoom-caption span {
        font-size: 12px;
    }
}

/* ==========================================
   12. BRAND LIGHT MODE THEME OVERRIDES
   ========================================== */
:root {
    --bpk-bg-charcoal: #FDFBFC;
    --bpk-bg-tray: #FFFFFF;
    --bpk-rose-gold: #B55B7F;
    --bpk-rose-gold-light: #E579B1;
    --bpk-gold-champagne: #FEB037;
    --bpk-text-white: #2F2123; /* Map standard white text variable to dark espresso */
    --bpk-text-muted: #7E6C6E;
    --bpk-glass-bg: rgba(255, 255, 255, 0.92);
    --bpk-glass-border: rgba(181, 91, 127, 0.15);
    --bpk-text-on-btn: #FFFFFF; /* High-contrast white for button labels */
}



/* Compact Visual Preview (Outer Card) & Options Wrapper Shadows */
.bpk-preview-container-wrapper,
.bpk-customizer-wrapper {
    box-shadow: 0 12px 40px rgba(47, 33, 35, 0.15) !important;
}

.bpk-preview-container-wrapper {
    background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #FAF5F6 100%) !important;
    border: 1px solid rgba(181, 91, 127, 0.15) !important;
    overflow: visible !important; /* Ensure outer shadow is not clipped */
}

/* Compact Visual Preview (Inner compact makeup tray) */
.bpk-palette-inner {
    background: #e579b159 !important;
    border: 2px solid rgba(181, 91, 127, 0.15) !important;
    box-shadow: inset 0 2px 10px rgba(181, 91, 127, 0.08) !important;
    
}

/* Compact Visual Preview (Slot wells) */
.bpk-palette-slot {
    background: #FFFFFF !important;
    box-shadow: inset 0 2px 8px rgba(181, 91, 127, 0.08), 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

.bpk-palette-slot:hover {
    box-shadow: inset 0 2px 8px rgba(181, 91, 127, 0.08), 0 0 8px rgba(181, 91, 127, 0.3) !important;
}

.bpk-palette-slot.empty {
    border: 2px dashed rgba(181, 91, 127, 0.25) !important;
}

.bpk-palette-slot.filled {
    border: 2.5px solid var(--bpk-rose-gold) !important;
    box-shadow: 0 4px 15px rgba(181, 91, 127, 0.18) !important;
}

.bpk-slot-number {
    background: #FFFFFF !important;
    border: 1px solid rgba(181, 91, 127, 0.25) !important;
    color: var(--bpk-rose-gold) !important;
}

.bpk-slot-plus {
    color: rgba(181, 91, 127, 0.4) !important;
}

.bpk-palette-slot:hover .bpk-slot-plus {
    color: var(--bpk-rose-gold) !important;
}

/* Accessory slot wells in live compact preview */
.bpk-accessory-icon {
    background: #FFFFFF !important;
    border: 1px solid rgba(181, 91, 127, 0.15) !important;
}

.bpk-accessory-slot.filled .bpk-accessory-icon {
    background: rgba(181, 91, 127, 0.04) !important;
    box-shadow: 0 4px 12px rgba(181, 91, 127, 0.1) !important;
}

.bpk-accessory-slot.included .bpk-accessory-icon {
    border-color: rgba(254, 176, 55, 0.3) !important;
    background: rgba(254, 176, 55, 0.04) !important;
}

/* Option grids and selection cards styling */
.bpk-option-card {
    background: #FFFFFF !important;
    border: 2px solid rgba(181, 91, 127, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.bpk-option-card:hover {
    background: #FFFFFF !important;
    border-color: rgba(181, 91, 127, 0.25) !important;
    box-shadow: 0 6px 18px rgba(181, 91, 127, 0.08) !important;
}

.bpk-option-card.active {
    background: rgba(181, 91, 127, 0.04) !important;
    border-color: var(--bpk-rose-gold) !important;
    box-shadow: 0 6px 18px rgba(181, 91, 127, 0.08) !important;
}

.bpk-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 3px 8px rgba(181, 91, 127, 0.12) !important;
}

/* Static inclusions list */
.bpk-included-item {
    background: rgba(181, 91, 127, 0.02) !important;
    border: 1px solid rgba(181, 91, 127, 0.08) !important;
}

/* Selection Summary panel */
.bpk-selection-summary {
    background: rgba(181, 91, 127, 0.04) !important;
}

.bpk-summary-item {
    border-top: 1px solid rgba(181, 91, 127, 0.08) !important;
}

.bpk-summary-empty-item {
    color: #bfaab1 !important;
}

/* Validation Warning banner */
.bpk-validation-warning {
    color: var(--bpk-danger-red) !important;
}

/* Button Typographies & Text Colors (overrides white color to stay white) */
.bpk-tab-btn.active {
    background: linear-gradient(135deg, var(--bpk-rose-gold) 0%, var(--bpk-rose-gold-light) 100%) !important;
    color: var(--bpk-text-on-btn) !important;
}

.bpk-tab-btn:hover {
    color: var(--bpk-rose-gold) !important;
    background: rgba(181, 91, 127, 0.05) !important;
}

.bpk-step-number {
    background: rgba(181, 91, 127, 0.08) !important;
    border: 1px solid rgba(181, 91, 127, 0.15) !important;
    color: var(--bpk-text-white) !important; /* This is dark */
}

.bpk-step.active .bpk-step-number {
    background: var(--bpk-rose-gold) !important;
    border-color: var(--bpk-rose-gold) !important;
    color: var(--bpk-text-on-btn) !important; /* This is white */
}

.bpk-next-btn {
    color: var(--bpk-text-on-btn) !important;
}

.bpk-next-btn.disabled {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--bpk-text-muted) !important;
}

.bpk-qty-btn-group .quantity input.qty {
    background: rgba(0, 0, 0, 0.02) !important;
}

.bpk-add-button {
    background: linear-gradient(135deg, var(--bpk-rose-gold) 0%, var(--bpk-rose-gold-light) 100%) !important;
    color: var(--bpk-text-on-btn) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.bpk-add-button.disabled,
.bpk-add-button:disabled {
    background: #e2d9db !important;
    color: #a89498 !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.bpk-slot-remove {
    color: var(--bpk-text-on-btn) !important;
}

/* Zoom Image Modal Overlay */
.bpk-zoom-modal {
    background: rgba(255, 255, 255, 0.9) !important;
}

.bpk-zoom-caption {
    color: var(--bpk-text-white) !important; /* This is dark */
}

.bpk-zoom-close {
    color: var(--bpk-text-muted) !important;
}

.bpk-zoom-close:hover {
    color: var(--bpk-rose-gold) !important;
}
