/* ==========================================================================
   PROXISTORE (SAMARCHE) - SHOP & CATALOG STYLES (shop.css)
   Modern, responsive, mobile-first e-commerce catalog stylesheet
   ========================================================================== */

:root {
    --terracotta: #C75B39;
    --terracotta-dark: #A94526;
    --terracotta-light: #FDF5F2;
    --gold-senegal: #D4A84B;
    --gold-light: #FBF6EB;
    --baobab-green: #16A34A;
    --baobab-green-light: #DCFCE7;
    --ocean-blue: #0F172A;
    --slate-800: #1E293B;
    --slate-600: #475569;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --card-radius: 18px;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
body.shop-page {
    background-color: #F8FAFC !important;
    min-height: 100vh;
    padding-top: 72px !important;
}

.shop-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 20px 80px !important;
}

/* ==========================================================================
   HERO / CITY BANNER (Teranga Modern)
   ========================================================================== */
.shop-hero {
    position: relative;
    background: radial-gradient(circle at 90% 12%, rgba(212, 168, 75, 0.22) 0%, transparent 55%),
                radial-gradient(circle at 10% 88%, rgba(199, 91, 57, 0.28) 0%, transparent 60%),
                linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #2B1611 100%);
    color: #FFFFFF !important;
    border-radius: 24px;
    padding: 38px 32px 32px;
    margin-bottom: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.45);
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(199, 91, 57, 0.32) 0%, rgba(212, 168, 75, 0.15) 50%, transparent 75%);
    border-radius: 50%;
    pointer-events: none;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--baobab-green), var(--gold-senegal), var(--terracotta), var(--baobab-green));
    background-size: 200% 100%;
    animation: heroGradientShift 6s ease infinite;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.shop-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.city-pill-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.city-pill-wrapper svg {
    color: #FCD34D;
    flex-shrink: 0;
}

.city-change-link {
    color: #FDE68A !important;
    background: rgba(212, 168, 75, 0.22);
    padding: 2px 10px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.2s ease;
    margin-left: 6px;
    border: 1px solid rgba(253, 230, 138, 0.35);
}

.city-change-link:hover {
    background: #FDE68A;
    color: #0F172A !important;
}

.shop-hero h1,
.shop-hero .shop-hero-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 12px 0;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.shop-hero .shop-hero-title .city-accent {
    color: #FCD34D !important;
    background: linear-gradient(135deg, #FEF08A 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
    text-shadow: none;
}

.shop-hero p,
.shop-hero .shop-hero-subtitle {
    font-size: 1rem;
    color: #E2E8F0 !important;
    max-width: 650px;
    margin: 0 0 26px 0;
    line-height: 1.55;
}

/* Stats Cards in Hero */
.shop-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hero-stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.stat-icon-badge.shops {
    background: rgba(212, 168, 75, 0.22);
    border: 1px solid rgba(212, 168, 75, 0.45);
    color: #FCD34D;
}

.stat-icon-badge.products {
    background: rgba(199, 91, 57, 0.25);
    border: 1px solid rgba(199, 91, 57, 0.45);
    color: #FF8F6B;
}

.stat-icon-badge.buyers {
    background: rgba(22, 163, 74, 0.25);
    border: 1px solid rgba(22, 163, 74, 0.45);
    color: #86EFAC;
}

.stat-icon-badge.categories {
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93C5FD;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF !important;
}

.stat-label {
    font-size: 0.75rem;
    color: #94A3B8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 3px;
}

/* ==========================================================================
   STICKY TOOLBAR & QUICK CONTROLS
   ========================================================================== */
.shop-toolbar-wrapper {
    position: sticky;
    top: 68px;
    z-index: 80;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(14px);
    margin: 0 -20px 24px -20px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.shop-toolbar-main {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1360px;
    margin: 0 auto;
}

/* Search Form */
.shop-search-form {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.shop-search-input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 46px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    font-size: 0.95rem;
    color: var(--ocean-blue);
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.shop-search-input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(199, 91, 57, 0.12);
    background: #FFFFFF;
}

.shop-search-icon {
    position: absolute;
    left: 16px;
    color: var(--slate-400);
    pointer-events: none;
}

.shop-search-clear {
    position: absolute;
    right: 14px;
    width: 24px;
    height: 24px;
    border: none;
    background: #E2E8F0;
    color: #475569;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.shop-search-clear:hover {
    background: #CBD5E1;
    color: #0F172A;
}

/* Sort Dropdown (Desktop) */
.shop-sort-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.shop-sort-select {
    height: 48px;
    padding: 0 38px 0 16px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-800);
    appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.shop-sort-select:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(199, 91, 57, 0.12);
}

.shop-sort-arrow {
    position: absolute;
    right: 14px;
    color: var(--slate-400);
    pointer-events: none;
}

/* Mobile Filter Trigger Button */
.btn-mobile-filters {
    display: none;
    height: 48px;
    padding: 0 18px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-800);
    cursor: pointer;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mobile-filters:active {
    transform: scale(0.97);
}

.btn-mobile-filters .filter-count-badge {
    background: var(--terracotta);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   CATEGORY HORIZONTAL CAROUSEL / PILLS
   ========================================================================== */
.categories-scroll-container {
    max-width: 1360px;
    margin: 12px auto 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}

.categories-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-600);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-pill:hover {
    border-color: #CBD5E1;
    color: var(--ocean-blue);
    background: #F1F5F9;
    transform: translateY(-1px);
}

.category-pill.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(199, 91, 57, 0.3);
}

