/* ==========================================================================
   MEDSUGGEST - SHOP CATALOG RESPONSIVE DESIGN SYSTEM
   Modern, Industry-Standard Healthcare eCommerce Styles
   Optimized for Desktop, Laptop, Tablet (iPad/Android), and Mobile Phones
   ========================================================================== */

:root {
    --shop-primary: #094e55;
    --shop-primary-light: #0f7c86;
    --shop-primary-dark: #063439;
    --shop-accent: #0e6b76;
    --shop-accent-hover: #0a4d55;
    --shop-secondary: #00b4d8;
    --shop-secondary-hover: #0096c7;
    --shop-dark: #1e293b;
    --shop-text: #334155;
    --shop-muted: #64748b;
    --shop-border: #e2e8f0;
    --shop-bg: #f8fafc;
    --shop-card-bg: #ffffff;
    --shop-radius: 14px;
    --shop-radius-sm: 8px;
    --shop-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shop-shadow-md: 0 6px 20px rgba(9, 78, 85, 0.07);
    --shop-shadow-lg: 0 16px 36px rgba(9, 78, 85, 0.12);
    --shop-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE WRAPPER & CONTAINER
   ========================================================================== */
.shop-main-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 70px;
}

.shop-hero-container,
.shop-body-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   1. TOP HERO BANNER
   ========================================================================== */
.shop-hero-banner {
    background: linear-gradient(135deg, #094e55 0%, #0c626b 60%, #12828d 100%);
    color: #ffffff;
    padding: 35px 0 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(9, 78, 85, 0.15);
    position: relative;
    overflow: hidden;
}

.shop-hero-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.shop-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--shop-transition);
}

.shop-breadcrumb a:hover {
    color: #ffd369;
}

.shop-hero-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.shop-hero-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* TRUST BADGES */
.shop-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

/* ==========================================================================
   2. HORIZONTAL QUICK CATEGORIES CHIP STRIP
   ========================================================================== */
.shop-quick-categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.shop-quick-categories-bar::-webkit-scrollbar {
    height: 4px;
}

.shop-quick-categories-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.quick-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--shop-border);
    color: #475569;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--shop-transition);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.quick-cat-chip:hover {
    background: #f1f5f9;
    color: var(--shop-primary);
    border-color: #cbd5e1;
}

.quick-cat-chip.active {
    background: var(--shop-primary);
    color: #ffffff;
    border-color: var(--shop-primary);
    box-shadow: 0 4px 12px rgba(9, 78, 85, 0.25);
}

.quick-cat-chip .chip-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
}

.quick-cat-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   3. CATALOG MAIN GRID LAYOUT
   ========================================================================== */
.shop-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
}

/* ==========================================================================
   4. SIDEBAR FILTERS (DESKTOP) & MOBILE DRAWER
   ========================================================================== */
.shop-sidebar {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 22px;
    box-shadow: var(--shop-shadow-sm);
    position: sticky;
    top: 20px;
}

.mobile-drawer-header,
.mobile-drawer-footer {
    display: none;
}

.shop-drawer-overlay {
    display: none;
}

.filter-section {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--shop-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Search input */
.sidebar-search-box {
    position: relative;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--shop-dark);
    outline: none;
    transition: var(--shop-transition);
}

.sidebar-search-input:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(9, 78, 85, 0.12);
}

.sidebar-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-search-btn:hover {
    color: var(--shop-primary);
}

/* Category Checkboxes */
.category-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

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

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

.cat-filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    padding: 5px 6px;
    border-radius: 6px;
    transition: var(--shop-transition);
}

.cat-filter-label:hover {
    background: #f1f5f9;
    color: var(--shop-dark);
}

.cat-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.cat-checkbox-wrap span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-checkbox-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--shop-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.cat-count-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Dosage Form Pills */
.form-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.type-pill-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--shop-transition);
}

.type-pill-btn:hover,
.type-pill-btn.active {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #ffffff;
}

/* Price Inputs */
.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.price-input {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: var(--shop-transition);
}

.price-input:focus {
    border-color: var(--shop-primary);
}

.btn-price-apply {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--shop-transition);
}

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

