/* ============================================================
   CLARITY THEME · v0.1
   Dawn-inspired light starter for Cartly.
   File order:
     · TOKENS · DENSITY/RADIUS OVERRIDES
     · RESET · TYPOGRAPHY · LAYOUT
     · BUTTONS · INPUTS · CHIPS / BADGES · IMAGE PLACEHOLDER
     · ANNOUNCEMENT BAR · HEADER · FOOTER
     · CARDS · PRODUCT CARD · BREADCRUMBS · ACCORDION · STARS
     · RESPONSIVE
   Page-specific blocks added by per-page agents in Phase 1
   under their owned per-page divider (HOME / PLP / PDP / CART).
   ============================================================ */

/* === TOKENS ============================================ */
:root {
  /* Color */
  --c-bg:           #FFFFFF;
  --c-surface:      #FAFAFA;
  --c-surface-2:    #F4F4F5;
  --c-border:       #E5E7EB;
  --c-border-strong:#D4D4D8;
  --c-rule:         #F1F1F3;
  --c-text:         #18181B;
  --c-text-2:       #3F3F46;
  --c-muted:        #71717A;
  --c-muted-2:      #A1A1AA;
  --c-placeholder:  #F4F4F5;

  /* Accent — overridden inline in theme.liquid via {% case settings.clarity_accent %} */
  --c-accent:       #1D4ED8;
  --c-accent-hover: #1E40AF;
  --c-accent-fg:    #FFFFFF;

  /* Status */
  --c-success:      #15803D;
  --c-warning:      #B45309;
  --c-danger:       #B91C1C;
  --c-sale:         #B91C1C;

  /* Layout */
  --c-container:      1280px;
  --c-container-wide: 1440px;
  --c-gutter:         24px;
  --c-section-v:      96px;

  /* Radii — soft default; overridden via [data-radius="..."] */
  --c-radius-sm:    4px;
  --c-radius:       8px;
  --c-radius-lg:    12px;
  --c-radius-pill:  999px;

  /* Shadows */
  --c-shadow-sm:    0 1px 2px rgba(24,24,27,0.04);
  --c-shadow:       0 4px 12px rgba(24,24,27,0.06);
  --c-shadow-lg:    0 10px 30px rgba(24,24,27,0.08);

  /* Type — font-sans overridden inline in theme.liquid via {% case settings.clarity_typeface %} */
  --font-sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display:   var(--font-sans);
  --font-mono:      ui-monospace, "SF Mono", Menlo, monospace;

  --t-hero:    clamp(40px, 5.4vw, 76px);
  --t-display: clamp(32px, 3.4vw, 52px);
  --t-h1:      clamp(28px, 2.6vw, 40px);
  --t-h2:      clamp(22px, 2vw, 30px);
  --t-h3:      20px;
  --t-h4:      16px;
  --t-body-lg: 17px;
  --t-body:    15px;
  --t-small:   13px;
  --t-micro:   12px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* === DENSITY / RADIUS OVERRIDES ============================ */
[data-density="compact"] {
  --c-section-v: 64px;
  --space-5: 18px; --space-6: 24px; --space-7: 36px; --space-8: 48px;
}
[data-radius="sharp"] {
  --c-radius-sm: 2px; --c-radius: 4px; --c-radius-lg: 6px;
}
[data-radius="flat"] {
  --c-radius-sm: 0; --c-radius: 0; --c-radius-lg: 0;
}

/* === RESET ================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: "cv11", "ss01", "tnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 0; }
input, select, textarea { font: inherit; color: inherit; }

/* === TYPOGRAPHY UTILITIES ================================== */
.t-hero    { font-size: var(--t-hero);    line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
.t-display { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.022em; font-weight: 600; margin: 0; }
.t-h1      { font-size: var(--t-h1);      line-height: 1.1;  letter-spacing: -0.018em; font-weight: 600; margin: 0; }
.t-h2      { font-size: var(--t-h2);      line-height: 1.2;  letter-spacing: -0.014em; font-weight: 600; margin: 0; }
.t-h3      { font-size: var(--t-h3);      line-height: 1.25; letter-spacing: -0.008em; font-weight: 600; margin: 0; }
.t-h4      { font-size: var(--t-h4);      line-height: 1.35; font-weight: 600; margin: 0; }
.t-body-lg { font-size: var(--t-body-lg); line-height: 1.6; color: var(--c-text-2); margin: 0; }
.t-body    { font-size: var(--t-body);    line-height: 1.6; margin: 0; }
.t-small   { font-size: var(--t-small);   line-height: 1.5; color: var(--c-text-2); }
.t-meta    { font-size: var(--t-micro);   color: var(--c-muted); }
.t-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  color: var(--c-muted); margin: 0;
}
.t-num   { font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
.t-muted { color: var(--c-muted); }
.t-link  {
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-strong);
  padding-bottom: 1px; transition: border-color .15s;
}
.t-link:hover { border-bottom-color: var(--c-text); }

/* === LAYOUT ================================================= */
.container       { max-width: var(--c-container);      margin: 0 auto; padding: 0 24px; }
.container-wide  { max-width: var(--c-container-wide); margin: 0 auto; padding: 0 24px; }
.section         { padding: var(--c-section-v) 0; }
.section-tight   { padding: calc(var(--c-section-v) * 0.55) 0; }
.section-band    { background: var(--c-surface); }

.row         { display: flex; }
.row-center  { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.col         { display: flex; flex-direction: column; }
.stack-1 { display: flex; flex-direction: column; gap: var(--space-1); }
.stack-2 { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-3 { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-4 { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-5 { display: flex; flex-direction: column; gap: var(--space-5); }
.stack-6 { display: flex; flex-direction: column; gap: var(--space-6); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr);  gap: var(--c-gutter); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr);  gap: var(--c-gutter); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr);  gap: var(--c-gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--c-gutter); }

/* === BUTTONS ================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0;
  border: 1px solid transparent; border-radius: var(--c-radius);
  transition: background .15s, color .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary   { background: var(--c-accent); color: var(--c-accent-fg); border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn-secondary { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.btn-secondary:hover { background: #000; border-color: #000; }
.btn-outline   { background: #fff; color: var(--c-text); border-color: var(--c-border-strong); }
.btn-outline:hover { border-color: var(--c-text); background: #fff; }
.btn-ghost     { background: transparent; color: var(--c-text); border-color: transparent; }
.btn-ghost:hover { background: var(--c-surface-2); }
.btn-link {
  height: auto; padding: 0; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--c-text); font-size: 14px; font-weight: 500; letter-spacing: 0;
  color: var(--c-text); background: none;
}
.btn-link:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.btn-block { width: 100%; }
.btn-lg    { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-sm    { height: 36px; padding: 0 14px; font-size: 13px; }

/* === INPUTS ================================================= */
.input, .select, .textarea {
  display: block; width: 100%;
  height: 44px; padding: 0 14px;
  background: #fff; color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 18%, transparent);
}
.input::placeholder { color: var(--c-muted-2); }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input-group { position: relative; }
.input-group .input { padding-left: 42px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--c-muted); pointer-events: none; width: 16px; height: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--c-text-2); }
.field .hint { font-size: 12px; color: var(--c-muted); }
.field .err  { font-size: 12px; color: var(--c-danger); }

/* === CHIPS / TAGS / BADGES ================================= */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--c-radius-pill);
  font-size: 13px; font-weight: 500; color: var(--c-text-2);
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--c-border-strong); }
.chip.active { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.chip .x {
  display: inline-flex; width: 14px; height: 14px;
  align-items: center; justify-content: center;
  font-size: 14px; color: inherit; opacity: 0.7;
}
.chip.active .x { opacity: 1; }

.badge {
  display: inline-flex; align-items: center;
  padding: 4px 8px;
  background: var(--c-surface-2); color: var(--c-text);
  border-radius: var(--c-radius-sm);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-new  { background: var(--c-text); color: #fff; }
.badge-sale { background: var(--c-sale); color: #fff; }
.badge-low  { background: #FEF3C7; color: #92400E; }
.badge-soft {
  background: var(--c-surface-2); color: var(--c-text-2);
  text-transform: none; letter-spacing: 0; font-weight: 500;
}

/* === IMAGE PLACEHOLDER ===================================== */
.ph {
  position: relative; background: var(--c-placeholder);
  border-radius: var(--c-radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph-flat { border-radius: 0; }
.ph-sm   { border-radius: var(--c-radius); }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 70% 20%, color-mix(in oklab, var(--c-text) 4%, transparent), transparent 60%),
    radial-gradient(80% 60% at 20% 90%, color-mix(in oklab, var(--c-text) 6%, transparent), transparent 60%),
    linear-gradient(180deg, #F8F8F9, #EEEEF1);
  pointer-events: none;
}
.ph[data-label]::after {
  content: attr(data-label); position: relative; z-index: 1;
  font-size: 11px; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
}
.ph-1-1  { aspect-ratio: 1/1; }
.ph-3-4  { aspect-ratio: 3/4; }
.ph-4-5  { aspect-ratio: 4/5; }
.ph-4-3  { aspect-ratio: 4/3; }
.ph-16-9 { aspect-ratio: 16/9; }
.ph-21-9 { aspect-ratio: 21/9; }

/* === ANNOUNCEMENT BAR ====================================== */
.announce {
  background: var(--c-text); color: #fff;
  font-size: 13px; padding: 10px 16px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.announce a { color: inherit; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 1px; }
.announce a:hover { border-bottom-color: #fff; }
.announce .arr { opacity: 0.6; font-family: var(--font-mono); }

/* === HEADER ================================================= */
.header {
  background: #fff; border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; gap: 24px; padding: 0 24px;
  max-width: var(--c-container-wide); margin: 0 auto;
}
.header[data-layout="left"] .header-inner { grid-template-columns: auto 1fr auto; }
.header[data-layout="left"] .header-nav { justify-content: flex-start; padding-left: 32px; }
.header[data-layout="left"] .header-logo-slot { justify-content: flex-start; }

.header-nav {
  display: flex; gap: 24px; justify-content: flex-start; align-items: center;
  font-size: 14px; font-weight: 500;
}
.header-nav a { padding: 4px 2px; color: var(--c-text-2); position: relative; }
.header-nav a:hover { color: var(--c-text); }
.header-nav a.has-caret::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 6px; vertical-align: 2px; opacity: 0.6;
}
.header-logo-slot { display: flex; justify-content: center; align-items: center; }
.header-logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--c-text);
  display: inline-flex; align-items: center;
}
/* vendly-0e2jk: sizing for optional logo_image — height matches the typographic logo
 * so swapping doesn't shift the row. width auto preserves aspect ratio. */
.header-logo-img { height: 28px; width: auto; max-width: 220px; display: block; }
@media (max-width: 640px) { .header-logo-img { height: 22px; max-width: 160px; } }
.header-icons { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--c-radius-pill);
  color: var(--c-text); transition: background .15s;
  position: relative;
}
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Cart counter — always rendered, JS toggles `hidden` attr (playbook Rule 10) */
.cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--c-accent); color: #fff;
  border-radius: var(--c-radius-pill);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-count[hidden] { display: none; }

.mobile-menu-btn { display: none; }

/* Mobile menu drawer (audit P1-1) ---------------------------- */
.mobile-menu__backdrop {
  position: fixed; inset: 0; background: rgba(24,24,27,0.5);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 100;
}
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff; z-index: 101;
  transform: translateX(-100%); transition: transform .25s;
  display: flex; flex-direction: column;
  box-shadow: var(--c-shadow-lg);
}
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--c-border);
}
.mobile-menu__logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--c-text); letter-spacing: -0.02em; }
.mobile-menu__nav { display: flex; flex-direction: column; padding: 20px 0; flex: 1; overflow-y: auto; }
.mobile-menu__link {
  padding: 14px 24px; font-size: 17px; color: var(--c-text);
  border-bottom: 1px solid var(--c-rule);
}
.mobile-menu__link:hover { background: var(--c-surface); }
.mobile-menu__foot { display: flex; gap: 24px; padding: 20px 24px; border-top: 1px solid var(--c-border); }
.mobile-menu__util { font-size: 14px; color: var(--c-text-2); border-bottom: 1px solid var(--c-border-strong); padding-bottom: 1px; }
body[data-menu-open] .mobile-menu__backdrop { opacity: 1; pointer-events: auto; }
body[data-menu-open] .mobile-menu { transform: translateX(0); }
body[data-menu-open] { overflow: hidden; }

