/* ==========================================================================
   EASTSEAS TRADING EST. — PRODUCTS PAGE STYLES
   ========================================================================== */
.btn-get-in-touch { margin-top:20px; display:inline-flex; }
.d-none { display: none; }
/* EASTSEAS TRADING EST. — PRODUCTS CATALOG (REDESIGNED)
   Premium, Professional, Perfectly Aligned
   ========================================================================== */

/* ====== COLOR SYSTEM FOR ICONS ====== */
.color-blue   { background: rgba(40,56,144,0.08)  !important; color: #1c2866 !important; }
.color-cyan   { background: rgba(0,174,239,0.09)  !important; color: #007eb8 !important; }
.color-indigo { background: rgba(75,0,200,0.08)   !important; color: #4b00c8 !important; }
.color-orange { background: rgba(241,90,36,0.09)  !important; color: #d1420a !important; }
.color-green  { background: rgba(0,160,80,0.09)   !important; color: #00a050 !important; }
.color-teal   { background: rgba(0,150,136,0.09)  !important; color: #009688 !important; }
.color-yellow { background: rgba(230,160,0,0.09)  !important; color: #c48a00 !important; }
.color-brown  { background: rgba(120,70,30,0.09)  !important; color: #78461e !important; }
/* ====== 1. CUSTOM HEADER ====== */
header.products-header {
    background-color: var(--primary) !important;
    background: linear-gradient(135deg, #0b122b 0%, #1c2866 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

header.products-header .topbar {
    display: none !important;
}

/* ====== 2. CATALOG LAYOUT ====== */
.container-fluid {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 36px;
}

/* Body styling for Products App Layout */
html, body {
    background: var(--bg-light);
    overflow: hidden !important; /* Lock main page scrolling */
    height: 100%;
    margin: 0;
    overscroll-behavior: none;
    touch-action: none;
}

body.products-scroll-locked {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden !important;
}

footer {
    display: none !important;
}

/* Make navbar more compact on products page */
.products-header .navbar {
    padding: 10px 0 !important;
}

.catalog-dashboard-grid {
    padding-top: 70px; /* Reduced to dock perfectly flush underneath the compacted header */
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: stretch;
    background: rgb(255, 255, 255);
}

/* ====== 3. SIDEBAR ====== */
.catalog-sidebar {
    height: 100%;
    background: transparent;
    border: none;
    padding: 20px 16px 20px 0; /* Reduced padding */
    box-shadow: none;
    z-index: 10;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.catalog-sidebar::-webkit-scrollbar { width: 0px; } /* Hide sidebar scrollbar for sleekness */

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px; /* Reduced from 24px */
    padding-bottom: 10px; /* Reduced from 14px */
    border-bottom: 2px dashed rgba(28,40,102,0.1);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-headings);
    letter-spacing: -0.2px;
    margin: 0;
}

.sidebar-total-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(40,56,144,0.07);
    padding: 3px 10px;
    border-radius: 20px;
}

.sidebar-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Sidebar category card / Button Grid */
.sidebar-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px; /* Ultra minimal padding */
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px; /* Slightly sharper for minimalism */
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 5px rgba(0,0,0,0.02); /* Barely visible shadow */
    text-align: center;
    height: 90px; /* Tighter button height */
    gap: 8px; /* Tighter gap */
}

.cat-card-left {
    display: contents; /* Strip wrapper so icon/name flow in column flex */
}

.cat-card-icon {
    width: auto;
    height: auto;
    background: transparent;
    color: #333; /* Pure black/dark gray */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Larger icon to fit the button proportions better */
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.cat-card-name {
    font-size: 0.65rem; /* Ultra minimal font size */
    font-weight: 500; /* Lighter weight for minimalism */
    text-transform: uppercase; /* Looks cleaner at small sizes */
    letter-spacing: 0.5px;
    color: var(--text-dark);
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.cat-card-count {
    display: none; /* Hide counts in grid layout to stay minimal */
}

.sidebar-cat-card:hover {
    border-color: #000; /* Minimal b&w hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.sidebar-cat-card:hover .cat-card-icon {
    transform: scale(1.1);
    color: #000;
}

.sidebar-cat-card:hover .cat-card-name { color: #000; }

/* Active state - Minimal solid black */
.sidebar-cat-card.active {
    background: #111;
    border-color: #111;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.sidebar-cat-card.active .cat-card-name { color: #fff; }
.sidebar-cat-card.active .cat-card-icon { color: #fff; }

/* ====== 4. MAIN CONTENT ====== */
.catalog-main-content {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 0 20px 10px; /* Bare minimum padding */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Minimal gap */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

/* Custom scrollbar for main content */
.catalog-main-content::-webkit-scrollbar { width: 0px; display: none; } /* Completely hidden scrollbar */
.catalog-main-content { -ms-overflow-style: none; scrollbar-width: none; } /* Hide for Firefox and IE */

/* Header Bar / Filter Bar */
.catalog-header-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85); /* Semi-transparent base matching --bg-light */
    backdrop-filter: blur(12px); /* Premium glassmorphism blend */
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03); /* Extremely subtle bottom edge */
    padding: 10px 0 14px 5px; /* Breathing room */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-radius: 0 0 12px 12px; /* Rounded bottom corners for a softer look */    
    flex-wrap: nowrap; /* Prevent wrapping when search expands */
}

/* Alphabet Filter */
.alpha-filter-wrapper {
    flex: 1;
    min-width: 0; /* Allow it to shrink */
    position: relative;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    padding: 0 20px 0 10px; /* Space for the fade out and left gap */
}

.catalog-alpha-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
    cursor: grab;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.catalog-alpha-filter::-webkit-scrollbar { display: none; }

.catalog-alpha-filter:active {
    cursor: grabbing;
}

.alpha-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.alpha-btn.active[data-letter="all"] {
    width: auto;
    padding: 0 10px;
}

.alpha-btn:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text-dark);
}
.alpha-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.catalog-filters-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sorting Filters */
.catalog-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Custom-styled select (works on mobile & desktop) ── */
.catalog-sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 40px 10px 16px;   /* right-pad for the chevron */
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23283890' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    min-width: 140px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.catalog-sort-select:hover {
    border-color: var(--primary-light);
    background-color: #f0f9ff;
}

.catalog-sort-select:focus {
    border-color: var(--primary-light);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0,174,239,0.12);
}

/* Full-width variant inside the mobile drawer */
.mobile-filters-drawer .catalog-sort-select {
    width: 100%;
    border-radius: 14px;
    padding: 14px 44px 14px 18px;
    font-size: 1rem;
    background-color: #f8fafc;
    border: 1.5px solid var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.mobile-filters-drawer .catalog-sort-select:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(40,56,144,0.10);
}

/* Search bar Desktop Default */
.catalog-search-wrap {
    position: relative;
    width: 280px; /* Fully opened initially on desktop */
    height: 44px;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.search-input-box {
    position: absolute;
    right: 0; top: 0;
    width: 100%; height: 100%;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 22px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: text;
}

.search-input-box:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05), 0 0 0 3px rgba(0,174,239,0.08);
}

.search-input-box i.fa-magnifying-glass {
    padding-left: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.search-input-box:focus-within i.fa-magnifying-glass {
    color: var(--primary-light);
}

.catalog-search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0 14px;
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.catalog-search-wrap.active .catalog-search-input {
    opacity: 1;
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0 14px;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.search-clear:hover { color: var(--accent); }

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 55px; /* Slightly lower to clear the input box */
    left: 0;
    min-width: 100%; /* At least as wide as the input */
    width: max-content; /* Expand if the text is long */
    max-width: 400px; /* Don't expand infinitely */
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestions li {
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
    white-space: normal; /* Allow text to flow naturally if it exceeds max-width */
}

.search-suggestions li span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.search-suggestions li:hover {
    background: rgba(0,174,239,0.06);
    color: var(--primary);
}

/* ====== 5. PRODUCTS GRID ====== */
.products-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Tighter columns */
    gap: 12px; /* Super tight grid gap */
    width: 100%;
}

/* Product Card */
.catalog-product-card {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.06); /* Added slight border */
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.35s ease,
                background 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 12px;
}

.catalog-product-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(28,40,102,0.06);
    border-color: rgba(28,40,102,0.05);
}

/* Image area */
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 140px; /* Ultra reduced image height so 2+ rows easily fit */
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px; /* Minimal padding */
    box-sizing: border-box;
    border-radius: 8px;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    z-index: 1;
}

.catalog-product-card:hover .product-img-wrapper img {
    transform: scale(1.07);
}

/* Category badge on image */
.product-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.95);
    color: #111;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-cat-badge i { 
    font-size: 0.62rem; 
    color: #111; 
}

/* Card body */
.product-card-body {
    padding: 10px; /* Ultra minimal padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px; /* Ultra minimal gap */
}

.product-card-body h3 {
    font-size: 0.9rem; /* Smaller text */
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
    font-family: var(--font-headings);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.catalog-product-card:hover .product-card-body h3 { color: var(--primary); }

.product-card-body p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Divider */
.product-card-body::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.22s ease;
    padding: 2px 0;
}

/* Stretches the link to cover the entire card */
.product-card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.product-card-link i {
    font-size: 0.75rem;
    transition: transform 0.22s ease;
}

.catalog-product-card:hover .product-card-link { color: var(--primary-light); }
.catalog-product-card:hover .product-card-link i { transform: translateX(4px); }

/* Empty state */
.catalog-empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: var(--text-muted);
}

