/* Riviera 2027 Store — Option B (handoff § 6.1–6.2, lab shop / products / category / brand + ShopBrowser). Builds on home.css (sections, cards, buttons). */
.rvst-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rvst-h1 { font: 700 34px/1.05 var(--font-heading); letter-spacing: -.03em; color: var(--rv-heading); }
@media (min-width: 768px) { .rvst-h1 { font-size: 48px; } }
.rvst-blurb { max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--rv-text); }
.rvst-listing .rvst-page-head .rvst-blurb { font-size: 16px; color: var(--rv-muted); }
[dir="rtl"] .rvst :is(.rvst-h1, .rvst-wordmark) { letter-spacing: 0; }

/* Shop landing hero (canvas band) */
.rvst-hero { border-bottom: 1px solid var(--rv-line); background: var(--rv-canvas); }
.rvst-hero-in { display: flex; flex-direction: column; gap: 24px; padding-block: 48px; }
@media (min-width: 768px) { .rvst-hero-in { padding-block: 64px; } }
.rvst-h1-hero { max-width: 760px; font-size: 38px; }
@media (min-width: 768px) { .rvst-h1-hero { font-size: 56px; } }
.rvst-search { max-width: 640px; margin-top: 0; }
.rvst-chips-row { display: flex; gap: 8px; margin-inline: -20px; padding-inline: 20px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.rvst-chips-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .rvst-chips-row { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.rvst-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 44px; padding: 0 16px; border: 1px solid var(--rv-line); border-radius: 999px;
  background: var(--rv-surface); font: 600 14px var(--font-heading); color: var(--rv-heading) !important; white-space: nowrap; transition: border-color 150ms var(--ease, ease); }
.rvst-chip:hover { border-color: var(--rv-line-strong); }

/* Brand lines */
.rvst-brands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .rvst-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rvst-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rvst-brand { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--rv-line); border-radius: 18px; background: var(--rv-surface);
  transition: border-color 200ms var(--ease, ease), box-shadow 200ms var(--ease, ease); }
.rvst-brand:hover { border-color: var(--rv-line-strong); box-shadow: var(--rv-shadow); }
.rvst-brand-media { width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: var(--rv-media); isolation: isolate; }
.rvst-brand-media img { display: block; width: 100%; height: 100%; padding: 6px; object-fit: contain; mix-blend-mode: multiply; }
.rvst-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rvst-brand-name { font: 800 17px var(--font-heading); letter-spacing: .06em; color: var(--rv-heading); }
.rvst-brand-line { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--rv-muted); }
.rvst-ing-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .rvst-ing-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .rvst-ing-split .rvh-head { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 24px; } }

/* Breadcrumb */
.rvst-crumbs { padding-top: 16px; font-size: 14px; color: var(--rv-muted); }
.rvst-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rvst-crumbs li { display: flex; align-items: center; gap: 4px; }
.rvst-crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--rv-muted) !important; }
.rvst-crumbs a:hover { color: var(--rv-heading) !important; }
.rvst-crumbs [aria-current] { color: var(--rv-ink); }

/* Page / category / brand heads */
.rvst-page-head { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; padding-bottom: 32px; }
.rvst-head-wrap { padding-top: 16px; padding-bottom: 32px; }
.rvst-band { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px; background: color-mix(in srgb, var(--rvst-family) 9%, var(--rv-bg)); }
@media (min-width: 768px) { .rvst-band { padding: 40px; } .rvst-band .rvst-h1 { font-size: 52px; } }
.rvst-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.rvst-related > span { font-size: 14px; color: var(--rv-muted); }
.rvst-related .rvst-chip { border-color: transparent; }
.rvst-brand-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; padding-bottom: 32px; }
@media (min-width: 768px) { .rvst-brand-head { grid-template-columns: minmax(0, 1fr) 200px; align-items: center; } }
.rvst-brand-head-text { display: flex; flex-direction: column; gap: 12px; }
.rvst-wordmark { font-size: 40px; font-weight: 800; letter-spacing: .04em; }
@media (min-width: 768px) { .rvst-wordmark { font-size: 60px; } }
.rvst-brand-head-media { display: none; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: var(--rv-media); isolation: isolate; }
@media (min-width: 768px) { .rvst-brand-head-media { display: block; } }
.rvst-brand-head-media img { display: block; width: 100%; height: 100%; padding: 16px; object-fit: contain; mix-blend-mode: multiply; }
.rvst-notice-wrap { padding-bottom: 24px; }
.rvst-notice { display: flex; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--rv-line); border-radius: 12px; background: var(--rv-surface-2); font-size: 14px; line-height: 1.6; color: var(--rv-muted); }
.rvst-notice svg { flex-shrink: 0; margin-top: 2px; }