.category-pill.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.cat-count {
    background: #F1F5F9;
    color: var(--slate-600);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    transition: all 0.2s;
}

/* ==========================================================================
   ACTIVE FILTERS CHIPS & RESULTS BAR
   ========================================================================== */
.results-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.results-count-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-600);
}

.results-count-text strong {
    color: var(--ocean-blue);
}

.active-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #FDE68A;
}

.filter-chip-clear-all {
    color: var(--terracotta);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 6px;
}

.filter-chip-clear-all:hover {
    color: var(--terracotta-dark);
}

/* ==========================================================================
   PRODUCT GRID & MODERN CARDS
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.product-card {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--card-radius);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(199, 91, 57, 0.25);
}

/* Clickable wrapper */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Image Thumbnail Container */
.product-thumb-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #F1F5F9;
    overflow: hidden;
}

.product-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-thumb-img {
    transform: scale(1.06);
}

.product-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    color: #94A3B8;
}

/* Badges on Thumbnail */
.product-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #EF4444 0%, var(--terracotta) 100%);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
    z-index: 2;
    letter-spacing: -0.01em;
}

.product-badge-stock {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    color: #F8FAFC;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.product-badge-stock.out-of-stock {
    background: rgba(220, 38, 38, 0.9);
}

/* Floating Wishlist Button */
.btn-wishlist-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    z-index: 4;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.btn-wishlist-circle:hover {
    transform: scale(1.1);
    color: #EF4444;
    background: #FFFFFF;
}

.btn-wishlist-circle.active {
    color: #EF4444;
    background: #FFFFFF;
    border-color: #FECACA;
}

.btn-wishlist-circle.active svg {
    fill: #EF4444;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Product Info / Body */
.product-body {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.product-category-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--terracotta);
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-shop-name {
    font-size: 0.78rem;
    color: var(--slate-600);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-verified-icon {
    color: #0284C7;
    flex-shrink: 0;
}

.product-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ocean-blue);
    line-height: 1.35;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    transition: color 0.2s ease;
}

.product-card:hover .product-title {
    color: var(--terracotta);
}

/* Price Section */
.product-pricing-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.product-price-current {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--terracotta);
    letter-spacing: -0.01em;
}

.product-price-original {
    font-size: 0.85rem;
    color: var(--slate-400);
    text-decoration: line-through;
    font-weight: 500;
}

/* Action Button */
.btn-add-cart {
    width: 100%;
    height: 42px;
    background: var(--baobab-green);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    z-index: 3;
}

.btn-add-cart:hover {
    background: #15803D;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.btn-add-cart:active {
    transform: scale(0.98);
}

.btn-add-cart.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-add-cart.success {
    background: #0F172A;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 20px;
}

.pagination-item {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    color: var(--slate-800);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pagination-item:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: #FFF7ED;
}

