/* ==========================================================================
   css/shop.css - Majida Ameer Textiles Storefront Shop Catalog Page
   High-performance luxury catalog with responsive sidebar filters & grid
   ========================================================================== */

/* Breadcrumbs (matching product.php, categories.php & cart.php exactly) */
.breadcrumbs-bar {
    width: 100%;
    padding: 16px 0 0 0;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    margin-top: 5px;
    margin-bottom: 24px;
}

.breadcrumbs-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
}

.breadcrumbs-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary-color);
}

.breadcrumbs-nav li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-nav a {
    color: var(--text-secondary-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs-nav a:hover {
    color: var(--sigcolor);
}

.breadcrumb-sep {
    color: #cccccc;
    font-size: 11px;
    user-select: none;
}

.breadcrumb-active {
    color: var(--sigcolor);
    font-weight: 600;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Accessibility Helper for Screen Readers / SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   SHOP MAIN LAYOUT (2 Columns on Desktop)
   ========================================================================== */
.shop-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
}

/* ==========================================================================
   FILTER SIDEBAR - DESKTOP & DRAWER BASE
   ========================================================================== */
.shop-sidebar {
    width: 275px;
    min-width: 275px;
    flex-shrink: 0;
    position: sticky;
    top: 85px;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.sidebar-header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 18px;
}

.sidebar-title {
    font-family: var(--font1);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary-color);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sidebar-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--sigcolor);
}

.sidebar-clear-btn {
    background: none;
    border: none;
    font-family: var(--font1);
    font-size: 11.5px;
    font-weight: 600;
    color: #e53e3e;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.sidebar-clear-btn:hover {
    background-color: #fff5f5;
}

/* Individual Filter Sections */
.filter-section {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:first-of-type {
    padding-top: 0;
}

.filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-heading {
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-primary-color);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-heading-count {
    font-size: 11px;
    color: var(--text-secondary-color);
    font-weight: 500;
}

/* 1. Search Filter Box */
.filter-search-wrapper {
    position: relative;
    width: 100%;
}

.filter-search-input {
    width: 100%;
    height: 40px;
    padding: 8px 34px 8px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font1);
    font-size: 13px;
    color: var(--text-primary-color);
    background-color: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search-input:focus {
    border-color: var(--sigcolor);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(1, 70, 97, 0.08);
}

.filter-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #94a3b8;
    pointer-events: none;
}

.filter-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.filter-search-clear.visible {
    display: flex;
}

/* 2 & 3. Option Lists (Categories & Collections) */
.filter-options-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.filter-options-list::-webkit-scrollbar {
    width: 4px;
}

.filter-options-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-option-item {
    margin-bottom: 3px;
}

.filter-radio-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: var(--font1);
    font-size: 13px;
    color: #4b5563;
    user-select: none;
}

.filter-radio-label:hover {
    background-color: #f8fafc;
    color: var(--text-primary-color);
}

.filter-radio-label.active {
    background-color: #f0f7fa;
    color: var(--sigcolor);
    font-weight: 600;
}

.filter-radio-left {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-custom-radio {
    width: 15px;
    height: 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.filter-custom-radio::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--sigcolor);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.filter-radio-label.active .filter-custom-radio {
    border-color: var(--sigcolor);
}

.filter-radio-label.active .filter-custom-radio::after {
    opacity: 1;
    transform: scale(1);
}

.filter-count {
    font-size: 11px;
    color: #94a3b8;
    background-color: #f1f5f9;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-radio-label.active .filter-count {
    background-color: var(--sigcolor);
    color: #ffffff;
}

.filter-radio-label.filter-zero-count {
    opacity: 0.65;
}

.filter-radio-label.filter-zero-count .filter-count {
    background-color: #f8fafc;
    color: #cbd5e1;
}

/* Subcategories Indented List */
.filter-sub-list {
    list-style: none;
    padding: 2px 0 4px 18px;
    margin: 0;
    border-left: 1.5px solid #f1f5f9;
}

.filter-sub-list .filter-radio-label {
    font-size: 12px;
    padding: 4px 6px;
    color: #64748b;
}

.filter-sub-list .filter-custom-radio {
    width: 12px;
    height: 12px;
}

.filter-sub-list .filter-custom-radio::after {
    width: 5px;
    height: 5px;
}

/* 4. Sizes Filter Grid */
.filter-sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.size-pill-btn {
    padding: 7px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fafafa;
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary-color);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-align: center;
}

