/* ═══════════════════════════════════════
   SALSABIL — Catalog Page
   ═══════════════════════════════════════ */

.catalog-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px var(--content-padding-x, 40px) 60px;
    box-sizing: border-box;
}

/* ── Breadcrumb ── */
.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.catalog-breadcrumb a {
    color: #111;
    opacity: 0.5;
    text-decoration: none;
    transition: opacity .15s;
}
.catalog-breadcrumb a:hover { opacity: 0.8; }
.catalog-breadcrumb-sep { color: #111; opacity: 0.5; }
.catalog-breadcrumb-current { color: #111; font-weight: 600; }

/* ── PAGE TITLE ROW ── */
.catalog-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.catalog-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--baseblack-500, #1a202c);
    margin: 0;
    line-height: 1.1;
}
.catalog-title-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.catalog-count {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    opacity: 0.4;
    white-space: nowrap;
}
/* Sort pill */
.catalog-sort-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 12px 12px 16px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
    cursor: pointer;
    user-select: none;
    transition: box-shadow .15s;
    white-space: nowrap;
}
.catalog-sort-pill:hover { box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.08); }
.catalog-sort-pill-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    letter-spacing: 0.26px;
    line-height: normal;
}
.catalog-sort-pill-text strong { font-weight: 700; }
.catalog-sort-pill-chevron {
    width: 16px;
    height: 16px;
    color: #4a5568;
    flex-shrink: 0;
    transition: transform .2s;
}
.catalog-sort-pill.open .catalog-sort-pill-chevron { transform: rotate(180deg); }

/* Sort dropdown */
.catalog-sort-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px;
    z-index: 100;
    flex-direction: column;
}
.catalog-sort-pill.open .catalog-sort-dropdown { display: flex; }
.catalog-sort-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: none;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-align: left;
    cursor: pointer;
    transition: background .1s;
}
.catalog-sort-option:hover { background: #f7f7f7; }
.catalog-sort-option.active { color: var(--teal-500, #02a0b4); background: var(--teal-50, #e0f5f8); }

/* ── LAYOUT ── */
.catalog-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.catalog-sidebar {
    position: sticky;
    top: 24px;
    flex: 0 0 437px;
    width: 437px;
}

/* Mobile filter toggle */
.catalog-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 14px 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--baseblack-500);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    margin-bottom: 0;
}
.catalog-filter-toggle:hover { border-color: var(--teal-500); }
.catalog-filter-toggle.open { border-color: var(--teal-500); }
.catalog-filter-toggle-left { display: flex; align-items: center; gap: 10px; }
.catalog-filter-chevron { transition: transform .2s; color: var(--grey-500); flex-shrink: 0; }
.catalog-filter-toggle.open .catalog-filter-chevron { transform: rotate(180deg); color: var(--teal-500); }

/* Sidebar panel */
.catalog-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Sidebar Section ── */
.sb-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
}

.sb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 24px 24px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.48px;
    line-height: 1.1;
}

.sb-section-label { flex: 1; text-align: left; }

.sb-chevron {
    width: 32px;
    height: 32px;
    color: #111;
    flex-shrink: 0;
    transition: transform .2s;
}
.sb-chevron-open {
    transform: rotate(0deg);
}
.sb-section-header[aria-expanded="false"] .sb-chevron {
    transform: rotate(-90deg);
}

.sb-section-body {
    padding: 0 24px 24px;
    display: block;
}
/* Divider inside sections */
.sb-section-body::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #eee;
    margin-bottom: 24px;
}
.sb-section-body.sb-collapsed {
    display: none;
}

