/* collections.css - Longines Style Product Cards */

/* --- LAYOUT CONTAINER --- */
.collections-layout {
    display: flex;
    gap: 40px;
    padding-bottom: 60px;
}

.product-grid-area {
    width: 100%;
    flex: 1;
}

/* --- HERO SECTION --- */
.collection-hero {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    margin-bottom: 0;
    /* Flush with filter bar */
    background: #f4f4f4;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* Focus on watch on wrist typically */
}

/* Darker overlay on left side for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    /* Bottom align like reference */
    padding: 60px 5%;
}

.hero-title {
    color: #fff;
    font-family: var(--font-heading, serif);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* --- TOP FILTER BAR (2-ROW DESIGN) --- */
.filter-bar-container {
    padding: 0;
    background: #fff;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

/* Row 1: Category Tabs */
.filter-tabs-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.filter-tabs-row::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Row 2: Meta Info (Count & Actions) */
.filter-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* TABS STYLE */
.filter-tab {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #999;
    padding: 8px 15px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: #333;
}

.filter-tab.active {
    color: #000;
    font-weight: 700;
}

/* Active Tab Indicator (Underline) */
.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    /* Aligns with row border */
    left: 15px;
    right: 15px;
    height: 2px;
    background: #000;
}

/* Product Count */
.product-count-display {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    padding-left: 0;
}

/* Action Icons */
.filter-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-action-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    /* Slightly larger like image */
    color: #333;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-action-btn:hover {
    color: #000;
    transform: scale(1.1);
}

/* Sort Dropdown Panel - Positioned relative to page or container */
.sort-dropdown-panel {
    position: absolute;
    right: 5%;
    top: 180px;
    /* Adjusted for 2 rows */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.sort-dropdown-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 12px 20px;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: #f5f5f5;
    color: #000;
}

.sort-option.active {
    background: #f0f0f0;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-bar-header {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .filter-tabs-wrapper {
        order: 1;
        width: 100%;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .filter-tab {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .product-count-display {
        order: 2;
        flex: 1;
    }

    .filter-actions {
        order: 3;
    }
}

@media (max-width: 480px) {
    .filter-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .product-count-display {
        font-size: 0.85rem;
    }

    .icon-action-btn {
        font-size: 1.1rem;
        padding: 6px;
    }
}


/* --- FORCE HEADER SCROLL VISIBILITY --- */
.glass-header.scrolled {
    background: #ffffff !important;
    /* Force white background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.glass-header.scrolled .brand,
.glass-header.scrolled .desktop-nav a,
.glass-header.scrolled .header-actions {
    color: #000000 !important;
    /* Force black text */
}

/* Fix desktop nav hover line color when scrolled */
.glass-header.scrolled .desktop-nav a::after {
    background: #c4a661;
}

/* --- FILTER SIDEBAR (Unified Drawer) --- */
/* --- FILTER SIDEBAR (Drawer Everywhere) --- */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    padding: 30px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filter-sidebar.active {
    transform: translateX(0);
}

/* Ensure Toggle Button is visible on Desktop */
.btn-filter-toggle {
    display: inline-flex;
    /* Was visible, keeping it */
}

/* Close button always visible inside drawer */
.filter-sidebar .close-sidebar-btn,
.filter-sidebar .sidebar-header {
    display: flex;
}

/* Remove Desktop-Only Sticky Styles overrides */
@media (min-width: 1025px) {
    /* No specific overrides needed if we want drawer everywhere */
}

/* Mobile Overrides - Bottom Sheet Design */
@media (max-width: 768px) {
    .filter-sidebar {
        width: 100%;
        height: 85vh;
        /* Occupy 85% of screen height */
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        /* Slide form bottom */
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
        padding: 20px;
    }

    .filter-sidebar.active {
        transform: translateY(0);
    }

    /* Add a drag handle indicator */
    .filter-sidebar::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #e0e0e0;
        border-radius: 2px;
        margin: 0 auto 20px auto;
        /* Center handle */
    }

    .sidebar-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .sidebar-footer {
        padding: 20px;
        margin: auto -20px -20px -20px;
        /* Stretch to edges */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    }
}

/* Tablet Specific (Keep Sidebar) */
@media (min-width: 769px) and (max-width: 1024px) {
    .filter-sidebar {
        width: 320px;
    }
}


/* Sidebar Header (Unified) */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.close-sidebar-btn {
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-sidebar-btn:hover {
    background: #f7f7f7;
    border-color: #ccc;
}


/* Mobile Toggle Button */
.btn-filter-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}


.filter-group {
    margin-bottom: 40px;
}

