/* Reset any WC defaults inside our app */
#hest-shop-app * { box-sizing:border-box; }
#hest-shop-app a { text-decoration:none; }
#hest-shop-app { background:#09090b; }

/* ── TOP BAR ── */
.hest-topbar {
    background:#0d0d10;
    border-bottom:1px solid rgba(255,255,255,0.06);
    position:sticky; top:0; z-index:200;
}
.hest-topbar-inner {
    max-width:1400px; margin:0 auto;
    padding:0 28px;
    display:flex; align-items:center; height:54px; gap:12px;
}
.hest-cat-nav {
    display:flex; align-items:center; gap:4px; flex:1;
    overflow-x:auto; scrollbar-width:none;
}
.hest-cat-nav::-webkit-scrollbar { display:none; }
.hest-cpill {
    display:inline-flex; align-items:center; gap:6px;
    padding:6px 15px; border-radius:99px;
    border:1px solid rgba(255,255,255,0.15);
    font-family:'Barlow Condensed',sans-serif; font-weight:700;
    font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
    white-space:nowrap; color:rgba(255,255,255,0.82);
    transition:color .18s,background .18s,border-color .18s;
}
.hest-cpill:hover { color:#fff; background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.3); }
.hest-cpill--active {
    color:#fff !important;
    background:rgba(232,41,28,0.12) !important;
    border-color:rgba(232,41,28,0.45) !important;
}
.hest-topbar-tools { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.hest-searchbox {
    position:relative; display:flex; align-items:center;
}
.hest-searchbox svg { position:absolute; left:10px; color:var(--grey); pointer-events:none; flex-shrink:0; }
.hest-searchbox input {
    background:#18191d; border:1px solid rgba(255,255,255,0.15);
    border-radius:8px; color:#fff; font-family:'Barlow',sans-serif; font-size:13px;
    padding:7px 12px 7px 32px; width:180px; outline:none;
    transition:border-color .2s, width .25s;
}
.hest-searchbox input:focus { border-color:var(--red); width:220px; }
.hest-searchbox input::placeholder { color:var(--grey-dim); }
.hest-sortbox select {
    background:#18191d; border:1px solid rgba(255,255,255,0.15);
    border-radius:8px; color:rgba(255,255,255,0.88);
    font-family:'Barlow Condensed',sans-serif; font-weight:600;
    font-size:12px; letter-spacing:0.07em; text-transform:uppercase;
    padding:7px 10px; outline:none; cursor:pointer;
}

/* ── BODY LAYOUT ── */
.hest-shop-body {
    display:flex; gap:0;
    max-width:1400px; margin:0 auto;
    padding:0 0 80px;
}

/* ── SIDEBAR ── */
.hest-sidebar {
    width:256px; flex-shrink:0;
    background:#0d0d10;
    border-right:1px solid rgba(255,255,255,0.06);
    padding:24px 20px;
    position:sticky; top:54px;
    height:calc(100vh - 54px);
    overflow-y:auto;
    scrollbar-width:thin; scrollbar-color:rgba(255,255,255,0.08) transparent;
}
.hest-sidebar::-webkit-scrollbar { width:3px; }
.hest-sidebar::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.08); border-radius:2px; }

.hest-sb-header {
    padding-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,0.07);
    margin-bottom:6px;
}
.hest-sb-title {
    display:block;
    font-family:'Barlow Condensed',sans-serif; font-weight:800;
    font-size:17px; text-transform:uppercase; color:#fff; line-height:1;
    margin-bottom:4px;
}
.hest-sb-count { font-size:12px; color:var(--grey); }

/* Filter sections */
.hest-sb-section {
    border-bottom:1px solid rgba(255,255,255,0.06);
    padding:4px 0;
}
.hest-sb-section-label {
    font-size:10px; font-weight:700; letter-spacing:0.2em;
    text-transform:uppercase; color:rgba(255,255,255,0.95);
}
.hest-sb-toggle {
    width:100%; background:none; border:none; cursor:pointer;
    display:flex; justify-content:space-between; align-items:center;
    padding:12px 0; color:inherit;
}
.hest-sb-arrow { color:rgba(255,255,255,0.85); transition:transform .25s; }
.hest-sb-arrow.open { transform:rotate(180deg); }
.hest-sb-body { padding-bottom:8px; }
.hest-sb-body.closed { display:none; }

