/* ============================================================ 
   FINAL RESTORATION STYLES (MATCHING OLD DESIGN EXACTLY)
   ============================================================ */

/* 1. REORDER COLLECTIONS (TOP) */
.for-category-section {
    background: #fff !important;
    padding: 30px 0 !important;
}

/* 2. BANNER OVERHAUL (MORE HEIGHT, DARKISH) */
.carousel-home.premium-hero-section {
    min-height: 600px !important;
    height: 600px !important;
    position: relative !important;
    overflow: hidden !important;
}

.homeSwiper,
.banner-slide-item {
    height: 600px !important;
    min-height: 600px !important;
}

.banner-slide-item {
    background-size: cover !important;
    background-position: center !important;
}

.banner-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    /* Deeper dark overlay */
    z-index: 5 !important;
}

/* 3. SEARCH FIELD RESTORATION (PINK-RED PILL) */
.banner-search-container {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    display: flex !important;
    justify-content: center !important;
    pointer-events: none !important;
}

.banner-search-container .container {
    pointer-events: auto !important;
}

/* Override the yellow/gold background from ornaments.css */
.premium-banner-pill {
    background: #c3475c !important;
    /* EXACT PINK-RED */
    border-radius: 50px !important;
    padding: 8px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
}

.premium-banner-pill .hero-search-box {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    background: transparent !important;
    /* KILL YELLOW GRADIENT */
    border: none !important;
    padding: 0 5px 0 20px !important;
    width: 100% !important;
}

.premium-banner-pill .search-icon {
    color: #fff !important;
    font-size: 20px !important;
    opacity: 0.9 !important;
}

.premium-banner-pill input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 16px !important;
    height: 55px !important;
}

.premium-banner-pill input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.premium-banner-pill .search-btn-dark {
    background: #331d21 !important;
    /* DARK/BROWNISH BUTTON */
    color: #fff !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 0 40px !important;
    height: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.premium-banner-pill .search-btn-dark:hover {
    background: #000 !important;
    transform: scale(1.02) !important;
}

/* =========================================
   MOBILE FIXES (Use Media Query Properly)
   ========================================= */
/* ============================================================ 
   PREMIUM CARD & STOCK UI (GLOBAL)
   ============================================================ */
.stock-pill-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    line-height: 1;
}

.stock-pill-sm.in-stock {
    background: rgba(20, 184, 166, 0.1) !important;
    color: #0d9488 !important;
    border: 1px solid rgba(20, 184, 166, 0.2) !important;
}

.stock-pill-sm.out-of-stock {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.stock-pill-sm .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stock-pill-sm.in-stock .dot {
    background: #14b8a6 !important;
    box-shadow: 0 0 8px #14b8a6 !important;
}

.stock-pill-sm.out-of-stock .dot {
    background: #ef4444 !important;
}

/* Premium Card Buttons Solid Red */
.package-card .action-btn,
.product-card .action-btn,
#productGrid .card .btn {
    background: #ed2d3d !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(237, 45, 61, 0.25) !important;
    transition: all 0.3s ease !important;
}

.package-card .action-btn:hover,
#productGrid .card .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 20, 90, 0.35) !important;
    filter: brightness(1.1);
}

.package-card .package-body {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
}

.package-card .price {
    color: #D4145A !important;
    font-weight: 800 !important;
}

.package-card.premium-card {
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.package-card.premium-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.package-card.premium-card h6 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 5px !important;
}

.package-card.premium-card p.text-muted {
    font-size: 13px !important;
    color: #777 !important;
    letter-spacing: 0.2px !important;
}