/* ── "Акции" special button ── */
.sb-sale-item {
    margin-bottom: 0;
}
.catalog-cat-sale-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px 12px 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 1000px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    height: 48px;
    box-sizing: border-box;
}
.catalog-cat-sale-btn svg { stroke: #ccc; transition: stroke .15s; }
.catalog-cat-sale-btn:hover { background: rgba(2,160,180,0.05); color: var(--teal-500); }
.catalog-cat-sale-btn:hover svg { stroke: var(--teal-500); }
.catalog-cat-sale-btn.active {
    border-color: var(--teal-500);
    color: var(--teal-500);
    background: transparent;
}
.catalog-cat-sale-btn.active svg { stroke: var(--teal-500); }

/* ── Category list ── */
.catalog-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.catalog-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px 12px 24px;
    border-radius: 1000px;
    cursor: pointer;
    transition: background .12s, color .12s;
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
}
.catalog-cat-item:hover {
    background: rgba(2,160,180,0.05);
    color: var(--teal-500);
}
.catalog-cat-item.active {
    border: 1px solid var(--teal-500);
    color: var(--teal-500);
    font-weight: 600;
}
.catalog-cat-item.active .cat-item-arrow { stroke: var(--teal-500); }
.catalog-cat-name { flex: 1; }
.cat-item-arrow {
    width: 24px;
    height: 24px;
    color: #000;
    flex-shrink: 0;
    transition: color .15s;
}
.cat-item-arrow path { stroke: #000; transition: stroke .15s; }
.catalog-cat-item:hover .cat-item-arrow,
.catalog-cat-item:hover .cat-item-arrow path { color: var(--teal-500); stroke: var(--teal-500); }
.catalog-cat-item.active .cat-item-arrow,
.catalog-cat-item.active .cat-item-arrow path { color: var(--teal-500); stroke: var(--teal-500); }

.catalog-cat-icon,
.catalog-cat-icon-placeholder,
.catalog-cat-count { display: none; }

/* ── Price filter ── */
.price-range-wrap {
    margin-bottom: 14px;
}
.price-range-track {
    position: relative;
    height: 4px;
    background: var(--grey-100);
    border-radius: 4px;
    margin: 12px 6px;
}
.price-range-fill {
    position: absolute;
    height: 4px;
    background: var(--teal-500);
    border-radius: 4px;
    left: 0;
    right: 0;
    pointer-events: none;
}
.price-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: transparent;
    outline: none;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}
.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--teal-500);
    box-shadow: 0 1px 6px rgba(0,150,177,.3);
    cursor: pointer;
    pointer-events: all;
    transition: border-color .15s, transform .15s;
    position: relative;
}
.price-range-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--teal-500);
    cursor: pointer;
}

.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-input-wrap {
    position: relative;
    flex: 1;
}
.price-input-new {
    width: 100%;
    height: 52px;
    padding: 12px 40px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 1000px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
    background: #fff;
}
.price-input-new:focus { border-color: var(--teal-500); box-shadow: 0 0 0 2px rgba(0,150,177,.1); }
.price-input-new::placeholder { color: var(--grey-300); }
.price-input-sym {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-400, #aaa);
    pointer-events: none;
}
.price-inputs-dash {
    font-size: 16px;
    font-weight: 600;
    color: var(--grey-300);
    flex-shrink: 0;
}
.price-filter-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.price-apply-btn {
    flex: 1;
    padding: 10px;
    background: var(--teal-500);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, background .15s;
}
.price-apply-btn:hover { background: var(--teal-600); }
.price-reset-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-500);
    cursor: pointer;
    transition: background .15s;
}
.price-reset-btn:hover { background: var(--grey-50); }

/* ── Color filter ── */
.color-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.color-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 12px 6px 12px 20px;
}
.color-cb {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #c2c2c2;
    cursor: pointer;
    accent-color: var(--teal-500);
    flex-shrink: 0;
}
.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}
.color-label {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.32px;
    flex: 1;
}
.color-count {
    display: none;
}

/* ═══════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════ */
.catalog-main {
    flex: 1;
    min-width: 0;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.products-grid .product-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

/* ── Product Card ── */
.product-card {
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.04);
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 16px 24px;
    position: relative;
}
.product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Card image area */
.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: none;
    border-radius: 8px;
}
.product-card-placeholder-text {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #9cb8c4;
    letter-spacing: 0.3px;
}

