/* assets/css/shop_layout.css */

/* =========================================
   1. GLOBAL OVERRIDES (LIGHT MODE FIXES)
   ========================================= */
body.shop-page {
    background-color: #ffffff !important;
    color: #1d1d1d !important;
    font-family: 'Inter', sans-serif !important;
}

.work-hed .caption h1 {
    font-size: 90px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000; /* Ensure black in light mode */
}

/* =========================================
   2. NAVBAR FIXES
   ========================================= */
.navbar {
    position: absolute;
    left: 0;
    top: 30px;
    padding: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    z-index: 9999999;
}

.navbar.nav-scroll {
    padding: 15px 0;
    position: fixed;
    top: -80px;
    transition: transform .8s;
    transform: translateY(80px);
    backdrop-filter: blur(10px);
}

.navbar .logo {
    padding: 7px 15px;
    border-radius: 30px;
}

.navbar .navbar-nav {
    padding: 2px 5px;
    border: 1px solid rgba(1, 1, 1, 0.3);
    border-radius: 30px;
    margin-left: 15px;
}

.navbar .navbar-nav .nav-link {
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #0D0D0D;
}

.navbar .navbar-nav .nav-link.active {
    background: rgba(1, 1, 1, 0.1);
}

.navbar .topnav .butn {
    padding: 7px 20px;
    background: #0D0D0D;
    color: #fff;
    margin-right: 15px;
}

/* Shop Page Specific Navbar Overrides */
body.shop-page .navbar {
    position: relative !important;
    top: 0 !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee;
}

body.shop-page .navbar .logo img {
    filter: invert(1) brightness(0); /* Black Logo */
    height: 40px;
    width: auto;
}

/* =========================================
   3. SHOP LAYOUT (SIDEBAR & GRID)
   ========================================= */
.shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* SIDEBAR */
/*.sidebar-wrapper {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 30px;
    background: #fff; 
}*/

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-group:last-child { border-bottom: none; }

.filter-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px !important;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
    display: flex;
    justify-content: space-between;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