@media (max-width: 768px) {

    /* 1. Mobile Collections (Horizontal Scroll & Small) */
    /* 1. Mobile Collections (Horizontal Scroll & Small) */
    .mobile-collections-section {
        display: block !important;
        background: #fff !important;
        padding: 100px 0 15px 0 !important;
        /* Aggressive padding to clear header */
        width: 100% !important;
        overflow: hidden !important;
    }

    .mobile-collections-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 0 15px !important;
        scrollbar-width: none !important;
    }

    .mobile-collections-scroll::-webkit-scrollbar {
        display: none !important;
    }

    .mobile-collection-card {
        flex: 0 0 auto !important;
        width: 80px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .mob-col-img {
        width: 70px !important;
        height: 70px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        margin-bottom: 5px !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        border: 2px solid #fff !important;
        background: #f4f4f4 !important;
    }

    .mob-col-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .mob-col-info h6 {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #222 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .mob-col-info p {
        display: none !important;
    }


    /* 2. Banner & Search (Mobile Optimization) */
    .carousel-home.premium-hero-section {
        min-height: 400px !important;
        height: 400px !important;
    }

    .homeSwiper,
    .banner-slide-item {
        height: 400px !important;
        min-height: 400px !important;
        background-position: 85% center !important;
    }

    .banner-search-container {
        padding: 0 15px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* FIX: FLEXBOX LAYOUT FOR PILL */
    .premium-banner-pill {
        padding: 5px !important;
        border-radius: 50px !important;
        width: 100% !important;
        max-width: 350px !important;
        /* constrain width */
        margin: 0 auto !important;
        box-shadow: 0 10px 25px rgba(195, 71, 92, 0.4) !important;
        display: flex !important;
        align-items: center !important;
    }

    .premium-banner-pill .hero-search-box {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        gap: 5px !important;
        padding-left: 10px !important;
        padding-right: 0 !important;
    }

    .premium-banner-pill .search-icon {
        font-size: 15px !important;
        min-width: 20px !important;
    }

    .premium-banner-pill input {
        flex: 1 !important;
        /* Grow to fill space */
        min-width: 0 !important;
        /* Allow shrinking */
        width: auto !important;
        height: 40px !important;
        font-size: 13px !important;
        padding: 0 !important;
    }

    .premium-banner-pill .search-btn-dark {
        flex: 0 0 auto !important;
        padding: 0 18px !important;
        height: 36px !important;
        font-size: 12px !important;
        border-radius: 30px !important;
        white-space: nowrap !important;
        margin-left: 5px !important;
    }

    /* 3. Hide Category Arrows on Mobile */
    .product-category-section .side-arrow,
    .slider-btn {
        display: none !important;
    }

    .product-category-section .category-slider-wrapper {
        padding: 0 !important;
        /* Remove side padding reserved for arrows */
    }

    /* 4. Header Sizing Fixes (Occasions & Top Offers) */
    .occasions-section h2,
    .nearby-section h2,
    .nearby-section h2.mt-60 {
        font-size: 20px !important;
        /* Smaller, better proportion */
        margin-bottom: 5px !important;
        line-height: 1.3 !important;
    }

    .occasions-section p,
    .nearby-section p.subtitle {
        font-size: 14px !important;
        color: #666 !important;
        margin-bottom: 20px !important;
    }

    /* Adjust padding for section containers on mobile */
    .occasions-section .container,
    .nearby-section .container {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .occasions-section .section-header,
    .nearby-section div[style*="padding-left: 45px"] {
        padding-left: 0 !important;
        /* Remove large desktop left padding */
    }

    /* 5. Top Offers Responsiveness (Scrollable like Collections) */
    .offers-grid,
    .stores-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 5px 15px 25px 15px !important;
        /* Bottom padding for shadow/scroll */
        margin-bottom: 30px !important;
        scrollbar-width: none !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    .offers-grid::-webkit-scrollbar,
    .stores-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* FIX: TARGET THE CORRECT CLASS FROM JS */
    .premium-glass-card {
        min-width: 280px !important;
        width: 280px !important;
        height: auto !important;
        /* Let content dictate height */
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    /* Mobile media box adjustment */
    .premium-glass-card .pg-media-box {
        height: 150px !important;
    }

    /* Mobile Logo Overlay */
    .premium-glass-card .pg-logo-overlay {
        width: 50px !important;
        height: 50px !important;
        bottom: -10px !important;
        left: 15px !important;
        padding: 4px !important;
    }

    /* Mobile Content Adjustment */
    .premium-glass-card .pg-content {
        padding: 20px 15px 15px 15px !important;
    }

    .premium-glass-card h4 {
        font-size: 16px !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .premium-glass-card .short-desc {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .premium-glass-card .pg-footer {
        margin-top: auto !important;
        padding-top: 10px !important;
    }

    .premium-glass-card .pg-glass-badge {
        padding: 5px 12px !important;
        font-size: 10px !important;
        top: 10px !important;
        right: 10px !important;
    }

    /* ============================================================ 
       VENDOR CARD REDESIGN (ULTRA-PREMIUM)
       ============================================================ */
    .vendor-social-links {
        margin-top: 5px;
        display: none;
        /* Hidden by default - shown via JS */
        gap: 12px;
        align-items: center;
    }

    .social-link-item {
        font-size: 20px !important;
        transition: all 0.2s ease;
        text-decoration: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-link-item.fb {
        color: #1877F2 !important;
    }

    .social-link-item.ig {
        color: #E4405F !important;
    }

    .social-link-item.tw {
        color: #000000 !important;
    }

    .social-link-item:active {
        transform: scale(1.1);
        opacity: 0.8;
    }

    /* Contact Actions (Right Side) - Outlined Theme */
    .vendor-contact-actions {
        position: absolute;
        right: 18px;
        bottom: 18px;
        display: flex;
        gap: 8px;
    }

    .contact-action-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1.5px solid #1a1a1a;
        color: #1a1a1a;
        font-size: 17px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .contact-action-btn.wa {
        border-color: #25D366;
        color: #25D366;
    }

    .contact-action-btn:active {
        transform: scale(0.92);
        background: #f8f9fa;
        box-shadow: none;
    }

    /* ============================================================ 
       MOBILE FILTER RIBBON (HORIZONTAL 3-COLUMN LAYOUT)
       ============================================================ */
    .mobile-filter-ribbon {
        padding: 12px 15px;
        margin-bottom: 15px;
        background: transparent;
    }

    .mobile-filter-ribbon .row {
        margin: 0 !important;
        gap: 0 !important;
    }

    .mobile-filter-ribbon .col-4 {
        padding: 0 4px !important;
    }

    /* All filter cards - uniform styling for 3-column layout */
    .mobile-filter-ribbon .filter-card {
        padding: 10px 6px;
        border-radius: 14px;
        background: #fff;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        min-height: 75px;
    }

    .mobile-filter-ribbon .filter-card.active {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }

    .mobile-filter-ribbon .filter-card i {
        font-size: 20px;
        color: #333;
    }

    .mobile-filter-ribbon .filter-card.active i {
        color: #fff;
    }

    .mobile-filter-ribbon .filter-card .filter-label {
        font-weight: 700;
        font-size: 11px;
        color: #333;
        display: block;
        margin-bottom: 0;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    .mobile-filter-ribbon .filter-card.active .filter-label {
        color: #fff;
    }

    .mobile-filter-ribbon .filter-card .filter-desc {
        font-size: 9px;
        color: #666;
        display: block;
        line-height: 1.2;
    }

    .mobile-filter-ribbon .filter-card.active .filter-desc {
        color: rgba(255, 255, 255, 0.9);
    }

    /* ============================================================ 
       PREMIUM PACKAGE CARDS (ULTRA ENHANCED)
       ============================================================ */
    #productGrid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        padding: 10px 10px 100px 10px !important;
        margin: 0 auto !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Support for dynamic messages in grid */
    #productGrid .col-12.text-center {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        padding: 40px 0 !important;
    }

    /* Premium card styling - STRONGER STABILITY */
    #productGrid .col-xl-4,
    #productGrid .col-lg-4,
    #productGrid .col-md-6,
    #productGrid .col-12,
    #productGrid>div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        /* Added margin bottom as fallback */
        display: flex !important;
        justify-content: center !important;
    }

    /* Enhanced package card design */
    .package-card,
    .product-card,
    #productGrid .card {
        width: 100% !important;
        max-width: 360px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
        transition: all 0.3s ease !important;
        background: #fff !important;
        border: none !important;
        position: relative !important;
    }

    .package-card:active,
    .product-card:active,
    #productGrid .card:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    }

    /* Fixed height for image container on mobile to prevent layout collapse */
    .package-img-wrap,
    .package-img {
        height: 200px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Card image styling with ROUNDED CORNERS */
    .package-card img,
    .product-card img,
    #productGrid .card img,
    #productGrid .card .card-img-top {
        border-radius: 16px !important;
        /* Rounded image corners */
        aspect-ratio: 4/3 !important;
        object-fit: cover !important;
        width: calc(100% - 24px) !important;
        /* Padding effect */
        height: auto !important;
        margin: 12px 12px 0 12px !important;
        /* Space around image */
    }

    /* Card content padding - Tightened */
    .package-card .card-body,
    .product-card .card-body,
    #productGrid .card .card-body {
        padding: 10px 15px 15px 15px !important;
    }

    /* Card title */
    .package-card h5,
    .product-card h5,
    #productGrid .card h5,
    #productGrid .card .card-title {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
        color: #1a1a1a !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }

    /* Card subtitle/description */
    .package-card p,
    .product-card p,
    #productGrid .card p,
    #productGrid .card .card-text {
        font-size: 13px !important;
        color: #666 !important;
        margin-bottom: 12px !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
    }

    /* Card price - Tightened margin */
    .package-card .price,
    .product-card .price,
    #productGrid .card .price {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #D4145A !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    /* Card buttons */
    .package-card .btn,
    .product-card .btn,
    #productGrid .card .btn {
        width: 100% !important;
        border-radius: 20px !important;
        padding: 12px !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        background: linear-gradient(135deg, #D4145A 0%, #FBB03B 100%) !important;
        border: none !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(212, 20, 90, 0.25) !important;
        transition: all 0.2s ease !important;
    }

    .package-card .btn-primary:active,
    .product-card .btn-primary:active,
    #productGrid .card .btn-primary:active {
        transform: scale(0.97) !important;
    }


    /* ULTRA-PREMIUM FLOATING BADGES (GLASSMORPHISM) */
    .package-card .badge,
    .product-card .badge,
    #productGrid .card .badge {
        display: inline-block !important;
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        font-size: 8px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        z-index: 5 !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
        color: #fff !important;
    }

    .badge.bg-success,
    .badge-success {
        background: linear-gradient(135deg, rgba(39, 174, 96, 0.8), rgba(46, 204, 113, 0.8)) !important;
    }

    .badge.bg-primary,
    .badge-primary {
        background: linear-gradient(135deg, rgba(41, 128, 185, 0.8), rgba(52, 152, 219, 0.8)) !important;
    }

    /* Secondary subtle badges (Occasions like Wedding) */
    .package-card .secondary-badge {
        right: 10px !important;
        left: auto !important;
        background: rgba(0, 0, 0, 0.45) !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(4px) !important;
    }

    /* If you want to keep badges but style them differently, use this instead:
    .package-card .badge,
    .product-card .badge,
    #productGrid .card .badge {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        color: #fff !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    */

    /* ============================================================ 
       PREMIUM MOBILE SELECTORS & DROPDOWNS
       ============================================================ */
    .premium-mobile-selectors {
        padding: 15px;
        background: #f8f9fa;
        margin-bottom: 15px;
    }

    .premium-selector {
        background: white;
        border-radius: 12px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .premium-selector:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .selector-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #dc3545, #c82333);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        flex-shrink: 0;
    }

    .selector-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .selector-label {
        font-size: 10px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1;
        margin-bottom: 3px;
    }

    .selector-value {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a1a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .selector-arrow {
        color: #888;
        font-size: 12px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    /* Dropdown Overlay & Sheet */
    .premium-dropdown-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9998;
        display: none;
        animation: fadeIn 0.2s ease;
    }

    .premium-dropdown-overlay.active {
        display: block;
        opacity: 1;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .premium-dropdown-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        z-index: 9999;
        max-height: 70vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: none;
    }

    .premium-dropdown-sheet.active {
        display: block;
        transform: translateY(0);
    }

    .dropdown-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-header h5 {
        margin: 0;
        font-weight: 700;
        font-size: 18px;
        color: #1a1a1a;
    }

    .dropdown-header button {
        background: none;
        border: none;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 5px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .dropdown-header button:active {
        background: #f0f0f0;
    }

    .dropdown-body {
        padding: 15px;
        padding-bottom: 140px;
        /* Increased for mobile app bar clearance */
        max-height: calc(70vh - 80px);
        overflow-y: auto;
    }

    /* Category & Filter Options */
    .category-option,
    .filter-option {
        padding: 15px;
        border-radius: 12px;
        background: #f8f9fa;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .category-option:active,
    .filter-option:active {
        transform: scale(0.98);
        background: #e9ecef;
    }

    .category-option.active,
    .filter-option.active {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: white;
    }

    .category-option i:first-child,
    .filter-option i:first-child {
        font-size: 20px;
        flex-shrink: 0;
    }

    .category-option span,
    .filter-option span {
        flex: 1;
        font-weight: 600;
        font-size: 15px;
    }

    .category-option .check-icon,
    .filter-option .check-icon {
        display: none;
        color: white;
        font-size: 18px;
        flex-shrink: 0;
    }

    .category-option.active .check-icon,
    .filter-option.active .check-icon {
        display: block;
    }

    /* PROFESSIONAL RESPONSIVE PAGINATION */
    .pagination-area {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px 0 120px 0 !important;
        /* Bottom clearance for nav */
        margin: 0 !important;
        width: 100% !important;
    }

    .pagination-area .paginations {
        display: flex !important;
        gap: 8px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pagination-area .page-item a {
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: #fff !important;
        border: 1px solid #eee !important;
        color: #333 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    .pagination-area .page-item a.active {
        background: #D4145A !important;
        color: #fff !important;
        border-color: #D4145A !important;
        box-shadow: 0 4px 12px rgba(212, 20, 90, 0.3) !important;
    }

    .pagination-area .page-item.disabled a {
        opacity: 0.5 !important;
        pointer-events: none !important;
        background: #fdfdfd !important;
    }

    /* Hide the extra redundant buttons used in older UI */
    .pagination-area .paginations-button {
        display: none !important;
    }

    /* CLEARANCE FOR MOBILE BOTTOM NAV IN PRODUCT MODAL */
    #cakeDetailsModal .modal-body {
        padding-bottom: 120px !important;
    }
}