
/* ── Touch & Accessibility ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
button, [role="button"], .pc, .sc-card, .pop-card, .suggest-card { touch-action: manipulation; }
input, button, select { font-family: inherit; }
img { max-width: 100%; }
a { -webkit-tap-highlight-color: transparent; }

      :root {
        --bg: #f7f6f3;
        --white: #fff;
        --surface: #f2f1ed;
        --surface2: #ece9e2;
        --border: #e4e1d8;
        --border-dk: #ccc8be;
        --text: #18160f;
        --mid: #5c5849;
        --muted: #9c9789;
        --accent: #bf7f2e;
        --accent-lt: #fdf4e6;
        --accent-dk: #9a6320;
        --green: #287a4a;
        --green-lt: #edf7f2;
        --red: #b83030;
        --red-lt: #fdf0f0;
        --r: 12px;
        --rsm: 8px;
        --rxs: 6px;
        --sh0: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
        --sh1: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
        --sh2: 0 12px 40px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.06);
      }
      * {
        margin: 0;
        padding: 0;
      }
      body {
        font-family: "Inter", sans-serif;
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        font-size: 14px;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
      }

      /* NAV */
      nav {
        position: sticky;
        top: 0;
        z-index: 300;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 0 2rem;
        display: flex;
        align-items: center;
        gap: 20px;
        height: 64px;
      }
      .nav-logo {
        font-family: "Playfair Display", serif;
        font-weight: 700;
        font-size: 1.6rem;
        color: var(--text);
        cursor: pointer;
        letter-spacing: -0.8px;
        user-select: none;
        flex-shrink: 0;
        line-height: 1;
      }
      .nav-logo span {
        color: var(--accent);
      }
      /* Thin divider between logo and nav pills */
      .nav-divider {
        width: 1px;
        height: 24px;
        background: var(--border-dk);
        flex-shrink: 0;
      }
      .nav-links {
        display: flex;
        gap: 2px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 3px;
      }
      .nb {
        background: none;
        border: none;
        cursor: pointer;
        font-family: "Inter", sans-serif;
        font-size: 0.8rem;
        color: var(--mid);
        font-weight: 500;
        padding: 7px 15px;
        border-radius: 8px;
        transition: all 0.15s;
        white-space: nowrap;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
      }
      .nb:hover {
        background: rgba(255,255,255,.8);
        color: var(--text);
      }
      .nb.on {
        background: var(--text);
        color: #fff;
        font-weight: 600;
      }

      /* PAGES */
      .page {
        display: none;
        animation: fi 0.18s ease;
      }
      .page.on {
        display: block;
      }
      @keyframes fi {
        from {
          opacity: 0;
          transform: translateY(3px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }

      /* DROPDOWN */
      .dd-wrap {
        position: relative;
      }
      .dd {
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        min-width: 320px;
        width: max-content;
        max-width: 420px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r);
        box-shadow: var(--sh2);
        z-index: 600;
        overflow: hidden;
        max-height: 360px;
        overflow-y: auto;
        display: none;
      }
      .dd.open {
        display: block;
      }
      .dd-head {
        padding: 7px 14px 5px;
        font-size: 0.66rem;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
      }
      .dd-item {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 9px 14px;
        cursor: pointer;
        border-bottom: 1px solid var(--border);
        transition: background 0.1s;
      }
      .dd-item:last-child {
        border-bottom: none;
      }
      .dd-item:hover {
        background: var(--surface);
      }
      .dd-img {
        width: 38px;
        height: 38px;
        object-fit: contain;
        background: var(--surface);
        border-radius: 6px;
        flex-shrink: 0;
      }
      .dd-info {
        flex: 1;
        min-width: 0;
      }
      .dd-brand {
        font-size: 0.62rem;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .dd-title {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .dd-meta {
        font-size: 0.69rem;
        color: var(--muted);
      }
      .dd-price {
        font-weight: 600;
        font-size: 0.8rem;
        color: var(--text);
        flex-shrink: 0;
      }
      .dd-add {
        font-size: 0.65rem;
        color: var(--accent);
        font-weight: 700;
        background: var(--accent-lt);
        padding: 2px 7px;
        border-radius: 4px;
        flex-shrink: 0;
        border: 1px solid #f0d4a0;
      }
      .dd-none {
        padding: 14px;
        text-align: center;
        color: var(--muted);
        font-size: 0.8rem;
      }
      mark {
        background: #fdf3e5;
        color: var(--accent-dk);
        border-radius: 2px;
        font-style: normal;
      }

      /* HOME */
      .hero {
        max-width: 820px;
        margin: 0 auto;
        padding: 72px 2rem 52px;
        text-align: center;
      }
      .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--accent-lt);
        border: 1px solid #f0d4a0;
        color: var(--accent-dk);
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 4px 12px;
        border-radius: 999px;
        margin-bottom: 22px;
      }
      .hero h1 {
        font-family: "Playfair Display", serif;
        font-size: clamp(2.2rem, 5vw, 3.6rem);
        font-weight: 700;
        letter-spacing: -1px;
        line-height: 1.1;
        margin-bottom: 16px;
      }
      .hero h1 em {
        font-style: italic;
        color: var(--accent);
      }
      .hero-sub {
        font-size: 0.95rem;
        color: var(--mid);
        line-height: 1.7;
        max-width: 480px;
        margin: 0 auto 32px;
      }
      .hero-search-wrap {
        max-width: 540px;
        margin: 0 auto 44px;
        position: relative;
      }
      .hero-box {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--white);
        border: 1.5px solid var(--border-dk);
        border-radius: 13px;
        padding: 5px 5px 5px 16px;
        box-shadow: var(--sh1);
        transition: border-color 0.2s;
      }
      .hero-box:focus-within {
        border-color: var(--accent);
      }
      .hero-box input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        font-family: "Inter", sans-serif;
        font-size: 0.88rem;
        color: var(--text);
      }
      .hero-box input::placeholder {
        color: var(--muted);
      }
      .hero-box .si {
        color: var(--muted);
        font-size: 0.95rem;
        flex-shrink: 0;
      }
      .btn-srch {
        background: var(--text);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 9px 18px;
        font-family: "Inter", sans-serif;
        font-weight: 600;
        font-size: 0.78rem;
        cursor: pointer;
        transition: background 0.15s;
        white-space: nowrap;
      }
      .btn-srch:hover {
        background: #333;
      }
      .home-brands {
        display: block;
        max-width: 820px;
        margin: 0 auto;
        padding: 0 2rem 52px;
      }
      .section-label {
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.9px;
        margin-bottom: 14px;
      }
      .brand-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
      }
      .brand-card {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 18px 10px;
        text-align: center;
        cursor: pointer;
        transition: all 0.17s;
        box-shadow: var(--sh0);
      }
      .brand-card:hover {
        border-color: var(--accent);
        box-shadow: var(--sh1);
        transform: translateY(-2px);
      }
      .bc-name {
        font-family: "Playfair Display", serif;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 3px;
      }
      .bc-count {
        font-size: 0.67rem;
        color: var(--muted);
      }
      .home-stats {
        background: var(--text);
        padding: 26px 2rem;
        display: flex;
        justify-content: center;
      }
      .stat-row {
        display: flex;
        max-width: 700px;
        width: 100%;
      }
      .stat {
        flex: 1;
        text-align: center;
        padding: 0 20px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
      }
      .stat:last-child {
        border-right: none;
      }
      .stat-n {
        font-family: "Playfair Display", serif;
        font-size: 1.9rem;
        font-weight: 700;
        color: var(--accent);
      }
      .stat-l {
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.45);
        margin-top: 1px;
      }

      /* BROWSE LAYOUT */
      .browse-outer {
        display: flex;
        gap: 0;
        max-width: 1440px;
        margin: 0 auto;
        padding: 1.5rem 2rem;
        align-items: flex-start;
      }

      /* FILTER PANEL */
      .filter-panel {
        width: 220px;
        flex-shrink: 0;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r);
        position: sticky;
        top: 76px;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        box-shadow: var(--sh0);
      }
      .filter-panel::-webkit-scrollbar {
        width: 4px;
      }
      .filter-panel::-webkit-scrollbar-thumb {
        background: var(--border-dk);
        border-radius: 2px;
      }
      .fp-hdr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 1;
      }
      .fp-hdr-title {
        font-family: "Playfair Display", serif;
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--text);
      }
      .fp-clear {
        background: none;
        border: none;
        font-size: 0.68rem;
        color: var(--accent);
        font-weight: 600;
        cursor: pointer;
        font-family: "Inter", sans-serif;
        padding: 2px 6px;
        border-radius: 3px;
      }
      .fp-clear:hover {
        background: var(--accent-lt);
      }
      .fp-sec {
        border-bottom: 1px solid var(--border);
        padding: 10px 14px;
      }
      .fp-sec:last-child {
        border-bottom: none;
      }
      .fp-sec-title {
        font-size: 0.67rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: var(--text);
        margin-bottom: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .fp-sec-title .arrow {
        color: var(--muted);
        transition: transform 0.2s;
        font-size: 0.6rem;
      }
      .fp-sec.collapsed .fp-sec-body {
        display: none;
      }
      .fp-sec.collapsed .arrow {
        transform: rotate(-90deg);
      }
      .fp-sec-body {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .fp-lbl {
        display: flex;
        align-items: center;
        gap: 7px;
        cursor: pointer;
        font-size: 0.77rem;
        color: var(--mid);
        transition: color 0.12s;
      }
      .fp-lbl:hover {
        color: var(--text);
      }
      .fp-lbl input {
        accent-color: var(--accent);
        width: 13px;
        height: 13px;
        cursor: pointer;
        flex-shrink: 0;
      }
      .fp-lbl input:checked + span {
        color: var(--text);
        font-weight: 600;
      }
      .fp-price-disp {
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 6px;
      }
      .range-wrap {
        position: relative;
        height: 30px;
        margin-bottom: 2px;
      }
      .range-track {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 3px;
        width: 100%;
        background: var(--border);
        border-radius: 2px;
      }
      .range-fill {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 3px;
        background: var(--accent);
        border-radius: 2px;
      }
      .fp-range {
        width: 100%;
        position: absolute;
        pointer-events: none;
        -webkit-appearance: none;
        height: 3px;
        background: transparent;
        outline: none;
        top: 50%;
        transform: translateY(-50%);
      }
      .fp-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: var(--accent);
        cursor: pointer;
        pointer-events: all;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        border: 2px solid white;
      }
      .fp-range::-moz-range-thumb {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: var(--accent);
        cursor: pointer;
        pointer-events: all;
        border: 2px solid white;
      }
      .fp-buckets {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid var(--border);
      }

      /* BROWSE MAIN */
      .browse-main {
        flex: 1;
        min-width: 0;
        padding-left: 20px;
      }
      .brow-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        gap: 10px;
        flex-wrap: wrap;
      }
      .brow-top h2 {
        font-family: "Playfair Display", serif;
        font-size: 1.3rem;
        font-weight: 700;
      }
      .brow-controls {
        display: flex;
        gap: 7px;
        align-items: center;
      }
      .inp {
        background: var(--white);
        border: 1px solid var(--border);
        color: var(--text);
        padding: 7px 12px;
        border-radius: var(--rsm);
        font-family: "Inter", sans-serif;
        font-size: 0.8rem;
        outline: none;
        transition: border-color 0.2s;
        box-shadow: var(--sh0);
      }
      .inp:focus {
        border-color: var(--accent);
      }
      .inp::placeholder {
        color: var(--muted);
      }
      .inp-s {
        width: 200px;
      }
      .mob-filter-btn {
        display: none;
        align-items: center;
        gap: 5px;
        background: var(--white);
        border: 1px solid var(--border);
        color: var(--mid);
        padding: 6px 11px;
        border-radius: var(--rsm);
        font-size: 0.75rem;
        font-family: "Inter", sans-serif;
        font-weight: 500;
        cursor: pointer;
      }
      .rcount {
        font-size: 0.72rem;
        color: var(--muted);
        margin-bottom: 10px;
      }

      /* PRODUCT GRID */
      .pgrid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 11px;
      }
      .pc {
        background: var(--white);
        border: 1.5px solid var(--border);
        border-radius: var(--r);
        overflow: hidden;
        cursor: pointer;
        transition: all 0.17s;
        box-shadow: var(--sh0);
        position: relative;
      }
      .pc:hover {
        border-color: var(--border-dk);
        box-shadow: var(--sh1);
        transform: translateY(-3px);
      }
      .pc.sel {
        border-color: var(--accent);
        border-width: 2px;
      }
      .pc-img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        background: var(--surface);
        padding: 12px;
      }
      .pc-body {
        padding: 10px 12px;
      }
      .pc-brand {
        font-size: 0.64rem;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-bottom: 3px;
      }
      .pc-title {
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 5px;
        color: var(--text);
      }
      .pc-tags {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        margin-bottom: 6px;
      }
      .tag {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 2px 7px;
        font-size: 0.57rem;
        color: var(--muted);
        font-weight: 500;
        letter-spacing: .01em;
      }
      .tag.tsa {
        background: var(--green-lt);
        border-color: #a8dbbe;
        color: var(--green);
      }
      .pc-price {
        display: flex;
        align-items: baseline;
        gap: 5px;
      }
      .pm {
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--text);
      }
      .pmrp {
        font-size: 0.63rem;
        color: var(--muted);
        text-decoration: line-through;
      }
      .poff {
        font-size: 0.58rem;
        color: var(--green);
        font-weight: 600;
        background: var(--green-lt);
        padding: 1px 6px;
        border-radius: 20px;
      }
      .sel-dot {
        position: absolute;
        top: 8px;
        right: 8px;
        background: var(--accent);
        color: #fff;
        border-radius: 50%;
        width: 26px;
        height: 26px;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 800;
        box-shadow: 0 2px 8px rgba(0,0,0,.25);
        border: 2px solid #fff;
        z-index: 5;
      }
      .pc.sel .sel-dot {
        display: flex;
      }
      .pc.sel::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(191,127,46,.06);
        pointer-events: none;
        z-index: 1;
        border-radius: var(--r);
      }
      .pag {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: 18px;
        flex-wrap: wrap;
      }
      .pbtn {
        background: var(--white);
        border: 1px solid var(--border);
        color: var(--mid);
        width: 32px;
        height: 32px;
        border-radius: var(--rxs);
        cursor: pointer;
        font-family: "Inter", sans-serif;
        font-size: 0.75rem;
        font-weight: 500;
        transition: all 0.12s;
      }
      .pbtn:hover {
        border-color: var(--accent);
        color: var(--accent);
      }
      .pbtn.on {
        background: var(--text);
        border-color: var(--text);
        color: #fff;
        font-weight: 700;
      }

      /* COMPARE BAR */

      /* COMPARE */
      .cmp-page {
        max-width: 1320px;
        margin: 0 auto;
        padding: 2rem 2.5rem;
      }
      .cmp-hdr {
        margin-bottom: 20px;
      }
      .cmp-hdr h2 {
        font-family: "Playfair Display", serif;
        font-size: 1.4rem;
        font-weight: 700;
      }
      .cmp-hdr p {
        font-size: 0.8rem;
        color: var(--muted);
        margin-top: 3px;
      }
      .picker-box {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 18px 22px;
        margin-bottom: 24px;
        box-shadow: var(--sh0);
      }
      .picker-box-hdr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
      }
      .cmp-hint {
        font-size: .78rem;
        color: var(--muted);
        text-align: center;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
      }
      .cmp-hint-link {
        color: var(--accent);
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
      }
      .cmp-hint-link:hover { text-decoration: underline; }
      .picker-box h3 {
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 14px;
      }
      .prow {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        flex-wrap: wrap;
      }
      .pcol {
        flex: 1;
        min-width: 175px;
      }
      .pcol label {
        display: block;
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--muted);
        margin-bottom: 5px;
      }
      .pinp {
        width: 100%;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text);
        padding: 8px 11px;
        border-radius: var(--rsm);
        font-family: "Inter", sans-serif;
        font-size: 0.8rem;
        outline: none;
        transition: border-color 0.2s;
      }
      .pinp:focus {
        border-color: var(--accent);
        background: var(--white);
      }
      .pinp::placeholder {
        color: var(--muted);
      }
      .vs-d {
        font-family: "Playfair Display", serif;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--muted);
        padding-top: 24px;
        flex-shrink: 0;
      }
      .pchip {
        display: none;
        align-items: center;
        gap: 7px;
        background: var(--accent-lt);
        border: 1.5px solid var(--accent);
        border-radius: var(--rsm);
        padding: 7px 10px;
        width: 100%;
      }
      .pchip.show {
        display: flex;
      }
      .pchip-img {
        width: 30px;
        height: 30px;
        object-fit: contain;
        background: #fff;
        border-radius: 4px;
      }
      .pchip-info {
        flex: 1;
        min-width: 0;
      }
      .pchip-t {
        font-size: 0.73rem;
        font-weight: 600;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .pchip-b {
        font-size: 0.63rem;
        color: var(--muted);
      }
      .pchip-x {
        background: none;
        border: none;
        color: var(--muted);
        cursor: pointer;
        font-size: 0.95rem;
      }
      .pchip-x:hover {
        color: var(--red);
      }
      .ct-wrap {
        overflow-x: auto;
        border-radius: var(--r);
        box-shadow: var(--sh0);
      }
      .ct {
        width: 100%;
        border-collapse: collapse;
        background: var(--white);
        table-layout: fixed;
      }
      .ct th,
      .ct td {
        padding: 0;
        vertical-align: top;
      }
      .ph {
        background: var(--white);
        border: 1px solid var(--border);
        border-bottom: 2px solid var(--border);
        padding: 10px 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
      }
      .ph-img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        object-position: center;
        background: var(--surface);
        border-radius: 7px;
        margin-bottom: 8px;
        flex-shrink: 0;
        display: block;
      }
      .ph-brand {
        font-size: 0.62rem;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .ph-title {
        font-family: "Playfair Display", serif;
        font-size: 0.8rem;
        font-weight: 600;
        margin: 3px 0;
        line-height: 1.3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.2em;
        width: 100%;
      }
      .ph-price {
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--text);
        margin-top: auto;
        padding-top: 6px;
      }
      .ph-off {
        font-size: 0.67rem;
        color: var(--green);
        font-weight: 600;
        margin-top: 2px;
      }
      .ph-mrp {
        font-size: 0.67rem;
        color: var(--muted);
        text-decoration: line-through;
      }
      .ph-link {
        display: inline-block;
        margin-top: 8px;
        font-size: 0.68rem;
        color: var(--accent);
        font-weight: 600;
        border: 1px solid var(--accent);
        padding: 4px 11px;
        border-radius: 5px;
        text-decoration: none;
        transition: all 0.14s;
      }
      .ph-link:hover {
        background: var(--accent);
        color: #fff;
      }
      .sec-row td {
        background: var(--surface);
        padding: 7px 14px;
        border: 1px solid var(--border);
        font-size: 0.66rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: var(--muted);
      }
      .sec-row td:first-child {
        border-left: 3px solid var(--accent);
      }
      .fr td {
        border: 1px solid var(--border);
        padding: 10px 14px;
        font-size: 0.8rem;
        vertical-align: middle;
      }
      .fr td:first-child {
        color: var(--mid);
        font-size: 0.76rem;
        font-weight: 500;
        background: var(--surface);
        width: 155px;
      }
      .fr td:not(:first-child) {
        text-align: center;
        background: var(--white);
      }
      .fr:nth-child(even) td:not(:first-child) {
        background: #fdfcfb;
      }
      .na {
        color: var(--muted);
      }
      .empty {
        text-align: center;
        padding: 4rem 2rem;
      }
      .empty-icon {
        font-size: 2.8rem;
        margin-bottom: 14px;
      }
      .empty h3 {
        font-family: "Playfair Display", serif;
        font-size: 1.2rem;
        margin-bottom: 7px;
      }
      .empty p {
        font-size: 0.82rem;
        color: var(--muted);
      }
      ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
      }
      ::-webkit-scrollbar-track {
        background: var(--surface);
      }
      ::-webkit-scrollbar-thumb {
        background: var(--border-dk);
        border-radius: 3px;
      }

      @media (max-width: 960px) {
        nav {
          padding: 0 1rem;
        }
        .hero {
          padding: 44px 1rem 28px;
        }
        .brand-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .home-brands,
        .hero {
          padding-left: 1rem;
          padding-right: 1rem;
        }
        .browse-outer {
          padding: 1rem;
          flex-direction: column;
        }
        .filter-panel {
          width: 100%;
          position: static;
          max-height: none;
          display: none;
          border-radius: var(--rsm);
        }
        .filter-panel.mob-open {
          display: block;
        }
        .browse-main {
          padding-left: 0;
          width: 100%;
        }
        .mob-filter-btn {
          display: flex;
        }
        .cmp-page {
          padding: 1rem;
        }
        .prow {
          flex-direction: column;
        }
        .vs-d {
          display: none;
        }
      }

      .pop-section-title {
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: var(--muted);
        margin-bottom: 12px;
      }
      /* Similar products multi-select rows */
      .sim-cmp-row {
        display: flex; align-items: center; gap: 10px;
        background: var(--white); border: 1.5px solid var(--border);
        border-radius: var(--r); padding: 10px 12px; cursor: pointer;
        transition: border-color .15s, background .15s;
      }
      .sim-cmp-row:hover { border-color: var(--accent); background: var(--surface); }
      .sim-cmp-row:has(.sim-cmp-chk:checked) { border-color: var(--accent); background: var(--accent-lt); }
      .sim-cmp-chk { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
      .sim-cmp-img { width: 52px; height: 52px; object-fit: contain; background: var(--surface); border-radius: 6px; padding: 4px; flex-shrink: 0; }
      .sim-cmp-info { flex: 1; min-width: 0; }
      .sim-cmp-brand { font-size: .57rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; }
      .sim-cmp-title { font-size: .78rem; font-weight: 600; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .sim-cmp-tag { font-size: .7rem; font-weight: 700; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
      .pop-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 28px;
        max-width: 100%;
      }
      .pop-card {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 16px;
        cursor: pointer;
        transition: all 0.17s;
        box-shadow: var(--sh0);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
      }
      .pop-card:hover {
        border-color: var(--accent);
        box-shadow: var(--sh1);
        transform: translateY(-2px);
      }
      .pop-prod {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        flex: 1;
        min-width: 0;
      }
      .pop-prod-img {
        width: 108px;
        height: 108px;
        object-fit: contain;
        background: var(--surface);
        border-radius: 8px;
        flex-shrink: 0;
      }
      .pop-prod-brand {
        font-size: 0.6rem;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        text-align: center;
      }
      .pop-prod-name {
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--text);
        text-align: center;
        line-height: 1.35;
        width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .pop-vs {
        font-size: 0.62rem;
        font-weight: 800;
        color: var(--border-dk);
        background: var(--surface);
        border-radius: 50%;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        letter-spacing: 0.3px;
      }
      @media (max-width: 700px) {
        .pop-grid {
          grid-template-columns: 1fr;
        }
      }

      .pc {
        cursor: pointer;
      }
      .pc-body {
        flex: 1;
      }
      .pc-add-btn {
        display: block;
        width: calc(100% - 16px);
        margin: 0 8px 10px;
        padding: 7px;
        background: var(--accent-lt);
        border: 1.5px solid var(--accent);
        border-radius: 100px;
        font-family: "Inter", sans-serif;
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--accent-dk);
        cursor: pointer;
        transition: all 0.15s;
        text-align: center;
        letter-spacing: 0.02em;
      }
      .pc-add-btn:hover {
        background: var(--accent);
        color: #fff;
      }
      .pc-add-btn.added {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
      }

      /* ── SCENARIOS ── */
      .hero {
        max-width: 820px;
        margin: 0 auto;
        padding: 52px 2rem 16px;
        text-align: center;
      }
      .hero-sub {
        display: none;
      }
      .scenarios-section {
        max-width: 820px;
        margin: 0 auto;
        padding: 0 2rem 52px;
      }
      .scenarios-label {
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.9px;
        color: var(--muted);
        margin-bottom: 14px;
      }
      .scenarios-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
      }
      .sc-card {
        background: var(--white);
        border: 1.5px solid var(--border);
        border-radius: var(--r);
        padding: 18px;
        cursor: pointer;
        transition: all 0.18s;
        box-shadow: var(--sh0);
        position: relative;
        overflow: hidden;
      }
      .sc-card:hover {
        border-color: var(--accent);
        box-shadow: var(--sh1);
        transform: translateY(-2px);
      }
      .sc-card.active {
        border-color: var(--accent);
        border-width: 2px;
        background: var(--accent-lt);
      }
      .sc-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        margin-bottom: 12px;
        flex-shrink: 0;
      }
      .sc-name {
        font-family: "Playfair Display", serif;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 4px;
        line-height: 1.3;
      }
      .sc-desc {
        font-size: 0.72rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin-bottom: 10px;
        color: var(--muted);
      }
      .sc-tags {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
      }
      .sc-tag {
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 2px 9px;
        font-size: 0.65rem;
        font-weight: 500;
        color: var(--mid);
      }
      .sc-card.active .sc-tag {
        background: rgba(191, 127, 46, 0.12);
        border-color: var(--accent);
        color: var(--accent-dk);
      }
      @media (max-width: 700px) {
        .scenarios-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      @media (max-width: 440px) {
        .scenarios-grid {
          grid-template-columns: 1fr;
        }
      }

      .pc-gallery {
        position: relative;
        background: var(--surface);
      }
      .pc-img {
        width: 100%;
        height: 240px;
        object-fit: contain;
        padding: 12px;
        display: block;
      }
      .pc-dots {
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 4px;
        z-index: 2;
      
        pointer-events: all;
      }
      .pc-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.18);
        cursor: pointer;
        transition: all 0.15s;
      
        pointer-events: all;
      }
      .pc-dot.act {
        background: var(--accent);
        width: 14px;
        border-radius: 3px;
      }

      .ph-gallery {
        position: relative;
        width: 100%;
        margin-bottom: 10px;
      }
      .ph-img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        object-position: center;
        background: var(--surface);
        border-radius: 7px;
        display: block;
        cursor: pointer;
        flex-shrink: 0;
      }
      .ph-dots {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: 6px;
     
        pointer-events: all;
       }
      .ph-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--border-dk);
        cursor: pointer;
        transition: all 0.15s;
     
        pointer-events: all;
       }
      .ph-dot.act {
        background: var(--accent);
        width: 14px;
        border-radius: 3px;
      }

      /* ── IMAGE ARROWS ── */
      .pc-gallery {
        position: relative;
        background: var(--surface);
      }
      .pc-nav {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 6px;
        z-index: 10;
        pointer-events: none;
        opacity: 0;
        transition: opacity .15s;
      }
      .pc:hover .pc-nav {
        opacity: 1;
      }
      .pc-arrow {
        pointer-events: all !important;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1;
        color: var(--mid);
        flex-shrink: 0;
        transition: all 0.14s;
        padding: 0;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
      }
      .pc-arrow:hover {
        background: var(--white);
        color: var(--accent);
        border-color: var(--accent);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      }
      .pc-dots {
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 3px;
        align-items: center;
        pointer-events: all;
      }
      .pc-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: all 0.15s;
        display: inline-block;
      }
      .pc-dot.act {
        background: var(--accent);
        width: 12px;
        border-radius: 3px;
      }
      .ph-arrow {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1;
        color: var(--mid);
        flex-shrink: 0;
        transition: all 0.14s;
        padding: 0;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
     
        pointer-events: all;
       }
      .ph-arrow:hover {
        background: var(--white);
        color: var(--accent);
        border-color: var(--accent);
      }
      .ph-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-bottom: 8px;
     
        pointer-events: all;
       }
    

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤900px) + Mobile (≤600px)
   ═══════════════════════════════════════════════════════ */

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {

  /* Nav */
  nav { padding: 0 1rem; gap: 12px; height: 58px; }
  .nav-logo { font-size: 1.35rem; }
  .nav-divider { height: 20px; }
  .nb { font-size: .72rem; padding: 6px 10px; }

  /* Hero */
  .hero { padding: 36px 1rem 14px; }
  h1 { font-size: 1.8rem; }

  /* Scenario cards */
  .scenarios-section { padding: 0 1rem 36px; }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Browse */
  .browse-outer { flex-direction: column; padding: 1rem; gap: 0; }
  .filter-panel { width: 100%; position: static; max-height: none; display: none; border-radius: var(--rsm); }
  .filter-panel.mob-open { display: block; }
  .browse-main { padding-left: 0; width: 100%; }
  .mob-filter-btn { display: flex; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc-img { height: 180px; padding: 10px; }

  /* Compare pickers */
  .prow { flex-wrap: wrap; gap: 8px; }
  .pcol { min-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }
  .vs-d { display: none; }
  .cmp-page { padding: 1rem; }

  /* Compare table */
  .ct-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ct td, .ct th { min-width: 140px; }
  .ph-img { height: 180px; }
  .ph-title { font-size: .78rem; }

  /* Popular comparisons */
  .pop-grid { grid-template-columns: 1fr !important; }
  .pop-card { flex-direction: row; align-items: center; }

  /* Brand grid */
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {

  /* Base */
  body { font-size: 15px; }
  :root { --r: 10px; --rsm: 7px; }

  /* Nav */
  nav { padding: 0 .85rem; gap: 8px; height: 54px; }
  .nav-logo { font-size: 1.15rem; letter-spacing: -.5px; }
  .nav-divider { display: none; }
  .nav-links { gap: 1px; padding: 2px; }
  .nb { font-size: .63rem; padding: 5px 8px; }

  /* Hero */
  .hero { padding: 28px .85rem 10px; }
  h1 { font-size: 1.5rem; line-height: 1.2; }
  .hero-box { padding: 8px 12px; gap: 6px; }
  .hero-box input { font-size: .82rem; }
  .btn-srch { font-size: .75rem; padding: 6px 12px; }

  /* Scenario cards — 2-col grid */
  .scenarios-section { padding: 0 .85rem 28px; }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sc-card { padding: 14px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .sc-icon { margin-bottom: 10px; flex-shrink: 0; width: 36px; height: 36px; }
  .sc-name { font-size: .85rem; margin-bottom: 4px; }
  .sc-desc { display: none; }

  /* Browse */
  .browse-outer { padding: .85rem; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pc-img { height: 130px; padding: 6px; }
  .pc-body { padding: 6px 8px; }
  .pc-title { font-size: .68rem; }
  .pc-price { font-size: .7rem; }
  .pc-add-btn { font-size: .62rem; padding: 5px; margin: 0 6px 6px; width: calc(100% - 12px); }
  .bs-wrap { padding: .85rem; }

  /* Compare pickers — stack fully */
  .prow { flex-direction: column; gap: 8px; }
  .pcol { min-width: 100%; }
  .cmp-page { padding: .85rem; }
  .picker-box { padding: 12px; }
  .picker-box h3 { font-size: .88rem; }

  /* Compare table — scrollable, compact */
  .ct-wrap { border-radius: var(--rsm); margin: 0 -.85rem; border-radius: 0; }
  .ct { font-size: .75rem; }
  .ct td, .ct th { padding: 8px 10px; min-width: 130px; }
  .ct td:first-child { min-width: 110px; font-size: .68rem; }
  .ph { padding: 8px; }
  .ph-img { height: 120px; }
  .ph-title { font-size: .72rem; line-height: 1.2; }
  .ph-brand { font-size: .55rem; }
  .ph-link { font-size: .6rem; }
  .sec-row td { font-size: .66rem; padding: 6px 10px; }
  .fr td { font-size: .72rem; padding: 7px 10px; }

  /* Popular comparisons */
  .pop-grid { grid-template-columns: 1fr !important; }
  .pop-card { gap: 10px; padding: 10px; }
  .pop-prod-img { width: 44px; height: 44px; }
  .pop-vs { font-size: .65rem; }

  /* Brand grid */
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Stats bar */
  .stats-bar { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .stat-item { min-width: 80px; }

  /* Category tabs in compare */
  #fit-score-section > div:first-child { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Price/marketplace table */
  table[style] { font-size: .72rem; }
}

/* ── Small mobile (≤380px) ── */
@media (max-width: 380px) {
  .pgrid { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .nb { font-size: .56rem; padding: 4px 5px; }
  .nav-logo { font-size: 1rem; }
  .nav-links { gap: 0; }
}

/* ══════════════════════════════════════════════
   QUIZ PAGE
   ══════════════════════════════════════════════ */
.quiz-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 60px;
  background: var(--bg);
}
.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px 32px;
  max-width: 780px;
  width: 100%;
  box-shadow: var(--sh1);
  position: relative;
}

/* Progress bar */
.quiz-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .4s ease;
}
.quiz-step-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}
.quiz-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}
.quiz-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Option grid */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.quiz-option {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  cursor: pointer;
  transition: all .18s;
  background: var(--white);
  text-align: left;
  display: block;
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}
.quiz-option.selected {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--accent-lt);
}
.quiz-opt-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}
.quiz-opt-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.quiz-opt-desc {
  font-size: .78rem;
  color: var(--muted);
  margin-left: 3px;
}