.catalog-empty-state i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 16px;
    display: block;
}

.catalog-empty-state h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.catalog-empty-state p {
    font-size: 0.92rem;
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search empty */
.search-empty-state {
    background: #fff;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: var(--text-muted);
}

.search-empty-state i { font-size: 2.5rem; color: #cbd5e0; margin-bottom: 14px; display: block; }
.search-empty-state h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.search-empty-state p { font-size: 0.88rem; margin: 0; }

/* ====== KEYFRAMES ====== */
@keyframes floatShape {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-24px) rotate(7deg); }
}

/* ====== RESPONSIVE ====== */
.mobile-filter-overlay { display: none; }
.mobile-bottom-bar { display: none; }
.mobile-filters-drawer { display: none; }

@media (max-width: 1200px) {
    .catalog-dashboard-grid { grid-template-columns: 240px 1fr; gap: 22px; }
    .products-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
}

/* Mobile search bar override */
@media (max-width: 991px) {
    .catalog-header-bar {
        position: fixed;
        top: 72px; /* Dock directly under global navbar */
        left: 0; right: 0;
        z-index: 995;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 12px 16px;
    }
    .catalog-dashboard-grid {
        padding-top: 140px !important;
    }
    .catalog-search-wrap { 
        width: 100% !important; 
        height: 40px;
        margin-bottom: 8px;
    }
    .catalog-search-input {
        opacity: 1 !important;
        font-size: 0.9rem;
    }
    .search-input-box {
        background: #fff !important;
        border: 1px solid rgba(0,0,0,0.1);
        cursor: text !important;
    }
}

