/* ============================================
   BONBONS PAGE - Specific Styles
   ============================================ */

/* Page Header - Bonbons specific */
.bonbons-header {
    background: linear-gradient(135deg, rgba(227,174,168,0.08) 0%, rgba(178,180,164,0.08) 100%);
    padding-top: 260px;
}

/* ============================================
   FLAVOUR TABS
   ============================================ */
.flavour-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.flavour-tab {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--border-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.flavour-tab:hover {
    border-color: var(--blush-pink);
    color: var(--blush-pink);
}

.flavour-tab.active {
    background: var(--blush-pink);
    border-color: var(--blush-pink);
    color: var(--white);
}

/* ============================================
   FLAVOURS GRID
   ============================================ */
.flavours-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.flavours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.flavour-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.4s ease;
}

.flavour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(107, 91, 75, 0.12);
}

.flavour-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cream);
}

.flavour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flavour-card:hover .flavour-image img {
    transform: scale(1.05);
}

/* Placeholder for bonbons without images yet */
.flavour-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
}

.flavour-placeholder.dark {
    background: linear-gradient(135deg, #3D2B1F 0%, #5C4033 100%);
    color: rgba(255,255,255,0.3);
}

.flavour-placeholder.milk {
    background: linear-gradient(135deg, #8B6914 0%, #A67B5B 100%);
    color: rgba(255,255,255,0.3);
}

.flavour-placeholder.white {
    background: linear-gradient(135deg, #F5F5DC 0%, #FFFDD0 100%);
    color: rgba(0,0,0,0.15);
}

/* Flavour badges */
.flavour-badge {
    position: absolute;
    top: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    font-weight: 500;
}

.dark-badge {
    left: 12px;
    background: #3D2B1F;
    color: var(--white);
}

.milk-badge {
    left: 12px;
    background: #A67B5B;
    color: var(--white);
}

.white-badge {
    left: 12px;
    background: #F5F5DC;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.alcohol-badge {
    right: 12px;
    left: auto;
    background: rgba(107, 91, 75, 0.9);
    color: var(--white);
}

.flavour-info {
    padding: 24px;
}

.flavour-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.flavour-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.flavour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-dairy {
    background: rgba(227, 174, 168, 0.2);
    color: #B88880;
}

.tag-soy {
    background: rgba(178, 180, 164, 0.2);
    color: #8A8C7A;
}

.tag-alcohol {
    background: rgba(107, 91, 75, 0.15);
    color: var(--text-dark);
}

/* ============================================
   BOX BUILDER SECTION
   ============================================ */
.box-builder-section {
    background: var(--white);
    padding: 100px 60px 80px;
    scroll-margin-top: 180px;
}

.box-builder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px 60px;
    align-items: start;
}

.box-builder-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0;
}

/* Left column: Step 1 + Step 2 */
.box-size-selection {
    grid-column: 1;
    grid-row: 2;
}

.flavour-selection {
    grid-column: 1;
    grid-row: 3;
}

/* Right column: Your Box, sticky as you scroll */
.order-summary {
    grid-column: 2;
    grid-row: 2 / 4;
    position: sticky;
    top: 140px;
}

.builder-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

/* Box Size Selection */
.box-size-selection {
    margin-bottom: 40px;
}

.box-sizes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.box-size-option {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}

.box-size-option input {
    display: none;
}

.box-size-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    border: 2px solid var(--border-light);
    background: var(--cream);
    transition: all 0.3s ease;
}

.box-size-option input:checked + .box-size-card {
    border-color: var(--blush-pink);
    background: var(--white);
    box-shadow: 0 8px 30px rgba(227, 174, 168, 0.2);
}

.box-size-card:hover {
    border-color: var(--soft-gold);
}

.box-count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--text-dark);
    line-height: 1;
}

.box-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 8px 0;
}

.box-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--blush-pink);
    font-weight: 500;
}

/* Out of Stock - Box Size
   To re-enable: remove "disabled" class from <label> and "disabled" attr from <input>,
   and delete the <span class="back-soon-badge">Back Soon</span> line */
.box-size-option.disabled {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}

.back-soon-badge {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blush-pink);
    border: 1px solid var(--blush-pink);
    padding: 4px 12px;
}

/* Flavour Selection Grid */
.flavour-selection {
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.4s ease;
}

.flavour-selection.active {
    opacity: 1;
    pointer-events: auto;
}

.selection-instruction {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.selection-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.selection-category {
    background: var(--cream);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.dark-title {
    color: #3D2B1F;
}

.milk-title {
    color: #8B6914;
}

.white-title {
    color: var(--text-dark);
}

.selection-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-btn {
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--border-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.selection-btn:hover {
    border-color: var(--blush-pink);
    color: var(--blush-pink);
    transform: translateY(-2px);
}

.selection-btn:active,
.selection-btn.pulse {
    transform: scale(0.95);
    background: var(--blush-pink);
    color: var(--white);
    border-color: var(--blush-pink);
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 140px;
    background: var(--cream);
    border: 1px solid var(--border-light);
    padding: 30px;
}

.summary-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.summary-box-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.summary-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blush-pink) 0%, var(--soft-gold) 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-fill.complete {
    background: linear-gradient(90deg, var(--sage-green) 0%, #9BB5A0 100%);
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

.summary-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.summary-items::-webkit-scrollbar {
    width: 4px;
}

.summary-items::-webkit-scrollbar-track {
    background: var(--border-light);
}

.summary-items::-webkit-scrollbar-thumb {
    background: var(--soft-gold);
    border-radius: 2px;
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    padding: 20px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.item-name {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-light);
    background: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    border-color: var(--blush-pink);
    color: var(--blush-pink);
}

.item-qty {
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    padding: 16px 0;
    border-top: 2px solid var(--text-dark);
    margin-bottom: 20px;
}

.btn-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-order svg {
    fill: currentColor;
}

.btn-clear {
    width: 100%;
    padding: 12px;
}

/* ============================================
   VALENTINE'S SECTION
   ============================================ */
.valentines-section {
    background: linear-gradient(135deg, rgba(227,174,168,0.1) 0%, rgba(255,255,255,0.5) 100%);
}

.valentines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.valentines-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.4s ease;
}

.valentines-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(227, 174, 168, 0.2);
}

.valentines-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--cream);
}

.valentines-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.valentines-card:hover .valentines-image img {
    transform: scale(1.03);
}

.valentines-info {
    padding: 30px;
    text-align: center;
}

.valentines-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-style: italic;
}

.valentines-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.valentines-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--blush-pink);
    margin-bottom: 20px;
}

/* ============================================
   ALLERGEN SECTION
   ============================================ */
.allergen-section {
    padding: 40px 60px 60px;
    background: var(--cream);
}

.allergen-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.allergen-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.allergen-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE - BONBONS PAGE
   ============================================ */
@media (max-width: 1024px) {
    .box-builder-container {
        grid-template-columns: 1fr;
    }
    
    .box-size-selection,
    .flavour-selection,
    .order-summary {
        grid-column: 1;
        grid-row: auto;
    }
    
    .order-summary {
        position: relative;
        top: 0;
    }
    
    .box-builder-section {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .flavours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .valentines-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .box-sizes {
        flex-direction: column;
    }
    
    .box-size-option {
        min-width: 100%;
    }
    
    .flavour-tabs {
        gap: 8px;
    }
    
    .flavour-tab {
        padding: 10px 16px;
        font-size: 0.7rem;
    }
    
    .bonbons-header {
        padding-top: 160px;
    }
}

@media (max-width: 480px) {
    .flavours-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .selection-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}