.header-search {
  height: 40px; padding: 0 12px 0 38px; width: 300px;
  background: var(--c-surface); border: 1px solid transparent;
  border-radius: var(--c-radius-pill);
  font-size: 13px; color: var(--c-text); outline: none;
}
.header-search:focus { background: #fff; border-color: var(--c-border); }

.header-search-form {
  position: relative; display: inline-flex; align-items: center;
}
.header-search-submit {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent;
  pointer-events: auto; z-index: 1;
}
.header-search-submit:hover { background: transparent; color: var(--c-accent); }

/* === CARDS ================================================== */
.card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg); overflow: hidden;
}
.card-pad { padding: var(--space-5); }

/* === PRODUCT CARD (shared — owned by agent B in Phase 1) ==== */
.product-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.product-card .pc-media {
  position: relative; background: var(--c-placeholder);
  border-radius: var(--c-radius-lg); overflow: hidden;
  aspect-ratio: 4/5;
}
.product-card .pc-media .ph { border-radius: 0; height: 100%; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; z-index: 2;
}
.product-card .pc-wish {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: var(--c-radius-pill);
  background: rgba(255,255,255,0.92);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); color: var(--c-text-2);
  opacity: 0; transform: translateY(-2px);
  transition: opacity .2s, transform .2s;
}
.product-card:hover .pc-wish { opacity: 1; transform: translateY(0); }
.product-card .pc-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 40px; background: #fff; color: var(--c-text);
  border: 1px solid var(--c-border-strong); border-radius: var(--c-radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.product-card:hover .pc-quick { opacity: 1; transform: translateY(0); }
.product-card .pc-title { font-size: 15px; font-weight: 500; color: var(--c-text); margin: 0; line-height: 1.4; }
.product-card .pc-meta  { font-size: 13px; color: var(--c-muted); margin: 0; }
.product-card .pc-price { font-size: 15px; font-weight: 600; color: var(--c-text); font-variant-numeric: tabular-nums; }
.product-card .pc-price .was { color: var(--c-muted); font-weight: 400; text-decoration: line-through; margin-right: 8px; }
.product-card .pc-price .now { color: var(--c-sale); }
.product-card .pc-swatches { display: flex; gap: 6px; margin-top: 2px; }
.product-card .swatch {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  background: var(--swatch, #ddd);
}

/* === FOOTER ================================================= */
.footer {
  background: #fff; border-top: 1px solid var(--c-border);
  padding: 72px 0 24px;
}
.footer-grid {
  max-width: var(--c-container-wide); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--c-border);
}
.footer-brand .logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 16px;
}
.footer-brand p {
  color: var(--c-text-2); margin: 0 0 20px; max-width: 32ch;
  line-height: 1.6; font-size: 14px;
}
.footer-col h5 { font-size: 14px; font-weight: 600; margin: 0 0 16px; color: var(--c-text); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { color: var(--c-text-2); font-size: 14px; }
.footer-col a:hover { color: var(--c-text); }
.footer-bottom {
  max-width: var(--c-container-wide); margin: 0 auto; padding: 24px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--c-muted); font-size: 13px;
}
.footer-bottom .pay-row { display: flex; gap: 8px; align-items: center; }
.pay-pill {
  height: 24px; min-width: 36px; padding: 0 8px;
  border: 1px solid var(--c-border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--c-text-2); border-radius: 4px;
}
.newsletter-mini { display: flex; gap: 8px; align-items: stretch; }
.newsletter-mini .input { flex: 1; height: 44px; }
.newsletter-mini .btn   { height: 44px; padding: 0 18px; }

/* === BREADCRUMBS =========================================== */
.crumbs    { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--c-muted); }
.crumbs a  { color: var(--c-text-2); }
.crumbs a:hover { color: var(--c-text); }
.crumbs .sep  { color: var(--c-muted-2); }
.crumbs .here { color: var(--c-text); }
/* vendly-8lic0: merchant-controlled breadcrumb text size */
.crumbs--size-sm { font-size: 12px; }
.crumbs--size-md { font-size: 14px; }
.crumbs--size-lg { font-size: 16px; }

/* vendly-gf7vv: shared slider mode for Cart upsell / Related / Recently
   viewed. cards-row--grid is the no-op default (any prior grid layout
   classes on the same element keep working). cards-row--slider switches
   the element to a horizontal scroller with scroll-snap, suppresses any
   inherited grid template-columns, and gives each card a fixed min-width
   so they don't stretch to fill the viewport. Native scroll on mobile,
   wheel + drag on desktop. No JS required. */
.cards-row--slider {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 16px;
  padding-bottom: 8px;
}
.cards-row--slider > * {
  flex: 0 0 auto;
  min-width: 260px;
  max-width: 320px;
  scroll-snap-align: start;
}
.cards-row--slider::-webkit-scrollbar { height: 6px; }
.cards-row--slider::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
@media (min-width: 900px) {
  .cards-row--slider > * { min-width: 280px; max-width: 360px; }
}

/* === ACCORDION ============================================= */
.acc      { border-top: 1px solid var(--c-border); }
.acc-item { border-bottom: 1px solid var(--c-border); }
.acc-head {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 18px 0;
  font-size: 15px; font-weight: 600; color: var(--c-text);
  cursor: pointer;
}
.acc-head .ico {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-muted); transition: transform .2s;
}
.acc-item[data-open="true"] .acc-head .ico { transform: rotate(45deg); color: var(--c-text); }
.acc-body {
  padding: 0 0 22px;
  font-size: 14px; color: var(--c-text-2); line-height: 1.65;
  display: none;
}
.acc-item[data-open="true"] .acc-body { display: block; }