/* Listing layout */
.rvst-body { padding-bottom: 80px; }
.rvst-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .rvst-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 48px; } }
.rvst-rail { display: none; }
@media (min-width: 1024px) { .rvst-rail { display: block; } }
.rvst-rail-in { position: sticky; top: 97px; }
.rvst-rail-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.rvst-rail-title { font: 700 16px var(--font-heading); color: var(--rv-heading); }
.rvst-clear { min-height: 44px; padding: 0 4px; border: 0; background: transparent; font: 600 13px var(--font-body); color: var(--rv-accent); cursor: pointer; }
.rvst-clear[hidden] { display: none; }
.rvst-form { margin: 0; }
.rvst-facet { border-bottom: 1px solid var(--rv-line); }
.rvst-facet summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; list-style: none; cursor: pointer; font: 700 15px var(--font-heading); color: var(--rv-heading); }
.rvst-facet summary::-webkit-details-marker { display: none; }
.rvst-chev { color: var(--rv-muted); transition: transform 200ms var(--ease, ease); }
.rvst-facet[open] .rvst-chev { transform: rotate(180deg); }
.rvst-fieldset { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0 0 12px; border: 0; }
.rvst-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border-radius: 6px; font-size: 14px; color: var(--rv-text); cursor: pointer; }
.rvst-opt:hover { background: var(--rv-surface-2); }
.rvst-opt input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--rv-action); }
.rvst-opt-label { flex: 1; }
.rvst-opt-count { font-size: 12px; color: var(--rv-muted); }

/* Toolbar: sticky under the header on mobile / tablet */
.rvst-main { min-width: 0; }
.rvst-toolbar { position: sticky; top: 65px; z-index: 20; display: flex; align-items: center; gap: 8px; margin-inline: -20px; padding: 12px 20px; border-bottom: 1px solid var(--rv-line);
  background: color-mix(in srgb, var(--rv-bg) 95%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 768px) { .rvst-toolbar { top: 73px; margin-inline: 0; padding-inline: 0; } }
@media (min-width: 1024px) { .rvst-toolbar { position: static; padding: 0 0 16px; border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; } }
body.admin-bar .rvst-toolbar { top: 97px; }
.rvst-filter-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--rv-line); border-radius: 999px; background: transparent;
  font: 700 14px var(--font-heading); color: var(--rv-heading); cursor: pointer; }
@media (min-width: 1024px) { .rvst-filter-btn { display: none; } }
.rvst-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--rv-navy); font-size: 11px; color: var(--rv-navy-ink); }
.rvst-badge[hidden] { display: none; }
.rvst-count { margin: 0; margin-inline-end: auto; font-size: 14px; color: var(--rv-muted); }
.rvst-count-n { font-weight: 600; color: var(--rv-ink); }
.rvst-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--rv-muted); }
.rvst-sort-label { display: none; }
@media (min-width: 640px) { .rvst-sort-label { display: inline; } }
.rvst-sort select { height: 44px; max-width: 46vw; padding: 0 12px; border: 1px solid var(--rv-line); border-radius: 999px; background: var(--rv-surface); font: 400 14px var(--font-body); color: var(--rv-ink); }
.rvst-actives { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 24px; }
.rvst-actives:empty { display: none; }
@media (min-width: 1024px) { .rvst-actives { padding-top: 0; } }
.rvst-active { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 12px 10px; border: 0; border-radius: 999px; background: var(--rv-surface-2);
  font: 600 13px var(--font-body); color: var(--rv-heading); cursor: pointer; }
.rvst-active span { font-size: 15px; color: var(--rv-muted); }
.rvst-grid { padding-top: 16px; transition: opacity 200ms var(--ease, ease); }
.rvst-grid[aria-busy="true"] { opacity: .5; }
@media (min-width: 768px) { .rvst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rvst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; } }
.rvst-grid:empty { display: none; }
.rvst-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 16px; padding: 56px 24px; border: 1px dashed var(--rv-line-strong); border-radius: 20px; text-align: center; }
.rvst-empty[hidden] { display: none; }
.rvst-empty-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: var(--rv-surface-2); color: var(--rv-muted); }
.rvst-empty h2 { font: 700 22px var(--font-heading); color: var(--rv-heading); }
.rvst-empty p { max-width: 460px; font-size: 15px; line-height: 1.6; color: var(--rv-muted); }
.rvst-more { display: flex; justify-content: center; padding-top: 32px; }
.rvst-more [hidden] { display: none; }
.rvst-foot { padding-top: 48px; text-align: center; font-size: 13px; color: var(--rv-muted); }

/* Mobile filter sheet */
.rvst-sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 56; display: flex; flex-direction: column; max-height: 88vh; border-radius: 22px 22px 0 0; background: var(--rv-bg);
  box-shadow: var(--rv-shadow); transform: translateY(100%); transition: transform 300ms var(--ease, ease); }
.rvst-sheet[hidden] { display: none; }
.rvst-sheet.is-open { transform: none; }
.rvst-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--rv-line); }
.rvst-sheet-title { font: 700 18px var(--font-heading); color: var(--rv-heading); }
.rvst-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px; }
.rvst-sheet-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rv-line); }
.rvst-sheet-foot .rvh-btn { width: 100%; }

@media (prefers-reduced-motion: reduce) { .rvst-sheet, .rvst-grid, .rvst-chev { transition: none !important; } }