.hest-sb-item {
    display:flex; align-items:center; gap:9px;
    padding:7px 0; color:rgba(255,255,255,0.92); font-size:14px;
    border-radius:4px; transition:color .15s;
}
.hest-sb-item:hover { color:#fff; }
.hest-sb-item--active { color:#fff; }

.hest-sb-radio {
    width:16px; height:16px; border-radius:50%; flex-shrink:0;
    border:2px solid rgba(255,255,255,0.35); background:transparent;
    display:flex; align-items:center; justify-content:center;
    transition:border-color .15s, background .15s;
}
.hest-sb-radio--on { border-color:var(--red); background:var(--red); }

.hest-sb-dot {
    width:7px; height:7px; border-radius:50%; flex-shrink:0;
    background:rgba(255,255,255,0.3); transition:background .15s;
}
.hest-sb-dot--on { background:var(--red); }

.hest-sb-badge {
    font-size:10px; padding:1px 6px; border-radius:99px;
    background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.15);
    color:var(--grey);
}

/* Sidebar category groups + subcategories */
.hest-sb-cat-group { margin-bottom:2px; }
.hest-sb-cat-row {
    display:flex; align-items:center; gap:0;
}
.hest-sb-sub-toggle {
    background:none; border:none; cursor:pointer;
    color:var(--grey); padding:7px 4px;
    display:flex; align-items:center;
    transition:color .15s, transform .2s;
    flex-shrink:0;
}
.hest-sb-sub-toggle:hover { color:rgba(255,255,255,0.9); }
.hest-sb-sub-toggle svg { transition:transform .22s; }
.hest-sb-sub-toggle.open svg { transform:rotate(180deg); }
.hest-sb-subs { padding-left:16px; overflow:hidden; }
.hest-sb-subs.closed { display:none; }
.hest-sb-sub-item { padding-left:4px; font-size:13px; color:rgba(255,255,255,0.82); }
.hest-sb-sub-item:hover { color:#fff; }
.hest-sb-sub-item.hest-sb-item--active { color:#fff; }
.hest-sb-sub-dot {
    width:5px; height:5px; border-radius:50%; flex-shrink:0;
    background:rgba(255,255,255,0.25); transition:background .15s;
    margin-left:2px;
}
.hest-sb-sub-dot.hest-sb-dot--on { background:var(--red); }


.hest-chip-active {
    display:inline-flex; align-items:center; gap:5px;
    padding:4px 10px; border-radius:99px;
    background:rgba(232,41,28,0.1); border:1px solid rgba(232,41,28,0.3);
    font-size:11px; color:#e8291c;
    transition:background .15s;
}
.hest-chip-active:hover { background:rgba(232,41,28,0.18); }

/* Sidebar CTA */
.hest-sb-cta {
    margin-top:20px; padding:16px 14px; border-radius:10px;
    background:linear-gradient(135deg,rgba(232,41,28,0.1),rgba(232,41,28,0.03));
    border:1px solid rgba(232,41,28,0.2);
}
.hest-sb-cta-title {
    font-family:'Barlow Condensed',sans-serif; font-weight:800;
    font-size:15px; text-transform:uppercase; margin-bottom:6px;
}
.hest-sb-cta p { font-size:12px; color:rgba(255,255,255,0.72); line-height:1.5; margin-bottom:10px; }
.hest-sb-cta a {
    display:block; text-align:center; background:var(--red); color:#fff;
    font-family:'Barlow Condensed',sans-serif; font-weight:700;
    font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
    padding:9px; border-radius:6px; transition:opacity .18s;
}
.hest-sb-cta a:hover { opacity:.85; }

/* ── MAIN AREA ── */
.hest-shop-main { flex:1; min-width:0; padding:24px 28px 0; }

/* Banner */
.hest-shop-banner {
    position:relative; border-radius:12px; overflow:hidden;
    height:170px; background:#111214; margin-bottom:28px;
    display:flex; align-items:center;
}
.hest-shop-banner-bg {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; opacity:0.38;
}
.hest-shop-banner-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to right,rgba(0,0,0,0.9) 0%,rgba(0,0,0,0.3) 100%);
}
.hest-shop-banner-text { position:relative; z-index:1; padding:0 36px; }
.hest-shop-banner-eye {
    font-size:10px; font-weight:700; letter-spacing:0.22em;
    text-transform:uppercase; color:var(--red); display:block; margin-bottom:7px;
}
.hest-shop-banner-h1 {
    font-family:'Barlow Condensed',sans-serif; font-weight:900;
    font-size:clamp(28px,4vw,48px); text-transform:uppercase; line-height:.9; margin-bottom:6px;
}
.hest-shop-banner-sub { font-size:12px; color:rgba(255,255,255,0.72); line-height:1.5; }

/* Category header */
.hest-cat-hdr {
    display:flex; align-items:flex-end; justify-content:space-between;
    margin-bottom:24px; padding-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,0.06);
}
.hest-cat-hdr-title {
    font-family:'Barlow Condensed',sans-serif; font-weight:900;
    font-size:32px; text-transform:uppercase; line-height:1;
}
.hest-cat-hdr-desc { font-size:13px; color:var(--grey); margin-top:4px; }
.hest-cat-hdr-count { font-size:12px; color:var(--grey); white-space:nowrap; }