/* === STAR RATING =========================================== */
.stars { display: inline-flex; gap: 2px; color: var(--c-accent); align-items: center; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.stars[data-color="amber"] { color: #F59E0B; }

/* === RESPONSIVE ============================================ */
@media (max-width: 1024px) {
  :root { --c-section-v: 64px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; height: 60px; gap: 8px; padding: 0 16px; }
  .header-logo  { font-size: 19px; }
  .mobile-menu-btn { display: inline-flex; }
  .header-icons .desktop-only { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
  .container, .container-wide { padding: 0 16px; }
}

/* ============================================================
   PAGE BLOCKS APPENDED IN PHASE 1 — agents own their region:
   /* === HOME (agent A) ==================================== */
   /* === PLP (agent B)  ==================================== */
   /* === PDP (agent C)  ==================================== */
   /* === CART (agent D) ==================================== */
   ============================================================ */

/* === HOME (agent A) ============================================
   Page-local blocks for templates/index.json sections:
   image-hero · marquee · collection-list · featured-collection
   image-with-text · blog-posts · value-props · newsletter
   Class names mockup-style unprefixed; no conflicts with PLP/PDP/CART.
*/

/* --- Hero ------------------------------------------------- */
.hero {
  background: var(--c-surface);
  padding: 80px 0 0;
  border-bottom: 1px solid var(--c-border);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  max-width: var(--c-container-wide); margin: 0 auto;
  padding: 0 32px 80px;
}
.hero-copy { max-width: 520px; }
.hero-copy .t-eyebrow { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy p {
  font-size: 18px; line-height: 1.6; color: var(--c-text-2);
  margin: 0 0 32px; max-width: 46ch;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--c-radius-lg); overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .ph { width: 100%; height: 100%; border-radius: 0; }
.hero-tag {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  padding: 14px 18px; border-radius: var(--c-radius);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--c-shadow);
}
.hero-tag .swatch {
  width: 36px; height: 36px;
  border-radius: var(--c-radius-sm);
}
.hero-tag .info { font-size: 12px; color: var(--c-muted); line-height: 1.3; }
.hero-tag .info strong {
  display: block; color: var(--c-text); font-size: 14px; font-weight: 600;
}

/* --- Marquee (trust strip) ------------------------------- */
.marquee {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0; background: #fff; overflow: hidden;
}
.marquee-row {
  display: flex; gap: 48px; align-items: center; justify-content: center;
  flex-wrap: wrap;
  max-width: var(--c-container-wide); margin: 0 auto; padding: 0 24px;
}
.marquee-row > span {
  font-size: 13px; font-weight: 500; color: var(--c-text-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.marquee-row .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-muted-2); display: inline-block;
}

/* --- Categories rail ------------------------------------- */
.cats-rail {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.cat-tile {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; text-align: center;
}
.cat-tile img,
.cat-tile .ph {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--c-radius-pill);
}
.cat-tile .name { font-size: 14px; font-weight: 500; color: var(--c-text); }
.cat-tile:hover .name { color: var(--c-accent); }

/* --- Section header (shared) ----------------------------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 40px; gap: 24px;
}
.section-head h2 { flex: 1; max-width: 36ch; }
.section-head .lead { font-size: 15px; color: var(--c-text-2); max-width: 38ch; }
.section-head .actions { display: flex; gap: 8px; align-items: center; }

/* --- Tabs (featured-collection) -------------------------- */
.tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
}
.tabs button {
  padding: 14px 2px; font-size: 14px; font-weight: 500;
  color: var(--c-muted);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tabs button.active { color: var(--c-text); border-bottom-color: var(--c-text); }
.tabs button:hover { color: var(--c-text); }

/* --- Editorial pair (image-with-text) -------------------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editorial--single { grid-template-columns: 1fr; }
.editorial-card {
  position: relative; border-radius: var(--c-radius-lg); overflow: hidden;
  aspect-ratio: 5/4;
  display: flex; align-items: flex-end; padding: 32px;
  color: #fff;
}
.editorial-card.dark { background: #18181B; }
.editorial-card .bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.editorial-card .editorial-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6));
}
.editorial-card.dark .editorial-overlay {
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,0.75));
}
.editorial-card .content { position: relative; z-index: 1; max-width: 340px; }
.editorial-card h3 {
  font-size: 28px; line-height: 1.1; font-weight: 600;
  margin: 0 0 10px; letter-spacing: -0.015em; color: #fff;
}
.editorial-card p {
  font-size: 14px; line-height: 1.55; margin: 0 0 16px; opacity: 0.9;
}
.editorial-card .eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #fff; opacity: 0.7; margin: 0 0 12px; font-weight: 600;
}
.editorial-card .editorial-cta {
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent;
}
.editorial-card .editorial-cta:hover {
  background: rgba(255, 255, 255, 0.12); border-color: #fff;
}
.editorial--right .editorial-card .content {
  margin-left: auto;
}

/* --- Journal grid (blog-posts) --------------------------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.journal-card { display: flex; flex-direction: column; gap: 14px; }
.journal-card .ph { aspect-ratio: 4/3; }
.journal-card .meta {
  font-size: 12px; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.journal-card h3 {
  font-size: 20px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em; margin: 0; color: var(--c-text);
}
.journal-card p {
  font-size: 14px; color: var(--c-text-2); margin: 0; line-height: 1.6;
}
.journal-card:hover h3 { color: var(--c-accent); }
.journal-card code {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--c-surface-2); padding: 1px 6px; border-radius: 4px;
}

/* --- Newsletter band ------------------------------------- */
.newsletter-band {
  background: var(--c-surface);
  padding: 80px 0; text-align: center;
}
.newsletter-band .inner { max-width: 540px; margin: 0 auto; padding: 0 24px; }
.newsletter-band h2 { margin-bottom: 14px; }
.newsletter-band > .inner > p {
  font-size: 16px; color: var(--c-text-2); margin: 0 0 28px;
}
.newsletter-band .form {
  display: flex; gap: 8px; justify-content: center; align-items: stretch;
}
.newsletter-band .form .input { max-width: 320px; }
.newsletter-band .form .btn { white-space: nowrap; }
.newsletter-band .newsletter-success {
  font-size: 15px; color: var(--c-success); margin: 16px 0;
}
.newsletter-band .newsletter-error {
  font-size: 13px; color: var(--c-danger); margin: 0 0 12px;
}

/* --- Value props (features strip) ------------------------ */
.features-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.features-strip--2 { grid-template-columns: repeat(2, 1fr); }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .ico {
  width: 40px; height: 40px;
  border-radius: var(--c-radius-pill);
  background: var(--c-surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text); margin-bottom: 8px;
}
.feature .ico svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
}
.feature h4 { font-size: 15px; font-weight: 600; margin: 0; color: var(--c-text); }
.feature p {
  font-size: 13px; color: var(--c-muted); margin: 0; line-height: 1.5;
}

/* --- Visually hidden (a11y helper, page-local) ----------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
  .hero { padding-top: 48px; }
  .cats-rail { grid-template-columns: repeat(3, 1fr); }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cats-rail { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee-row { gap: 24px; }
  .editorial-card { aspect-ratio: 4/5; padding: 24px; }
  .editorial-card h3 { font-size: 22px; }
}

/* === PLP (agent B) =============================================
   Page-local blocks for templates/collection.json sections:
   collection-banner · collection-filters · main-collection-product-grid · collection-empty
   Class names use `.clarity-plp__*` namespace + reuse mockup-style
   primitives where applicable (.crumbs, .chip, .filter-grp helpers).
*/

/* --- Banner ----------------------------------------------- */
/* vendly-5ltj follow-up: compact bottom padding (32→20) — tighter coupling
   to filter rail/toolbar to match mockup proportions. Banner without a body
   description gets even less padding so it doesn't feel empty. */
.clarity-plp__banner {
  padding: 48px 0 20px;
  border-bottom: 1px solid var(--c-border);
  background: #fff;
}
.clarity-plp__banner--text-only:not(:has(.clarity-plp__banner-desc)) {
  padding-bottom: 16px;
}
.clarity-plp__banner .crumbs { margin-bottom: 16px; }
.clarity-plp__banner-eyebrow { margin: 0 0 10px; }
.clarity-plp__banner-title {
  font-size: 36px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 12px; color: var(--c-text);
}
.clarity-plp__banner-desc {
  font-size: 16px; color: var(--c-text-2); max-width: 60ch; margin: 0;
}
.clarity-plp__banner-count {
  font-size: 14px; color: var(--c-muted); margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.clarity-plp__banner--with-image .clarity-plp__banner-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.clarity-plp__banner-image {
  border-radius: var(--c-radius-lg); overflow: hidden; aspect-ratio: 4/3;
}
.clarity-plp__banner-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- Two-column layout (filters + grid) -------------------
   Combined section `main-collection` wraps both rail and results
   inside a single `.container-wide` (max-width 1440, centered) so
   the rail aligns to the container's left edge at every viewport.
   Mobile / tablet: filters become a slide-in drawer (rail is
   re-positioned via `.clarity-plp__filters-rail` rules below).
   vendly-5ltj follow-up — combine pattern (Rule 12 of THEME-PORTING-PLAYBOOK).
*/
.clarity-plp-main-section {
  padding: 32px 0 96px;
}
@media (min-width: 1025px) {
  /* Mockup: rail 260px, gap 40px, results 1fr.
     Rail aligns to container-wide's inner left edge (x = (vw-1440)/2 + 24). */
  .clarity-plp__main {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
  }
}
@media (max-width: 1024px) {
  .clarity-plp__main { display: block; }
}

/* maxv merchant feedback: collection-filters "Position: Horizontal" was a
   "Stage 2" stub — the schema option existed but no CSS lived behind the
   modifier class, so flipping the dropdown did nothing on the storefront.
   These rules drop the 2-column grid and re-flow the rail as a wrap-around
   horizontal bar above the grid. Each filter group becomes an inline chip
   instead of a stacked block. */
.clarity-plp__filters-section--horizontal .clarity-plp__main {
  display: block;
}
.clarity-plp__filters-section--horizontal .clarity-plp__filters-rail {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  max-height: none;
  overflow: visible;
  align-self: stretch;
  gap: 12px 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 24px;
}
.clarity-plp__filters-section--horizontal .clarity-plp__filter-grp {
  flex: 0 0 auto;
  min-width: 0;
}
.clarity-plp__filters-section--horizontal .clarity-plp__filter-body {
  /* Allow each filter's body to grow inline rather than full-width column */
  width: auto;
}

/* --- Filter rail ------------------------------------------ */
.clarity-plp__filters-rail {
  display: flex; flex-direction: column; gap: 24px;
  font-size: 14px;
  position: sticky; top: 88px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.clarity-plp__drawer-close {
  display: none;
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1px solid var(--c-border); border-radius: var(--c-radius-pill);
  background: #fff; color: var(--c-text-2);
  font-size: 18px; line-height: 1;
  align-items: center; justify-content: center;
}
.clarity-plp__filter-grp {
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 20px;
}
.clarity-plp__filter-grp:last-child { border-bottom: 0; padding-bottom: 0; }
.clarity-plp__filter-h {
  font-size: 14px; font-weight: 600; margin: 0 0 12px;
}
.clarity-plp__filter-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.clarity-plp__filter-ico {
  color: var(--c-muted); font-weight: 400;
  display: inline-block; width: 14px; text-align: center;
  transition: transform 0.18s;
}
.clarity-plp__filter-grp.is-collapsed .clarity-plp__filter-ico {
  transform: rotate(45deg);
}
.clarity-plp__filter-grp.is-collapsed .clarity-plp__filter-body {
  display: none;
}
.clarity-plp__filter-body ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.clarity-plp__filter-link {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0; color: var(--c-text-2);
  font-size: 14px; line-height: 1.3;
  transition: color 0.15s;
}
.clarity-plp__filter-link:hover { color: var(--c-text); }
.clarity-plp__filter-link.is-active { color: var(--c-text); font-weight: 500; }
.clarity-plp__filter-link .clarity-plp__filter-check {
  display: inline-flex; width: 16px; height: 16px;
  align-items: center; justify-content: center;
  border: 1px solid var(--c-border-strong); border-radius: var(--c-radius-sm);
  font-size: 10px; color: #fff; flex: 0 0 auto;
  background: #fff;
}
.clarity-plp__filter-link.is-active .clarity-plp__filter-check {
  background: var(--c-accent); border-color: var(--c-accent);
}
.clarity-plp__filter-link .clarity-plp__filter-label { flex: 1; }
.clarity-plp__filter-link .ct {
  font-size: 12px; color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

/* Color swatch grid (filter rail) */
.clarity-plp__filters-rail .swatch-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
}
.clarity-plp__filters-rail .swatch {
  width: 24px; height: 24px; border-radius: 50%;
  outline: 1px solid var(--c-border); cursor: pointer;
  display: inline-block;
  border: 0; padding: 0;
  background-clip: padding-box;
}
.clarity-plp__filters-rail .swatch.on {
  outline: 2px solid var(--c-text); outline-offset: 2px;
}

/* Size button grid (filter rail) */
.clarity-plp__filters-rail .size-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.clarity-plp__size-btn {
  height: 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  font-size: 12px; font-weight: 500;
  background: #fff; color: var(--c-text-2);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.clarity-plp__size-btn:hover { border-color: var(--c-border-strong); }
.clarity-plp__size-btn.on {
  background: var(--c-text); color: #fff; border-color: var(--c-text);
}

/* Price range */
.clarity-plp__price-form .price-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}
.clarity-plp__price-form .input { height: 36px; font-size: 13px; padding: 0 10px; }
/* Hide the fake range track — without real slider behaviour it adds noise
   not present in the mockup. The numeric inputs are sufficient. */
.clarity-plp__price-form .range-track { display: none; }
/* Apply as quiet underlined link, not a chunky button — matches mockup
   restraint where Price has just two inputs. */
.clarity-plp__price-apply.btn,
.clarity-plp__price-apply {
  display: inline-block;
  height: auto; padding: 0; margin-top: 2px;
  background: transparent; border: 0;
  color: var(--c-text); font-size: 13px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.clarity-plp__price-apply:hover { color: var(--c-text); opacity: 0.7; background: transparent; }

/* --- Results bar ------------------------------------------ */
.clarity-plp__results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 5;
  background: #fff;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
}
.clarity-plp__active-chips {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
/* When no active filter chips, hide the row entirely so the toolbar stays
   a single 42px line (mockup baseline). */
.clarity-plp__active-chips:empty { display: none; }
.clarity-plp__results-right {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.clarity-plp__count { white-space: nowrap; }
.clarity-plp__sort-select {
  height: 40px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  background: #fff;
  font-size: 14px; font-weight: 500; color: var(--c-text);
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-text-2) 50%),
    linear-gradient(135deg, var(--c-text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 12px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.clarity-plp__sort-select:hover { border-color: var(--c-border-strong); }
.clarity-plp__view-toggle {
  display: flex; border: 1px solid var(--c-border);
  border-radius: var(--c-radius); overflow: hidden;
}
.clarity-plp__view-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  border: 0; background: #fff; cursor: pointer;
  border-right: 1px solid var(--c-border);
}
.clarity-plp__view-btn:last-child { border-right: 0; }
.clarity-plp__view-btn.on {
  background: var(--c-text); color: #fff;
}
.clarity-plp__mobile-filter-btn { display: none; }

/* --- Grid (responsive 2/3/4) ----------------------------- */
.clarity-plp__grid { display: grid; gap: 32px; }
.clarity-plp__grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.clarity-plp__grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.clarity-plp__grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Pagination ------------------------------------------- */
.clarity-plp__pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 64px;
}
.clarity-plp__pagination a,
.clarity-plp__pagination button,
.clarity-plp__page-disabled {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); background: #fff;
  border-radius: var(--c-radius);
  color: var(--c-text-2); font-size: 14px; font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.clarity-plp__pagination a:hover { border-color: var(--c-border-strong); color: var(--c-text); }
.clarity-plp__pagination .on,
.clarity-plp__pagination a.on {
  background: var(--c-text); color: #fff; border-color: var(--c-text);
}
.clarity-plp__pagination .gap {
  border: 0; background: none; min-width: 24px; padding: 0;
  color: var(--c-muted);
}
.clarity-plp__page-disabled { opacity: 0.5; cursor: default; }

/* --- Empty state ------------------------------------------ */
.clarity-plp__empty-section { padding: 64px 0 96px; }
.clarity-plp__empty {
  text-align: center; max-width: 520px; margin: 0 auto;
}
.clarity-plp__empty-heading { margin: 0 0 14px; }
.clarity-plp__empty-body {
  font-size: 16px; color: var(--c-text-2); margin: 0 0 24px;
}
.clarity-plp__empty-actions { margin-bottom: 32px; }
.clarity-plp__empty-suggestions { border-top: 1px solid var(--c-border); padding-top: 24px; }
.clarity-plp__empty-suggestions .t-eyebrow { margin: 0 0 14px; }
.clarity-plp__empty-chips {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}

/* --- Mobile drawer + responsive ---------------------------
   Combined section: rail is a flex/grid child of `.clarity-plp__main`,
   not its own section. On mobile it lifts out into a fixed full-screen
   overlay via direct rail rules + a backdrop sibling.
*/
@media (max-width: 1024px) {
  .clarity-plp__filters-rail {
    position: fixed; inset: 0 auto 0 0; top: 0; z-index: 60;
    background: #fff;
    width: 320px; max-width: 90vw; height: 100%;
    padding: 24px;
    max-height: none;
    transform: translateX(-100%);
    transition: transform 0.25s;
    overflow-y: auto;
    visibility: hidden;
  }
  .clarity-plp__drawer-backdrop {
    position: fixed; inset: 0; z-index: 59;
    background: rgba(24, 24, 27, 0.4);
    visibility: hidden; opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .clarity-plp__drawer-close { display: inline-flex; }
  body.clarity-plp-filter-open .clarity-plp__filters-rail {
    transform: translateX(0); visibility: visible;
  }
  body.clarity-plp-filter-open .clarity-plp__drawer-backdrop {
    visibility: visible; opacity: 1;
  }
  body.clarity-plp-filter-open { overflow: hidden; }

  .clarity-plp-main-section { padding: 24px 0 64px; }
  .clarity-plp__mobile-filter-btn { display: inline-flex; }
  .clarity-plp__results-bar { top: 0; }
}

@media (max-width: 768px) {
  .clarity-plp__banner-title { font-size: 28px; }
  .clarity-plp__grid.grid-3,
  .clarity-plp__grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .clarity-plp__results-bar { gap: 12px; }
  .clarity-plp__results-right { gap: 8px; }
  .clarity-plp__count { display: none; }
  .clarity-plp__view-toggle { display: none; }
}

@media (max-width: 480px) {
  .clarity-plp__banner { padding: 32px 0 24px; }
  .clarity-plp__banner-title { font-size: 24px; }
  .clarity-plp__grid.grid-3,
  .clarity-plp__grid.grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .clarity-plp__pagination { margin-top: 40px; }
}

/* === PDP (agent C) ============================================
   Page-local blocks for templates/product.json sections:
   breadcrumbs · product-gallery · product-info · product-perks
   product-accordion · product-specs · product-sticky-bar · related-products
   Classes mockup-style unprefixed (.gallery, .info, .pdp-sec, etc.)
   plus namespaced .clarity-pdp__ for Cartly-only additions (lightbox).
   ============================================================ */

/* --- PDP main grid: gallery + info side-by-side via .pdp-main wrapper --
   Stage 2 (vendly-lgim) refactor: product-gallery + product-info combined
   into one section (sections/product-main-area.liquid). The .pdp-main
   wrapper is position:relative so it acts as sticky containing block —
   info column unsticks correctly when .pdp-main bottom passes viewport,
   not all the way down to <main>'s bottom. Other PDP sections (perks,
   accordion, specs, sticky-bar, related) render as siblings below. */
.pdp-main { position: relative; }
@media (min-width: 1025px) {
  .pdp-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
  }
  .pdp-main__info {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* --- Breadcrumbs ----------------------------------------- */
.crumb-bar {
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
  background: #fff;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-2);
  flex-wrap: wrap;
}
.crumbs a { color: var(--c-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--c-text); text-decoration: underline; }
.crumbs .sep { color: var(--c-muted); }
.crumbs .here { color: var(--c-text); font-weight: 500; }

/* --- PDP main grid --------------------------------------- */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 40px 0 80px;
}

/* --- Gallery --------------------------------------------- */
.gallery { display: flex; gap: 16px; }
/* vendly-fjlr9: thumbs_position modifier classes — the schema offered
   left/bottom but the CSS only had the default ("left") layout, so the
   setting silently did nothing. */
.gallery--thumbs-left   { flex-direction: row; }
.gallery--thumbs-bottom { flex-direction: column-reverse; }
.gallery--thumbs-bottom .thumbs {
  flex-direction: row;
  width: 100%;
  height: 80px;
  overflow-x: auto;
}
.gallery--thumbs-bottom .thumbs .thumb {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
}
.gallery .thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
  flex: 0 0 auto;
}
.gallery .thumbs .thumb {
  width: 80px;
  aspect-ratio: 1 / 1;
  border-radius: var(--c-radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-placeholder);
  position: relative;
  padding: 0;
}
.gallery .thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .thumbs .thumb.active { border-color: var(--c-text); border-width: 2px; }
.gallery .thumbs .thumb .ph { height: 100%; width: 100%; border-radius: 0; }
.gallery .main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.gallery .main .main-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--c-placeholder);
}
.gallery .main .main-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.gallery .main .main-img .ph { height: 100%; width: 100%; border-radius: 0; }
.gallery .main .zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  cursor: pointer;
}
.gallery .main .zoom:hover { background: #fff; }
.gallery .sub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery .sub-row img,
.gallery .sub-row .ph {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--c-radius-lg);
  object-fit: cover;
  display: block;
}

/* --- Info column ----------------------------------------- */
.info {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info form[data-clarity-pdp-form] {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info .head .vendor {
  font-size: 13px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.info .head h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.info .head .rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-2);
}
.info .head .rating .stars { display: inline-flex; gap: 1px; color: #F59E0B; }
.info .head .rating .stars svg { fill: currentColor; }
.info .head .rating a { text-decoration: underline; color: var(--c-text-2); }

.info .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.info .price-row .price {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.info .price-row .was {
  font-size: 16px;
  color: var(--c-muted);
  text-decoration: line-through;
}
.info .price-row .save {
  font-size: 12px;
  color: var(--c-sale);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info .price-row .tax {
  font-size: 12px;
  color: var(--c-muted);
  margin-left: auto;
}

.opt-block { display: flex; flex-direction: column; gap: 10px; }
.opt-block .opt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.opt-block .opt-head .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}
.opt-block .opt-head .selected {
  font-size: 13px;
  color: var(--c-text-2);
}
.opt-block .opt-head a {
  font-size: 13px;
  color: var(--c-text);
  text-decoration: underline;
}
.opt-block .opt-select {
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
}

.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-sw {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  cursor: pointer;
  position: relative;
  background: var(--col);
  transition: transform 0.15s;
  padding: 0;
}
.color-sw:hover { transform: scale(1.06); }
.color-sw.on::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--c-text);
}
.color-sw.unavailable { opacity: 0.45; cursor: not-allowed; }
.color-sw.unavailable::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 47%, var(--c-muted-2) 47%, var(--c-muted-2) 53%, transparent 53%);
  border-radius: 50%;
}

.size-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size-sw {
  height: 44px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: var(--c-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.size-sw:hover { border-color: var(--c-text); }
.size-sw.on { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.size-sw.unavailable {
  color: var(--c-muted-2);
  cursor: not-allowed;
  background: linear-gradient(135deg, #fff 49%, var(--c-border) 49%, var(--c-border) 51%, #fff 51%);
}

.qty-row { display: flex; gap: 12px; align-items: stretch; }
.qty {
  display: inline-flex;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
  height: 52px;
}
.qty button {
  width: 48px;
  height: 100%;
  font-size: 18px;
  color: var(--c-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.qty button:hover { background: var(--c-surface-2); }
.qty span {
  width: 44px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}
.qty-row .btn { flex: 1; height: 52px; font-size: 15px; }

.stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-2);
}
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-success) 18%, transparent);
}
.stock-low {
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

/* --- Perks ----------------------------------------------- */
.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--c-surface);
  border-radius: var(--c-radius-lg);
}
.perks.cols-4 { grid-template-columns: repeat(4, 1fr); }
.perk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.45;
}
.perk svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--c-text);
  margin-top: 1px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.perk strong {
  display: block;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1px;
}