/* Badges */
.product-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: normal;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-hit  { background: var(--badge-hit-bg, #e65100); color: #fff; }
.badge-new  { background: var(--badge-new-bg, #02a0b4); color: #fff; }
.badge-sale { background: var(--badge-sale-bg, #dddd07); color: var(--baseblack-500, #1a202c); }

/* Wishlist button */
.product-card-wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s;
    z-index: 2;
    padding: 0;
    color: var(--grey-400, #bbb);
}
.product-card-wishlist:hover { transform: scale(1.12); color: var(--teal-500); }
.product-card-wishlist.liked { color: var(--teal-500); }
.product-card-wishlist .wishlist-icon { transition: fill .15s, stroke .15s; }
.product-card-wishlist:hover .wishlist-icon { stroke: var(--teal-500); }
.product-card-wishlist.liked .wishlist-icon { fill: var(--teal-500); stroke: var(--teal-500); }

/* Card info */
.product-card-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}
.product-card-category {
    font-size: 11px;
    font-weight: 800;
    color: #4a5568;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: .44px;
}
.product-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--baseblack-500, #1a202c);
    opacity: 0.9;
    letter-spacing: 0.26px;
    line-height: normal;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
}

/* Name + category group */
.product-card-text-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Rating row */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rating-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.rating-stars { display: none; }
.rating-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #4a5568;
    opacity: 0.9;
    line-height: normal;
}

/* Delivery badge */
.product-card-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
}
.delivery-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.delivery-text {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #38a169;
    opacity: 0.9;
    line-height: normal;
}
.delivery-dot { display: none; }

/* Meta group (rating + delivery) */
.product-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Price row with "+" button */
.product-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    gap: 6px;
}
.product-card-prices,
.product-card-price-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}
.price-old {
    font-size: 13px;
    font-weight: 500;
    color: #a0aec0;
    text-decoration: line-through;
    white-space: nowrap;
    line-height: normal;
    opacity: 0.9;
}
.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--teal-500, #02a0b4);
    white-space: nowrap;
    line-height: normal;
    letter-spacing: -0.4px;
    opacity: 0.9;
}

/* Small "+" add button */
.product-card-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: var(--teal-50, #e0f5f8);
    color: var(--teal-500, #02a0b4);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    align-self: stretch;
    transition: background .15s, transform .15s;
    padding: 0;
}
.product-card-add-btn:hover {
    background: var(--teal-500, #02a0b4);
    color: #fff;
    transform: scale(1.08);
}
.product-card-add-btn.in-cart {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(22,163,74,.3);
}

/* Keep hidden basket for JS compatibility */
.product-card-basket { display: none; }

/* ── PAGINATION ── */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    background: #fff;
    color: var(--baseblack-500);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.pag-btn:hover:not(:disabled) {
    border-color: var(--teal-500);
    color: var(--teal-500);
    background: var(--teal-50);
}
.pag-btn.active {
    background: var(--teal-500);
    border-color: var(--teal-500);
    color: #fff;
    cursor: default;
}
.pag-btn:disabled { opacity: .35; cursor: not-allowed; }
.pag-prev, .pag-next { min-width: 40px; padding: 0; }
.pag-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 40px;
    font-size: 16px;
    color: var(--grey-400, #aaa);
    user-select: none;
}

/* ── LOADING / EMPTY ── */
.catalog-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.skeleton-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--grey-100);
}
.skeleton-img {
    aspect-ratio: 1;
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
.skeleton-info { padding: 12px 14px 14px; }
.skeleton-line {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    margin-bottom: 8px;
}
.skeleton-line:last-child { margin-bottom: 0; width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--grey-500);
    grid-column: 1 / -1;
}
.catalog-empty svg { margin-bottom: 14px; opacity: .3; }
.catalog-empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.catalog-empty-text { font-size: 14px; }

