/* ==========================================================================
   🏠 BASE & GLOBAL CONTAINER STYLES
   ========================================================================== */

.shop-container {
    max-width: 100%;
    align-items: center;
    padding: 30px 20px;
    background-color: #ffffff;
}

.shop-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.top-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 1400px;
    margin: 0 auto 40px auto !important;
    padding: 0 10px; 
    box-sizing: border-box;
}

.breadcrumb-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.breadcrumb {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    text-transform: capitalize !important;
    margin: 0 !important;
    letter-spacing: 0.3px;
}

.gender {
    font-weight: 700;
    color: #000000;
}

.header-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.header-group h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif !important;
    font-size: 42px !important; 
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.header-group .description {
    max-width: 650px !important;
    margin: 0 auto !important;
    color: #64748b !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.shop-header {
    text-align: center;
    margin-bottom: 50px;
}

.shop-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.shop-header p {
    color: #777;
    font-size: 1rem;
}

.hero-section {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fff;
}

.hero-content h1 {
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
}

/* ==========================================================================
   🔍 SEARCH & GRID CONFIGURATIONS
   ========================================================================== */

.products-wrapper-grid-shop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 1cap;
}

.products-wrapper-grid-search {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 1cap;
}

.search-results-page a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.search-results-page a:hover {
    background-color: #ddd;
}

/* ==========================================================================
   🛍️ PRODUCT CARDS & LAYOUT WRAPPERS
   ========================================================================== */