/* --- Section blocks below the fold ----------------------- */
.pdp-sec { padding: 64px 0; border-top: 1px solid var(--c-border); }
.pdp-sec h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
/* vendly-hwose: layout variants for the specs section. Selectors target
   named children (.specs-grid__list / .specs-grid__media) rather than
   :first-child so the layout is robust to future schema additions that
   insert extra children. */
.specs-grid--image-left .specs-grid__list  { order: 2; }
.specs-grid--image-left .specs-grid__media { order: 1; }
.specs-grid--text-only { grid-template-columns: 1fr; }
.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--c-border);
}
.specs-list .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
.specs-list .row .k { color: var(--c-muted); }
.specs-list .row .v { color: var(--c-text); }

/* --- Sticky cart bar ------------------------------------- */
.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.04);
}
.sticky-atc.visible { display: flex; }
.sticky-atc .thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--c-radius);
  object-fit: cover;
  background: linear-gradient(135deg, #D9CDB3, #B8A985);
  display: block;
  flex: 0 0 auto;
}
.sticky-atc .info { flex: 1; min-width: 0; display: block; position: static; gap: 0; }
.sticky-atc .info .n {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-atc .info .p {
  font-size: 13px;
  color: var(--c-muted);
}
.sticky-atc .btn { height: 44px; }

/* --- Lightbox (Cartly-only addition) --------------------- */
.clarity-pdp__lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.clarity-pdp__lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}
.clarity-pdp__lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #18181B;
  font-size: 22px;
  line-height: 1;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clarity-pdp__lightbox-close:hover { background: #fff; }
body.clarity-pdp-lightbox-open { overflow: hidden; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .info { position: static; }
  .gallery { flex-direction: column-reverse; }
  .gallery .thumbs { flex-direction: row; width: auto; overflow: auto; }
  .specs-grid { grid-template-columns: 1fr; gap: 32px; }
  .size-row { grid-template-columns: repeat(5, 1fr); }
  .perks.cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .pdp-sec { padding: 48px 0; }
  .pdp-sec h2 { font-size: 20px; margin-bottom: 18px; }
  .info .head h1 { font-size: 26px; }
  .info .price-row .tax { display: block; width: 100%; margin-left: 0; }
  .perks { grid-template-columns: 1fr; }
  .perks.cols-4 { grid-template-columns: 1fr; }
}

/* --- Stage 2 PDP sections (vendly-v71z) ----------------------- */
/* Complete-the-look bundle */
.bundle-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5); margin-bottom: var(--space-6);
}
.bundle-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border: 1px solid var(--c-border); border-radius: var(--c-radius-lg);
  cursor: pointer; transition: border-color .15s, background .15s;
  position: relative;
}
.bundle-card:hover { border-color: var(--c-border-strong); }
.bundle-card .bundle-check {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  accent-color: var(--c-text);
  width: 18px; height: 18px;
}
.bundle-card:has(.bundle-check:not(:checked)) { background: var(--c-surface-2); opacity: 0.65; }
.bundle-thumb { display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--c-radius); }
.bundle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bundle-meta { display: flex; flex-direction: column; gap: 2px; }
.bundle-title { font-size: 14px; font-weight: 500; margin: 0; color: var(--c-text); }
.bundle-note  { font-size: 12px; color: var(--c-muted); margin: 0; }
.bundle-price { font-size: 14px; font-weight: 600; margin: 4px 0 0; color: var(--c-text); }
.bundle-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--c-radius-lg);
  flex-wrap: wrap;
}
.bundle-bar__label { font-size: 13px; color: var(--c-muted); display: block; margin-bottom: 4px; }
.bundle-bar__sum { font-size: 22px; font-weight: 600; color: var(--c-text); margin-right: 12px; }
.bundle-bar__save {
  display: inline-block; padding: 4px 10px; background: var(--c-sale); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: var(--c-radius-sm); letter-spacing: 0.04em;
}
.bundle-bar__cta { min-width: 220px; }