.filter-group h3 {
    font-family: var(--font-body, sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #111;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 10px;
}

/* Search Box */
.search-box-container {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fdfdfd;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    border: none;
    padding: 12px 12px 12px 35px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

/* Filter Links (Categories) */
.filter-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-link {
    text-align: left;
    font-size: 0.95rem;
    color: #555;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.filter-link:hover {
    color: #000;
    padding-left: 5px;
}

.filter-link.active {
    color: var(--accent-dark, #a38848);
    font-weight: 600;
    padding-left: 5px;
}

/* Selects */
.premium-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    background: #fff;
    color: #444;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

/* Price Inputs */
.price-filter-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 2px;
}

.dash {
    color: #999;
}

/* --- ACCORDIONS --- */
.filter-accordion {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.accordion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    text-transform: capitalize;
}

.accordion-icon {
    font-size: 1.2rem;
    color: #111;
    font-weight: 300;
}

.accordion-content {
    display: none;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.filter-accordion.open .accordion-content {
    display: block;
}

/* --- DUAL PRICE SLIDER --- */
.price-slider-wrapper {
    padding: 10px 0;
}

.range-slider-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 30px 0 20px 0;
}

.range-track-active {
    position: absolute;
    height: 100%;
    background: #2f80ed;
    /* Blue Accent */
    left: 20%;
    right: 30%;
}

.range-thumb {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.range-thumb::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #2f80ed;
    border-radius: 50%;
}

.range-thumb.min-thumb {
    left: 20%;
}

.range-thumb.max-thumb {
    right: 30%;
    left: auto;
    transform: translate(50%, -50%);
}

.price-values-display {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.price-val-highlight {
    color: #2f80ed;
    font-weight: 600;
    text-decoration: underline;
}

/* --- CHECKBOX LIST --- */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.real-checkbox {
    display: none;
    /* Hide native checkbox */
}

.checkbox-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #444;
}

/* --- REFINED CHECKBOX STYLES --- */
.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    /* Soft rounded branding */
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    background: #fff;
}

.checkbox-item:hover .custom-checkbox {
    border-color: #333;
}

.checkbox-item.checked .custom-checkbox {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* --- SIDEBAR FOOTER & BUTTON --- */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-navy {
    display: block;
    width: 100%;
    padding: 14px;
    background: #003153;
    /* Deep Navy */
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
    text-align: center;
}

.btn-navy:hover {
    background: #00233d;
}

/* --- BACKDROP OVERYLAY --- */
body.filter-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1999;
    /* Just below sidebar z-index 2000 */
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 0.3s ease;
}

body:not(.filter-open)::after {
    display: none;
}

/* --- SHOPIER STYLE FILTER SIDEBAR CSS --- */

/* Sidebar Layout Updates */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    background: #fff;
    /* Keeps size/position from earlier rules */
}

.sidebar-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px;
    /* Space for footer */
}

/* Header & Handle */
.sidebar-header-centered {
    text-align: center;
    padding: 15px 0 10px 0;
    position: relative;
    border-bottom: none;
    /* Clean look */
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 auto 15px auto;
}

.sidebar-header-centered h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Filter Group Box */
.filter-box {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    /* High radius like image */
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.filter-box-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 15px;
    display: block;
}

/* Filter Chips (Replaces Checkboxes) */
.filter-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    cursor: pointer;
    user-select: none;
    margin: 0;
    /* Reset label margin */
}

/* Hide the real checkbox visually but keep it accessible */
.filter-chip input {
    display: none;
}