@media (max-width: 1024px) {
    .catalog-dashboard-grid { grid-template-columns: 220px 1fr; gap: 18px; }
    .container-fluid { padding: 0 24px; }
}

@media (max-width: 900px) {
    .catalog-dashboard-grid { grid-template-columns: 1fr; background: white;}

    /* Bottom Sheet Sidebar */
    .mobile-filter-overlay {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px); z-index: 999; opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .mobile-filter-overlay.active { opacity: 1; pointer-events: auto; }

    .catalog-sidebar {
        display: block; position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff; z-index: 1000;
        border-radius: 24px 24px 0 0; padding: 30px 20px;
        transform: translateY(110%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 70vh; overflow-y: auto;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    }
    .catalog-sidebar.active { transform: translateY(0); }

    /* Sort & Filters drawer — compact peek, not full screen */
    .mobile-filters-drawer {
        display: block; position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff; z-index: 1000;
        border-radius: 24px 24px 0 0;
        padding: 24px 20px 32px;
        transform: translateY(110%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 310px;          /* Adjusted height to fit 3 options nicely */
        overflow-y: visible;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.12);
    }
    .mobile-filters-drawer.active { transform: translateY(0); }

    .mobile-sort-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .mobile-sort-opt-btn {
        width: 100%;
        padding: 14px 18px;
        background: #f8fafc;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-dark);
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.25s ease;
        text-align: left;
    }
    .mobile-sort-opt-btn i {
        font-size: 1.1rem;
        color: var(--text-muted);
        transition: color 0.25s ease;
    }
    .mobile-sort-opt-btn:active,
    .mobile-sort-opt-btn.active {
        background: #111;
        color: #fff;
        border-color: #111;
    }
    .mobile-sort-opt-btn.active i {
        color: #fff;
    }

    .sidebar-menu {
        flex-direction: column; flex-wrap: nowrap;
        padding-bottom: 20px;
    }
    .sidebar-cat-card { padding: 12px 18px; }
    
    /* FAB -> Bottom Bar */
    .mobile-bottom-bar {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.85); z-index: 998;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .mobile-bar-btn {
        flex: 1; padding: 18px 0; border: none; background: transparent;
        font-size: 0.95rem; font-weight: 700; color: var(--h-navy2);
        display: flex; align-items: center; justify-content: center; gap: 8px;
        transition: background 0.2s; cursor: pointer;
    }
    .mobile-bar-btn:active { background: rgba(0,0,0,0.03); }
    .mobile-bar-btn:first-child { border-right: 1px solid rgba(0,0,0,0.08); }

    /* Hide alphabet filter */
    .alpha-filter-wrapper { display: none; }
    
    .catalog-main-content { padding-bottom: 60px; /* Space for bottom bar */ }
}

/* ====== 7. SKELETON LOADING UI ====== */
.skeleton-grid {
    width: 100%;
    position: relative;
    z-index: 10;
}

.skeleton-card {
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.04);
    background: #ffffff !important; /* Force solid white background */
    z-index: 10;
}