/* ── Search banner ── */
.search-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--teal-50);
    border: 1px solid rgba(0,150,177,.2);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--baseblack-500);
    flex-wrap: wrap;
}
.search-banner svg { color: var(--teal-500); flex-shrink: 0; }
.search-banner span { flex: 1; }
.search-banner strong { font-weight: 700; }
.search-banner-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid rgba(0,150,177,.4);
    border-radius: 6px;
    background: transparent;
    color: var(--teal-500);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.search-banner-clear:hover { background: rgba(0,150,177,.1); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1200px) {
    .catalog-sidebar { flex: 0 0 320px; width: 320px; }
    .sb-section-header { font-size: 20px; padding: 20px; }
    .sb-section-body { padding: 20px; padding-top: 0; }
}
@media (max-width: 1000px) {
    .catalog-layout { gap: 24px; }
    .catalog-sidebar { flex: 0 0 280px; width: 280px; }
    .products-grid .product-card { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
    .catalog-skeleton { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { position: static; flex: none; width: 100%; }
    .catalog-filter-toggle { display: flex; }
    .catalog-sidebar-panel {
        display: none;
        margin-top: 10px;
        animation: fadeIn .18s ease;
    }
    .catalog-sidebar-panel.open { display: flex; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    .products-grid .product-card { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
    .products-grid { gap: 16px; }
    .catalog-skeleton { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 700px) {
    .catalog-page { padding: 16px 14px 48px; }
    .catalog-breadcrumb { font-size: 13px; gap: 8px; margin-bottom: 14px; }
    .catalog-title-row { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
    .catalog-heading { font-size: 24px; }
    .catalog-title-right { width: 100%; flex-wrap: wrap; gap: 10px; }
    .catalog-sort { width: 100%; }
    .catalog-sort-select { flex: 1; }
    .products-grid .product-card { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); }
    .products-grid { gap: 12px; }
    .catalog-skeleton { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-info { padding: 10px 10px 12px; }
    .product-card-name { font-size: 12px; }
    .price-current { font-size: 15px; }
    .product-card-add-btn { width: 32px; height: 32px; font-size: 18px; }
    .pag-btn { min-width: 36px; height: 36px; font-size: 13px; }
}
@media (max-width: 480px) {
    .catalog-page { padding: 14px 12px 40px; }
    .catalog-breadcrumb { font-size: 12px; gap: 6px; margin-bottom: 12px; }
    .catalog-heading { font-size: 22px; }
    .catalog-title-row { margin-bottom: 20px; gap: 10px; }
    .catalog-count { font-size: 12px; }
    .catalog-sort-pill { padding: 10px 12px; font-size: 12px; }
    .catalog-sort-pill-text { font-size: 12px; }

    /* Sidebar filter */
    .catalog-filter-toggle { padding: 12px 14px; font-size: 13px; }
    .sb-section-header { padding: 16px; font-size: 18px; }
    .sb-section-body { padding: 0 16px 16px; }
    .sb-section-body::before { margin-bottom: 16px; }
    .catalog-cat-item, .catalog-cat-sale-btn { font-size: 14px; padding: 10px 14px 10px 20px; height: 42px; }

    /* Products grid - 2 columns */
    .products-grid { gap: 10px; }
    .products-grid .product-card { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); padding: 10px 10px 16px; gap: 12px; }
    .product-card-info { gap: 14px; }
    .product-card-category { font-size: 10px; }
    .product-card-name { font-size: 12px; }
    .price-current { font-size: 16px; }
    .price-old { font-size: 12px; }
    .rating-text { font-size: 12px; }
    .delivery-text { font-size: 10px; }
    .product-card-add-btn { width: 32px; height: 32px; font-size: 18px; }
    .badge { font-size: 9px; padding: 6px 8px; }
    .product-card-badges { top: 14px; left: 14px; gap: 4px; }
    .product-card-wishlist { top: 14px; right: 14px; width: 28px; height: 28px; }

    /* Price range */
    .price-inputs-row { gap: 6px; }
    .price-input-new { height: 44px; font-size: 14px; padding: 10px 30px 10px 14px; }

    /* Color filter */
    .color-filter-item { padding: 10px 4px 10px 14px; }
    .color-label { font-size: 14px; }
}
@media (max-width: 360px) {
    .catalog-heading { font-size: 20px; }
    .products-grid .product-card { padding: 8px 8px 14px; }
    .price-current { font-size: 15px; }
}

/* Search input native clear */
#headerSearchInput::-webkit-search-cancel-button { display: none; }
#headerSearchInput::placeholder { color: var(--grey-300); }