/* Reviews summary */
.reviews-summary {
  display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 48px;
  align-items: center; padding: 32px 0;
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  margin-bottom: 24px;
}
.reviews-summary__avg { margin: 0 0 8px; line-height: 1; }
.reviews-summary__count { font-size: 13px; color: var(--c-muted); margin: 8px 0 16px; }
.reviews-summary__write { display: inline-flex; }
.reviews-summary__bars { display: flex; flex-direction: column; gap: 8px; }
.reviews-bar { display: grid; grid-template-columns: 36px 1fr 48px; align-items: center; gap: 12px; font-size: 13px; }
.reviews-bar__label { color: var(--c-text-2); }
.reviews-bar__track { height: 6px; background: var(--c-surface-2); border-radius: var(--c-radius-pill); overflow: hidden; }
.reviews-bar__fill  { display: block; height: 100%; background: var(--c-text); }
.reviews-bar__pct   { color: var(--c-muted); text-align: right; }
.reviews-widget { padding: 24px; background: var(--c-surface); border-radius: var(--c-radius); margin-bottom: 16px; }
.reviews-see-all { display: inline-block; }

/* Recently-viewed */
.recently-viewed-grid { gap: var(--c-gutter); }
.recently-viewed-grid:empty + * { display: none; }

@media (max-width: 768px) {
  .reviews-summary { grid-template-columns: 1fr; gap: 24px; }
  .bundle-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .bundle-bar__cta { min-width: 0; width: 100%; }
}

/* === CART (agent D) ============================================
   Page-local blocks for templates/cart.json sections + cart-drawer snippet.
   Sections: main-cart-header · main-cart-items · main-cart-footer · cart-upsell.
   Drawer: snippets/cart-drawer.liquid (off-canvas, 440px slide-in from right).
   Class names mockup-style unprefixed where unique to cart; drawer uses
   .clarity-drawer__* namespace for global isolation.
*/

/* --- Page header ---------------------------------------------- */
.cart-head {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--c-border);
}
.cart-head .crumbs { margin-bottom: 14px; }
.cart-head h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.cart-head p {
  font-size: 15px;
  color: var(--c-text-2);
  margin: 0;
}

/* --- Cart layout --------------------------------------------- */
/* Stage 2 (vendly-2hi5) refactor: combined main-cart-items +
   main-cart-footer into one section (sections/cart-main-area.liquid).
   Wrapping <div class="cart-main"> is position:relative + grid →
   sticky summary scoped to wrapper. Items list + summary aside live
   side-by-side on desktop, stack on mobile/tablet. Same pattern as
   PDP .pdp-main (vendly-lgim). */
.cart-main { position: relative; }
@media (min-width: 1025px) {
  .cart-main {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    column-gap: 48px;
    align-items: start;
  }
  .cart-main__summary {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}
.clarity-cart__items { padding: 32px 0 16px; }
.clarity-cart__items .line-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-border);
}
.line {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}
.line .line-image {
  display: block;
  aspect-ratio: 4 / 5;
  width: 120px;
  border-radius: var(--c-radius);
  overflow: hidden;
}
.line .line-image img,
.line .line-image .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--c-radius);
  display: block;
}
.line .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.line .info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
}
.line .info h3 a {
  color: var(--c-text);
  text-decoration: none;
}
.line .info h3 a:hover { color: var(--c-accent); }
.line .info .meta {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}
.line .info .price {
  font-size: 14px;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  margin: 0;
  margin-top: auto;
}
.line .info .actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 13px;
  flex-wrap: wrap;
}
.line .info .actions a,
.line .info .actions .cart-action-btn {
  color: var(--c-text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.line .info .actions a:hover,
.line .info .actions .cart-action-btn:hover {
  color: var(--c-text);
}
.line .right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.line .right .total {
  font-size: 16px;
  font-weight: 600;
}
.line .qty {
  display: inline-flex;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
  height: 36px;
  background: #fff;
}
.line .qty button {
  width: 32px;
  font-size: 14px;
  color: var(--c-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.line .qty button:hover { background: var(--c-surface-2); }
.line .qty button:disabled { opacity: 0.5; cursor: not-allowed; }
.line .qty span {
  width: 32px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}
.line .stock-low {
  font-size: 12px;
  color: #92400E;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Continue shopping row */
.cart-actions-row {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Empty state */
.cart-empty {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.cart-empty h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.cart-empty p {
  font-size: 15px;
  color: var(--c-text-2);
  margin: 0 0 28px;
}

/* --- Order summary ------------------------------------------- */
.summary {
  background: var(--c-surface);
  border-radius: var(--c-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 32px;
  max-width: 480px;
}
.summary h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}
.summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--c-text-2);
}
.summary .row.total {
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}
.summary .row .v {
  color: var(--c-text);
}
.summary .row.savings .v {
  color: var(--c-sale);
}
.summary .promo {
  display: flex;
  gap: 8px;
  margin: 8px 0 4px;
}
.summary .promo .input {
  flex: 1;
  height: 40px;
  font-size: 16px; /* prevent iOS zoom */
}
.summary .promo .btn {
  height: 40px;
}
.summary .promo-msg {
  margin: 0;
  padding: 6px 0 0;
}
.summary .promo-msg.is-error { color: var(--c-sale); }
.summary .promo-msg.is-success { color: var(--c-success); }
.summary .clarity-cart__checkout {
  height: 52px;
  font-size: 15px;
  margin-top: 8px;
}
.summary .secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-muted);
  justify-content: center;
  margin-top: 2px;
}
.summary .pay-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Shipping progress bar */
.ship-progress {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--c-text-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ship-progress .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ship-progress .label strong {
  color: var(--c-text);
  font-weight: 600;
}
.ship-track {
  height: 4px;
  background: var(--c-surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.ship-fill {
  height: 100%;
  background: var(--c-success);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* --- Upsell row ---------------------------------------------- */
.upsell {
  margin: 32px 0 96px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.upsell h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.upsell p {
  font-size: 14px;
  color: var(--c-text-2);
  margin: 0 0 24px;
}
.upsell-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Cart drawer (off-canvas) -------------------------------- */
.clarity-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}
.clarity-drawer__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.clarity-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1001;
  visibility: hidden;
}
.clarity-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
body.clarity-drawer-open {
  overflow: hidden;
}
.clarity-drawer__head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.clarity-drawer__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.clarity-drawer__count {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-muted);
  margin-left: 4px;
}
.clarity-drawer__shipbar {
  padding: 16px 24px 0;
  flex-shrink: 0;
}
.clarity-drawer__body {
  padding: 8px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.clarity-drawer__loading {
  text-align: center;
  padding: 40px 0;
  color: var(--c-muted);
  font-size: 13px;
}
.clarity-drawer__empty {
  text-align: center;
  padding: 40px 0;
}
.clarity-drawer__empty p {
  font-size: 14px;
  color: var(--c-text-2);
  margin: 0 0 16px;
}
.clarity-drawer__line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.clarity-drawer__line:last-child { border-bottom: 0; }
.clarity-drawer__line-image {
  aspect-ratio: 4 / 5;
  width: 64px;
  border-radius: var(--c-radius-sm);
  overflow: hidden;
  background: var(--c-placeholder);
}
.clarity-drawer__line-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clarity-drawer__line-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
}
.clarity-drawer__line-info h4 a {
  color: var(--c-text);
  text-decoration: none;
}
.clarity-drawer__line-info p {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0;
}
.clarity-drawer__line-info .qty-mini {
  font-size: 12px;
  color: var(--c-text-2);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.clarity-drawer__line-info .qty-mini button {
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text);
}
.clarity-drawer__line-info .qty-mini button:hover { background: var(--c-surface-2); }
.clarity-drawer__line-info .qty-mini button:disabled { opacity: 0.5; cursor: not-allowed; }
.clarity-drawer__line-info .qty-mini-val {
  font-variant-numeric: tabular-nums;
  min-width: 16px;
  text-align: center;
}
/* vendly-dc0d5.7: was a small underlined text-link 'Remove' that visually
   read as a footnote rather than a control. Now an icon-button on the
   same row as the qty +/- buttons, sized + bordered to match. */
.clarity-drawer__line-info .remove-btn {
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  cursor: pointer;
  margin-left: auto;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.clarity-drawer__line-info .remove-btn:hover {
  color: var(--c-danger, #c0392b);
  border-color: var(--c-danger, #c0392b);
  background: var(--c-surface-2);
}
.clarity-drawer__line-info .remove-btn:focus-visible {
  outline: 2px solid var(--c-accent, currentColor);
  outline-offset: 2px;
}
.clarity-drawer__line-price {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.clarity-drawer__foot {
  padding: 20px 24px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.clarity-drawer__foot .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--c-text-2);
  align-items: center;
}
.clarity-drawer__foot .row.total {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}
.clarity-drawer__foot .btn {
  height: 48px;
  margin-top: 6px;
}

/* --- Responsive --------------------------------------------- */
@media (min-width: 1025px) {
  /* Center summary card on desktop, slightly larger.
     Future: side-by-side layout requires shared parent wrapper. */
  .summary {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }
}
@media (max-width: 1024px) {
  .upsell-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cart-head { padding: 32px 0 20px; }
  .cart-head h1 { font-size: 28px; }
  .line {
    grid-template-columns: 88px 1fr;
    gap: 16px;
  }
  .line .line-image { width: 88px; }
  .line .right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
  }
  .summary { padding: 20px; }
  .upsell-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .clarity-drawer { width: 100vw; }
}

/* === BEGIN vendly-lpsm === */
/* Clarity · CMS Page (main-page section) — centered narrow column */
.page-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 0 96px;
}
.page-main__crumbs {
  margin-bottom: 20px;
}
.page-main__head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-rule);
}
.page-main__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.page-main__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-2);
}
.page-main__body > * + * { margin-top: 1.1em; }
.page-main__body h2,
.page-main__body h3,
.page-main__body h4 {
  color: var(--c-text);
  font-family: var(--font-display);
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.page-main__body h2 { font-size: 26px; letter-spacing: -0.005em; }
.page-main__body h3 { font-size: 20px; }
.page-main__body h4 { font-size: 17px; }
.page-main__body p { margin: 0; }
.page-main__body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-main__body a:hover { color: var(--c-accent-hover); }
.page-main__body ul,
.page-main__body ol {
  padding-left: 1.4em;
  margin: 0;
}
.page-main__body li + li { margin-top: 0.4em; }
.page-main__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--c-radius);
  margin: 1.4em 0;
}
.page-main__body blockquote {
  margin: 1.4em 0;
  padding: 12px 20px;
  border-left: 3px solid var(--c-border-strong);
  color: var(--c-text-2);
  font-style: italic;
}
.page-main__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--c-surface-2);
  padding: 2px 6px;
  border-radius: var(--c-radius-sm);
}
.page-main__body pre {
  background: var(--c-surface-2);
  border-radius: var(--c-radius);
  padding: 16px 20px;
  overflow-x: auto;
}
.page-main__body pre code { background: transparent; padding: 0; }
.page-main__body hr {
  border: 0;
  border-top: 1px solid var(--c-rule);
  margin: 2em 0;
}
@media (max-width: 768px) {
  .page-main { padding: 32px 0 64px; }
  .page-main__title { font-size: 30px; }
  .page-main__head { margin-bottom: 24px; padding-bottom: 18px; }
}
/* === END vendly-lpsm === */

