/* =============================================================
   HCS Custom Shop — Matches Elementor "Products Archive" design
   Brand: #2F3751 | Border: #54595F | Sale-del: #DF0000
   Font: Outfit (Google)
   ============================================================= */

/* ══════════════════════════════════════════════════════════
   ELEMENTOR / HELLO ELEMENTOR THEME OVERRIDE
   Prevents Elementor global colors, link styles, button
   hover states from leaking into our custom shop layout.
   ══════════════════════════════════════════════════════════ */

/* 1 — Override Elementor CSS variables within our scope */
.hcs-layout {
    --e-global-color-primary:   #2F3751;
    --e-global-color-secondary: #54595F;
    --e-global-color-accent:    #2F3751;
    --e-global-color-text:      #1a1f2e;
    --e-global-typography-primary-font-family:   'Outfit';
    --e-global-typography-secondary-font-family: 'Outfit';
}

/* 2 — Reset ALL links inside our layout (stop Elementor overriding colors) */
.hcs-layout a,
.hcs-layout a:link,
.hcs-layout a:visited,
.hcs-layout a:hover,
.hcs-layout a:focus,
.hcs-layout a:active {
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

/* 3 — Reset nav/toggle buttons (NOT CTA buttons like Apply / Filter toggle) */
.hcs-layout .hcs-par-btn:is(button),
.hcs-layout .hcs-par-toggle,
.hcs-layout .hcs-sb-close,
.hcs-layout .hcs-chevron {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-size: inherit !important;
}

/* 4 — Stop Elementor changing colors/underlines on hover for ALL links */
.hcs-layout a:hover { text-decoration: none !important; }
.hcs-layout .hcs-sidebar a:hover { color: inherit; }

/* 5 — Stop Hello Elementor theme global button:hover overriding our buttons */
.hcs-layout .hcs-pf-apply:hover,
.hcs-layout .hcs-pf-apply:focus,
.hcs-layout .hcs-filter-toggle:hover,
.hcs-layout .hcs-filter-toggle:focus {
    color: #fff !important;
}
/* Selected pill hover — keep white text on dark gradient bg */
.hcs-layout .hcs-af-pill.hcs-af-on,
.hcs-layout .hcs-af-pill.hcs-af-on:hover,
.hcs-layout .hcs-af-pill.hcs-af-on:focus { color: #fff !important; }
/* Unselected pill hover — dark text on light bg */
.hcs-layout .hcs-af-pill:not(.hcs-af-on):hover,
.hcs-layout .hcs-af-pill:not(.hcs-af-on):focus { color: #2F3751 !important; }

/* 6 — box-sizing reset */
.hcs-layout *,
.hcs-layout *::before,
.hcs-layout *::after { box-sizing: border-box; }
/* ══════════════════════════════════════════════════════════
   PAGE LAYOUT  — sidebar 25 % + products 75 %
   ══════════════════════════════════════════════════════════ */
.hcs-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 1380px!important;
    margin: 0 auto;
    padding: 70px 20px 70px;
    font-family: 'Outfit', sans-serif;
}

@media (min-width: 1200px) {
    .page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
        max-width: 1380px;
    }
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */
.hcs-sidebar {
    width: 25%;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: linear-gradient(160deg, #eceef4 0%, #e2e4ee 100%);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(47,55,81,.13), 0 1px 4px rgba(47,55,81,.06);
    border: 1px solid rgba(47,55,81,.08);
    overflow: hidden;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* ── Sidebar close button (mobile only, no bg bar on desktop) ── */
.hcs-sb-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(47,55,81,.12);
    border: none;
    cursor: pointer;
    color: #2F3751;
    padding: 6px;
    border-radius: 8px;
    line-height: 0;
    z-index: 2;
    transition: background .2s;
}
.hcs-sb-close:hover { background: rgba(47,55,81,.22); }

/* ── Sidebar section label ── */
.hcs-sb-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #2F3751;
    padding: 18px 16px 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.hcs-sb-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, #2F3751 0%, transparent 100%);
    border-radius: 1px;
}
.hcs-sb-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 13px;
    background: linear-gradient(180deg, #2F3751 0%, #5a6a99 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.hcs-sb-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 4px 6px 16px;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}
.hcs-sb-scroll::-webkit-scrollbar { width: 4px; }
.hcs-sb-scroll::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 4px; }

/* ── Sidebar category list padding ── */
.hcs-cat-list { padding: 4px 0 10px; }

/* ── Back link (← All Categories / ← Parent Name) ── */
.hcs-layout .hcs-sb-back,
.hcs-layout .hcs-sb-back:link,
.hcs-layout .hcs-sb-back:visited,
.hcs-layout .hcs-sb-back:hover,
.hcs-layout .hcs-sb-back:focus,
.hcs-layout .hcs-sb-back:active {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 10px !important;
    margin: 0 0 10px !important;
    border-radius: 8px !important;
    background: rgba(47,55,81,.07) !important;
    color: #2F3751 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    border: none !important;
}
.hcs-layout .hcs-sb-back:hover,
.hcs-layout .hcs-sb-back:focus {
    background: rgba(47,55,81,.14) !important;
}
.hcs-sb-back svg { flex-shrink: 0; opacity: .8; }

/* ── Sub-cat flat list (siblings / children — no accordion indent) ── */
.hcs-cat-list--sub {
    padding: 4px 0 10px !important;
    border-left: none !important;
    margin-left: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   PRICE RANGE FILTER
   ══════════════════════════════════════════════════════════ */
.hcs-pf-wrap {
    padding: 0 14px 16px;
}

.hcs-pf-values {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2F3751;
    margin-bottom: 14px;
}
.hcs-pf-dash { color: #9ca3af; font-weight: 400; }

/* Dual range slider */
.hcs-pf-slider-wrap {
    position: relative;
    height: 36px;
    margin-bottom: 14px;
}

.hcs-pf-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 4px;
    background: #d1d5db;
    border-radius: 4px;
    pointer-events: none;
}

.hcs-pf-fill {
    position: absolute;
    height: 100%;
    background: #2F3751;
    border-radius: 4px;
}

.hcs-pf-range {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    height: 4px;
    outline: none;
    margin: 0;
}
/* thumb */
.hcs-pf-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #2F3751;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(47,55,81,.35);
    transition: transform .15s;
}
.hcs-pf-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.hcs-pf-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #2F3751;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(47,55,81,.35);
}

/* From / To number inputs */
.hcs-pf-inputs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}
.hcs-pf-dash { color: #9ca3af; font-size: 16px; padding-bottom: 8px; flex-shrink: 0; }
.hcs-pf-inp-box { flex: 1; }
.hcs-pf-inp-box label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 4px;
}
.hcs-pf-inp-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .18s;
}
.hcs-pf-inp-wrap:focus-within { border-color: #2F3751; }
.hcs-pf-inp-wrap > span {
    padding: 0 7px;
    font-size: 12px;
    color: #6b7280;
    background: #f5f6f9;
    border-right: 1px solid #e5e7eb;
    line-height: 32px;
    flex-shrink: 0;
}
.hcs-pf-inp-wrap input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0 8px;
    height: 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2F3751;
    background: transparent;
}
.hcs-pf-inp-wrap input::-webkit-inner-spin-button,
.hcs-pf-inp-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; }
.hcs-pf-inp-wrap input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* Apply Filter — prominent CTA, all states locked */
.hcs-pf-apply,
.hcs-pf-apply:link,
.hcs-pf-apply:visited,
.hcs-pf-apply:hover,
.hcs-pf-apply:focus,
.hcs-pf-apply:active {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #2F3751 0%, #3d4a6b 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    letter-spacing: .04em !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
.hcs-pf-apply {
    box-shadow: none !important;
    transition: opacity .18s, transform .15s !important;
}
.hcs-pf-apply:hover {
    box-shadow: none !important;
    transform: translateY(-1px) !important;
    opacity: .9;
}
.hcs-pf-apply:active { transform: translateY(0) !important; }

.hcs-pf-form { margin: 0; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR ATTRIBUTE FILTERS
   ══════════════════════════════════════════════════════════ */

/* Wrapper for each attribute section */
.hcs-attr-filter {
    padding: 6px 14px 14px;
}

/* ── Colour swatches layout ── */
.hcs-af-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Single colour circle swatch — background comes from inline style */
.hcs-af-swatch {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 2.5px solid #fff !important;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,.18) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform .15s, box-shadow .15s !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    outline: none !important;
    /* NO background here — let inline style="background:#..." work */
}
.hcs-af-swatch:hover {
    transform: scale(1.18) !important;
    box-shadow: 0 0 0 2.5px #2F3751 !important;
    color: transparent !important;
}
.hcs-af-swatch.hcs-af-on {
    box-shadow: 0 0 0 3px #2F3751 !important;
    transform: scale(1.12) !important;
}

/* ── Text pills layout ── */
.hcs-af-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Single text pill */
.hcs-af-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(47,55,81,.18) !important;
    background: #fff !important;
    color: #3a3f52 !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: 0 1px 3px rgba(47,55,81,.06) !important;
    outline: none !important;
}
button.hcs-af-pill:hover {
    border-color: #2F3751 !important;
    color: #2F3751 !important;
    background: rgba(47,55,81,.05) !important;
    box-shadow: 0 2px 6px rgba(47,55,81,.12) !important;
}
.hcs-af-pill.hcs-af-on {
    background: linear-gradient(135deg, #2F3751, #3d4a6b) !important;
    border-color: #2F3751 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(47,55,81,.28) !important;
}

/* ── Category list ── */
.hcs-cat-list,
.hcs-child-list {
    list-style: none;
    margin: 4px 0 6px;
    padding: 0 0 0 5px!important;
}

/* Parent item */
.hcs-par { border-radius: 8px; }

/* Parent link/button — reset Hello Elementor, then restyle */
.hcs-par-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 14px !important;
    color: #1a1f2e !important;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    transition: background .18s, color .18s !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    line-height: 1.4 !important;
}
.hcs-par-btn:hover {
    background: rgba(47,55,81,.09);
    color: #2F3751;
    text-decoration: none;
    border-radius: 8px;
}
.hcs-par-row {
    padding: 0;
    overflow: hidden;
}
.hcs-par-link {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
}
.hcs-par-link:hover {
    color: inherit;
    text-decoration: none;
}
.hcs-par-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    width: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}
.hcs-par-toggle:hover {
    background: rgba(47,55,81,.08);
}
.hcs-par.hcs-active > .hcs-par-btn .hcs-par-toggle:hover {
    background: rgba(255,255,255,.12);
}