/* Reset Button */
.btn-clear-all {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #ef4444;
    padding: 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--shop-transition);
}

.btn-clear-all:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ==========================================================================
   5. TOOLBAR & SORTING (RESPONSIVE)
   ========================================================================== */
.shop-toolbar {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    gap: 12px;
}

.btn-mobile-filter-trigger {
    display: none;
}

.results-count {
    font-size: 14px;
    color: var(--shop-muted);
}

.results-count strong {
    color: var(--shop-dark);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shop-muted);
    white-space: nowrap;
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--shop-dark);
    font-weight: 600;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    transition: var(--shop-transition);
}

.sort-select:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(9, 78, 85, 0.12);
}

/* ==========================================================================
   6. PRODUCTS CATALOG GRID (RESPONSIVE)
   ========================================================================== */
.products-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.product-item-card {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--shop-transition);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.product-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shop-shadow-md);
    border-color: #cbd5e1;
}

/* CARD BADGES */
.card-badge-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-right: 40px;
    z-index: 2;
    min-height: 22px;
}

.discount-pill {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.15);
    white-space: nowrap;
}

.discount-pill.hot {
    background: #ef4444;
}

.rx-pill {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

/* IMAGE CONTAINER */
.product-card-img-wrap {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.product-card-img-wrap img {
    max-width: 100%;
    max-height: 155px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-item-card:hover .product-card-img-wrap img {
    transform: scale(1.05);
}

/* CARD DETAILS */
.product-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand-tag {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--shop-dark);
    line-height: 1.35;
    height: 39px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.product-card-title a:hover {
    color: var(--shop-accent);
}

.product-salt-tag {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PRICING */
.card-price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.selling-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--shop-accent);
}

.mrp-price {
    font-size: 13px;
    color: var(--shop-muted);
    text-decoration: line-through;
}

/* STOCK STATUS */
.card-stock-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 12px;
}

.card-stock-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ACTION BUTTONS */
.card-action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-card-details {
    flex: 1;
    background: #f1f5f9;
    color: var(--shop-dark);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--shop-transition);
}

.btn-card-details:hover {
    background: #e2e8f0;
    color: var(--shop-dark);
}

.btn-card-buy {
    flex: 1.2;
    background: linear-gradient(135deg, #0e6b76 0%, #00b4d8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 107, 118, 0.25);
    transition: var(--shop-transition);
}

.btn-card-buy:hover {
    background: linear-gradient(135deg, #0a4d55 0%, #0099b8 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(14, 107, 118, 0.38);
    transform: translateY(-1px);
}

.btn-card-add-cart {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--shop-transition);
    flex-shrink: 0;
}

.btn-card-add-cart:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
}

/* EMPTY STATE */
.empty-catalog-state {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--shop-radius);
    padding: 50px 20px;
    text-align: center;
    color: var(--shop-muted);
}

.empty-catalog-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.empty-catalog-state h4 {
    color: var(--shop-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

/* ==========================================================================
   7. PAGINATION (RESPONSIVE)
   ========================================================================== */
.shop-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    overflow-x: auto;
    padding: 4px;
}

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

.shop-pagination-wrap .page-item .page-link {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: var(--shop-dark);
    padding: 8px 13px;
    font-size: 13.5px;
    font-weight: 600;
    background: #ffffff;
    text-decoration: none;
    transition: var(--shop-transition);
}

.shop-pagination-wrap .page-item.active .page-link {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #ffffff;
}

.shop-pagination-wrap .page-item .page-link:hover {
    background: #f1f5f9;
}

.shop-pagination-wrap .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* ==========================================================================
   8. QUICK ORDER POPUP MODAL (RESPONSIVE)
   ========================================================================== */
.shop-order-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 15px;
}

.shop-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.shop-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--shop-transition);
}

/* ==========================================================================
   9. ACTIVE FILTER CHIPS ROW
   ========================================================================== */
.shop-active-filters-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid var(--shop-border);
}