.filter-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 5px 0;
    transition: 0.2s;
}
.filter-label:hover { color: #000; }

.filter-label input {
    margin-right: 10px;
    accent-color: #000;
    width: 16px;
    height: 16px;
    border-color: #ccc;
}

.filter-count {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Sub-Filters (Lenses) */
.sub-filter-list {
    list-style: none;
    padding-left: 25px;
    margin-top: 5px;
    margin-bottom: 10px;
    display: none;
    border-left: 2px solid #f0f0f0;
}
.sub-filter-list.open {
    display: block;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MAIN AREA */
.shop-content { flex: 1; }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.shop-toolbar h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: 32px !important;
    font-style: italic;
    color: #000 !important;
    text-transform: none !important; /* Reset upper case for this specific title if needed */
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
}

/* PRODUCT GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    border-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.product-img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 10px;
}
.product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-info { margin-top: auto; text-align: center; }

.product-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.product-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 46px !important;
    margin-bottom: 5px !important;
    line-height: 1.3;
}
.product-title a { color: #000; text-decoration: none; }

.product-ref {
    font-size: 12px;
    color: #777;
    background: #f7f7f7;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.product-actions { border-top: 1px solid #f0f0f0; padding-top: 15px; }

.btn-details {
    display: block;
    width: 100%;
    background: #000;
    color: #fff !important;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: 0.3s;
    text-decoration: none;
}
.btn-details:hover { background: #333; }

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-size: 12px;
    color: #25D366;
    font-weight: 600;
    gap: 5px;
    text-decoration: none;
}
.whatsapp-link:hover { text-decoration: underline; }

.btn-add-cart {
    background-color: #000;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 0;
    width: 100%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-add-cart:hover {
    background-color: #212121;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: 10px;
    color: #555;
}

/* =========================================
   4. MINI CART DROPDOWN
   ========================================= */
.basket-wrapper { position: relative; display: inline-block; }

.mini-cart-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.mini-cart-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.mini-cart-header { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; font-weight: 600; font-size: 14px; color: #000; display: flex; justify-content: space-between; }
.mini-cart-items { max-height: 300px; overflow-y: auto; padding: 0; list-style: none; margin: 0; }
.mini-cart-items::-webkit-scrollbar { width: 4px; }
.mini-cart-items::-webkit-scrollbar-thumb { background: #eee; }

.mini-cart-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f9f9f9; gap: 15px; }
.mini-cart-item img { width: 50px; height: 50px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; }
.item-details h4 { font-size: 13px; margin: 0 0 5px; font-family: 'Inter', sans-serif !important; font-weight: 600; }
.item-details p { font-size: 12px !important; color: #888 !important; margin: 0; }

.mini-cart-footer { padding: 20px; background: #fcfcfc; border-top: 1px solid #f0f0f0; border-radius: 0 0 8px 8px; }
.mini-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 15px; font-size: 16px; }
.btn-view-cart { display: block; width: 100%; background: #000; color: #fff !important; text-align: center; padding: 12px; text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: 1px; border-radius: 4px; text-decoration: none; transition: 0.3s; }
.btn-view-cart:hover { background: var(--main-color); color: #000 !important; }

/* Loader Fix */
.loader-wrap { pointer-events: none !important; z-index: -9999 !important; visibility: hidden !important; height: 0 !important; width: 0 !important; }
.ScrollSmoother-wrapper { pointer-events: auto; }
body > .ScrollSmoother-wrapper[style*="position: fixed"] { pointer-events: none; }
body > .ScrollSmoother-wrapper[style*="position: fixed"] * { pointer-events: auto; }

/* =========================================
   5. MOBILE RESPONSIVE & STICKY BUTTON LOGIC
   ========================================= */

/* 1. Base Button (Desktop - Hidden) */
.mobile-filter-btn {
    display: none; 
}
.section-padding {
    padding-top: 80px;
    padding-bottom: 50px;
}
.close-sidebar-btn {
    display: none;}

    .product-img-wrap img {
    /* 1. Brightness: Turns light grey (230) into White (255) */
    /* 2. Contrast: Keeps the glasses dark and sharp */
    /* 3. Saturate: Restores color pop lost by brightness */
   /* filter: brightness(1.13) contrast(1.08) saturate(1.1);*/
    
    /* 4. Multiply: Blends the resulting white pixels with the card background */
    /*mix-blend-mode: multiply;*/
    
    /* Smooth rendering */
    transition: transform 0.4s ease;
}

/* Hover effect (Zoom) */
.product-card:hover .product-img-wrap img { 
    transform: scale(1.08); 
}
@media (max-width: 991px) {
    .shop-container { flex-direction: column; }
    
    /* 2. Base Button (Mobile - Relative/In Flow) */
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 15px;
        background: #fff;
        border: 1px solid #000;
        color: #000;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 13px;
        border-radius: 4px;
        margin-bottom: 20px;
        position: relative; /* Starts Relative! */
        z-index: 9999;
        cursor: pointer;
        transition: all 0.3s ease;
    }


    .mobile-filter-btn i { font-size: 14px; transition: 0.3s; }
    
    /* 3. Sticky State (Added via JS on scroll) */
    .mobile-filter-btn.sticky {
        position: fixed;
        bottom: 30px;
        right: 60px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #000;
        color: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        z-index: 10000;
        padding: 0;
        margin: 0;
        border: none;
    }

    /* Hide Text / Change Icon when Sticky */
    .mobile-filter-btn.sticky span { display: none !important; }
    .mobile-filter-btn.sticky i { font-size: 20px; margin: 0; }

    /* 4. Sidebar (Fixed Bottom Sheet) */
    .sidebar-wrapper { 
        display: block;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        height: 85vh;
        background: #fff;
        z-index: 9998; /* Below button */
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-bottom: 80px;
        border: none;
    }
    
    .sidebar-wrapper.active { padding: 25px;transform: translateY(0); }

    /* Backdrop */
    .sidebar-wrapper.active::before {
        content: '';
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 200vh;
        z-index: -1;
    }

    /* Internal Padding */
    .filter-header { padding: 20px; position: sticky; top: 0; background: #fff; z-index: 10; border-bottom: 1px solid #eee; text-align:center; }
    #shopFilterForm { padding: 20px; }

    /* Grid Adjustment */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .shop-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .sort-select { width: 100%; }
}


/* Helper to hide main button when filter is open */
.mobile-filter-btn.hidden {
    opacity: 0;
    pointer-events: none;
}





/* --- 360 VIEW BADGE --- */
.badge-360 {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: #1e3d93;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.09);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-360 i {
    font-size: 11px;
    color: #1e3d93; /* Ensure icon is white */
}

/* Optional: Pulse animation on hover to draw attention */
.product-card:hover .badge-360 {
    background-color: var(--main-color); /* Neon Green on hover */
    color: #1e3d93;
}
.product-card:hover .badge-360 i {
    color: #1e3d93;
}




.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
    width: 100%;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e1e1e1;
    background: #ffffff;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.page-btn:hover {
    border-color: #000;
    color: #000;
    transform: translateY(-2px);
}

.page-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.page-dots {
    color: #999;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 0 5px;
}

/* Hide numbers on very small screens, keep arrows */
@media (max-width: 480px) {
    .page-btn {
        padding: 0 10px;
        font-size: 12px;
        min-width: 35px;
        height: 35px;
    }
}


@media (max-width: 768px) {
    .close-sidebar-btn {
        display: block;
    position: absolute;
    right: 15px;
    top: 5%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.close-sidebar-btn:hover {
    background: #000;
    color: #fff;
}

.close-sidebar-btn i {
    font-size: 18px;
}
    /* Mobile Navbar Tweaks */
    body.shop-page .navbar .logo img {
        filter: invert(1) brightness(0);
        height: 30px;
        width: auto;
    }

    /* Typography Adjustments from original design */
    h1 { letter-spacing: -1px; }
    .work-hed .caption h1 { font-size: 45px; }

    /* Hide 'Quote Basket' Text */
    .topnav .butn span { display: none !important; }
    
    /* Circle Basket Button */
    .topnav .butn {
        width: 40px !important; height: 40px !important;
        padding: 0 !important; border-radius: 50% !important;
        display: flex !important; align-items: center; justify-content: center;
        margin-right: 10px;
    }
    .topnav .butn i { font-size: 16px; margin: 0 !important; }

    /* Navbar Layout */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 15px;
        padding-left: 15px;
    }
    .navbar .menu-icon { margin-left: 0 !important; }

    /* Mini Cart Positioning */
    .mini-cart-dropdown {
        right: -10px;
        width: 300px;
    }
}