:root {
    /* Updated Gold & Black Theme */
    --primary-color: #000000;         
    --secondary-color: #0a0a0a;       /* Darker for more "premium" feel */
    
    /* Gold Accents: Realistic 24K Palette */
    --gold-bright: #fff3a1;           /* The "Glint" of sun on metal */
    --gold-mid: #d4af37;              /* Standard 24K Gold */
    --gold-dark: #926d0a;             /* Deep aged gold for depth */
    
    /* Text Styles */
    --text-main: #ffffff;             
    --text-muted: #c5a028;            /* Slightly desaturated gold for readability */
    --text-light: #a1a1a1;
    --white: #ffffff;
    
    /* Structure & Inputs */
    --border-color: #222222;          
    --input-border: #d4af37;          

    /* The "Real Gold" Gradient */sort-groups
    /* This creates a metallic "shimmer" effect by alternating light and dark */
    --hero-gradient: linear-gradient(
        45deg, 
        #a67c00 0%, 
        #bf953f 25%, 
        #fcf6ba 50%, 
        #b38728 75%, 
        #aa771c 100%
    );

    /* Font Styles */
    --font-main: 'Georgia', 'Times New Roman', serif; 
    --font-size-base: 14px;
    --font-size-small: 12px;
    --font-size-tiny: 10px;
     --font-weight-light: 300;
}

/* Reset & Fonts */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: var(--font-main); 
}
  
  







/* Hero Section Layout */
.jewellery-hero-section {
    padding: 40px 5%;
    background-color: var(--primary-color);
}

/* Breadcrumb Styling */
.breadcrumb { 
    font-size: var(--font-size-small); 
    color: var(--text-light); 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold-mid);
}

/* Toggle Outer Wrapper */
.luxury-toggle-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* The Main Toggle Container */
.next-level-toggle {
    position: relative;
    display: flex;
    background: #0f0f0f; /* Deep black-grey */
    border: 1px solid #222;
    padding: 5px;
    border-radius: 0px;
    width: 100%;
    max-width: 450px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

/* The Gold Sliding Pill */
.toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: var(--hero-gradient);
    border-radius: 0px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(146, 109, 10, 0.4);
    overflow: hidden;
}

/* Shimmer Animation on the Gold Pill */
.toggle-slider::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Individual Toggle Buttons */
.toggle-option {
    position: relative;
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Icon & Text Inside Toggle */
.toggle-option i, 
.toggle-option span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.4s ease;
}

/* Active State: Text turns dark for contrast on gold */
.toggle-option.active i, 
.toggle-option.active span {
    color: #000;
    transform: scale(1.05);
}

 /* Mobile Optimized Styles */