.size-pill-btn:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
}

.size-pill-btn.active {
    background-color: var(--sigcolor);
    color: #ffffff;
    border-color: var(--sigcolor);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(1, 70, 97, 0.2);
}

.size-pill-count {
    display: inline-block;
    font-size: 10px;
    padding: 0 4px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: middle;
}

.size-pill-btn.active .size-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.product-add-to-cart-button.btn-added {
    transform: scale(1.18);
    background-color: #10b981 !important;
    color: #ffffff !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

/* 5. Pricing Filter Inputs */
.filter-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-price-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-price-currency {
    position: absolute;
    left: 8px;
    font-family: var(--font1);
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
}

.filter-price-input {
    width: 100%;
    height: 36px;
    padding: 6px 8px 6px 26px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: var(--font1);
    font-size: 12.5px;
    color: var(--text-primary-color);
    outline: none;
    transition: border-color 0.15s ease;
}

.filter-price-input:focus {
    border-color: var(--sigcolor);
}

.filter-price-sep {
    color: #94a3b8;
    font-size: 12px;
}

.filter-price-apply-btn {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-price-apply-btn:hover {
    background: var(--sigcolor);
    border-color: var(--sigcolor);
    color: #ffffff;
}

/* 6. On Sale Toggle Switch */
.filter-sale-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
    user-select: none;
}

.filter-sale-label-text {
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-sale-badge {
    background: #fef08a;
    color: #854d0e;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #e53e3e;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(16px);
}

/* Drawer mobile header & footer (hidden on desktop) */
.drawer-header-mobile,
.drawer-footer-mobile {
    display: none;
}

/* ==========================================================================
   SHOP MAIN CONTENT (RIGHT SIDE)
   ========================================================================== */
.shop-main {
    flex: 1;
    min-width: 0;
}

/* Top Toolbar: Controls, Active Chips, Sorting */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    margin-bottom: 18px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-filter-trigger-btn {
    display: none;
    /* Desktop hidden */
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mobile-filter-trigger-btn:hover {
    border-color: var(--sigcolor);
    color: var(--sigcolor);
}

.mobile-filter-trigger-btn svg {
    width: 16px;
    height: 16px;
}

.filter-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: var(--sigcolor);
    color: #ffffff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.toolbar-results-count {
    font-family: var(--font1);
    font-size: 13px;
    color: var(--text-secondary-color);
    font-weight: 500;
}

.toolbar-results-count strong {
    color: var(--text-primary-color);
    font-weight: 600;
}

.count-desktop-text {
    display: inline;
}

.count-mobile-text {
    display: none;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-family: var(--font1);
    font-size: 12.5px;
    color: var(--text-secondary-color);
    font-weight: 500;
}

.sort-select {
    height: 36px;
    padding: 0 28px 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary-color);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.sort-select:focus {
    border-color: var(--sigcolor);
}

/* Active Filter Chips Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-family: var(--font1);
    font-size: 12px;
    color: #334155;
    font-weight: 500;
    animation: chipFade 0.2s ease;
}

@keyframes chipFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.active-filter-chip button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.active-filter-chip button:hover {
    color: #ef4444;
}

.clear-all-chips-btn {
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 600;
    color: #e53e3e;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
}

/* ==========================================================================
   PRODUCT GRID (Uses .one-product-card from our-collection-section.css)
   ========================================================================== */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    transition: opacity 0.2s ease;
}

.shop-products-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* Empty State */
.shop-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.shop-empty-state-icon {
    width: 48px;
    height: 48px;
    stroke: #94a3b8;
    margin: 0 auto 16px auto;
}

.shop-empty-state h3 {
    font-family: var(--font2);
    font-size: 20px;
    color: var(--text-primary-color);
    margin: 0 0 8px 0;
}

.shop-empty-state p {
    font-family: var(--font1);
    font-size: 14px;
    color: var(--text-secondary-color);
    margin: 0 0 20px 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.shop-empty-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: var(--sigcolor);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.shop-empty-reset-btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   PAGINATION SECTION
   ========================================================================== */
.shop-pagination-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.shop-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-page-item {
    display: inline-flex;
}

.shop-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    font-family: var(--font1);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.shop-page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--sigcolor);
    color: var(--sigcolor);
    background-color: #f8fafc;
}