.filter-chip .chip-label {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    /* Light gray background */
    color: #475569;
    border-radius: 99px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Interactive State */
.filter-chip:hover .chip-label {
    background: #e2e8f0;
}

/* Checked State */
.filter-chip input:checked+.chip-label {
    background: #f8fafc;
    /* Very light background or keep gray */
    color: #000;
    /* Darker text */
    font-weight: 600;
    box-shadow: inset 0 0 0 1px #000;
    /* Black border simulation */
    /* Or if image has blue/black selection */
    background: #111;
    color: #fff;
}

/* Price Inputs Shopier Style */
.price-inputs-shopier {
    display: flex;
    gap: 12px;
}

.price-input-group {
    position: relative;
    flex: 1;
}

.shopier-input {
    width: 100%;
    padding: 12px 35px 12px 15px;
    /* Right padding for TL */
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #334155;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    font-family: inherit;
}

.shopier-input:focus {
    border-color: #94a3b8;
}

.currency-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

/* Footer & Buttons */
.sidebar-footer-shopier {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #f1f5f9;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-clear-all {
    background: none;
    border: none;
    color: #94a3b8;
    /* Muted text */
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-shopier-apply {
    width: 100%;
    background: #9ca3af;
    /* The specific gray/lilac tone from image */
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    /* Rounded button */
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-shopier-apply:hover {
    filter: brightness(0.95);
}

.btn-navy {
    background: #003153;
    /* Navy Blue */
    color: #fff;
    width: 100%;
    padding: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-navy:hover {
    background: #022d42;
}



/* --- GRID LAYOUT --- */
.grid-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns by default on larger screens */
    gap: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .grid-products {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --- CARD DESIGN (Longines Style) --- */
.longines-card {
    background: #fff;
    padding: 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Hover Effect: Scale up slightly */
.longines-card:hover {
    z-index: 10;
    /* transform translateY handled by animation classes usually, or just scale image */
}

/* --- BADGE --- */
.lg-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #000;
    font-size: 0.65rem;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* --- IMAGE AREA --- */
.lg-img-wrapper {
    width: 100%;
    position: relative;
    background: #f4f4f4;
    /* Light gray bg */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 125%;
    /* 4:5 Aspect Ratio Standard for fashion/watches */
}

.lg-img-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover for lifestyle, Contain for isolated products? Ref image looks like isolated on gray */
    /* If images are isolated with transparent bg, use contain: */
    /* object-fit: contain; width: 85%; height: 85%; */
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Hover: Zoom Image */
.longines-card:hover .lg-img-wrapper img {
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- THUMBNAIL STRIP (Horizontal at Bottom) --- */
.card-thumbs {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    padding: 0 10px;
}

.vertical-card:hover .card-thumbs {
    opacity: 1;
    pointer-events: auto;
}

.card-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-thumb:hover {
    border-color: #999;
    transform: scale(1.05);
}

.card-thumb.active {
    border-color: #000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}



/* --- INFO AREA --- */
.lg-info {
    width: 100%;
    padding: 0 10px 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Brand */
.lg-collection {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Product Name */
.lg-name {
    font-family: 'Helvetica', 'Arial', sans-serif;
    /* Clean Sans */
    font-size: 1rem;
    color: #111;
    font-weight: 700;
    /* Bold as key */
    line-height: 1.3;
    margin-bottom: 2px;
}

/* Description / Specs */
.lg-desc {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 8px;
    max-width: 90%;
}

/* Price */
.lg-price {
    font-size: 1rem;
    color: #111;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.lg-price .old {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 0.9rem;
}

.lg-price .current {
    color: #111;
    font-weight: 700;
}


/* --- HOVER ACTIONS (Button) --- */
.lg-view-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0A0F35;
    /* Dark Navy from ref */
    color: #fff;
    padding: 14px 0;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    border: none;
    opacity: 0;
}

.lg-img-wrapper:hover .lg-view-btn {
    transform: translateY(0);
    opacity: 1;
}


/* --- MOBILE & TABLET RESPONSIVE --- */
@media (max-width: 1024px) {
    .collections-layout {
        flex-direction: column;
        gap: 0;
    }

    /* Filter Sidebar Global overrides (if any specific to mobile needed) */
    .filter-sidebar {
        /* Slightly narrower on tablet/mobile */
        padding: 20px;
    }

    .filter-left-group {
        gap: 15px;
    }

    /* 2-COLUMN LAYOUT FOR TABLETS AND MOBILE */
    .grid-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

}

@media (max-width: 600px) {

    /* FORCE 2 COLUMNS ON ALL MOBILE DEVICES */
    .grid-products {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Keep 2 columns even on mobile as requested */
        gap: 12px !important;
    }

    .filter-bar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-left-group {
        width: 100%;
        justify-content: space-between;
    }

    .btn-filter-toggle {
        width: 100%;
        justify-content: center;
    }

    /* Adjust card image padding for smaller screens */
    .lg-img-wrapper {
        padding-top: 130%;
        /* Slightly taller aspect ratio for mobile */
    }

    /* Make sure cards fit nicely in 2 columns */
    .lg-info {
        padding: 0 5px 15px 5px;
    }

    .lg-name {
        font-size: 0.85rem;
    }

    .lg-price {
        font-size: 0.85rem;
    }

    .lg-collection {
        font-size: 0.65rem;
    }
}

/* EXTRA SMALL MOBILE - STILL 2 COLUMNS */
@media (max-width: 480px) {
    .grid-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Optimize card content for very small screens */
    .lg-info {
        padding: 0 3px 10px 3px;
    }

    .lg-name {
        font-size: 0.8rem;
    }

    .lg-desc {
        font-size: 0.75rem;
    }

    .lg-price {
        font-size: 0.8rem;
    }
}

/* EXTRA EXTRA SMALL - MINIMUM 320px width - STILL 2 COLUMNS */
@media (max-width: 360px) {
    .grid-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

/* --- BACKDROP --- */
body.filter-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1900;
    animation: fadeIn 0.3s ease;
    pointer-events: none;
}

/* --- REFINED FILTER BAR --- */
.filter-bar-header.sticky-bar {
    background: #fdfdfd;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    z-index: 900;
}

.filter-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Divider between count and sort */
.filter-left-group .results-count::after {
    content: '|';
    margin-left: 20px;
    color: #e5e5e5;
    font-weight: 300;
}

.btn-filter-toggle {
    background: white;
    border: 1px solid #e5e5e5;
    color: #111;
    padding: 10px 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-toggle:hover {
    border-color: #111;
    background: #fcfcfc;
}

/* --- REFINED PRODUCT GRID (5 Columns) --- */
@media(min-width: 1400px) {
    .grid-products {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        /* Tighter gap */
    }
}

/* --- VERTICAL PRODUCT CARD (Reference Style) --- */
/* --- VERTICAL PRODUCT CARD (Reference Style) --- */
.vertical-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    padding-bottom: 20px;
}

.vertical-card:hover {
    transform: translateY(-5px);
}

.card-image-box {
    background-color: #f5f5f7;
    /* Lighter Gray */
    width: 100%;
    aspect-ratio: 1;
    /* Square */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    /* Rounded Corners */
    overflow: hidden;
    margin-bottom: 15px;
}

/* Badge (Pill Style below image) */
.card-badge-pill {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #111;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 8px;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: opacity 0.4s ease, transform 0.5s ease;
    mix-blend-mode: multiply;
}

/* Hover Image Logic */
.card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

/* On hover, fade in 2nd image and scale */
.vertical-card:hover .hover-img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
    /* Slight zoom */
}

/* Fade out main image */
.vertical-card:hover .main-img {
    opacity: 0;
}

/* Fallback zoom if only 1 image */
.vertical-card:hover .main-img:only-child {
    opacity: 1;
    transform: scale(1.08);
}

.card-info-content {
    text-align: left;
    padding: 0 4px;
}

.product-name a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.vertical-card:hover .product-name a {
    color: #000;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 8px;
    text-transform: capitalize;
    /* Ensure normal case mostly */
}

.product-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.5px;
}

/* --- LIKE BUTTON --- */
/* --- CARD ACTIONS (Like & Share) --- */
/* --- CARD ACTIONS (Pill Layout) --- */
.card-actions-pill {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.25);
    /* Subtle dark overlay */
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
    transition: all 0.3s ease;
}

.card-actions-pill:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.pill-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease;
}

.pill-btn:hover {
    transform: scale(1.15);
}

.pill-btn i {
    pointer-events: none;
}

.pill-btn.like-btn.active {
    color: #b12727;
    /* Keep white for semantic matching to photo, reliance on Solid icon for state */
}

/* OUT OF STOCK OVERLAY */
.out-of-stock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border: 1px solid #111;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    z-index: 25;
    pointer-events: none;
}

/* --- WATCH MECHANISM LOADER --- */
.loader-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 20px;
}

.watch-loader {
    width: 60px;
    height: 60px;
    border: 4px solid #111;
    border-radius: 50%;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.watch-loader::after {
    /* Center Dot */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #c4a661;
    /* Gold accent */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.watch-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    background: #111;
    transform-origin: bottom center;
    transform: translateX(-50%);
    border-radius: 4px;
}

.hour-hand {
    width: 4px;
    height: 18px;
    animation: tick 2s linear infinite;
}

.minute-hand {
    width: 2px;
    height: 24px;
    background: #555;
    animation: tick 0.5s linear infinite;
}

/* --- FULL PAGE LOADER Removed - See global.css --- */


/* Hover Actions (Minimalist) */
.card-actions-hover {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.vertical-card:hover .card-actions-hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    font-size: 1.25rem;
    color: #1d1d1f;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.action-btn:hover {
    background: #111;
    color: white;
    border-color: #111;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: scale(0.95);
}



/* If we want to blocking interaction with page */
body.filter-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- QUICK VIEW MODAL --- */
.qv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qv-overlay.active {
    display: flex;
    opacity: 1;
}

.qv-modal {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.qv-overlay.active .qv-modal {
    transform: translateY(0);
}

.qv-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: #333;
    transition: color 0.2s;
}

.qv-close:hover {
    color: #000;
}

.qv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

.qv-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qv-main-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.qv-details {
    padding-top: 20px;
}

.qv-brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.qv-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: #111;
}

.qv-price {
    font-size: 1.4rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 20px;
}

.qv-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.qv-add-btn {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.qv-add-btn:hover {
    background: #333;
}

@media(max-width: 768px) {
    .qv-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* --- COLLECTION CARD ADD BUTTON --- */
.btn-add-collection-cart {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #003153;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-add-collection-cart:hover {
    border-color: #003153;
    background: #f8fafc;
    color: #003153;
}

.btn-add-collection-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}