@media (max-width: 600px) {
    .jewellery-hero-section {
        padding: 35px 4%; /* Tighter padding for mobile screens */
    }

    .breadcrumb {
        font-size: 10px; /* Micro-typography for premium look */
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .luxury-toggle-wrapper {
        margin-top: 5px;
    }

    .next-level-toggle {
        padding: 3px; /* Minimal border spacing */
        border-radius: 0px; /* Sharp edges */
        max-width: 100%; /* Spans full width of container */
    }

    .toggle-slider {
        top: 3px;
        left: 3px;
        width: calc(50% - 3px);
        height: calc(100% - 6px);
        border-radius: 0px; /* Sharp edges */
    }

    .toggle-option {
        padding: 12px 0; /* Compact height for thumb-tapping */
        gap: 6px; /* Tighter spacing between icon and text */
    }

    .toggle-option i {
        font-size: 12px; /* Scaled down icon */
    }

    .toggle-option span {
        font-size: 9px; /* Small, bold, uppercase text */
        letter-spacing: 0.5px;
        font-weight: 800;
    }

    /* Active state scaling for mobile */
    .toggle-option.active i, 
    .toggle-option.active span {
        transform: scale(1.02); /* Subtle pop effect */
    }
}

 /* --- LUXURY MODE TOGGLE (Wedding vs Single) --- */
.mode-toggle-container {
    display: flex;
    background: #0f0f0f; /* Matches your next-level-toggle bg */
    border: 1px solid #222;
    padding: 5px;
    border-radius: 0px; /* Kept sharp per your style */
    position: relative;
    margin: 0 auto 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.mode-toggle-pill {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: var(--hero-gradient);
    border-radius: 0px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 15px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mode-btn.active {
    color: #000; /* Dark text on gold pill */
}

/* --- DYNAMIC ITEM BLOCKS --- */
.item-block {
    background: #141414; /* Slightly lighter than card bg for depth */
    padding: 20px;
    border: 1px solid #222;
    margin-bottom: 25px;
    position: relative;
    animation: itemSlideUp 0.4s ease;
}

@keyframes itemSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.item-number-label {
    font-size: 12px;
    color: var(--gold-mid);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.item-type-hint {
    color: var(--text-light);
    font-weight: 400;
    font-size: 10px;
    margin-left: 5px;
}

.remove-item-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ff4d4d;
    font-size: 9px;
    padding: 4px 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.remove-item-btn:hover {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

/* --- ADD MORE ITEM (+) BUTTON --- */
.add-item-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px 0 30px;
}

.add-item-btn {
    background: transparent;
    border: 1px dashed var(--gold-dark);
    color: var(--gold-bright);
    padding: 12px 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-item-btn i {
    font-size: 14px;
}

.add-item-btn:hover {
    border-color: var(--gold-mid);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

/* --- CONTACT SECTION --- */
.contact-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gold-dark);
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 600px) {
    .mode-toggle-container {
        max-width: 100%;
    }
    
    .mode-btn {
        padding: 12px 0;
        font-size: 10px;
    }
    
    .item-block {
        padding: 15px;
    }
    
    .add-item-btn {
        width: 100%;
        justify-content: center;
    }
}
/* History Back Button Styling */
.calc-back-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    padding: 0;
    width: fit-content;
}

.calc-back-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.calc-back-btn:hover {
    color: var(--gold-mid);
}

.calc-back-btn:hover i {
    transform: translateX(-5px); /* Elegant subtle movement */
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .calc-back-btn {
        font-size: 10px;
        margin-bottom: 15px;
    }
}


/* Collection Controls Container */
.collection-controls {
    padding: 20px 5%;
    background-color:transparent;
}

/* Title & Count */
.collection-title-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.collection-name {
    color: var(--gold-mid);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.design-count {
    color: var(--text-light);
    font-size: var(--font-size-small);
    font-style: italic;
}

/* Filter Bar Background */
.filter-bar {
    background: var(--secondary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

/* Buttons Styling */
.filter-btn, .pincode-btn {
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--white);
    padding: 8px 15px;
    font-size: var(--font-size-tiny);
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--hero-gradient);
    color: var(--primary-color);
    font-weight: bold;
    border: none;
}

.pincode-btn {
    background: #1a1a1a;
    border-color: var(--border-color);
}

.pincode-btn:hover {
    border-color: var(--gold-mid);
}

/* Sort Dropdown */
.sort-select {
    background: var(--primary-color);
    color: var(--gold-bright);
    border: 1px solid var(--gold-dark);
    padding: 8px;
    font-size: var(--font-size-tiny);
    outline: none;
}
 .active-filters {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%; 
    overflow: hidden;  
}

.filter-label {
    color: var(--text-light);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;  
    flex-shrink: 0; 
}

 #activeTagsList {
    display: flex;
    flex-wrap: nowrap !important; 
    gap: 10px;
    overflow-x: auto;  
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    width: 100%;
}

 #activeTagsList::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    flex-shrink: 0;  
    border: 1px solid var(--gold-mid);
    color: var(--gold-mid);
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

 @media (max-width: 600px) {
    .active-filters {
        padding: 0 5px;
    }
    
    #activeTagsList {
        gap: 8px;
    }
}




@media (max-width: 600px) {
    /* 1. Stack Title and Design Count */
    .collection-title-row {
        flex-direction: column;
        align-items: center; /* Center for a boutique feel */
        text-align: center;
        gap: 5px;
    }

    .collection-name {
        font-size: 18px; /* Slightly smaller for mobile screens */
        letter-spacing: 1px;
    }

    /* 2. Re-organize Filter Bar */
    .filter-bar {
        flex-direction: column; /* Stack the groups */
        padding: 12px;
        gap: 12px;
        align-items: stretch; /* Make buttons full width */
    }

    .filter-groups, .sort-groups {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    /* Make buttons and select equally distributed */
    .filter-btn, .pincode-btn, .sort-select {
        flex: 1; 
        font-size: 9px; /* Tiny font to prevent text wrapping */
        padding: 10px 5px;
        text-align: center;
        justify-content: center;
    }

   
}


@media only screen and (max-width: 768px) {
    .sort-groups {
        display: flex !important;
        flex-direction: column !important; /* Stacks them vertically on mobile */
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
        margin: 10px auto !important;
    }

    .pincode-btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 90% !important; /* Makes it look better on small screens */
        padding: 12px !important;
    }

    .sort-select {
        text-align: center !important;
        text-align-last: center !important; /* Centers the actual 'All Categories' text */
        width: 90% !important;
        padding: 12px !important;
        display: block !important;
        margin: 0 auto !important;
        /* Some mobile browsers need this to center properly */
        appearance: none !important; 
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
    }

    .sort-select option {
        text-align: center !important;
    }
}

/* --- Shop Layout Container --- */
.shop-container {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
     padding: 0px 20px;
    align-items: flex-start; /* Required for sticky to work */
}

/* --- LEFT SIDE: Sticky Black Filter Bar --- */
.filter-sidebar {
    flex: 0 0 300px;
    background-color: #000000;
    min-height: 150vh;
    border-right: 1px solid var(--gold-dark);
}

/* This wrapper makes the sidebar stay while scrolling */
.filter-sticky-wrapper {
    position: sticky;
    top: 20px; /* Space from top of screen */
    padding: 40px 30px;
    max-height: 300vh;
    overflow-y: auto; /* Adds scroll inside sidebar if filters are too long */
}

/* Scrollbar styling for the sidebar */
.filter-sticky-wrapper::-webkit-scrollbar {
    width: 3px;
}
.filter-sticky-wrapper::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-bright);
    font-size: 18px; /* Bigger Header */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: bold;
}