/* ── PRODUCT GRID ── */
.hest-pgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-bottom: 8px;
}

/* ── PRODUCT CARD ── */
.hest-pcard {
    background: #111215;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hest-pcard:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.hest-pcard--sale {
    border-color: rgba(232,41,28,0.3);
}
.hest-pcard--sale:hover {
    border-color: rgba(232,41,28,0.55);
}

/* Card image area */
.hest-pcard-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
}
.hest-pcard-img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
    display: block;
    background: #ffffff;
}
.hest-pcard:hover .hest-pcard-img { transform: scale(1.06); }

/* Badges */
.hest-pcard-badge {
    position: absolute;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}
.hest-pcard-badge--sale {
    top: 12px; left: 12px;
    background: var(--red); color: #fff;
}
.hest-pcard-badge--oos {
    top: 12px; right: 12px;
    background: rgba(0,0,0,.7); color: var(--grey);
}
.hest-pcard-badge--opts {
    top: 12px; right: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--grey);
}

/* Card body */
.hest-pcard-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Brand */
.hest-pcard-brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

/* Title */
.hest-pcard-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1.05;
    color: #fff;
    text-decoration: none;
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hest-pcard-title:hover { color: var(--red); }

/* Stars */
.hest-pcard-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.hest-pcard-rcount {
    font-size: 11px;
    color: var(--grey);
    margin-left: 4px;
}

/* Short desc */
.hest-pcard-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}
.hest-pcard-desc p { margin: 0; }

/* Footer: price + cart */
.hest-pcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 2px solid rgba(255,255,255,.08);
}
.hest-pcard-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--red);
    line-height: 1;
}
.hest-pcard-price del {
    font-size: 13px;
    color: var(--grey);
    font-weight: 400;
    margin-right: 4px;
}
.hest-pcard-price ins { text-decoration: none; color: var(--red); }

/* Cart icon button */
.hest-pcard-btn {
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, transform .18s;
    text-decoration: none;
}
.hest-pcard-btn:hover {
    background: #c0201a;
    transform: scale(1.06);
}

/* "View Full Details" link */
.hest-pcard-details {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    text-decoration: none;
    transition: color .15s;
}
.hest-pcard-details:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media(max-width:1200px){
    .hest-pgrid { grid-template-columns: repeat(3,1fr); gap:14px; }
}
@media(max-width:960px){
    .hest-pgrid { grid-template-columns: repeat(2,1fr); }
}

/* ── MOBILE: 860px and below ── */
@media(max-width:860px){

    /* Topbar: split into two rows */
    .hest-topbar-inner {
        flex-wrap: wrap;
        height: auto !important;
        padding: 10px 14px 8px;
        gap: 0;
    }

    /* Row 1: search + sort — full width, own line */
    .hest-topbar-tools {
        order: -1;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        margin-bottom: 8px;
    }
    .hest-searchbox {
        flex: 1;
    }
    .hest-searchbox input {
        width: 100% !important;
    }
    .hest-searchbox input:focus {
        width: 100% !important;
    }
    .hest-sortbox {
        flex-shrink: 0;
    }
    .hest-sortbox select {
        font-size: 12px;
        padding: 7px 8px;
        white-space: nowrap;
    }

    /* Row 2: category pills — scrollable row below tools */
    .hest-cat-nav {
        order: 0;
        width: 100%;
        flex: unset;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
        gap: 6px;
    }
    .hest-cat-nav::-webkit-scrollbar { display: none; }
    .hest-cpill {
        font-size: 11px;
        padding: 5px 12px;
        flex-shrink: 0;
    }

    /* Topbar sticky offset update for two-row height */
    .hest-sidebar { top: 96px; height: calc(100vh - 96px); }
}