/* === BEGIN vendly-7lxm (Stage 3 polish) === */
/* 404 page — main-404 section (full mockup port)
   Mockup: docs/Clarity Theme Cartly App Store/Clarity 404.html
   Two-zone layout: hero (.nf, 1fr/1fr) + help band (.help-band, 4-col grid). */
.nf {
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 0;
}
.nf-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 480px;
}
.nf-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--c-accent);
  margin: 0;
}
.nf h1 {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}
.nf p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-2);
  margin: 0;
  max-width: 44ch;
}
.nf .ctas {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.nf .search-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
}
.nf .search-row .input { flex: 1; height: 48px; }
.nf .search-row .btn   { height: 48px; }

.nf-quick {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
}
.nf-quick .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nf-quick a.chip {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--c-radius-pill);
  border: 1px solid var(--c-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--c-text);
  text-decoration: none;
}
.nf-quick a.chip:hover {
  border-color: var(--c-text);
  background: var(--c-surface-2);
}

.nf-vis {
  position: relative;
  min-width: 0;
}
.nf-vis .glyph {
  font-size: clamp(220px, 28vw, 440px);
  line-height: 0.85;
  font-weight: 500;
  color: var(--c-surface-2);
  user-select: none;
  display: block;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
}
.nf-vis .glyph .zero { display: inline-block; border-radius: 50%; }
.nf-vis .float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  width: 200px;
}
.nf-vis .float .ph {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--c-radius-sm);
}
.nf-vis .float h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.nf-vis .float .meta {
  font-size: 11px;
  color: var(--c-muted);
  margin: 0;
}
.nf-vis .float.f1 { top: 6%; right: 8%; transform: rotate(4deg); }
.nf-vis .float.f2 { bottom: 8%; left: 0; transform: rotate(-5deg); }

.help-band {
  padding: 64px 0;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}
.help-band h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.help-band > .container-wide > p {
  font-size: 14px;
  color: var(--c-text-2);
  margin: 0 0 32px;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  background: #fff;
  text-decoration: none;
  color: var(--c-text);
}
.help-card:hover { border-color: var(--c-text); }
.help-card .ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border-radius: 50%;
  color: var(--c-text);
  margin-bottom: 6px;
}
.help-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.help-card p {
  font-size: 13px;
  color: var(--c-text-2);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .nf { grid-template-columns: 1fr; gap: 24px; padding: 60px 0; }
  .nf h1 { font-size: 30px; }
  .nf-vis { display: none; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nf .ctas .btn { width: 100%; }
  .nf .ctas { flex-direction: column; width: 100%; }
}
/* === END vendly-7lxm === */

/* === BEGIN vendly-dy33 === */
/* ------------------------------------------------------------------
   Article + Blog list — Clarity
   Sections: main-article · main-blog · related-articles (Clarity Article.html)
   ------------------------------------------------------------------ */

/* Reading-progress bar */
.clarity-article-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--c-accent); z-index: 60; width: 0%;
}

/* Article hero head */
.clarity-article .art-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--c-border);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.clarity-article .art-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600; color: var(--c-accent); margin: 0 0 18px;
}
.clarity-article .art-eyebrow a { color: inherit; }
.clarity-article .art-head h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 52px; font-weight: 500; line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 20px;
}
.clarity-article .art-head .dek {
  font-size: 18px; color: var(--c-text-2); line-height: 1.55; margin: 0 0 28px;
}
.clarity-article .byline {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  font-size: 13px; color: var(--c-muted);
}
.clarity-article .byline .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #C7B89D, #A48E6B); display: inline-block;
}
.clarity-article .byline strong { color: var(--c-text); font-weight: 600; margin-right: 4px; }
.clarity-article .byline .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--c-muted-2); display: inline-block;
}

/* Hero image */
.clarity-article .art-hero { margin: 40px auto 0; max-width: 1100px; padding: 0 24px; }
.clarity-article .art-hero img {
  width: 100%; height: auto; aspect-ratio: 16/9;
  border-radius: var(--c-radius-lg); object-fit: cover; display: block;
}
.clarity-article .art-hero figcaption {
  font-size: 12px; color: var(--c-muted); text-align: center; margin-top: 12px;
}

/* Body prose */
.clarity-article .art-body { max-width: 680px; margin: 64px auto 0; padding: 0 24px; }
.clarity-article .art-body p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px; line-height: 1.7; color: var(--c-text); margin: 0 0 24px;
}
.clarity-article .art-body p.lead::first-line { font-weight: 500; }
.clarity-article .art-body p.lead::first-letter {
  font-size: 64px; float: left; line-height: 1; padding: 6px 12px 0 0;
  font-weight: 500; color: var(--c-text);
}
.clarity-article .art-body h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px; font-weight: 500; margin: 48px 0 16px; letter-spacing: -0.01em;
}
.clarity-article .art-body h3 {
  font-size: 18px; font-weight: 600; margin: 32px 0 12px; letter-spacing: 0;
}
.clarity-article .art-body a { color: var(--c-text); border-bottom: 1px solid var(--c-border-strong); }
.clarity-article .art-body a:hover { border-bottom-color: var(--c-accent); color: var(--c-accent); }
.clarity-article .art-body ul,
.clarity-article .art-body ol {
  padding-left: 20px; margin: 0 0 24px;
  font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.7;
}
.clarity-article .art-body li { margin-bottom: 6px; }
.clarity-article .art-body blockquote {
  margin: 48px -40px; padding: 32px 40px;
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  text-align: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px; line-height: 1.4; font-weight: 500;
  letter-spacing: -0.01em; color: var(--c-text);
}
.clarity-article .art-body figure { margin: 40px -40px; text-align: center; }
.clarity-article .art-body figure img {
  width: 100%; border-radius: var(--c-radius-lg); display: block;
}
.clarity-article .art-body figcaption {
  font-size: 12px; color: var(--c-muted); margin-top: 10px;
}
.clarity-article .art-body img {
  max-width: 100%; height: auto; border-radius: var(--c-radius);
}

/* Article footer */
.clarity-article .art-foot { max-width: 680px; margin: 64px auto 0; padding: 0 24px; }
.clarity-article .tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 24px; border-bottom: 1px solid var(--c-border);
}
.clarity-article .tag {
  display: inline-flex; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--c-surface);
  font-size: 12px; color: var(--c-text-2);
  align-items: center; border: 1px solid var(--c-border);
  text-decoration: none;
}
.clarity-article .tag:hover { color: var(--c-text); border-color: var(--c-border-strong); }
.clarity-article .share-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--c-border);
}
.clarity-article .share-row .label {
  font-size: 12px; color: var(--c-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
}
.clarity-article .share-row .icons { display: flex; gap: 8px; }
.clarity-article .share-row .icons button {
  width: 36px; height: 36px; border: 1px solid var(--c-border);
  border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: var(--c-text-2);
  background: transparent; cursor: pointer;
}
.clarity-article .share-row .icons button:hover {
  color: var(--c-text); background: var(--c-surface);
}
.clarity-article .author-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 32px 0; align-items: start;
}
.clarity-article .author-card .avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #C7B89D, #A48E6B);
}
.clarity-article .author-card h4 {
  font-size: 14px; font-weight: 600; margin: 0 0 4px; letter-spacing: 0;
}
.clarity-article .author-card p {
  font-size: 13px; color: var(--c-text-2); line-height: 1.55; margin: 0 0 8px;
}