.shop-main-layout {
    display: flex;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-main {
    flex: 1;
}

.product-card,
.product-card-gender,
.best-sellers .product-card {
    background: #ffffff ;
    border: 1px solid #e2e8f0 ;
    border-radius: 16px ;
    padding: 12px ;
    display: flex ;
    flex-direction: column ;
    justify-content: space-between ;
    box-sizing: border-box ;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    position: relative;
    overflow: visible;
}

.product-card:hover,
.product-card-gender:hover,
.best-sellers .product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px -5px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.product-image {
    width: 100% ;
    aspect-ratio: 1 / 1 ;
    background-color: #f8fafc !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.product-image img,
.best-sellers .product-card img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover .product-image img {
    transform: scale(1.05) !important;
}

.product-info {
    padding-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.product-info p {
    font-size: 10px;
    gap: 10px;
}

.product-info h3 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.product-info h4 {
    font-size: 12px;
    padding: 10px 0px;
}

.product-card-desc {
    font-size: 10px !important;
    color: #64748b !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.product-action-block {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.product-action-block h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.rec-discover-btn {
    text-decoration: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    display: block !important;
}

.rec-discover-btn button,
.best-sellers .add-btn {
    width: 100% !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 12px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.rec-discover-btn button:hover,
.best-sellers .add-btn:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   🏠 HOME PAGE - BEST SELLERS SECTION
   ========================================================================== */

.best-sellers {
    padding: 30px;
    background-color: #ffffff;
}

.best-sellers .section-title {
    padding: 0 20px;
}

.best-sellers .best-sellers-shelf-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.best-sellers .product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    display: block;
}

/* ==========================================================================
   🖼️ MARKETING CARDS, CAROUSELS, AND BANNERS
   ========================================================================== */

.collection-row {
    display: flex;
    gap: 24px;
    width: 100%;
    margin-bottom: 30px;
}

.collection-card {
    flex: 1;
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
}

.section-container {
    margin-bottom: 60px;
}

.category-grid {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.cat-card-running, .cat-card-casual, .cat-card-training, .cat-card-limited {
    height: 210px;
    width: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cat-card-running  { background-color: #d40f0f; }
.cat-card-casual   { background-color: #000000; }
.cat-card-training { background-color: #000000; }
.cat-card-limited  { background-color: #94d008c0; }

.product-img-box {
    background-color: #f8f8f8;
    border-radius: 24px;
    padding: 30px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.summer-sale-banner {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border-radius: 24px;
    padding: 50px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 40px;
}

.sale-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.collection-banners {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
}

.banner {
    flex: 1;
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.banner:hover img {
    transform: scale(1.05);
}

.banner-label {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.categories-section {
    padding: 0 50px;
    background-color: #ffffff;
}

.category-label {
    position: absolute;
    padding-left: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.category-label p {
    font-size: 8px;
    font-weight: 400;
}

.no-products {
    height: 800px;
    width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 150px 260px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    font-size: 16px;
    font-weight: 600;
}

.product-grid-shop.main-layout {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
}

.shop-products-section {
    padding: 20px;
}

.related-products-section {
    padding-left: 25px;
}

/* ==========================================================================
   🧩 MODAL & FORM STYLES
   ========================================================================== */

.custom-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.4); display: none; justify-content: center; align-items: center; z-index: 99999 !important; }
.custom-modal-content { background-color: #ffffff; width: 640px; max-height: 90vh; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; overflow: hidden; font-family: 'Poppins', sans-serif; }
.modal-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; background-color: #ffffff; }
.modal-header h2 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0; text-transform: capitalize; }
.close-modal-btn { background: none; border: none; font-size: 22px; color: #a0aec0; cursor: pointer; transition: color 0.2s; }
.close-modal-btn:hover { color: #4a5568; }
.modal-form-body { padding: 0 24px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-form-body::-webkit-scrollbar { width: 6px; }
.modal-form-body::-webkit-scrollbar-track { background: #ffffff; }
.modal-form-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.form-row { display: flex; gap: 16px; }
.split-row .form-group { flex: 1; }
.split-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dynamic-spec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 700; color: #a0aec0; letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input, .form-group select { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #2d3748; background-color: #ffffff; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus { border-color: #e6a800; }

.image-drag-dropzone { position: relative; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 25px 20px; text-align: center; background-color: #ffffff; cursor: pointer; overflow: hidden; transition: background 0.2s; }
.image-drag-dropzone:hover { background-color: #f8fafc; }
.hidden-file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 50 !important; }
.dropzone-inner-ui { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; z-index: 5; pointer-events: none; }

.images-preview-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.preview-image-container { position: relative; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.preview-image-container img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove-badge { position: absolute; top: 4px; right: 4px; background: rgba(239, 68, 68, 0.9); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; font-weight: 700; transition: transform 0.2s; z-index: 60; }
.preview-remove-badge:hover { transform: scale(1.15); background: rgb(239, 68, 68); }

.camera-icon { font-size: 24px; margin-bottom: 4px; }
.main-drop-text { font-size: 13px; color: #4a5568; margin: 0; font-weight: 500; }
.sub-drop-text { font-size: 11px; color: #a0aec0; margin: 0; }
.modal-action-footer { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 12px; padding-top: 16px; }
.btn-modal-cancel { background: none; border: none; color: #718096; font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.2s; }
.btn-modal-cancel:hover { color: #2d3748; }
.btn-modal-save { background-color: #e6a800; color: #ffffff; border: none; padding: 12px 36px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 6px rgba(230, 168, 0, 0.15); transition: background-color 0.2s; text-transform: capitalize; }
.btn-modal-save:hover { background-color: #cc9500; }

.variants-section { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.section-main-label { font-size: 11px; font-weight: 700; color: #a0aec0; text-transform: uppercase; }
.variants-grid-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }
.variant-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; background: #ffffff; display: flex; flex-direction: column; gap: 12px; position: relative; }
.variant-card-header { display: flex; justify-content: space-between; align-items: center; }
.color-input-wrapper { display: flex; align-items: center; gap: 8px; }
.color-picker-circle { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #cbd5e1; cursor: pointer; padding: 0; overflow: hidden; background-color: #1a202c; }
.color-picker-circle::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-circle::-webkit-color-swatch { border: none; border-radius: 50%; }
.color-name-input { border: none !important; font-weight: 700; font-size: 14px; width: 100px; padding: 0 !important; color: #1a1a1a; }
.color-name-input:focus { border: none !important; outline: none !important; }
.btn-remove-card { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 12px; font-size: 12px; color: #4a5568; cursor: pointer; }
.sizes-stock-container { display: flex; flex-direction: column; gap: 8px; max-height: 120px; overflow-y: auto; padding-right: 4px; }
.size-row-title { font-size: 11px; font-weight: 600; color: #718096; margin: 0; }
.size-entry-row { display: flex; align-items: center; gap: 8px; }
.size-entry-row span { font-size: 12px; color: #718096; min-width: 28px; }
.size-input-small, .stock-input-small { width: 60px !important; text-align: center; padding: 4px 6px !important; border-radius: 8px !important; font-size: 12px !important; }
.btn-remove-size-row { background: none; border: 1px solid #cbd5e1; border-radius: 6px; color: #a0aec0; cursor: pointer; width: 28px; height: 26px; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.btn-add-size-row { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: #4a5568; cursor: pointer; width: max-content; }
.btn-add-variant-group { background: none; border: 1px dashed #cbd5e1; border-radius: 20px; padding: 8px 16px; font-size: 12px; color: #718096; cursor: pointer; width: max-content; transition: background 0.2s; }
.btn-add-variant-group:hover { background: #f7fafc; }

/* ==========================================================================
   📄 PAGINATION
   ========================================================================== */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.current-page {
    font-size: 14px;
    font-weight: 600;
}

.page-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    font-size: 12px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.page-btn:hover {
    background-color: #f4f4f4;
}

/* ==========================================================================
   🔍 OPTIMIZED FILTER SECTION & SIDEBAR LAYOUT
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: 200px 1fr !important;
    gap: 16px !important;
}

.sidebar-wrapper {
    flex: 0 0 200px !important;
}

.filter-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.filter-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.clear-all-btn {
    font-size: 10px;
    font-weight: 700;
    color: #ef4444;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.filter-box {
    margin-bottom: 12px;
}

.filter-box:last-child {
    margin-bottom: 0;
}

.filter-box h4 {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-box label:hover {
    color: #0f172a;
}

.filter-box input[type="checkbox"],
.filter-box input[type="radio"] {
    width: 13px;
    height: 13px;
    accent-color: #0f172a;
}

  .back-to-shop {
    font-size: 12px;
    font-weight: 600;
    color: var(--co-text-muted);
    text-decoration: none;
  }

/* ==========================================================================
   📱 RESPONSIVE BREAKPOINT OVERRIDES
   ========================================================================== */

@media screen and (max-width: 968px) {
    .shop-main-layout {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .product-grid {
        grid-template-columns: 150px 1fr !important;
        gap: 12px !important;
    }

    .sidebar-wrapper {
        flex: 0 0 150px !important;
        width: 150px !important;
        margin: 0 !important;
    }

    .products-wrapper-grid-shop,
    .products-wrapper-grid-search,
    .best-sellers .best-sellers-shelf-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: 130px 1fr !important;
        gap: 10px !important;
    }

    .sidebar-wrapper {
        flex: 0 0 130px !important;
        width: 130px !important;
    }

    .filter-section {
        padding: 8px !important;
        font-size: 11px !important;
    }

    .filter-box h4 {
        font-size: 10px !important;
    }

    .filter-box label {
        font-size: 10px !important;
        gap: 4px !important;
    }

    .products-wrapper-grid-shop {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .products-wrapper-grid-search {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .best-sellers .best-sellers-shelf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }

    /* Smaller card padding, font sizes, and image boxes for 768px and below */
    .product-card,
    .product-card-gender,
    .best-sellers .product-card {
        border-radius: 10px !important;
        padding: 8px !important;
    }

    .product-image {
        padding: 8px !important;
        border-radius: 8px !important;
    }

    .product-info h3 {
        font-size: 12px !important;
        margin: 0 0 4px 0 !important;
    }

    .product-card-desc {
        font-size: 9px !important;
        margin-bottom: 8px !important;
    }

    .product-action-block h4 {
        font-size: 11px !important;
    }

    .rec-discover-btn button,
    .best-sellers .add-btn {
        padding: 6px 8px !important;
        font-size: 9px !important;
        border-radius: 6px !important;
    }
}

@media screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: 100px 1fr !important;
        gap: 6px !important;
    }

    .sidebar-wrapper {
        flex: 0 0 100px !important;
        width: 100px !important;
    }

    .filter-section {
        padding: 5px !important;
        font-size: 9px !important;
    }

    .filter-header h3 {
        font-size: 10px !important;
    }

    .clear-all-btn {
        font-size: 8px !important;
    }

    .products-wrapper-grid-shop,
    .products-wrapper-grid-search,
    .best-sellers .best-sellers-shelf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* Extra compact product cards for very small screen widths */
    .product-card,
    .product-card-gender,
    .best-sellers .product-card {
        border-radius: 8px !important;
        padding: 6px !important;
    }

    .product-image {
        padding: 6px !important;
        border-radius: 6px !important;
    }

    .product-info h3 {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .product-card-desc {
        display: none !important;
    }

    .product-action-block {
        gap: 6px !important;
    }

    .product-action-block h4 {
        font-size: 10px !important;
    }

    .rec-discover-btn button,
    .best-sellers .add-btn {
        padding: 5px 6px !important;
        font-size: 8px !important;
        border-radius: 4px !important;
    }
}


@media screen and (max-width: 390px) {
    .product-grid {
        grid-template-columns: 100px 1fr !important;
        gap: 6px !important;
    }

    .sidebar-wrapper {
        flex: 0 0 100px !important;
        width: 100px !important;
    }

    .filter-section {
        padding: 5px !important;
        font-size: 9px !important;
    }

    .filter-header h3 {
        font-size: 10px !important;
    }

    .clear-all-btn {
        font-size: 8px !important;
    }

    .products-wrapper-grid-shop,
    .products-wrapper-grid-search,
    .best-sellers .best-sellers-shelf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* Extra compact product cards for very small screen widths */
    .product-card,
    .product-card-gender,
    .best-sellers .product-card {
        border-radius: 8px !important;
        padding: 6px !important;
    }

    .product-image {
        padding: 6px !important;
        border-radius: 6px !important;
    }

    .product-info h3 {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .product-card-desc {
        display: none !important;
    }

    .product-action-block {
        gap: 6px !important;
    }

    .product-action-block h4 {
        font-size: 10px !important;
    }

    .rec-discover-btn button,
    .best-sellers .add-btn {
        padding: 5px 6px !important;
        font-size: 8px !important;
        border-radius: 4px !important;
    }
}