@media(max-width:680px){
    .hest-pgrid { grid-template-columns: repeat(2,1fr); gap:10px; }
    .hest-shop-main { padding: 16px 12px 0; }

    /* Compact product cards */
    .hest-pcard-body {
        padding: 10px 12px 12px;
        gap: 6px;
    }
    .hest-pcard-title {
        font-size: 17px !important;
        line-height: 1.1;
        -webkit-line-clamp: 2;
    }
    .hest-pcard-brand {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
    .hest-pcard-price {
        font-size: 18px !important;
    }
    .hest-pcard-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .hest-pcard-desc {
        display: none; /* hide short desc on small phones — too crowded */
    }
    .hest-pcard-details {
        font-size: 10px;
    }
    .hest-pcard-foot {
        padding-top: 10px;
    }

    /* Banner + category header */
    .hest-shop-banner { height: 130px; margin-bottom: 16px; }
    .hest-shop-banner-text { padding: 0 18px; }
    .hest-shop-banner-h1 { font-size: 24px !important; }
    .hest-shop-banner-sub { display: none; }
    .hest-cat-hdr { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 16px; }
    .hest-cat-hdr-title { font-size: 24px; }

    /* Manufacturer section headers */
    .hest-mfr-section { margin-bottom: 32px; }
    .hest-mfr-title { font-size: 20px !important; }

    /* Pagination */
    .hest-pages { gap: 4px; margin-top: 32px; }
    .hest-pages .page-numbers { min-width: 32px; height: 32px; font-size: 12px; }
}

@media(max-width:400px){
    .hest-pgrid { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .hest-pcard-body { padding: 8px 10px 10px; }
    .hest-pcard-title { font-size: 15px !important; }
    .hest-pcard-price { font-size: 16px !important; }
    .hest-pcard-desc { display: none; }
}

/* Empty state */
.hest-empty {
    grid-column:1/-1; text-align:center; padding:100px 20px;
}
.hest-empty-icon {
    width:56px; height:56px; border-radius:50%;
    background:rgba(255,255,255,0.04);
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 18px; color:var(--grey);
}
.hest-empty h3 {
    font-family:'Barlow Condensed',sans-serif; font-weight:800;
    font-size:24px; text-transform:uppercase; margin-bottom:8px;
}
.hest-empty p { font-size:14px; color:var(--grey); }
.hest-empty a { color:var(--red); }

/* Pagination */
.hest-pages {
    display:flex; justify-content:center; align-items:center;
    gap:5px; margin-top:52px; flex-wrap:wrap;
}
.hest-pages .page-numbers {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:38px; height:38px; padding:0 8px;
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);
    border-radius:8px; font-size:13px; color:var(--grey);
    transition:all .15s;
}
.hest-pages .page-numbers:hover { border-color:rgba(255,255,255,0.2); color:#fff; }
.hest-pages .page-numbers.current {
    background:var(--red); border-color:var(--red); color:#fff; font-weight:700;
}

/* ── RESPONSIVE: sidebar hidden on mobile ── */
@media(max-width:860px){
    .hest-sidebar { display:none; }
}
@media(max-width:520px){
    .hest-topbar-tools { gap:6px; }
}
/* ── Manufacturer Sections ── */
.hest-mfr-section {
    margin-bottom: 52px;
}
.hest-mfr-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--red);
}
.hest-mfr-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0;
}
.hest-mfr-count {
    font-size: 13px;
    color: var(--grey);
    font-family: 'Barlow', sans-serif;
}

/* ── FUNCTIONAL TRAINERS SECTION HEADER ── */
.hest-ft-section-header {
    margin: 48px 0 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--red);
}
.hest-ft-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0;
}

/* ── SELF-POWERED TREADMILLS SECTION ── */
.hest-sp-section {
    border-top: 2px solid rgba(255,255,255,0.08);
    margin-top: 48px;
    padding-top: 0;
}
.hest-sp-hero {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}
.hest-sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,9,11,0.92) 0%, rgba(9,9,11,0.45) 60%, rgba(9,9,11,0.2) 100%);
}
.hest-sp-hero-content {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
}
.hest-sp-header {
    padding: 32px 0 24px;
}
.hest-sp-header-inner {
    max-width: 600px;
}
.hest-sp-eyebrow {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--red, #e8291c);
    margin-bottom: 8px;
}
.hest-sp-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1;
}
.hest-sp-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    max-width: 520px;
    margin: 0;
}
.hest-sp-grid-wrap {
    padding: 24px 0 48px;
}