.pagination-item.current {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(199, 91, 57, 0.3);
}

.pagination-ellipsis {
    color: var(--slate-400);
    padding: 0 6px;
    font-weight: 700;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.shop-empty-state {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 64px 24px;
    text-align: center;
    max-width: 580px;
    margin: 40px auto;
    box-shadow: var(--card-shadow);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: #FFF7ED;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin: 0 auto 20px auto;
}

.shop-empty-state h3 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ocean-blue);
    margin-bottom: 8px;
}

.shop-empty-state p {
    color: var(--slate-600);
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--terracotta);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(199, 91, 57, 0.3);
    transition: all 0.2s ease;
}

.btn-reset-filters:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE FILTER DRAWER (Bottom Sheet)
   ========================================================================== */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #FFFFFF;
    border-radius: 28px 28px 0 0;
    z-index: 1200;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.filter-drawer.active {
    transform: translateY(0);
}

.drawer-handle {
    width: 48px;
    height: 5px;
    background: #CBD5E1;
    border-radius: 9999px;
    margin: 12px auto 6px auto;
    flex-shrink: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 16px;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.drawer-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ocean-blue);
    margin: 0;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: #E2E8F0;
    color: var(--ocean-blue);
}

.drawer-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 12px;
}

/* Drawer Price Inputs */
.price-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.price-field {
    position: relative;
    display: flex;
    align-items: center;
}

.price-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 14px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ocean-blue);
}

.price-field input:focus {
    outline: none;
    border-color: var(--terracotta);
}

/* Drawer Footer */
.drawer-footer {
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    flex-shrink: 0;
}

.drawer-btn-reset {
    flex: 1;
    height: 48px;
    background: #F1F5F9;
    border: none;
    border-radius: 14px;
    color: var(--slate-800);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s;
}

.drawer-btn-apply {
    flex: 2;
    height: 48px;
    background: var(--terracotta);
    border: none;
    border-radius: 14px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(199, 91, 57, 0.3);
    transition: background 0.2s;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .shop-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .shop-hero {
        padding: 32px 24px 28px;
        border-radius: 20px;
    }

    .shop-hero-title {
        font-size: 1.85rem;
    }

    .shop-sort-wrapper {
        display: none; /* Accessible in the mobile filter drawer */
    }

    .btn-mobile-filters {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    body.shop-page {
        padding-top: 66px !important;
    }

    .shop-container {
        padding: 14px 14px 90px !important; /* Fully clears fixed navbar (~65px) with comfortable breathing room */
    }

    .shop-hero {
        padding: 22px 16px 20px;
        border-radius: 18px;
        margin-bottom: 18px;
    }

    .shop-hero-top {
        margin-bottom: 14px;
    }

    .city-pill-wrapper {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .shop-hero h1,
    .shop-hero .shop-hero-title {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .shop-hero p,
    .shop-hero .shop-hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.45;
        margin-bottom: 18px;
    }

    .shop-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-stat-card {
        padding: 12px 12px;
        gap: 10px;
    }

    .stat-icon-badge {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .stat-icon-badge svg {
        width: 18px;
        height: 18px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.68rem;
    }

    .shop-toolbar-wrapper {
        top: 60px;
        margin: 0 -14px 18px -14px;
        padding: 10px 14px;
    }

    /* 2 Columns on Mobile - Clean Professional E-Commerce */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-body {
        padding: 12px 10px 12px;
    }

    .product-title {
        font-size: 0.88rem;
        min-height: 2.5em;
        margin-bottom: 6px;
    }

    .product-price-current {
        font-size: 1.05rem;
    }

    .product-price-original {
        font-size: 0.78rem;
    }

    .btn-add-cart {
        height: 38px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .btn-add-cart span {
        display: none; /* Keep icon only on small screens */
    }

    .btn-wishlist-circle {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    .btn-wishlist-circle svg {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .btn-add-cart span {
        display: inline;
    }
}

@media (max-width: 380px) {
    .products-grid {
        gap: 8px;
    }

    .product-body {
        padding: 10px 8px;
    }

    .product-price-current {
        font-size: 0.95rem;
    }
}