.skeleton-img {
    background: #d1d5db !important; /* Darker distinct gray */
    animation: skeletonPulse 1.2s infinite ease-in-out;
    border-radius: 6px;
}

.skeleton-text {
    background: #d1d5db !important;
    border-radius: 4px;
    height: 12px;
    margin-bottom: 8px;
    animation: skeletonPulse 1.2s infinite ease-in-out;
}

.skeleton-title {
    height: 16px;
    width: 70%;
    margin-bottom: 12px;
    margin-top: 10px;
}

.skeleton-link {
    height: 14px;
    width: 40%;
    margin-top: auto;
}

@keyframes skeletonPulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .products-hero-content h1 { font-size: 2.3rem; }

    .catalog-filters-right { display: none; /* Can be handled by category drawer instead */ }

    .products-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .container-fluid { padding: 0 12px; }
}

@media (max-width: 480px) {
    .products-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-img-wrapper { height: 130px; }
    .product-card-body { padding: 10px 8px; }
    .product-card-body h3 { font-size: 0.8rem; }
    .product-card-body p { font-size: 0.75rem; }
    .product-card-link { font-size: 0.75rem; }
    .products-hero-content h1 { font-size: 1.9rem; }
    .catalog-product-card { min-width: 0; } /* Prevents flex/grid blowout */
}

.catalog-pagination {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}
.pagination-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}
.pagination-btn:hover {
    color: #0f172a;
}
.pagination-btn.active {
    color: #0f172a;
}
.pagination-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: #0f172a;
    border-radius: 2px;
}
.pagination-btn.next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