.shop-page-btn.active {
    background-color: var(--sigcolor);
    color: #ffffff;
    border-color: var(--sigcolor);
    box-shadow: 0 2px 8px rgba(1, 70, 97, 0.25);
    cursor: default;
}

.shop-page-btn.disabled {
    color: #cbd5e1;
    border-color: #f1f5f9;
    background-color: #f8fafc;
    cursor: not-allowed;
    pointer-events: none;
}

.shop-page-ellipsis {
    width: 32px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    user-select: none;
}

/* ==========================================================================
   MOBILE OFFCANVAS DRAWER & BACKDROP OVERLAY
   ========================================================================== */
.shop-filter-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shop-filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .shop-layout {
        display: block;
    }

    /* Minimal Compact Mobile Toolbar: Single Row & Low Height */
    .shop-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 6px 12px;
        min-height: 42px;
        height: 42px;
        margin-bottom: 14px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }

    .toolbar-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .mobile-filter-trigger-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 30px;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-primary-color);
        background: #f8fafc;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        flex-shrink: 0;
        transition: all 0.15s ease;
    }

    .mobile-filter-trigger-btn:hover {
        border-color: var(--sigcolor);
        color: var(--sigcolor);
    }

    .mobile-filter-trigger-btn svg {
        width: 14px;
        height: 14px;
    }

    .filter-badge-count {
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 10px;
        font-weight: 700;
        border-radius: 8px;
        line-height: 16px;
        background-color: var(--sigcolor);
        color: #ffffff;
    }

    .toolbar-results-count {
        font-size: 12px;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
        margin-left: 2px;
    }

    .count-desktop-text {
        display: none !important;
    }

    .count-mobile-text {
        display: inline !important;
        font-weight: 500;
    }

    .count-mobile-text strong {
        color: var(--text-primary-color);
        font-weight: 700;
    }

    .toolbar-right {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .sort-select-wrap {
        display: flex;
        align-items: center;
    }

    .sort-label {
        display: none !important;
    }

    .sort-select {
        height: 30px;
        padding: 0 22px 0 8px;
        font-size: 11.5px;
        font-weight: 500;
        color: var(--text-primary-color);
        background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 7px center;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        max-width: 125px;
        cursor: pointer;
        outline: none;
    }

    .sort-select:focus {
        border-color: var(--sigcolor);
    }

    /* Transform Sidebar into Offcanvas Drawer */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 330px;
        max-width: 88vw;
        height: 100vh;
        z-index: 9999;
        border-radius: 0;
        border: none;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
        transform: translateX(-100%);
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }

    .shop-sidebar.drawer-open {
        transform: translateX(0);
    }

    .sidebar-header-desktop {
        display: none;
    }

    /* Drawer Header */
    .drawer-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        background: #ffffff;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .drawer-header-title {
        font-family: var(--font2);
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary-color);
        text-transform: uppercase;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .drawer-close-btn {
        background: none;
        border: none;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #64748b;
        cursor: pointer;
        transition: background-color 0.15s ease;
    }

    .drawer-close-btn:hover {
        background-color: #f1f5f9;
        color: #0f172a;
    }

    /* Drawer Scrollable Body */
    .shop-sidebar-inner {
        flex: 1;
        overflow-y: auto;
        padding: 16px 20px;
        -webkit-overflow-scrolling: touch;
    }

    /* Drawer Footer */
    .drawer-footer-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 20px;
        background: #ffffff;
        border-top: 1px solid #f0f0f0;
        flex-shrink: 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    }

    .drawer-apply-btn {
        flex: 2;
        height: 44px;
        background: var(--sigcolor);
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-family: var(--font1);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .drawer-clear-btn {
        flex: 1;
        height: 44px;
        background: #f8fafc;
        color: #64748b;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-family: var(--font1);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .shop-page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 12.5px;
    }
}

@media (max-width: 420px) {
    .shop-toolbar {
        padding: 5px 8px;
        gap: 5px;
    }

    .mobile-filter-trigger-btn {
        padding: 0 7px;
        font-size: 11px;
        gap: 4px;
    }

    .toolbar-results-count {
        font-size: 11px;
    }

    .sort-select {
        max-width: 112px;
        font-size: 11px;
        padding: 0 18px 0 6px;
    }
}