/* Nav row */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.quiz-back-btn {
  background: none;
  border: none;
  color: var(--mid);
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.quiz-back-btn:hover { color: var(--text); }
.quiz-next-btn {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quiz-next-btn:hover { background: #333; }
.quiz-next-btn:disabled { opacity: .4; cursor: default; }

/* Results */
.quiz-results-header {
  text-align: center;
  padding: 40px 20px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.quiz-results-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.quiz-results-header p { font-size: .88rem; color: var(--mid); }

@media (max-width: 600px) {
  .quiz-card { padding: 24px 18px 22px; border-radius: 16px; }
  .quiz-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .quiz-option { padding: 14px 12px; }
  .quiz-opt-icon { font-size: 1.4rem; margin-bottom: 7px; }
  .quiz-opt-label { font-size: .9rem; }
  .quiz-wrap { padding: 20px 12px 50px; align-items: flex-start; }
}

/* ══════════════════════════════════════════════
   COMPARISON BUCKET (compare page)
   ══════════════════════════════════════════════ */
.bucket-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px 14px;
  margin-bottom: 24px;
  box-shadow: var(--sh0);
}
.bucket-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bucket-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.bucket-clear-btn {
  background: none;
  border: none;
  font-size: .68rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 2px 6px;
  border-radius: 4px;
}
.bucket-clear-btn:hover { background: var(--accent-lt); }

/* Slots row */
.bucket-slots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bucket-slot-filled {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  position: relative;
}
.bucket-slot-num {
  font-size: .62rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Geist Mono', 'Courier New', monospace;
  flex-shrink: 0;
  min-width: 18px;
}
.bucket-slot-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bucket-slot-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .95rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 2px;
  transition: color .12s;
}
.bucket-slot-x:hover { color: var(--text); }

.bucket-slot-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  flex: 1;
  min-width: 160px;
  cursor: pointer;
  transition: all .15s;
  background: none;
  font-family: 'Inter', sans-serif;
}
.bucket-slot-empty:hover { border-color: var(--accent); background: var(--accent-lt); }
.bucket-slot-empty-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.bucket-slot-empty-txt {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

/* Search dropdown within bucket */
.bucket-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.bucket-search-inp {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 9px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: var(--text);
  outline: none;
}
.bucket-search-inp::placeholder { color: var(--muted); }

.bucket-hint {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  padding-top: 6px;
}
.bucket-hint-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.bucket-hint-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .bucket-slots { gap: 7px; }
  .bucket-slot-filled, .bucket-slot-empty { min-width: calc(50% - 4px); flex: 0 0 calc(50% - 4px); }
}

/* ── CATEGORY TABS ── */
.cat-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 2rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--mid);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cat-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 600px) {
  .cat-tabs { padding: 10px .85rem; gap: 5px; }
  .cat-tab { font-size: .72rem; padding: 6px 12px; }
}