/* Arrow icon (→) for parents with children */
.hcs-arr {
    flex-shrink: 0;
    margin-left: auto;
    color: #a0a6b0;
    transition: transform .2s ease, color .18s;
}
.hcs-par-btn:hover .hcs-arr { color: #2F3751; }
.hcs-par-toggle .hcs-arr { margin-left: 0; }
.hcs-par.hcs-open > .hcs-par-btn .hcs-arr {
    transform: rotate(180deg);
}

/* Active parent — gradient pill, elevated */
.hcs-par.hcs-active > .hcs-par-btn {
    background: linear-gradient(135deg, #2F3751 0%, #3d4a6b 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(47,55,81,.30);
    border-radius: 8px;
}
.hcs-par.hcs-active > .hcs-par-btn .hcs-arr {
    color: #2c334a;
}

.hcs-par.hcs-active > .hcs-par-btn .hcs-cat-cnt {
    background: #2c334a;
    color: #ffffff;
    font-weight: 700;
}
.hcs-cat-name { flex: 1; }
.hcs-cat-cnt {
    font-size: 11px;
    color: #6b7280;
    background: rgba(0,0,0,.07);
    padding: 2px 9px;
    border-radius: 20px;
    flex-shrink: 0;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Children (visible only when parent is active — PHP-controlled) ── */
.hcs-child-list {
    list-style: none;
    margin: 4px 0 6px;
   padding: 0 0 0 5px!important;
    border-left: 2px solid rgba(47,55,81,.15);
    margin-left: 14px;
}
.hcs-par:not(.hcs-open) > .hcs-child-list {
    display: none;
}
.hcs-child + .hcs-child {
    margin-top: 3px;
}

.hcs-child-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
    color: #3a3f52 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border-radius: 8px !important;
    transition: background .18s, color .18s !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
}
.hcs-child-btn:hover {
    background: rgba(47,55,81,.07) !important;
    color: #2F3751 !important;
    text-decoration: none !important;
}
.hcs-child.hcs-active .hcs-child-btn {
    background: linear-gradient(90deg, rgba(47,55,81,.13) 0%, rgba(47,55,81,.06) 100%);
    color: #2F3751;
    font-weight: 700;
    
    padding-left: 9px;
}
.hcs-child .hcs-cat-cnt { font-size: 10px; font-weight: 600; }

/* ── 3rd-level (grandchildren) inside nested child-list ── */
.hcs-child-list .hcs-par-btn {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 5px 8px !important;
}
.hcs-child-list .hcs-par-btn:hover { border-radius: 8px; }
.hcs-child-list .hcs-par.hcs-active > .hcs-par-btn {
    background: linear-gradient(90deg, rgba(47,55,81,.13) 0%, rgba(47,55,81,.06) 100%) !important;
    color: #2F3751 !important;
    border-radius: 8px;
    font-weight: 700 !important;
}
.hcs-child-list .hcs-child-list {
    margin-left: 8px;
    border-left: 2px solid rgba(47,55,81,.1);
    padding-left: 4px;
}
.hcs-grandchild-btn {
    font-size: 12px !important;
    padding: 5px 8px !important;
    color: #555e74 !important;
}
.hcs-grandchild-btn:hover { color: #2F3751 !important; }

/* ── Price range ── */
.hcs-price-form { display: flex; flex-direction: column; gap: 10px; }

.hcs-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hcs-price-field { flex: 1; }
.hcs-price-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hcs-price-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(0,0,0,.15);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .18s;
}
.hcs-price-wrap:focus-within { border-color: #2F3751; }
.hcs-price-wrap span {
    padding: 0 8px;
    font-size: 13px;
    color: #6b7280;
    background: rgba(0,0,0,.05);
    border-right: 1px solid rgba(0,0,0,.1);
    line-height: 34px;
    flex-shrink: 0;
}
.hcs-price-wrap input {
    border: none;
    outline: none;
    padding: 0 8px;
    width: 100%;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    color: #1a1f2e;
    height: 34px;
    background: transparent;
}
.hcs-price-wrap input::-webkit-outer-spin-button,
.hcs-price-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.hcs-price-wrap input[type=number] { -moz-appearance: textfield; }
.hcs-price-sep { color: #6b7280; font-size: 16px; padding-top: 18px; flex-shrink: 0; }

.hcs-price-apply {
    display: block;
    width: 100%;
    padding: 9px;
    background: #2F3751;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.hcs-price-apply:hover { background: #3d4a6b; }

/* ── Sort select ── */
.hcs-sort {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid rgba(0,0,0,.15);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #1a1f2e;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: 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='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color .18s;
}
.hcs-sort:focus { border-color: #2F3751; }

/* WooFilters plugin wrapper */
.hcs-woof-wrap .woof_container_inner { background: transparent !important; border: none !important; padding: 0 !important; }
.hcs-woof-wrap .woof_submit_search_form_container { margin-top: 10px; }
.hcs-woof-wrap .woof_submit_search_form_container input[type="submit"] {
    width: 100%;
    background: #2F3751;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   PRODUCTS COLUMN
   ══════════════════════════════════════════════════════════ */
.hcs-products-col {
    flex: 1;
    min-width: 0;
}

/* ══════════════════════════════════════════════════════════
   ACTIVE FILTERS BOX
   ══════════════════════════════════════════════════════════ */
.hcs-active-box {
    margin: 10px 10px 4px;
    background: #fff;
    border: 1.5px solid rgba(47,55,81,.14);
    border-radius: 8px;
    padding: 11px 12px 13px;
    box-shadow: 0 2px 10px rgba(47,55,81,.09);
}

.hcs-active-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #eaecf2;
}
.hcs-active-box-head span {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #2F3751;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hcs-active-box-head span::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2F3751;
}

/* Clear all — proper button style, won't break with Elementor */
.hcs-clear-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    background: #c0392b !important;
    border: none !important;
    letter-spacing: .03em !important;
    box-shadow: 0 2px 6px rgba(192,57,43,.30) !important;
    transition: background .15s, box-shadow .15s !important;
    line-height: 1.5 !important;
}
.hcs-clear-all:hover {
    background: #992d22 !important;
    box-shadow: 0 3px 10px rgba(192,57,43,.40) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.hcs-sidebar .hcs-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* Tag — pill with inline navy X */
.hcs-sidebar .hcs-active-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #fff !important;
    border: 1.5px solid rgba(47,55,81,.15) !important;
    border-radius: 20px !important;
    padding: 4px 5px 4px 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #2F3751 !important;
    box-shadow: 0 1px 4px rgba(47,55,81,.08) !important;
    max-width: 100% !important;
}

/* Color-only tag — compact circle + X */
.hcs-sidebar .hcs-tag-color {
    padding: 4px 5px 4px 5px !important;
}

.hcs-sidebar .hcs-active-swatch {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    border: 1.5px solid #fff !important;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,.22) !important;
}

.hcs-sidebar .hcs-active-lbl {
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #2F3751 !important;
    max-width: 130px !important;
}

/* Navy X circle */
.hcs-sidebar .hcs-active-rm {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #2F3751 !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: background .15s, transform .15s !important;
    line-height: 1 !important;
    border: none !important;
    box-shadow: none !important;
}
.hcs-sidebar .hcs-active-rm:hover {
    background: #3d4a6b !important;
    transform: scale(1.15) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Mobile bar ── */
.hcs-mobile-bar {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e2e5ed;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(47,55,81,.08);
}

.hcs-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #2F3751;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.hcs-filter-toggle:hover { background: #3d4a6b; }

.hcs-result-count {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* ── Page title ── */
.hcs-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 31px;
    font-weight: 600;
    color: #2F3751;
    margin: 0 0 12px;
    line-height: 1.2;
}

.hcs-products-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2F3751;
    margin: 28px 0 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(47,55,81,.1);
}

.hcs-arch-desc {
    font-family: 'Outfit', sans-serif;
    color: #54595F;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ── Archive toolbar — same bg as sidebar ── */
.hcs-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0 0 24px;
    padding: 10px 14px;
    background: linear-gradient(160deg, #eceef4 0%, #e2e4ee 100%);
    border-radius: 8px;
    border: 1px solid rgba(47,55,81,.08);
    box-shadow: 0 2px 8px rgba(47,55,81,.06);
}
.hcs-toolbar-spacer { flex: 1; }
.hcs-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #54595F;
    white-space: nowrap;
}
.hcs-sort-select {
    min-width: 180px;
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1.5px solid #d9dde6;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1a1f2e;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: 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='%2354595F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.hcs-sort-select:focus { border-color: #2F3751; }
.hcs-view-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hcs-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid #d9dde6;
    border-radius: 8px;
    background: #fff;
    color: #54595F;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background .18s, border-color .18s, color .18s;
}
.hcs-view-btn:hover,
.hcs-view-btn.hcs-view-active {
    background: #2F3751;
    border-color: #2F3751;
    color: #fff;
}
.hcs-view-icon {
    display: block;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   SUB-CATEGORY TILES  (Step 2 — parent category page)
   ══════════════════════════════════════════════════════════ */
.hcs-subcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.hcs-subcat-tile {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #54595F;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s;
}
.hcs-subcat-tile:hover {
    box-shadow: 0 12px 40px rgba(47,55,81,.18);
    transform: translateY(-3px);
    border-color: #eef0f5;
    text-decoration: none;
}

.hcs-subcat-img {
    overflow: hidden;
    background: #f5f6f9;
}
.hcs-subcat-img img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .45s ease;
}
.hcs-subcat-tile:hover .hcs-subcat-img img { transform: scale(1.05); }

.hcs-subcat-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hcs-subcat-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2F3751;
    line-height: 1.3;
}

.hcs-subcat-count {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

/* Responsive sub-cat tiles */
@media (max-width: 1024px) {
    .hcs-subcat-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px; }
}
@media (max-width: 767px) {
    .hcs-subcat-grid { grid-template-columns: 1fr !important; gap: 10px; }
}

/* ══════════════════════════════════════════════════════════
   3-COLUMN PRODUCT GRID
   ══════════════════════════════════════════════════════════ */
.hcs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.hcs-products-col.hcs-cols-3 .hcs-subcat-grid,
.hcs-products-col.hcs-cols-3 .hcs-grid {
    grid-template-columns: repeat(3, 1fr);
}
.hcs-products-col.hcs-cols-4 .hcs-subcat-grid,
.hcs-products-col.hcs-cols-4 .hcs-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ══════════════════════════════════════════════════════════
   PRODUCT CARD — Exact Elementor "Product Card" match
   ══════════════════════════════════════════════════════════ */
.hcs-card {
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    border: 1px solid #54595F;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s;
}
.hcs-card:hover {
    box-shadow: 0 12px 40px rgba(47,55,81,.18);
    transform: translateY(-3px);
    border-color: #eef0f5;
}

/* ── Image ── */
.hcs-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.hcs-card-img-link { display: block; position: relative; }
.hcs-card-img-link img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .45s ease, opacity .35s ease;
}
/* Second gallery image — only fades when .hcs-has-gallery class present */
.hcs-img-secondary {
    position: absolute !important;
    inset: 0;
    opacity: 0;
}
/* Single image: normal scale on hover, NO fade */
.hcs-card:hover .hcs-card-img-link:not(.hcs-has-gallery) .hcs-img-primary {
    transform: scale(1.05);
}
/* Gallery image: fade out primary, fade in secondary */
.hcs-card:hover .hcs-has-gallery .hcs-img-primary  { opacity: 0; transform: scale(1.05); }
.hcs-card:hover .hcs-has-gallery .hcs-img-secondary { opacity: 1; transform: scale(1.05); }

/* ── Save % badge — top-left ── */
.hcs-badge-pct {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffffff;
    color: #2F3751;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
    display: inline-block;
    z-index: 2;
}

/* ── Super Offer badge — bottom-left, sale only ── */
.hcs-badge-offer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #2F3751;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 8px 8px 8px 0;
    display: none;
    z-index: 2;
}
.hcs-card.sale .hcs-badge-offer { display: inline-block; }

/* ── Card body ── */
.hcs-card-body {
    padding: 12px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ── Title + Stars row ── */
.hcs-card-head-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
}

.hcs-card-title {
    flex: 1;
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2F3751;
    text-decoration: none;
    line-height: 1.35;
}
.hcs-card-title:hover { color: #2F3751; text-decoration: underline; }

/* Stars — right side of title row */
.hcs-card-stars {
    flex-shrink: 0;
    padding-top: 2px;
}
.hcs-card-stars .star-rating {
    font-size: 13px;
    white-space: nowrap;
}
/* SVG star ratings (carousel + anywhere hcs_render_stars() is used) */
.hcs-svg-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    padding-top: 2px;
}
.hcs-star-count {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
    margin-left: 2px;
    white-space: nowrap;
}

/* ── Short description ── */
.hcs-card-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Price — Non-sale ── */
.hcs-card:not(.sale) .hcs-card-price .price,
.hcs-card:not(.sale) .hcs-card-price .woocommerce-Price-amount,
.hcs-card:not(.sale) .hcs-card-price bdi {
    color: #2F3751 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.2;
}
.hcs-card:not(.sale) .hcs-card-price del { display: none !important; }

/* ── Price — Sale: crossed regular ── */
.hcs-card.sale .hcs-card-price del { display: inline; }
.hcs-card.sale .hcs-card-price del .woocommerce-Price-amount,
.hcs-card.sale .hcs-card-price del bdi {
    color: #DF0000 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 18px !important;
    font-weight: 500 !important;
}

/* ── Price — Sale: new price ── */
.hcs-card.sale .hcs-card-price ins { text-decoration: none !important; }
.hcs-card.sale .hcs-card-price ins .woocommerce-Price-amount,
.hcs-card.sale .hcs-card-price ins bdi {
    color: #2F3751 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 24px !important;
    font-weight: 600 !important;
}

/* ── Perks list ── */
.hcs-card-perks {
    list-style: none;
    margin: 0;
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hcs-card-perks li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2F3751;
}
.hcs-card-perks li svg { flex-shrink: 0; color: #2F3751; }

/* In Stock — green icon + text */
.hcs-perk-instock { color: #2F3751 !important; }
.hcs-perk-instock svg { color: #16a34a !important; }

/* Out of Stock — red/muted */
.hcs-perk-outstock { color: #dc2626 !important; font-weight: 500 !important; }
.hcs-perk-outstock svg { color: #dc2626 !important; }

/* ── Variations ── */
.hcs-card-vars {
    padding: 8px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-top: 1px solid #f0f0f0;
    margin-top: 2px;
}
.hcs-var-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.hcs-var-lbl {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 38px;
}
.hcs-var-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

/* Text pill — truncated for long values (e.g. size names) */
.hcs-vp {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(47,55,81,.06);
    color: #2F3751;
    border: 1px solid rgba(47,55,81,.10);
    white-space: nowrap;
    line-height: 1.6;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* Colour swatch — round circle */
.hcs-vp-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,.18);
    cursor: default;
    flex-shrink: 0;
    max-width: 20px;
    overflow: visible;
    text-overflow: unset;
    display: inline-flex;
    vertical-align: middle;
    transition: transform .15s;
}
.hcs-vp-color:hover { transform: scale(1.2); }

/* "+N more" pill */
.hcs-vp-more {
    background: rgba(47,55,81,.1);
    color: #2F3751;
    font-weight: 700;
    max-width: none;
}

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.hcs-pager { margin-top: 36px; }
.hcs-pager .woocommerce-pagination ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hcs-pager .woocommerce-pagination ul li { margin: 0; }
.hcs-pager .woocommerce-pagination a,
.hcs-pager .woocommerce-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid #e2e5ed;
    border-radius: 8px;
    background: #fff;
    color: #1a1f2e;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .18s ease;
}
.hcs-pager .woocommerce-pagination a:hover {
    border-color: #2F3751;
    color: #2F3751;
    background: #f5f6f9;
}
.hcs-pager .woocommerce-pagination span.current,
.hcs-pager .woocommerce-pagination a.current {
    background: #2F3751 !important;
    color: #fff !important;
    border-color: #2F3751 !important;
}

/* ── No products ── */
.hcs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}
.hcs-empty svg { margin: 0 auto 20px; display: block; opacity: .3; }
.hcs-empty h3 { font-family: 'Outfit', sans-serif; font-size: 22px; color: #1a1f2e; margin: 0 0 8px; font-weight: 600; }
.hcs-empty p { font-size: 14px; margin: 0 0 20px; }
.hcs-reset-btn {
    display: inline-block;
    padding: 11px 24px;
    background: #2F3751;
    color: #fff;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s;
}
.hcs-reset-btn:hover { background: #3d4a6b; color: #fff; }

/* ══════════════════════════════════════════════════════════
   MOBILE OVERLAY
   ══════════════════════════════════════════════════════════ */
.hcs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,24,40,.55);
    z-index: 9998;
    backdrop-filter: blur(2px);
}
.hcs-overlay.hcs-vis { display: block; }

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════ */
.hcs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
}

.hcs-bc-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    background: #2F3751;
    text-decoration: none;
    padding: 5px 12px 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: background .18s;
}
.hcs-bc-home:hover { background: #3d4a6b; color: #fff; text-decoration: none; }
.hcs-bc-home svg { flex-shrink: 0; }

.hcs-bc-sep {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1;
    padding: 0 2px;
}

.hcs-bc-item {
    color: #54595F;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color .18s, background .18s;
}
.hcs-bc-item:hover { color: #2F3751; background: rgba(47,55,81,.07); text-decoration: none; }

.hcs-bc-active {
    color: #2F3751;
    font-weight: 700;
    background: rgba(47,55,81,.08);
    pointer-events: none;
}
a.hcs-bc-active { pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .hcs-layout { gap: 20px; padding: 40px 15px 50px; }
    .hcs-sidebar { width: 35%; }
    .hcs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .hcs-page-title { font-size: 26px; }
    .hcs-card-title { font-size: 16px; }
    .hcs-card.sale .hcs-card-price del .woocommerce-Price-amount,
    .hcs-card.sale .hcs-card-price del bdi { font-size: 16px !important; }
    .hcs-card.sale .hcs-card-price ins .woocommerce-Price-amount,
    .hcs-card.sale .hcs-card-price ins bdi { font-size: 22px !important; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .hcs-layout { padding: 30px 15px 40px; }

    /* Mobile bar visible — filter + sort in ONE row */
    .hcs-mobile-bar { display: flex; }

    /* Hide desktop sort from toolbar on mobile */
    .hcs-sort-wrap { display: none; }
    .hcs-toolbar { justify-content: flex-end; }
    .hcs-toolbar-spacer { display: none; }

    /* Mobile sort select */
    .hcs-mobile-sort {
        flex: 1;
        padding: 8px 10px;
        border: 1.5px solid #e2e5ed;
        border-radius: 8px;
        font-family: 'Outfit', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #2F3751;
        background: #f9fafb;
        outline: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 28px;
        cursor: pointer;
    }
    .hcs-mobile-sort:focus { border-color: #2F3751; }

    /* Sidebar becomes off-canvas drawer */
    .hcs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        max-height: 100%;
        width: min(280px, 88vw);
        border-radius: 0 16px 16px 0;
        z-index: 9999;
        transform: translateX(-110%);
        transition: transform .3s ease;
    }
    .hcs-sidebar.hcs-open { transform: translateX(0); box-shadow: 0 12px 40px rgba(47,55,81,.3); }
    .hcs-sidebar { position: fixed; overflow: visible; }
    .hcs-sb-close { display: flex !important; }

    /* Hide grid column toggle on mobile */
    .hcs-view-toggle { display: none !important; }
    .hcs-toolbar { display: none; }   /* hide whole toolbar on mobile, sort is in mobile bar */

    /* Mobile: 1 card per row */
    .hcs-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .hcs-card-perks { padding-bottom: 14px; }
    .hcs-page-title { font-size: 22px; }
}

/* Tablet (769px – 1024px): 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .hcs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Small mobile (≤ 480px) — same as mobile */
@media (max-width: 480px) {
    .hcs-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .hcs-card-body { padding: 10px 10px 0; }
    .hcs-card-title { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════
   SIDEBAR PROMO WIDGET
═══════════════════════════════════════════════════ */
.hcs-sb-promo {
    margin: 20px 0 8px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(160deg, #1f2740, #2F3751);
    color: #fff;
    box-shadow: 0 4px 16px rgba(47, 55, 81, .2);
}

.hcs-sbp-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.hcs-sbp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.hcs-sb-promo:hover .hcs-sbp-img img {
    transform: scale(1.04);
}

.hcs-sbp-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hcs-sbp-icon {
    opacity: .75;
    margin-bottom: 2px;
}

.hcs-sbp-hl {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: block;
    color: #fff;
}

.hcs-sbp-desc {
    font-size: 12px;
    line-height: 1.55;
    opacity: .8;
    margin: 0;
    color: #fff;
}

.hcs-sbp-btn {
    display: inline-block;
    margin-top: 4px;
    background: #fff;
    color: #2F3751 !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    text-align: center;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.hcs-sbp-btn:hover,
.hcs-sbp-btn:focus {
    opacity: .88;
    transform: translateY(-1px);
    color: #2F3751 !important;
    text-decoration: none !important;
}