/* "More from the Journal" band — also reused by main-blog */
.more-band {
  background: var(--c-surface); padding: 88px 0; margin-top: 80px;
}
.more-band h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 36px; font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 8px; text-align: center;
}
.more-band .sub {
  font-size: 14px; color: var(--c-text-2); text-align: center; margin: 0 0 40px;
}
.more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.article-card {
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
}
.article-card .ph {
  aspect-ratio: 4/3; border-radius: var(--c-radius-lg);
  background: var(--c-placeholder); display: block;
}
.article-card .cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; color: var(--c-accent);
}
.article-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px; font-weight: 500; margin: 0;
  line-height: 1.25; letter-spacing: -0.005em;
}
.article-card p { font-size: 14px; color: var(--c-text-2); margin: 0; line-height: 1.55; }
.article-card .meta { font-size: 12px; color: var(--c-muted); margin-top: auto; }

@media (max-width: 900px) {
  .clarity-article .art-head { padding: 40px 24px 32px; }
  .clarity-article .art-head h1 { font-size: 36px; }
  .clarity-article .art-body { padding: 0 20px; font-size: 17px; }
  .clarity-article .art-body blockquote,
  .clarity-article .art-body figure { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .more-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* === END vendly-dy33 === */

/* === BEGIN vendly-5h6l === */
/* Quick-add loading + tiny aria-live toast (used by .pc-quick click handler) */
.product-card .pc-quick.is-loading {
  opacity: 0.85;
  cursor: progress;
  position: relative;
  padding-right: 32px;
}
.product-card .pc-quick.is-loading::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: clarity-spin .7s linear infinite;
}
@keyframes clarity-spin { to { transform: rotate(360deg); } }

.clarity-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--c-text, #111);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--c-radius, 6px);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
  max-width: 90vw;
}
.clarity-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.clarity-toast.is-error {
  background: #b3261e;
}
/* === END vendly-5h6l === */

/* === BEGIN vendly-0exc === */
/* Wishlist heart filled state + footer quick link */
.product-card .pc-wish.is-active {
  color: var(--c-sale, #b3261e);
  opacity: 1;
  transform: translateY(0);
  background: rgba(255,255,255,0.96);
  border-color: var(--c-sale, #b3261e);
}
.product-card .pc-wish.is-active svg path {
  fill: currentColor;
}
.product-card .pc-wish.is-loading {
  opacity: 0.6;
  cursor: progress;
}

.footer-wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-2, #555);
  text-decoration: none;
  padding: 4px 0;
}
.footer-wishlist-link:hover {
  color: var(--c-text, #111);
}
.footer-wishlist-link svg {
  width: 16px;
  height: 16px;
}
/* === END vendly-0exc === */

/* === BEGIN vendly-05uu === */
/* Clarity Search page — ports Linen Search mockup spacing/typography. */
.clarity-search-section .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* HERO */
.clarity-search-hero { padding: 80px 0 32px; text-align: center; }
.clarity-search-hero__title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1; margin: 0 0 32px;
  letter-spacing: -0.005em;
  color: var(--c-text);
}
.clarity-search-hero__form {
  max-width: 720px; margin: 0 auto; position: relative;
  border-bottom: 1px solid var(--c-text);
  display: flex; align-items: center;
}
.clarity-search-hero__form input[type="search"] {
  flex: 1; width: 100%; border: 0; background: transparent;
  padding: 18px 48px 18px 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px; font-weight: 400;
  outline: none; color: var(--c-text);
  -webkit-appearance: none; appearance: none;
}
.clarity-search-hero__form input[type="search"]::placeholder { color: var(--c-muted); }
.clarity-search-hero__form input[type="search"]::-webkit-search-cancel-button { display: none; }
.clarity-search-hero__submit {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; padding: 8px; cursor: pointer;
  color: var(--c-muted); display: inline-flex; align-items: center; justify-content: center;
}
.clarity-search-hero__submit:hover { color: var(--c-text); }
.clarity-search-hero__submit svg { width: 22px; height: 22px; }
.clarity-search-hero__meta {
  text-align: center; padding: 14px 0 0;
  color: var(--c-muted); font-size: 13px; letter-spacing: 0.04em;
}
.clarity-search-hero__meta b { color: var(--c-text); font-weight: 500; }
.clarity-search-hero__clear {
  color: var(--c-text); text-decoration: underline; text-underline-offset: 2px;
}
.clarity-search-hero__clear:hover { color: var(--c-accent); }

/* RESULTS */
.clarity-search-results { padding: 32px 0 64px; }
.clarity-search-results__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 14px; margin-bottom: 32px;
}
.clarity-search-results__head--pages { margin-top: 48px; margin-bottom: 0; }
.clarity-search-results__head h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400; font-size: 24px; margin: 0;
  color: var(--c-text);
}
.clarity-search-results__count {
  font-size: 12px; color: var(--c-muted); letter-spacing: 0.04em;
}
.clarity-search-results__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 24px;
}
.clarity-search-results__pages {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--c-border); margin-top: 48px;
}
.clarity-search-results__page {
  background: var(--c-bg); padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
}
.clarity-search-results__page:hover { background: var(--c-surface); }
.clarity-search-results__page .kind {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-muted);
}
.clarity-search-results__page h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px; font-weight: 400; margin: 0;
  color: var(--c-text);
}
.clarity-search-results__page p {
  margin: 0; color: var(--c-muted); font-size: 13px; line-height: 1.6;
}

/* EMPTY */
.clarity-search-empty { padding: 48px 0 96px; }
.clarity-search-empty__inner {
  max-width: 520px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.clarity-search-empty__inner h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400; font-size: 28px; margin: 0; color: var(--c-text);
}
.clarity-search-empty__inner p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.65; }

/* POPULAR */
.clarity-search-popular {
  padding: 80px 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.clarity-search-popular h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px; font-weight: 400; margin: 0 0 24px;
  text-align: center; color: var(--c-text);
}
.clarity-search-popular__row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.clarity-search-popular__row a {
  padding: 10px 16px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--c-text); text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.clarity-search-popular__row a:hover { border-color: var(--c-text); }

@media (max-width: 980px) {
  .clarity-search-results__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .clarity-search-results__pages { grid-template-columns: 1fr; }
  .clarity-search-hero { padding: 56px 0 24px; }
  .clarity-search-hero__form input[type="search"] { font-size: 24px; padding: 14px 40px 14px 0; }
}
/* === END vendly-05uu === */


/* === BEGIN vendly-list-collections === */
/* Clarity — Collections index page (/collections). 3-col grid built
 * on top of the existing .more-band / .more-grid / .article-card
 * primitives. .collection-card overrides article-specific bits. */
.clarity-list-collections { padding-bottom: 80px; }
.clarity-list-collections h1 {
  font-family: var(--font-display, var(--c-font-display));
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.clarity-list-collections .sub {
  color: var(--c-text-2);
  margin: 0 0 32px;
  max-width: 60ch;
}
.clarity-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  margin-top: 8px;
}
.collection-card { text-decoration: none; color: inherit; display: block; }
.collection-card .ph {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--c-radius-lg, 12px);
  background: var(--c-surface-2, #eee);
  display: block;
}
.collection-card h3 {
  margin: 14px 0 6px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.collection-card p {
  color: var(--c-text-2);
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}
.collection-card .meta {
  color: var(--c-text-3, var(--c-text-2));
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 960px) {
  .clarity-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 560px) {
  .clarity-collections-grid { grid-template-columns: 1fr; gap: 28px; }
}
/* === END vendly-list-collections === */

/* === BEGIN vendly-xxiu (Stage 3 polish — Account auth) === */
/* Customer login / register / forgot-password — Clarity Liquid auth
   pages following Mono pattern. Single section drives all 3 templates
   via template.name branching. POSTs hit React storefront actions.
   Mockup: docs/Clarity Theme Cartly App Store/Clarity Account.html
   (top "Login + Register" band — lines 117-178). */
.cl-auth-band {
  padding: 80px 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
}
.cl-auth {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: 40px;
  width: 100%;
}
.cl-auth__tabs {
  display: flex;
  margin: -40px -40px 32px;
  border-bottom: 1px solid var(--c-border);
}
.cl-auth__tab {
  flex: 1;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.cl-auth__tab:hover { color: var(--c-text-2); }
.cl-auth__tab.is-on {
  color: var(--c-text);
  border-bottom-color: var(--c-text);
}
.cl-auth__h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--c-text);
  line-height: 1.2;
}
.cl-auth__sub {
  font-size: 13px;
  color: var(--c-text-2);
  margin: 0 0 24px;
  line-height: 1.55;
}
.cl-auth__form { display: block; }
.cl-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.cl-auth__field label {
  font-size: 12px;
  color: var(--c-text-2);
  font-weight: 500;
}
.cl-auth__field .input {
  height: 44px;
  font-size: 14px;
}
.cl-auth__field .input:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--c-accent) 30%, transparent);
  outline-offset: 2px;
  border-color: var(--c-accent);
}
.cl-auth__hint {
  font-size: 12px;
  color: var(--c-muted);
}
.cl-auth__row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cl-auth__row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 20px;
  font-size: 13px;
}
.cl-auth__remember {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--c-text-2);
}
.cl-auth__remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--c-accent);
}
.cl-auth__forgot {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cl-auth__form .btn.btn-primary.btn-block {
  margin-top: 4px;
}
.cl-auth__foot {
  text-align: center;
  font-size: 13px;
  color: var(--c-text-2);
  margin-top: 24px;
}
.cl-auth__foot a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .cl-auth-band { padding: 48px 0; }
  .cl-auth { padding: 28px; }
  .cl-auth__tabs { margin: -28px -28px 24px; }
  .cl-auth__row-2 { grid-template-columns: 1fr; }
}

/* Passwordless block (OTP + magic-link) — sits below the password form.
   One <form>, two submit buttons; JS dispatcher reads
   event.submitter.data-form-type to route to /api/storefront/otp or
   /api/storefront/magic-link. Inputs reuse .cl-auth__field, buttons
   reuse .btn primary + an outline secondary variant. */