.filter-group {
    margin-bottom: 40px;
}

.filter-group h4 {
    color: var(--gold-mid);
    text-transform: uppercase;
    font-size: 15px; /* Bigger Filter Title */
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c5c5c5; 
    font-size: 14px; /* Bigger Label Text */
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold-mid);
    cursor: pointer;
}

.filter-group label:hover {
    color: var(--gold-bright);
}

/* --- RIGHT SIDE: Product Area (White) --- */
.product-display-area {
    flex: 1;
    background-color: #ffffff;
    padding: 40px 5%;
}

.product-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* Product Card Styling */
.product-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    border-color: var(--gold-mid);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    background: #fdfdfd; 
    aspect-ratio: 1/1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
}


/* Base styling for all action buttons on the image */
.card-actions {
    position: absolute;
    top: 15px;
    z-index: 2;
}

/* Position Heart on the Left */
.left-actions {
    left: 15px;
}

/* Position Play Button on the Right */
.right-actions {
    right: 15px;
}

.card-actions i {
    color: #333;
    background: #ffffff;
    padding: 10px; /* Adjusted slightly to keep it elegant */
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.card-actions i:hover {
    color: #ffffff;
    background: var(--gold-mid);
    transform: scale(1.1);
}

/* Ensure the offer tag doesn't overlap the heart */
.offer-tag {
    position: absolute;
    bottom: 0; /* Moved to bottom or you can keep top and adjust padding */
    left: 0;
    background: var(--hero-gradient);
    color: #000;
    font-size: 10px;
    padding: 5px 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.product-info {
    padding: 25px 15px;
    text-align: center;
}

.product-title {
    color: #222222;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-price {
    color: var(--gold-dark);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.view-details {
    width: 100%;
    background: transparent;
    border: 1px solid var(--gold-mid);
    color: var(--gold-dark);
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.view-details:hover {
    background: var(--gold-mid);
    color: #ffffff;
}

/* Video Modal Overlay */
.video-modal {
    display: none; /* Controlled by JS */
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Deeper black for focus */
    backdrop-filter: blur(8px);
    
    /* Center the modal box */
    display: none; 
    align-items: center;
    justify-content: center;
    padding: 20px; 
}

/* Modal Box */
.modal-content {
    background-color: #000; /* Pure black for video contrast */
    width: 100%;
    max-width: 800px; /* Slightly wider for better desktop viewing */
    position: relative;
    border: 1px solid var(--gold-dark);
    border-radius: 0px; /* Subtle rounding for modern look */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Gold Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff; /* White is easier to see over moving video than gold */
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    color: var(--gold-bright);
    transform: rotate(90deg);
}

/* Video Responsive Container */
.video-wrapper {
    width: 100%;
    background: #000;
    line-height: 0; /* Removes tiny gap at bottom of video */
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Prevents video from going off-screen on desktop */
    display: block;
    outline: none;
}

/* View Details Button */
.modal-view-details {
    width: 100%;
    background: var(--hero-gradient);
    color: #000;
    border: none;
    padding: 20px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

/* --- Mobile Optimization --- */
@media screen and (max-width: 768px) {
    .video-modal {
        padding: 10px; /* Less padding on mobile */
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border: none; /* Full width feel on mobile */
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .video-wrapper video {
        max-height: 60vh; /* Leaves room for the "View Details" button without scrolling */
        object-fit: contain;
    }

    .modal-view-details {
        padding: 18px;
        font-size: 12px;
    }
}

/* Landscape Mode Fix (For phones turned sideways) */
@media screen and (max-height: 500px) {
    .video-wrapper video {
        max-height: 50vh;
    }
    .modal-view-details {
        padding: 10px;
    }
}


/* --- Responsive Adjustments --- */
 

@media (max-width: 850px) {
    .shop-container { flex-direction: column; }
    .filter-sidebar { 
        flex: 1 0 auto; 
        width: 100%; 
        min-height: auto;
    }
    .filter-sticky-wrapper {
        position: relative;
        top: 0;
        max-height: none;
        padding: 20px;
    }
 }

/* --- MOBILE FIXES (600px and below) --- */
@media (max-width: 600px) {
    /* 1. Reset Body & Container Spacing */
    .shop-container {
        padding: 0 8px !important;
        flex-direction: column;
    }

    .product-display-area {
        padding: 15px 0 !important;
        width: 100%;
    }

    /* 2. Perfect 2-Column Grid */
    .product-main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; /* Items athara ida */
        display: grid !important;
    }

    /* 3. Product Card Styling Fix */
    .product-card {
        margin-bottom: 5px;
        height: 100%; /* Okkoma cards ekama usata thiyaganna */
        display: flex;
        flex-direction: column;
    }

    /* 4. Image Protection (Jewelry ekawath kapenne na) */
    .product-image {
        aspect-ratio: 1 / 1 !important;
        background: #f9f9f9;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .product-image img {
        width: 90% !important; /* Poddak margin thibbaama premium look ekak enwa */
        height: 90% !important;
        object-fit: contain !important; /* Meka nisa jewelry ekawath stretch wenne na */
        padding: 0 !important;
    }

    /* 5. Text & Buttons scaling */
    .product-info {
        padding: 10px 5px !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-title {
        font-size: 11px !important;
        line-height: 1.3;
        min-height: 28px;
        margin-bottom: 5px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 13px !important;
        margin-bottom: 8px !important;
        color: var(--gold-dark);
    }

    .view-details {
        padding: 8px 2px !important;
        font-size: 9px !important;
        letter-spacing: 0.5px;
    }

    /* 6. Action Icons (Heart & Play) scaling */
    .card-actions {
        top: 5px !important;
    }
    
    .left-actions { left: 5px !important; }
    .right-actions { right: 5px !important; }

    .card-actions i {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        background: rgba(255, 255, 255, 0.85) !important;
    }

    .offer-tag {
        font-size: 7px !important;
        padding: 3px 6px !important;
    }

    /* 7. Collection Controls Fix */
    .collection-controls {
        padding: 15px 10px !important;
    }

    .collection-name {
        font-size: 16px !important;
    }

    /* 8. Filter Bar Buttons (Stretch to fit) */
    .filter-bar {
        padding: 10px !important;
        gap: 8px !important;
    }

    .filter-groups, .sort-groups {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 5px;
    }

    .filter-btn, .pincode-btn, .sort-select {
        width: 100% !important;
        margin: 0 !important;
        font-size: 9px !important;
        padding: 8px 2px !important;
    }
}

/* Fix for Sidebar covering the screen on Mobile */
@media (max-width: 850px) {
    .filter-sidebar {
        width: 100% !important;
        left: -100%;
        position: fixed;
        transition: 0.4s ease-in-out;
    }
    .filter-sidebar.active {
        left: 0 !important;
    }
}




/* 1. Global / Desktop: Hide Mobile Trigger */
.filter-mobile-wrapper {
    display: none;
    padding: 0 5%;
    margin-bottom: 15px;
}

  .close-sidebar {
           display: none;
    }

@media (max-width: 850px) {
    /* 2. Show the Gold Trigger Button */
    .filter-mobile-wrapper {
        display: block;
    }

    .mobile-filter-trigger {
        width: 100%;
        background: #000;
        color: var(--gold-mid);
        border: 1px solid var(--gold-dark);
        padding: 14px;
        font-family: var(--font-main);
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 1.5px;
        display: flex;
        margin-top: 20px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
    }

    /* 3. The Full-Screen Sidebar */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100dvh;
        background: #000;
        z-index: 99999;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .filter-sidebar.active {
        left: 0; /* Slide in */
    }

    .filter-sticky-wrapper {
        padding: 20px 25px 100px;
        height: 100%;
        overflow-y: auto;
    }

    /* 4. The Header & Close Button */
    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--gold-dark);
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .close-sidebar {
        color: var(--gold-mid);
        font-size: 38px;
        cursor: pointer;
        line-height: 0.8;
    }
 
}


/* PC Styling: Always visible at bottom of sidebar */
.sidebar-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.apply-filters-btn {
    width: 100%;
    background: var(--hero-gradient);
    color: #000;
    border: none;
    padding: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.clear-filters {
    background: transparent;
    color: var(--text-light);
    border: 1px solid #333;
    padding: 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 11px;
}

/* Mobile Logic */
@media (max-width: 850px) {

    .close-sidebar {
        display: block; /* Always show when in mobile view */
        color: var(--gold-mid);
        font-size: 32px;
        cursor: pointer;
        padding: 10px;
        line-height: 1;
    }
    /* HIDE the footer by default in mobile mode */
    .sidebar-footer {
        display: none; 
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px;
        flex-direction: row;
        z-index: 100000;
        border-top: 1px solid var(--gold-dark);
    }

    /* SHOW the footer ONLY when the sidebar has the .active class */
    .filter-sidebar.active .sidebar-footer {
        display: flex;
        animation: slideUp 0.4s ease;
    }

    .apply-filters-btn { flex: 2; }
    .clear-filters { flex: 1; }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}











/* Container & Alignment */
.calculator-container {
    padding: 40px 15px;
    background: var(--primary-color);
    display: none;
    justify-content: center;
    min-height: 85vh;
}

/* Luxury Card */
.calc-card {
    background: #0d0d0d;
    border: 1px solid var(--gold-dark);
    padding: 35px 25px;
    width: 100%;
    max-width: 500px;
    position: relative;
 }

/* Price Badge */
.price-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--hero-gradient);
    color: #000;
    padding: 6px 15px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Form Headings */
.calc-card h3 {
    color: var(--gold-mid);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.calc-subtitle {
    color: var(--text-light);
    font-size: 12px;
    text-align: center;
    margin-bottom: 25px;
}

/* Grouping Purity and Weight on one line */
.input-row {
    display: flex;
    gap: 15px;
}
.input-row .input-group { flex: 1; }

/* Labels & Stars */
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    color: var(--gold-bright);
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.required-star { color: #ff3b3b; margin-left: 2px; }

/* Inputs & Textarea */
.input-group input, 
.calc-select, 
.calc-textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 14px;
    color: #fff;
    font-size: 14px;
    border-radius: 0; /* Luxury sharp edges */
    outline: none;
    transition: 0.3s;
}

.input-group input:focus { border-color: var(--gold-mid); }

/* Custom File Upload Look */
.file-input-wrapper { position: relative; overflow: hidden; }
.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    left: 0; top: 0; width: 100%; height: 100%;
    cursor: pointer;
}
.custom-file-label {
    background: #1a1a1a;
    border: 1px dashed var(--gold-dark);
    padding: 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* Submit Button */
.check-price-btn {
    width: 100%;
    background: var(--hero-gradient);
    color: #000;
    border: none;
    padding: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 10px;
}

/* Footer Notes */
.form-footer-notes { margin-top: 20px; text-align: center; }
.fee-note { color: var(--gold-mid); font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.disclaimer-note { font-size: 10px; color: #555; font-style: italic; }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {
    .calculator-container { padding: 20px 10px; }
    
    .calc-card { padding: 40px 20px 25px; }
    
    .input-row { flex-direction: column; gap: 0; } /* Stack Purity/Weight on small phones */
    
    .calc-card h3 { font-size: 1.1rem; }
    
    .check-price-btn {
        padding: 20px; /* Larger tap target for mobile */
        font-size: 14px;
    }
    
    .price-badge { font-size: 9px; padding: 4px 10px; }
}.delivery-note {
    color: var(--text-light); /* Matches your existing light text color */
    font-size: 12px;
    line-height: 1.4;
    margin: 10px 0;
    padding: 0 10px;
    border-left: 2px solid var(--gold-mid); /* Adds a nice gold accent line */
}

/* Update mobile font size if needed */
@media (max-width: 600px) {
    .delivery-note {
        font-size: 11px;
    }
}


/* Container for the 'No Results' state */
.no-results-wrapper {
    grid-column: 1 / -1; /* Spans across the entire 3-column grid */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    border: 1px dashed #e0e0e0;
    background: #fafafa; /* Subtle light grey to pop against the white display area */
    text-align: center;
    animation: fadeIn 0.5s ease;
}

/* The Icon or Symbol above the text */
.no-results-wrapper::before {
    content: '\f3a5'; /* FontAwesome Diamond Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 40px;
    color: var(--gold-dark);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* The Main Text */
.no-items {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

/* The Sub-text */
.no-results-wrapper::after {
    content: "Please adjust your refinements or clear filters to view our full collection.";
    color: var(--text-light);
    font-size: 12px;
    font-style: italic;
    max-width: 300px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .no-results-wrapper {
        padding: 60px 20px;
    }
    .no-items {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}/* Initially hide items beyond 15 */
.hidden-product-card {
    display: none !important;
}

.load-more-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    padding-bottom: 50px;
}

.load-btn {
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--gold-mid);
    padding: 15px 40px;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.load-btn:hover {
    background: var(--hero-gradient);
    color: #000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.load-btn i {
    font-size: 10px;
}