/* Browse products screen (frontend/browse-v2), Noon-style: filter panel on the left; banner, sub-category tiles, tabs, deals band and
   product grid on the right. Scoped to .hvb. Uses the shared variables / buttons / "nodeliver" card from css/home-v2.css. */
.hvb { padding-top: 14px; }

/* breadcrumb */
.hvb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; font-size: 12.5px; color: var(--hv-muted); }
.hvb-crumbs a { color: var(--hv-muted); }
.hvb-crumbs a:hover { color: var(--hv-green-2); }
.hvb-crumbs .fa { font-size: 14px; opacity: .6; }
.hvb-crumbs span { color: var(--hv-ink); font-weight: 600; }

/* layout */
.hvb-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 30px; align-items: start; }
.hvb-layout.no-filters { grid-template-columns: minmax(0, 1fr); }
.hvb-main { min-width: 0; }

/* ---------- filter panel with sections that open and close ---------- */
.hvb-filters { position: sticky; top: 86px; background: #fff; border: 1px solid var(--hv-line); border-radius: 16px; overflow: hidden; }
.hvb-fhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--hv-line); }
.hvb-fhead b { font-size: 15px; font-weight: 800; color: var(--hv-ink); margin-right: auto; }
.hvb-fclear { border: 0; background: transparent; color: var(--hv-btn); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }
.hvb-fclear:hover { color: #258a4d; }
.hvb-fclose { display: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3f0e7; color: var(--hv-ink); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.hvb-fbody { max-height: calc(100vh - 210px); overflow-y: auto; }
.hvb-group { border-bottom: 1px solid var(--hv-line); }
.hvb-group:last-child { border-bottom: 0; }
.hvb-ghead { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 14px; font-weight: 800; color: var(--hv-ink); }
.hvb-ghead:focus { outline: none; }
.hvb-ghead:focus-visible { box-shadow: inset 0 0 0 2px rgba(45, 158, 90, .35); }
.hvb-ghead .fa { font-size: 20px; color: var(--hv-muted); transition: transform .2s; }
.hvb-group:not(.open) .hvb-ghead .fa { transform: rotate(-90deg); }
.hvb-gbody { padding: 0 20px 16px; }
.hvb-group:not(.open) .hvb-gbody { display: none; }
.hvb-ffoot { display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hv-line); background: #fff; }
.hvb-ffoot .hv2-btn { width: 100%; justify-content: center; text-align: center; }

.hvb-check { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 0; cursor: pointer; font-size: 13.5px; color: var(--hv-ink); }
.hvb-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.hvb-box { flex: none; width: 19px; height: 19px; border: 1.8px solid #c7cfc9; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; transition: .12s; }
.hvb-check input:checked + .hvb-box { background: var(--hv-btn); border-color: var(--hv-btn); }
.hvb-check input:checked + .hvb-box::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hvb-check input:focus-visible + .hvb-box { box-shadow: 0 0 0 3px rgba(45, 158, 90, .25); }
.hvb-lbl { flex: 1; line-height: 1.3; }
.hvb-cnt { font-size: 12px; color: var(--hv-muted); }

/* price: two number boxes and a two-handle slider */
.hvb-price-in { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hvb-price-in i { color: var(--hv-muted); font-style: normal; }
.hvb-price-in label { flex: 1; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0 10px; height: 38px; border: 1.5px solid var(--hv-line); border-radius: 10px; background: #fff; }
.hvb-price-in label:focus-within { border-color: var(--hv-btn); }
.hvb-price-in span { color: var(--hv-muted); font-size: 13px; }
.hvb-price-in input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; font-weight: 700; color: var(--hv-ink); padding: 0; -moz-appearance: textfield; }
.hvb-price-in input::-webkit-outer-spin-button, .hvb-price-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hvb-range { position: relative; height: 22px; margin: 0 8px; }
.hvb-range::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: #e3e8e4; }
.hvb-range-fill { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--hv-btn); }
.hvb-range input[type=range] { position: absolute; left: -8px; width: calc(100% + 16px); top: 0; height: 22px; margin: 0; padding: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.hvb-range input[type=range]::-webkit-slider-runnable-track { background: transparent; border: 0; height: 22px; }
.hvb-range input[type=range]::-moz-range-track { background: transparent; border: 0; }
.hvb-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #fff; border: 2px solid var(--hv-btn); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; }
.hvb-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--hv-btn); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; }

/* ---------- banner, title ---------- */
.hvb-banner { margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: #f1ede2; }
.hvb-banner img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.hvb-title { margin: 0 0 14px; }
.hvb-title h1 { margin: 0; font-family: var(--hv-serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; color: var(--hv-ink); }

/* ---------- sub-category picture tiles (swipe / arrows) ---------- */
.hvb-tiles-wrap { position: relative; margin: 0 0 8px; }
.hvb-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 16px 14px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; scroll-behavior: smooth; }
.hvb-tiles::-webkit-scrollbar { display: none; }
.hvb-tiles.rows-2 { grid-template-rows: repeat(2, auto); }
.hvb-tile { display: block; text-align: center; color: var(--hv-ink); }
.hvb-tile-ic { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; padding: 12px; background: linear-gradient(180deg, var(--ct, #f7e6c8) 0%, #fff 100%); transition: transform .15s, box-shadow .15s; }
.hvb-tile-ic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hvb-tile:hover .hvb-tile-ic { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20, 35, 27, .12); }
.hvb-tile-n { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.hvb-tile:nth-child(6n+1) { --ct: #fcd9cc; }
.hvb-tile:nth-child(6n+2) { --ct: #f9e6bd; }
.hvb-tile:nth-child(6n+3) { --ct: #dcebd9; }
.hvb-tile:nth-child(6n+4) { --ct: #ead9f3; }
.hvb-tile:nth-child(6n+5) { --ct: #d6e6f5; }
.hvb-tile:nth-child(6n+6) { --ct: #fbd6df; }
.hvb-arrow { display: none; position: absolute; top: 34%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hv-line); background: #fff; color: var(--hv-ink); font-size: 24px; line-height: 1; cursor: pointer; align-items: center; justify-content: center; padding: 0 0 3px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); z-index: 2; }
.hvb-arrow:hover { color: var(--hv-green-2); }
.hvb-arrow.prev { left: -10px; }
.hvb-arrow.next { right: -10px; }
.hvb-tiles-wrap.can-prev .hvb-arrow.prev, .hvb-tiles-wrap.can-next .hvb-arrow.next { display: flex; }

/* ---------- tabs ---------- */
.hvb-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 16px; border-bottom: 1px solid var(--hv-line); scrollbar-width: none; }
.hvb-tabs::-webkit-scrollbar { display: none; }
.hvb-tab { flex: 0 0 auto; min-width: 96px; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px 9px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--hv-muted); font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.hvb-tab:focus { outline: none; }
.hvb-tab:hover { color: var(--hv-ink); }
.hvb-tab-ic { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hvb-tab-ic img { width: 100%; height: 100%; object-fit: contain; }
.hvb-tab-n { line-height: 1.2; text-align: center; }
.hvb-tab.on { color: var(--hv-green-2); border-bottom-color: var(--hv-btn); font-weight: 800; }
.hvb-tab.on .hvb-tab-ic { color: var(--hv-btn); }

/* ---------- Spotlight deals band ---------- */
.hvb-deals { margin: 0 0 22px; padding: 16px 18px 18px; border-radius: 16px; background: #f3eedc; }
.hvb-deals[hidden] { display: none; }
.hvb-deals h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--hv-ink); text-transform: none !important; }
.hvb-deals-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.hvb-deal { position: relative; flex: 0 0 188px; display: flex; flex-direction: column; padding: 34px 12px 14px; border-radius: 14px; background: #fff; color: var(--hv-ink); }
.hvb-deal:hover { box-shadow: 0 8px 22px rgba(20, 35, 27, .14); color: var(--hv-ink); }
.hvb-deal-tag { position: absolute; top: 0; right: 0; max-width: 88%; padding: 4px 11px; border-radius: 0 14px 0 12px; background: #14231b; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hvb-deal-img { display: flex; align-items: center; justify-content: center; height: 142px; margin-bottom: 8px; }
.hvb-deal-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hvb-deal-name { font-size: 13px; line-height: 1.35; min-height: 35px; color: #3b4a42; }
.hvb-deal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.hvb-deal-price b { font-size: 18px; font-weight: 800; color: var(--hv-rust); }
.hvb-deal-price s { font-size: 12px; color: var(--hv-muted); }
.hvb-deal-price em { font-size: 12px; font-style: normal; font-weight: 800; color: #1b9a4b; }

/* ---------- toolbar, chips ---------- */
.hvb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.hvb-count { font-size: 14px; color: var(--hv-muted); }
.hvb-count b { color: var(--hv-ink); font-size: 16px; }
.hvb-sortwrap { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--hv-muted); }
.hvb-sort { height: 40px; padding: 0 34px 0 14px; border: 1.5px solid var(--hv-line); border-radius: 10px; background: #fff; color: var(--hv-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.hvb-sort:focus { outline: 0; border-color: var(--hv-btn); }
.hvb-chips { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hvb-chips.on { display: flex; }
.hvb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; border-radius: 20px; background: #e6eee7; color: var(--hv-green-2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.hvb-chip .fa { font-size: 11px; opacity: .7; }
.hvb-chip:hover { background: #d6e5da; }

/* ---------- product grid and cards (round "+" on the picture, rating chip, green % off) ---------- */
.hvb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 16px; }
.hvb-grid[hidden] { display: none; }
/* higher specificity on purpose: the site stylesheet gives .product-card padding/margin 15px and height 90% */
.hv2 .hvb-card.product-card { position: relative; display: flex; flex-direction: column; min-width: 0 !important; width: 100%; max-width: 100%; height: auto; margin: 0; padding: 0; background: #fff; border: 1px solid var(--hv-line); border-radius: 14px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.hv2 .hvb-card.product-card:hover { box-shadow: 0 8px 24px rgba(20, 35, 27, .09); border-color: #ddd5c0; }
.hvb-card[hidden] { display: none; }
.hvb-card-img { position: relative; flex: none; aspect-ratio: 1 / 1; overflow: hidden; background: var(--hv-img); }
.hvb-card-link { position: absolute; inset: 0; display: block; }
.hvb-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 12px; mix-blend-mode: multiply; }
.hvb-card .addWishLists { position: absolute; top: 9px; right: 9px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: var(--hv-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.hvb-card .addWishLists:hover { color: var(--hv-rust); }
.hvb-rate { position: absolute; left: 9px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; background: #fff; color: var(--hv-ink); font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.hvb-rate .fa { color: #1b9a4b; font-size: 11px; }
.hvb-oos { position: absolute; right: 9px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; background: #fdece6; color: #c0392b; font-size: 11.5px; font-weight: 700; }
.hvb-card .add-to-cart-trigger { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid #dfe5e0; background: #fff; color: var(--hv-green-2); cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); transition: .15s; }
.hvb-card .add-to-cart-trigger:hover { background: var(--hv-btn); border-color: var(--hv-btn); color: #fff; }
.hvb-card .add-to-cart-trigger .fa-shopping-cart::before { content: "+"; font-family: inherit; font-size: 26px; font-weight: 400; line-height: 1; }
.hvb-card .add-to-cart-trigger .fa-spinner { font-size: 16px; }
.hvb-card .qty-control { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: auto; min-width: 112px; height: 38px; align-items: center; justify-content: space-between; background: #fff; border: 1.5px solid var(--hv-green-2); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.hvb-card .qty-btn { width: 36px; height: 100%; border: 0; background: transparent; color: var(--hv-green-2); font-size: 18px; font-weight: 700; cursor: pointer; padding: 0; }
.hvb-card .qty-btn:hover { background: #e6eee7; }
.hvb-card .qty-num { font-size: 14px; font-weight: 800; color: var(--hv-ink); min-width: 26px; text-align: center; }
.hvb-card-body { display: flex; flex-direction: column; flex: 1; padding: 11px 13px 14px; text-align: left; }
.hvb-card-name { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: #25332b; min-height: 36px; overflow-wrap: anywhere; }
.hvb-card-name:hover { color: var(--hv-green-2); }
.hvb-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; margin-top: 8px; }
.hvb-card-price b { font-size: 17px; font-weight: 800; color: var(--hv-ink); letter-spacing: -.01em; }
.hvb-card-price b.sale { color: var(--hv-rust); }
.hvb-card-price s { font-size: 12px; color: var(--hv-muted); }
.hvb-card-price em { font-size: 12.5px; font-style: normal; font-weight: 800; color: #1b9a4b; }
.hvb-card .klarna-teaser { margin: 5px 0 0; font-size: 11px; color: var(--hv-muted); cursor: pointer; line-height: 1.35; }

.hvb-more { margin: 26px 0 8px; text-align: center; }
.hvb-more[hidden] { display: none; }
.hvb-more button { padding: 12px 34px; border: 1.5px solid var(--hv-green-2); border-radius: 12px; background: #fff; color: var(--hv-green-2); font-size: 14px; font-weight: 800; cursor: pointer; }
.hvb-more button:hover { background: var(--hv-green-2); color: #fff; }

.hvb-empty { display: none; text-align: center; padding: 56px 20px; }
.hvb-empty.show { display: block; }
.hvb-empty > .fa { font-size: 38px; color: #b9c4bc; margin-bottom: 14px; }
.hvb-empty h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--hv-ink); text-transform: none !important; }
.hvb-empty p { margin: 0 0 20px; font-size: 14px; color: var(--hv-muted); }

/* phone bar + overlay are hidden on desktop */
.hvb-mbar, .hvb-overlay { display: none; }

/* ---------- smaller desktops ---------- */
@media (min-width: 992px) and (max-width: 1280px) {
  .hvb-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
  .hvb-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
}

/* ---------- tablet / phone ---------- */
@media (max-width: 991px) {
  .hvb-layout { display: block; }
  .hvb-banner { border-radius: 14px; margin-bottom: 12px; }
  .hvb-tiles { grid-auto-columns: 104px; gap: 14px 10px; margin-right: -14px; padding-right: 14px; }
  .hvb-tiles.mrows-2 { grid-template-rows: repeat(2, auto); }
  .hvb-tile-ic { border-radius: 16px; padding: 9px; }
  .hvb-tile-n { font-size: 12px; margin-top: 6px; }
  .hvb-arrow { display: none !important; }
  .hvb-tabs { margin-right: -14px; padding-right: 14px; }
  .hvb-tab { min-width: 80px; padding: 8px 10px 8px; font-size: 12px; }
  .hvb-deals { margin-right: -2px; padding: 14px 12px 14px; border-radius: 14px; }
  .hvb-deals h2 { font-size: 18px; }
  .hvb-deal { flex-basis: 156px; padding: 32px 10px 12px; }
  .hvb-deal-img { height: 118px; }

  .hvb-mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 800; padding: 10px 0; margin-bottom: 10px; background: #fff; }
  .hvb-mbtn { position: relative; flex: 1 1 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--hv-green-2); border-radius: 12px; background: #fff; color: var(--hv-green-2); font-size: 14px; font-weight: 800; cursor: pointer; }
  .hvb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hv-btn); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
  .hvb-badge[hidden] { display: none; }
  .hvb-mbar .hvb-sort { flex: 1 1 0; height: 44px; border-radius: 12px; min-width: 0; }
  .hvb-sortwrap { display: none; }
  .hvb-toolbar { margin-bottom: 10px; }

  /* filters become a bottom sheet */
  .hvb-overlay { display: block; position: fixed; inset: 0; z-index: 10240; background: rgba(10, 30, 22, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .hvb-overlay.open { opacity: 1; pointer-events: auto; }
  .hvb-filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 10250; max-height: 86vh; display: flex; flex-direction: column; border: 0; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .28s cubic-bezier(.4, 0, .2, 1); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); }
  .hvb-filters.open { transform: none; }
  .hvb-fbody { flex: 1 1 auto; max-height: none; }
  .hvb-fclose { display: flex; }
  .hvb-ffoot { display: block; }
  .hvb-fhead { padding: 16px 18px; }
  .hvb-ghead { padding: 14px 18px; }
  .hvb-gbody { padding: 0 18px 14px; }

  .hvb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hvb-card-body { padding: 9px 10px 12px; }
  .hvb-card-name { font-size: 12.5px; min-height: 34px; }
  .hvb-card-price b { font-size: 16px; }
  .hvb-card .add-to-cart-trigger { width: 36px; height: 36px; right: 8px; bottom: 8px; }
  .hvb-card .qty-control { right: 8px; bottom: 8px; min-width: 102px; height: 36px; }
  .hvb-card .addWishLists { top: 7px; right: 7px; width: 30px; height: 30px; font-size: 14px; }
}

/* a short line under the page title (the "On sale" page) */
.hvb-title p { margin: 6px 0 0; font-size: 14px; color: var(--hv-muted); }

/* category list: only the first 8 until "Show more" */
.hvb-gbody .hvb-check.extra { display: none; }
.hvb-gbody.all .hvb-check.extra { display: flex; }
.hvb-showall { margin-top: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--hv-btn); font-size: 13px; font-weight: 700; cursor: pointer; }
.hvb-showall:hover { color: #258a4d; }