.active-filter-label {
    font-weight: 700;
    color: var(--shop-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--shop-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.active-tag a {
    color: #ef4444;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.15s;
}

.active-tag a:hover {
    transform: scale(1.2);
}

.clear-all-link {
    color: #ef4444;
    font-weight: 700;
    font-size: 12px;
    text-decoration: underline;
    margin-left: auto;
}

/* ==========================================================================
   ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ==========================================================================
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. TABLET SCREENS (768px to 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .shop-hero-banner {
        padding: 26px 0 22px;
        margin-bottom: 22px;
    }

    .shop-hero-title {
        font-size: 25px;
    }

    .shop-hero-desc {
        font-size: 13.5px;
        margin-bottom: 16px;
    }

    .shop-trust-pills {
        gap: 8px;
    }

    .trust-pill {
        font-size: 11.5px;
        padding: 5px 12px;
    }

    /* Off-canvas Filter Drawer on Tablet & Mobile */
    .shop-grid-layout {
        display: block;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -330px;
        width: 320px;
        max-width: 86vw;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        padding: 0;
        border-radius: 0;
        border: none;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .shop-sidebar.active {
        left: 0;
    }

    /* Drawer Header */
    .mobile-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: var(--shop-primary);
        color: #ffffff;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .mobile-drawer-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-drawer-close {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        transition: var(--shop-transition);
    }

    .btn-drawer-close:hover {
        background: rgba(255, 255, 255, 0.35);
    }

    .shop-sidebar-content-inner {
        padding: 20px;
        flex-grow: 1;
        overflow-y: auto;
    }

    /* Drawer Footer */
    .mobile-drawer-footer {
        display: flex;
        gap: 10px;
        padding: 14px 20px;
        background: #ffffff;
        border-top: 1px solid var(--shop-border);
        position: sticky;
        bottom: 0;
        z-index: 20;
    }

    .btn-drawer-apply {
        flex: 1.5;
        background: var(--shop-accent);
        color: #ffffff;
        border: none;
        padding: 10px;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--shop-transition);
    }

    .btn-drawer-apply:hover {
        background: var(--shop-accent-hover);
    }

    .btn-drawer-reset {
        flex: 1;
        background: #f1f5f9;
        color: #ef4444;
        border: 1px solid #cbd5e1;
        padding: 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    /* Drawer Backdrop Overlay */
    .shop-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1040;
    }

    .shop-drawer-overlay.active {
        display: block;
    }

    /* Toolbar on Tablet */
    .shop-toolbar {
        padding: 12px 16px;
        margin-bottom: 18px;
    }

    .btn-mobile-filter-trigger {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: var(--shop-primary);
        color: #ffffff;
        border: none;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--shop-transition);
    }

    .btn-mobile-filter-trigger:hover {
        background: var(--shop-primary-light);
    }

    .active-filter-indicator {
        background: #ff7a00;
        color: #ffffff;
        font-size: 10.5px;
        padding: 1px 6px;
        border-radius: 10px;
        font-weight: 800;
    }

    /* 3-column product grid on Tablet */
    .products-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 30px;
    }

    .product-card-img-wrap {
        height: 160px;
    }

    .product-card-img-wrap img {
        max-height: 140px;
    }
}

/* --------------------------------------------------------------------------
   B. LARGE PHONES & SMALL TABLETS (576px to 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .shop-main-wrapper {
        padding-bottom: 50px;
    }

    .shop-hero-banner {
        padding: 22px 0 18px;
        margin-bottom: 18px;
    }

    .shop-hero-container,
    .shop-body-container {
        padding: 0 14px;
    }

    .shop-hero-title {
        font-size: 22px;
    }

    .shop-hero-desc {
        font-size: 13px;
        margin-bottom: 14px;
    }

    /* Toolbar Stacked / Action Row */
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 10px;
    }

    .toolbar-actions-row {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .btn-mobile-filter-trigger {
        flex: 1;
        justify-content: center;
        padding: 9px 12px;
    }

    .sort-wrapper {
        flex: 1;
    }

    .sort-label {
        display: none;
    }

    .sort-select {
        width: 100%;
        padding: 9px 12px;
        font-size: 13px;
    }

    .results-count {
        font-size: 12.5px;
        text-align: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 6px;
    }

    /* 2-column grid on Small Tablets / Large Phones */
    .products-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 25px;
    }

    .product-item-card {
        padding: 12px 10px;
    }

    .product-card-img-wrap {
        height: 140px;
        margin-bottom: 10px;
    }

    .product-card-img-wrap img {
        max-height: 120px;
    }

    .product-card-title {
        font-size: 13px;
        height: 36px;
    }

    .selling-price {
        font-size: 16px;
    }

    .mrp-price {
        font-size: 12px;
    }
}