/* Compare page mobile improvements */
@media (max-width: 700px) {
  .picker-box { padding: 12px 10px; }
  .picker-box h3 { font-size: .78rem; margin-bottom: 10px; }
  .pcol label { font-size: .66rem; }
  .prow { gap: 6px; }

  /* Always side-by-side scrollable table */
  .ct-wrap {
    border-radius: 0;
    margin: 0 -.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ct {
    table-layout: auto;
    font-size: .72rem;
  }
  .ct td, .ct th { padding: 8px 9px; min-width: 110px; }
  .ct td:first-child { min-width: 95px; font-size: .66rem; }
  .ph { height: auto; padding: 8px; }
  .ph-img { height: 110px !important; }
  .ph-title { font-size: .7rem; }
  .ph-brand { font-size: .54rem; }
  .ph-link { font-size: .6rem; padding: 3px 8px; }
  .sec-row td { font-size: .62rem; padding: 6px 9px; }
  .fr td { font-size: .7rem; padding: 7px 9px; }
  .fr td:first-child { min-width: 95px; font-size: .64rem; }

  /* Price table on mobile */
  #cmp-result > div:last-child { margin: 8px -.85rem 0; border-radius: 0; }
}

/* ── Best Match persistent strip ── */
.best-match-strip {
  background: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: var(--r);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 4px 18px rgba(191,127,46,.12);
}
.bms-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dk));
}
.bms-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.bms-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: var(--surface);
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.bms-info { flex: 1; min-width: 0; }
.bms-label {
  font-size: .6rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.bms-name {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.bms-brand {
  font-size: .62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bms-adv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  background: var(--accent-lt);
  border: 1px solid #f0d4a0;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: .65rem;
  font-weight: 600;
  color: var(--accent-dk);
}
.bms-right {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bms-score {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.bms-score span { font-size: .8rem; color: var(--muted); font-weight: 400; }
.bms-why-btn {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.bms-why-btn:hover { background: #333; }

@media (max-width: 600px) {
  .bms-body { gap: 12px; padding: 12px 14px; }
  .bms-img { width: 52px; height: 52px; }
  .bms-name { font-size: .85rem; }
  .bms-score { font-size: 1.6rem; }
}

/* Winner bar — hidden */
.winner-bar { display: none; }

/* Winner .ph card — shadow + amber border, same size as other cards */
.ph-winner {
  border: 1px solid var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1);
}

/* Badge row — same height on every card so all cards stay uniform */
.winner-badge-row {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 4px;
  flex-shrink: 0;
}
.winner-badge {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .58rem;
  font-weight: 700;
  padding: 4px 12px;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: background .15s;
}
.winner-badge:hover { background: var(--accent-dk); }

/* ══════════════════════════════════════════════
   WINNER POPUP
   ══════════════════════════════════════════════ */
.winner-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.winner-popup-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.winner-popup-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 20px 18px;
  max-width: 340px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  transform: scale(.94);
  transition: transform .2s ease;
}
.winner-popup-overlay.open .winner-popup-card {
  transform: scale(1);
}
.winner-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--surface2);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: background .15s;
}
.winner-popup-close:hover { background: var(--border-dk); color: var(--text); }

/* Popup content */
.wpop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.wpop-badge {
  background: var(--accent);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.wpop-score {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.wpop-score span { font-size: .75rem; color: var(--muted); font-weight: 400; }
.wpop-name {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.wpop-brand {
  font-size: .6rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.wpop-why-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.wpop-reasons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.wpop-reason-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.wpop-reason-icon { font-size: .85rem; flex-shrink: 0; }
.wpop-reason-name { font-size: .75rem; font-weight: 700; color: var(--text); flex: 1; }
.wpop-reason-score { font-size: .72rem; font-weight: 800; flex-shrink: 0; }
.wpop-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}
.wpop-bar-fill { height: 3px; border-radius: 2px; transition: width .5s ease; }
.wpop-reason-desc { font-size: .68rem; color: var(--mid); line-height: 1.45; }
.wpop-cta {
  display: block;
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.wpop-cta:hover { background: #333; }

@media (max-width: 400px) {
  .winner-popup-card { padding: 16px 14px 14px; }
  .wpop-name { font-size: .88rem; }
}

/* ══════════════════════════════════════════════
   COMPARE BAR  (sticky bottom tray)
   ══════════════════════════════════════════════ */
.cbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: #fff;
  border-top: 1.5px solid var(--border-dk);
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.cbar.vis {
  transform: translateY(0);
}
.cbar.cbar-hidden {
  display: none;
}

/* Thumbnail strip (full-width product image row) */
.cbar-strip {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.cbar-strip-item {
  flex: 1;
  position: relative;
  border-right: 1px solid var(--border);
  height: 68px;
}
.cbar-strip-item:last-child { border-right: none; }
.cbar-strip-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: var(--surface);
  display: block;
}
.cbar-strip-x {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: .75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s;
}
.cbar-strip-x:hover { background: rgba(0,0,0,.8); }

/* Bottom row */
.cbar-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.cbar-slots {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cbar-slots::-webkit-scrollbar { display: none; }
.cbar-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  flex-shrink: 0;
  max-width: 200px;
}
.cbar-slot-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  flex-shrink: 0;
}
.cbar-slot-info { flex: 1; min-width: 0; }
.cbar-slot-brand {
  font-size: .6rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.cbar-slot-title {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cbar-slot-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color .12s;
}
.cbar-slot-x:hover { color: var(--text); }

/* Action buttons */
.cbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cbar-hint {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
}
.cbar-btn-compare {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cbar-btn-compare:not(:disabled):hover { background: #333; }
.cbar-btn-compare:disabled { cursor: default; }
.cbar-btn-clear {
  background: none;
  color: var(--mid);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-transform: uppercase;
  white-space: nowrap;
}
.cbar-btn-clear:hover { border-color: var(--text); color: var(--text); }

/* Add bottom padding to browse page so cbar doesn't cover content */
body.cbar-open #pg-browse { padding-bottom: 160px; }

/* Mobile: show only image strip + buttons (hide text slots) */
@media (max-width: 600px) {
  .cbar-bottom { padding: 8px 12px; gap: 8px; }
  .cbar-slots { display: none; }
  .cbar-strip { border-bottom: none; }
  .cbar-strip-item { height: 54px; }
  .cbar-hint { font-size: .68rem; }
  .cbar-btn-compare { padding: 9px 16px; font-size: .75rem; }
  .cbar-btn-clear { padding: 8px 12px; font-size: .72rem; }
  body.cbar-open #pg-browse { padding-bottom: 130px; }
}

/* ══════════════════════════════════════════════
   COMPARE PAGE — mobile-friendly pickers
   ══════════════════════════════════════════════ */
@media (max-width: 680px) {
  .prow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .vs-d { display: none !important; }
  .pcol { min-width: 0; flex: none; }
  .cmp-page { padding: .85rem; }
}

/* ── BLOG PAGE ── */
.blog-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 2rem 36px;
  text-align: center;
}
.blog-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.blog-hero h1 em { font-style: italic; color: var(--accent); }
.blog-hero-sub {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}
.blog-grid-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem 60px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  box-shadow: var(--sh0);
}
.blog-card:hover {
  border-color: var(--border-dk);
  box-shadow: var(--sh1);
  transform: translateY(-3px);
}
.blog-card-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.blog-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-title {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.blog-excerpt {
  font-size: 0.76rem;
  color: var(--mid);
  line-height: 1.55;
  flex: 1;
}
.blog-meta {
  font-size: 0.67rem;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero { padding: 36px 1rem 24px; }
  .blog-grid-wrap { padding: 0 1rem 48px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; gap: 12px; }
  .blog-hero { padding: 28px .85rem 18px; }
  .blog-grid-wrap { padding: 0 .85rem 40px; }
}

/* ── Blog info sections ── */
.blog-info-section {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--sh0);
}
.info-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.info-card-title {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.info-card-body { font-size: .78rem; color: var(--mid); line-height: 1.65; }
.info-card-body strong { color: var(--text); }

/* Size chart */
.size-chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  min-width: 520px;
}
.size-chart thead { background: var(--text); color: #fff; }
.size-chart th { padding: 11px 14px; font-size: .68rem; font-weight: 600; text-align: left; letter-spacing: .04em; }
.size-chart td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.size-chart tbody tr:last-child td { border-bottom: none; }
.size-chart tbody tr:nth-child(even) { background: var(--surface); }
.sc-size { font-weight: 700; color: var(--text); }
.sc-yes { color: #287a4a; font-weight: 600; }
.sc-no  { color: var(--muted); }
.sc-maybe { color: #d97706; font-weight: 600; }
.size-chart-note { font-size: .72rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* Tips grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--sh0);
}
.tip-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.tip-card h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.3;
}
.tip-card p { font-size: .74rem; color: var(--mid); line-height: 1.6; }

@media (max-width: 900px) {
  .info-cards-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .info-cards-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .blog-info-section { margin-top: 36px; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  margin-top: 0;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 2rem 32px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.footer-logo span { color: var(--accent); }
.footer-brand-col p {
  font-size: 0.82rem;
  line-height: 1.65;
  max-width: 240px;
  color: rgba(255,255,255,.55);
}
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 9px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-dd { margin-bottom: 4px; }
.footer-dd-hd {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: rgba(255,255,255,.55);
  margin-bottom: 0; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-dd-hd:hover { color: rgba(255,255,255,.85); }
.footer-dd-arrow { font-size: .65rem; transition: transform .2s; display: inline-block; }
.footer-dd-hd.open .footer-dd-arrow { transform: rotate(180deg); }
.footer-dd-body { overflow: hidden; max-height: 0; transition: max-height .25s ease, padding .2s; padding-top: 0; }
.footer-dd-body.open { max-height: 300px; padding-top: 8px; }
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 2rem 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.72rem;
  color: rgba(255,255,255,.35);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; padding: 32px 1rem 20px; }
  .footer-bottom { padding: 12px 1rem 20px; }
}

/* ══════════════════════════════════════════════
   404 PAGE  (templates/404.html)
   ══════════════════════════════════════════════ */
.state-404-page {
  min-height: calc(100vh - 64px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.s404-inner {
  text-align: center;
  max-width: 480px;
}
.s404-code {
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: .25;
  letter-spacing: -4px;
}
.s404-icon {
  font-size: 3.5rem;
  display: block;
  margin: 4px 0 20px;
}
.s404-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.s404-sub {
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 32px;
}
.s404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.s404-btn-primary {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.s404-btn-primary:hover { background: #333; }
.s404-btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 11px 26px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .15s;
}
.s404-btn-secondary:hover { background: var(--accent-lt); }
.s404-links {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.s404-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.s404-links a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   API ERROR STATE  (full-page, injected by app.js)
   ══════════════════════════════════════════════ */
.state-api-error {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.sae-icon { font-size: 3rem; margin-bottom: 18px; }
.sae-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.sae-sub {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 28px;
}
.sae-actions { margin-bottom: 20px; }
.sae-btn-primary {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s;
}
.sae-btn-primary:hover { background: #333; }
.sae-detail {
  font-size: .7rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  display: inline-block;
}

/* ══════════════════════════════════════════════
   COMPARE EMPTY STATE
   ══════════════════════════════════════════════ */
.cmp-empty {
  text-align: center;
  padding: 3rem 2rem 2rem;
}
.cmp-empty-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.cmp-empty-step {
  flex: 0 0 auto;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh0);
}
.cmp-empty-step-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 2px;
}
.cmp-empty-step-num {
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmp-empty-step-label {
  font-family: 'Playfair Display', serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.cmp-empty-step-desc {
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
.cmp-empty-arrow {
  font-size: 1.2rem;
  color: var(--border-dk);
  align-self: center;
  padding: 0 8px;
  flex-shrink: 0;
  font-weight: 700;
}
.cmp-empty-hint {
  font-size: .82rem;
  color: var(--muted);
}
.cmp-empty-hint strong { color: var(--text); }

@media (max-width: 600px) {
  .cmp-empty-steps { gap: 8px; }
  .cmp-empty-step { width: 140px; padding: 14px 10px; }
  .cmp-empty-arrow { display: none; }
}

/* ══════════════════════════════════════════════
   BROWSE NO-RESULTS — reset button
   ══════════════════════════════════════════════ */
.empty-reset-btn {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.empty-reset-btn:hover { background: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════
   UNIFORM CARD HEIGHTS (browse + compare)
   ══════════════════════════════════════════════ */
.pc { display: flex; flex-direction: column; }
.pc-body { flex: 1; display: flex; flex-direction: column; }
.pc-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.55em;
  flex-shrink: 0;
}
.pc-tags { min-height: 26px; flex-shrink: 0; }
.pc-price { margin-top: auto; padding-top: 4px; }

/* Rating row on browse cards */
.pc-rating {
  font-size: .63rem; color: var(--muted);
  margin-top: 5px; flex-shrink: 0;
  display: flex; align-items: center; gap: 4px;
}
.pc-rating-stars { color: #f59e0b; font-size: .68rem; letter-spacing: -.5px; line-height: 1; }
.pc-rating-val { font-weight: 700; color: var(--mid); }
.pc-rating-count { font-size: .6rem; }
.pc-rating-soon { font-style: italic; font-size: .6rem; color: var(--border-dk); }

/* ══════════════════════════════════════════════
   STICKY FIRST COLUMN — compare table
   ══════════════════════════════════════════════ */
.ct { border-collapse: separate; border-spacing: 0; }
.ct td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0,0,0,.06);
}

/* ══════════════════════════════════════════════
   COMPARE PRODUCT HEADER — rating + best price
   ══════════════════════════════════════════════ */
.ph-rating {
  font-size: .68rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 3px 0 2px;
  min-height: 22px; /* reserve space even when empty — keeps all cards same height */
}
.ph-rating-stars { color: #f59e0b; letter-spacing: -.5px; font-size: .7rem; }
.ph-rating-val { font-weight: 700; color: var(--text); font-size: .7rem; }
.ph-rating-count { font-size: .62rem; color: var(--muted); }
.ph-rating-na { font-style: italic; font-size: .62rem; color: var(--border-dk); }
.ph-best-price {
  font-size: 1rem; font-weight: 800; color: var(--text);
  margin: 4px 0 6px; line-height: 1;
}
.ph-best-label {
  display: inline-block;
  font-size: .55rem; font-weight: 800; text-transform: uppercase;
  color: var(--green); background: var(--green-lt);
  border: 1px solid #a7f3c0; border-radius: 3px;
  padding: 1px 5px; letter-spacing: .04em;
  vertical-align: middle; margin-right: 3px;
}

/* ══════════════════════════════════════════════
   PDP — spec icons + reviews placeholder
   ══════════════════════════════════════════════ */
.pdp-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pdp-spec-icon {
  font-size: .95rem;
  line-height: 1.6;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.pdp-spec-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
/* Reviews section */
.pdp-reviews-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
}
.pdp-reviews-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-dk);
  border-radius: var(--r);
  padding: 20px 18px;
  margin-top: 12px;
}
.pdp-reviews-ph-icon { font-size: 1.8rem; flex-shrink: 0; }
.pdp-reviews-ph-title {
  font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 3px;
}
.pdp-reviews-ph-sub { font-size: .76rem; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════════════════
   MOBILE NAV — all 5 items visible, no scroll, max readable
   Sizes calculated so nothing overflows at each breakpoint.
   ══════════════════════════════════════════════ */

/* Tablet / large phone  (≤700px, ≥561px): plenty of room */
@media (max-width: 700px) {
  nav { padding: 0 1.2rem; height: 64px; gap: 10px; justify-content: space-between; }
  .nav-logo { font-size: 1.35rem; flex-shrink: 0; }
  .nav-divider { display: none; }
  .nav-links { flex-shrink: 1; overflow: visible; }
  .nb { white-space: nowrap; font-size: .75rem; padding: 7px 12px; }
}

/* Mid phone  (≤560px, ≥461px) */
@media (max-width: 560px) {
  nav { padding: 0 1rem; height: 62px; gap: 8px; }
  .nav-logo { font-size: 1.2rem; }
  .nb { font-size: .7rem; padding: 6px 10px; }
}

/* Compact phone  (≤460px, ≥391px) */
@media (max-width: 460px) {
  nav { padding: 0 .85rem; height: 58px; gap: 6px; }
  .nav-logo { font-size: 1.05rem; }
  .nb { font-size: .65rem; padding: 5px 8px; }
  .nav-links { padding: 2px; gap: 1px; }
}

/* Standard small phone  (≤390px, ≥341px)  e.g. iPhone SE / 13 mini */
@media (max-width: 390px) {
  nav { padding: 0 .7rem; height: 56px; gap: 5px; }
  .nav-logo { font-size: .95rem; }
  .nb { font-size: .61rem; padding: 4px 6px; }
}

/* Very small phone  (≤340px)  e.g. 320px */
@media (max-width: 340px) {
  nav { padding: 0 .55rem; gap: 3px; }
  .nav-logo { font-size: .85rem; }
  .nb { font-size: .56rem; padding: 3px 5px; }
  .nav-links { padding: 2px; }
}

/* ══════════════════════════════════════════════
   MOBILE QUIZ — full-height card so options are spacious
   ══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .quiz-wrap {
    padding: 0;
    align-items: stretch;
    min-height: calc(100vh - 62px);
  }
  .quiz-card {
    padding: 24px 18px 20px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-height: calc(100vh - 62px);
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }
  .quiz-progress-bar { margin-bottom: 22px; }
  .quiz-question { font-size: clamp(1.35rem, 5vw, 1.7rem); margin-bottom: 5px; }
  .quiz-sub { font-size: .82rem; margin-bottom: 22px; }
  .quiz-options {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
    align-content: start;
  }
  .quiz-option {
    padding: 20px 14px;
    border-radius: 12px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .quiz-opt-icon { font-size: 1.7rem; margin-bottom: 10px; }
  .quiz-opt-label { font-size: .92rem; }
  .quiz-opt-desc { font-size: .76rem; margin-top: 3px; }
  .quiz-nav { margin-top: auto; padding-top: 8px; }
  .quiz-next-btn { padding: 13px 26px; font-size: .88rem; border-radius: 12px; }
}
@media (max-width: 380px) {
  .quiz-card { padding: 20px 14px 16px; }
  .quiz-option { padding: 16px 10px; min-height: 95px; }
  .quiz-opt-icon { font-size: 1.5rem; }
}

/* ── "& more brands adding soon" tagline ── */
.brands-more-soon {
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
  text-align: center;
  letter-spacing: .01em;
}

/* ── Home blog teaser ── */
.home-blog-teaser {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0 1rem;
}
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.hbc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--sh0);
}
.hbc:hover {
  border-color: var(--border-dk);
  box-shadow: var(--sh1);
  transform: translateY(-3px);
}
.hbc-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.hbc-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.hbc-tag {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
.hbc-title {
  font-family: "Playfair Display", serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.hbc-meta {
  font-size: .67rem;
  color: var(--muted);
}
@media (max-width: 540px) {
  .home-blog-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   BROWSE CARD — inline brand rating
   ══════════════════════════════════════════════ */
.pc-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.pc-brand-rat {
  font-size: .65rem;
  font-weight: 700;
  color: #d97706;
  flex-shrink: 0;
  margin-left: auto;
}

/* ══════════════════════════════════════════════
   MOBILE FOOTER — compact 3-col link layout
   ══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 22px 1rem 14px;
    gap: 18px 12px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2px;
  }
  .footer-brand-col p { display: none; } /* hide tagline on mobile */
  .footer-logo { margin-bottom: 0; font-size: 1.05rem; }
  .footer-col h5 { font-size: .62rem; margin-bottom: 8px; }
  .footer-col a { font-size: .74rem; margin-bottom: 6px; }
  .footer-bottom { padding: 10px 1rem 18px; font-size: .66rem; }
}
@media (max-width: 380px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}


/* ══════════════════════════════════════════════
   COMPARE TABLE — scroll hint + column widths
   ══════════════════════════════════════════════ */
.cmp-scroll-hint {
  text-align: center;
  font-size: .68rem;
  color: var(--muted);
  padding: 8px 0 2px;
  display: none;
}
@media (max-width: 700px) {
  .cmp-scroll-hint { display: block; }
  /* tighter column widths on mobile so 3 products visible at once */
  .ct td:first-child { min-width: 90px; width: 90px; }
}

/* ══════════════════════════════════════════════
   CMP-HOW-TO container spacing
   ══════════════════════════════════════════════ */
#cmp-how-to:not(:empty) { margin-bottom: 4px; }

/* ══════════════════════════════════════════════
   FILTER PANEL — slide-out overlay (all screen sizes)
   ══════════════════════════════════════════════ */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 390;
}
.filter-overlay.active { display: block; }

/* Override the sidebar layout; filter is now an overlay */
.browse-outer { flex-direction: column !important; }
.browse-main { width: 100% !important; padding-left: 0 !important; }

.filter-panel {
  display: block !important;  /* override mobile display:none from earlier rules */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 280px !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
  z-index: 400 !important;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto !important;
}
.filter-panel.panel-open { transform: translateX(0); }

/* Filter toggle button — visible on ALL screen sizes */
.filter-toggle-btn {
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border-dk);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-count-badge {
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 6px;
  margin-left: 2px;
  line-height: 1.5;
}

/* X close button inside filter panel header */
.fp-close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .95rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.fp-close-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Hide old mob-filter-btn if still present in DOM */
.mob-filter-btn { display: none !important; }

/* ══════════════════════════════════════════════
   BROWSE CARD — rating color classes
   ══════════════════════════════════════════════ */
.pc-brand-rat.rat-green { color: #16a34a; }
.pc-brand-rat.rat-yellow { color: #d97706; }
.pc-brand-rat.rat-red { color: #dc2626; }

/* ══════════════════════════════════════════════
   BROWSE CARD — image overlay badges
   ══════════════════════════════════════════════ */
.card-badges {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-badge {
  display: inline-block;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 100px;
  line-height: 1.3;
  white-space: nowrap;
}
.badge-disc {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.badge-seller {
  background: #fefce8;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-cheapest {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

/* Make gallery position: relative so badges can overlay */
.pc-gallery { position: relative; }

/* ══════════════════════════════════════════════
   BROWSE CARD — "Best price" tag in price row
   ══════════════════════════════════════════════ */
.tag-best-price {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  font-size: .58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}

/* TSA tag — neutral style, no green */
.tag-tsa {
  background: var(--surface);
  border-color: var(--border-dk);
  color: var(--mid);
}

/* Expandable tag */
.tag-exp {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* ══════════════════════════════════════════════
   NAV — compact mode (non-home pages)
   ══════════════════════════════════════════════ */

/* nav needs relative so the dropdown positions under it */
nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 1.5rem;
  height: 64px;
}

/* Hamburger button */
.nav-ham {
  display: none; /* JS sets to flex on non-home */
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  padding: 7px 9px;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
  line-height: 0;
}
.nav-ham:hover { border-color: var(--accent); background: var(--surface); }

/* Wide search bar — shown on non-home pages */
.nav-csearch {
  display: none; /* JS sets to flex on non-home */
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 9px 14px 9px 20px;
  cursor: text;
  color: var(--mid);
  transition: border-color .18s, box-shadow .18s;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.07), inset 0 -1px 0 rgba(255,255,255,0.6);
}
.nav-csearch:hover,
.nav-csearch:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.10), inset 0 -1px 0 rgba(255,255,255,0.6);
}
/* The real search input inside the nav bar */
.nav-csearch-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 400;
  color: var(--text);
  min-width: 0;
}
.nav-csearch-input::placeholder {
  color: var(--muted);
  /* engraved / debossed look */
  text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}
.nav-csearch svg { flex-shrink: 0; }

/* Hamburger dropdown menu */
.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 500;
  min-width: 190px;
  padding: 6px;
  flex-direction: column;
  animation: navMenuIn .15s ease;
}
.nav-menu.open { display: flex; }
@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .1s;
}
.nav-menu-item:hover { background: var(--surface); color: var(--accent); }

/* Mobile: search bar narrower, smaller text */
@media (max-width: 600px) {
  .nav-csearch { padding: 8px 12px 8px 14px; }
  .nav-csearch-input { font-size: .8rem; }
  .nav-csearch-input::placeholder { font-size: .8rem; }
}

/* Override legacy mobile nav sizing for compact mode */
@media (max-width: 700px) {
  .nav-ham { padding: 6px 8px; }
}

/* Prevent horizontal scroll — clip avoids the containing-block side-effect of hidden */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* Home stats — responsive 2-column wrap on mobile */
@media (max-width: 600px) {
  .home-stats { padding: 18px 1rem; }
  .stat-row { flex-wrap: wrap; gap: 0; }
  .stat { flex: 1 0 48%; padding: 10px 8px; min-width: 0; }
  .stat-n { font-size: 1.45rem; }
  .stat-l { font-size: .62rem; }
}

/* Nav search overlay — backdrop only, dropdown appears at the top */
.nav-srch-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.22);
  z-index: 700;
  padding: 8px 1.5rem 12px;
  animation: navMenuIn .15s ease;
}
.nav-srch-overlay.open { display: block; }
.nav-srch-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 9px 14px 9px 20px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--sh1);
}
.nav-srch-inner:focus-within {
  border-color: var(--accent);
}
.nav-srch-inner input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  color: var(--text);
  min-width: 0;
}
.nav-srch-inner input::placeholder {
  color: var(--muted);
  text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}
.nav-srch-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  color: var(--muted);
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-srch-close:hover { color: var(--text); }

/* Data freshness info icon */
.data-info-tip {
  font-size: .72rem;
  color: var(--muted);
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}
.data-info-tip:hover { opacity: 1; color: var(--accent); }

.nav-srch-dd {
  max-width: 640px; margin: 0 auto; display: none;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--white); overflow: hidden;
  box-shadow: var(--sh1);
}
.nav-srch-dd.has-r { display: block; }
.nav-srch-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px;
  cursor: pointer; border-bottom: 1px solid var(--border); font-size: .82rem;
  transition: background .1s;
}
.nav-srch-item:last-child { border-bottom: none; }
.nav-srch-item:hover { background: var(--surface); }
.nav-srch-item-img {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
  background: var(--surface); border-radius: 6px; padding: 3px;
}
.nav-srch-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-srch-item-brand { font-size: .58rem; font-weight: 700; color: var(--accent); text-transform: uppercase; white-space: nowrap; }
.nav-srch-item-title { font-size: .78rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-srch-item-price { font-size: .78rem; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.nav-srch-all { color: var(--accent); font-weight: 600; justify-content: center; font-size: .82rem; }