.cl-auth__pwl-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.cl-auth__pwl-divider::before,
.cl-auth__pwl-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.cl-auth__pwl-divider span { white-space: nowrap; }
.cl-auth__pwl-form { display: block; }
.cl-auth__pwl-msgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cl-auth__pwl-msgs:empty,
.cl-auth__pwl-form [data-form-error]:empty,
.cl-auth__pwl-form [data-form-success]:empty {
  display: none;
}
.cl-auth__form [data-form-error],
.cl-auth__form [data-form-success],
.cl-auth__pwl-form [data-form-error],
.cl-auth__pwl-form [data-form-success] {
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: var(--c-radius-sm, 6px);
  margin: 4px 0;
}
.cl-auth__form [data-form-error],
.cl-auth__pwl-form [data-form-error] {
  color: #8a1f1f;
  background: color-mix(in oklab, #8a1f1f 8%, transparent);
  border: 1px solid color-mix(in oklab, #8a1f1f 25%, transparent);
}
.cl-auth__form [data-form-success],
.cl-auth__pwl-form [data-form-success] {
  color: #1f5a32;
  background: color-mix(in oklab, #1f5a32 8%, transparent);
  border: 1px solid color-mix(in oklab, #1f5a32 25%, transparent);
}
.cl-auth__pwl-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.cl-auth__pwl-btn { margin-top: 0; }
.cl-auth__pwl-btn--secondary {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.cl-auth__pwl-btn--secondary:hover {
  border-color: var(--c-text);
  background: color-mix(in oklab, var(--c-text) 4%, transparent);
}
.cl-auth__pwl-btn--secondary:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--c-accent) 30%, transparent);
  outline-offset: 2px;
}
/* === END vendly-xxiu === */

/* === BEGIN vendly-myuz (Clarity account dashboard) === */
/* Customer-account dashboard — Clarity-themed templates for /account,
   /account/orders, /account/addresses, /account/wishlist,
   /account/profile, /account/communication, /account/returns and
   B2B /account/company.

   Mockup: docs/Clarity Theme Cartly App Store/Clarity Account.html
   (inline style block, lines 17-108). All rules below are scoped under
   .cl-acc-* / .cl-dash-* / .cl-order* / .cl-addr / .cl-wish / .cl-pref
   / .cl-stat / .cl-badge / .cl-switch / .cl-form prefixes so they can
   coexist with the boilerplate .account-* design system. */

/* Anon: side-by-side Sign in / Create account cards */
.cl-acc-anon-band {
  padding: 80px 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.cl-acc-anon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 920px;
}
/* Single-card anon variant — only Sign-in card is rendered; the tabs
   inside the card switch users over to /register. Centered, narrower. */
.cl-acc-anon-solo {
  display: flex;
  justify-content: center;
  max-width: 480px;
}
.cl-acc-anon-solo .cl-acc-card { width: 100%; }
.cl-acc-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: 40px;
}
.cl-acc-card__tabs {
  display: flex;
  margin: -40px -40px 32px;
  border-bottom: 1px solid var(--c-border);
}
.cl-acc-card__tab {
  flex: 1;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.cl-acc-card__tab:hover { color: var(--c-text-2); }
.cl-acc-card__tab.is-on {
  color: var(--c-text);
  border-bottom-color: var(--c-text);
}
.cl-acc-card__h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--c-text);
  line-height: 1.2;
}
.cl-acc-card__sub {
  font-size: 13px;
  color: var(--c-text-2);
  margin: 0 0 24px;
  line-height: 1.55;
}
.cl-acc-card__form { display: block; }
.cl-acc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.cl-acc-field label {
  font-size: 12px;
  color: var(--c-text-2);
  font-weight: 500;
}
.cl-acc-field .input { height: 44px; font-size: 14px; }
.cl-acc-hint {
  font-size: 12px;
  color: var(--c-muted);
}
.cl-acc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cl-acc-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 20px;
  font-size: 13px;
}
.cl-acc-remember {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--c-text-2);
}
.cl-acc-remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--c-accent);
}
.cl-acc-forgot {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cl-acc-card__foot {
  text-align: center;
  font-size: 13px;
  color: var(--c-text-2);
  margin-top: 24px;
}
.cl-acc-card__foot a {
  color: var(--c-text);
  text-decoration: underline;
}

/* Dashboard band */
.cl-dash-band { padding: 64px 0 96px; background: var(--c-surface); }
.cl-dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}
.cl-dash-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 14px;
  position: sticky;
  top: 96px;
  align-self: start;
}
.cl-dash-side__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.cl-dash-side__who strong { font-size: 15px; color: var(--c-text); }
.cl-dash-side__who span { font-size: 13px; color: var(--c-muted); }
.cl-dash-side__nav { display: flex; flex-direction: column; }
.cl-dash-side__link {
  padding: 10px 12px;
  border-radius: var(--c-radius);
  font-size: 14px;
  color: var(--c-text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cl-dash-side__link:hover { background: var(--c-surface-2); color: var(--c-text); }
.cl-dash-side__link.is-on {
  background: var(--c-surface-2);
  color: var(--c-text);
  font-weight: 500;
}
.cl-dash-side__num {
  font-size: 12px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.cl-dash-side__signout-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.cl-dash-side__signout {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}

/* Main column */
.cl-dash-main h1.cl-dash-welcome {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--c-text);
  line-height: 1.2;
}
.cl-dash-greet {
  font-size: 14px;
  color: var(--c-text-2);
  margin: 0 0 32px;
  line-height: 1.55;
}
.cl-dash-greet strong { color: var(--c-text); font-weight: 500; }

.cl-dash-flash {
  padding: 12px 16px;
  border-radius: var(--c-radius);
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--c-border);
}
.cl-dash-flash--ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.cl-dash-flash--err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* Stat row */
.cl-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.cl-stat {
  padding: 18px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  background: #fff;
}
.cl-stat__l {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.cl-stat__v {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin: 0;
  color: var(--c-text);
}
.cl-stat__d {
  font-size: 12px;
  color: var(--c-text-2);
  margin: 4px 0 0;
}

/* Cards */
.cl-dash-card {
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  background: #fff;
  overflow: hidden;
  margin-bottom: 32px;
}
.cl-dash-card__head {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
}
.cl-dash-card__head h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--c-text);
}
.cl-dash-card__head a {
  font-size: 13px;
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cl-dash-card__body { padding: 8px 24px; }
.cl-dash-card__empty {
  padding: 24px 0;
  color: var(--c-text-2);
  font-size: 14px;
  margin: 0;
}
.cl-dash-card__empty a { color: var(--c-text); text-decoration: underline; }
.cl-dash-card__note {
  padding: 16px 0;
  color: var(--c-muted);
  font-size: 13px;
  margin: 0;
  border-top: 1px solid var(--c-border);
}
.cl-dash-card__note a { color: var(--c-text); text-decoration: underline; }
.cl-dash-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Order rows */
.cl-order {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.cl-order:last-child { border-bottom: 0; }
.cl-order__pics { display: flex; width: 96px; }
.cl-order__pp {
  width: 64px;
  aspect-ratio: 1;
  border-radius: var(--c-radius-sm);
  border: 2px solid #fff;
  margin-left: -12px;
  background-color: var(--c-surface-2);
}
.cl-order__pp:first-child { margin-left: 0; }
.cl-order__info h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--c-text);
}
.cl-order__meta {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0 0 6px;
}
.cl-order__meta strong { color: var(--c-text); font-weight: 500; }
.cl-order__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cl-order__right a {
  font-size: 13px;
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Order detail head + items */
.cl-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cl-order-head__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cl-order-head__meta strong { color: var(--c-text); font-size: 18px; }

.cl-order-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.cl-order-item:last-child { border-bottom: 0; }
.cl-order-item__media {
  width: 72px;
  height: 72px;
  border-radius: var(--c-radius);
  overflow: hidden;
  background: var(--c-surface-2);
}
.cl-order-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cl-order-item__placeholder { width: 100%; height: 100%; }
.cl-order-item__body h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--c-text);
}
.cl-order-item__variant {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0 0 4px;
}
.cl-order-item__meta {
  font-size: 13px;
  color: var(--c-text-2);
  margin: 0;
}

/* Badges */
.cl-badge {
  display: inline-flex;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--c-radius-pill);
  font-size: 11px;
  font-weight: 600;
  align-items: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cl-badge--delivered { background: #DCFCE7; color: #15803D; }
.cl-badge--shipped { background: #DBEAFE; color: #1E40AF; }
.cl-badge--processing { background: #FEF3C7; color: #92400E; }

/* Addresses */
.cl-addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
}
.cl-addr {
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.55;
  position: relative;
  background: #fff;
}
.cl-addr.is-default { border-color: var(--c-text); }
.cl-addr h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cl-addr__pill {
  font-size: 10px;
  background: var(--c-text);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--c-radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.cl-addr__actions {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  flex-wrap: wrap;
}
.cl-addr__actions a,
.cl-addr__form button {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cl-addr__form { display: inline; }

/* Preference toggles */
.cl-pref-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.cl-pref-row:last-child { border-bottom: 0; }
.cl-pref-row h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--c-text);
}
.cl-pref-row p {
  font-size: 13px;
  color: var(--c-text-2);
  margin: 0;
  line-height: 1.5;
}
.cl-switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--c-text);
  border-radius: 12px;
  display: inline-block;
  cursor: pointer;
}
.cl-switch.is-off { background: var(--c-border-strong); }
.cl-switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 21px;
  transition: left 0.15s;
}
.cl-switch.is-off::after { left: 3px; }
.cl-switch-input { display: inline-block; cursor: pointer; }
.cl-switch-input input { position: absolute; opacity: 0; pointer-events: none; }

/* Wishlist */
.cl-wish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cl-wish-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cl-wish-card__media {
  display: block;
  aspect-ratio: 1;
  background: var(--c-surface-2);
}
.cl-wish-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cl-wish-card__placeholder { width: 100%; height: 100%; }
.cl-wish-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cl-wish-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
}
.cl-wish-card__price {
  font-size: 13px;
  color: var(--c-text-2);
  margin: 0;
}
.cl-wish-card__remove { margin-top: 4px; }
.cl-wish-card__remove button {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Forms (addresses, profile, returns_new) */
.cl-form { display: flex; flex-direction: column; gap: 14px; }
.cl-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-2);
  font-weight: 500;
}
.cl-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cl-form__check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.cl-form__check input { accent-color: var(--c-accent); }
.cl-form textarea.input {
  height: auto;
  padding: 12px;
  font-family: inherit;
}

/* Tables (orders/returns) */
.cl-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cl-dash-table th {
  text-align: left;
  font-size: 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 1px solid var(--c-border);
}
.cl-dash-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-2);
}
.cl-dash-table tr:last-child td { border-bottom: 0; }
.cl-dash-table a { color: var(--c-text); text-decoration: underline; }

.cl-dash-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
  margin: 0 0 20px;
  font-size: 14px;
}
.cl-dash-dl dt { font-weight: 600; color: var(--c-text); }
.cl-dash-dl dd { margin: 0; color: var(--c-text-2); }

/* Anon stub for inner pages (orders/wishlist/addresses/etc when no session) */
.cl-dash-anon {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: 64px 40px;
  text-align: center;
  max-width: 480px;
  margin: 40px auto;
}
.cl-dash-anon h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--c-text);
}
.cl-dash-anon p {
  font-size: 14px;
  color: var(--c-text-2);
  margin: 0 0 24px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .cl-dash { grid-template-columns: 1fr; gap: 24px; }
  .cl-dash-side { position: static; }
  .cl-stat-row { grid-template-columns: repeat(2, 1fr); }
  .cl-addr-grid { grid-template-columns: 1fr; }
  .cl-acc-anon-grid { grid-template-columns: 1fr; }
  .cl-wish-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cl-acc-card { padding: 28px; }
  .cl-acc-card__tabs { margin: -28px -28px 24px; }
  .cl-acc-row-2 { grid-template-columns: 1fr; }
  .cl-form__row { grid-template-columns: 1fr; }
  .cl-wish-grid { grid-template-columns: 1fr; }
  .cl-order { grid-template-columns: 80px 1fr; }
  .cl-order__right { grid-column: 1 / -1; align-items: flex-start; }
}
/* === END vendly-myuz === */