/* --------------------------------------------------------------------------
   C. STANDARD & COMPACT SMARTPHONES (<= 575px)
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .shop-hero-banner {
        padding: 18px 0 16px;
        margin-bottom: 14px;
    }

    .shop-hero-container,
    .shop-body-container {
        padding: 0 10px;
    }

    .shop-breadcrumb {
        font-size: 11.5px;
        gap: 5px;
        margin-bottom: 8px;
    }

    .shop-hero-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .shop-hero-desc {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    /* Trust pills horizontal scroll on mobile */
    .shop-trust-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shop-trust-pills::-webkit-scrollbar {
        display: none;
    }

    .trust-pill {
        font-size: 11px;
        padding: 4px 10px;
        flex-shrink: 0;
    }

    .shop-quick-categories-bar {
        margin-bottom: 14px;
        gap: 6px;
    }

    .quick-cat-chip {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* 2-Column Catalog Grid (Apollo / 1mg standard) */
    .products-catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 20px;
    }

    .product-item-card {
        padding: 10px 8px;
        border-radius: 12px;
    }

    .card-badge-row {
        margin-bottom: 6px;
        min-height: 18px;
    }

    .discount-pill {
        font-size: 9.5px;
        padding: 2px 5px;
    }

    .rx-pill {
        font-size: 9px;
        padding: 1px 4px;
    }

    .product-card-img-wrap {
        height: 125px;
        padding: 6px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .product-card-img-wrap img {
        max-height: 110px;
    }

    .product-brand-tag {
        font-size: 9.5px;
        margin-bottom: 2px;
    }

    .product-card-title {
        font-size: 12.5px;
        line-height: 1.3;
        height: 33px;
        margin-bottom: 3px;
    }

    .product-salt-tag {
        font-size: 10.5px;
        margin-bottom: 6px;
    }

    .card-price-container {
        margin-bottom: 6px;
        gap: 5px;
    }

    .selling-price {
        font-size: 15px;
    }

    .mrp-price {
        font-size: 11px;
    }

    .card-stock-row {
        font-size: 10.5px;
        margin-bottom: 8px;
        gap: 4px;
    }

    .card-stock-dot {
        width: 5px;
        height: 5px;
    }

    /* Responsive 3 Action Buttons */
    .card-action-btns {
        gap: 4px;
    }

    .btn-card-details {
        padding: 6px 3px;
        font-size: 10.5px;
        border-radius: 6px;
        flex: 1;
    }

    .btn-card-add-cart {
        padding: 6px 7px;
        font-size: 12px;
        border-radius: 6px;
        flex: 0 0 28px;
    }

    .btn-card-buy {
        padding: 6px 4px;
        font-size: 10.5px;
        border-radius: 6px;
        flex: 1.1;
    }

    /* Pagination */
    .shop-pagination-wrap .page-item .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Order Modal Mobile */
    .shop-modal-box {
        padding: 18px 14px;
        border-radius: 14px;
        width: 95%;
    }
}

/* --------------------------------------------------------------------------
   D. EXTRA-SMALL MOBILE PHONES (<= 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .products-catalog-grid {
        gap: 6px !important;
    }

    .product-item-card {
        padding: 8px 6px;
    }

    .product-card-img-wrap {
        height: 115px;
    }

    .product-card-img-wrap img {
        max-height: 100px;
    }

    .product-card-title {
        font-size: 11.5px;
        height: 31px;
    }

    .selling-price {
        font-size: 14px;
    }

    .btn-card-details,
    .btn-card-buy {
        font-size: 10px;
        padding: 5px 2px;
    }

    .btn-card-add-cart {
        flex: 0 0 26px;
        padding: 5px;
        font-size: 11px;
    }
}
