/* =====================================================================
   Veyano — customer site styles
   ===================================================================== */
:root {
  --brand: #4A0E9E;          /* Veyano purple */
  --brand-deep: #24034F;     /* dark purple: hero panels, footer */
  --brand-tint: #F1EAFB;
  --gold: #F8AE0D;           /* logo gold */
  --gold-deep: #D99500;
  --gold-tint: #FEF3D9;
  --flag-red: #C91B14;       /* logo cart stripes */
  --flag-green: #078A2A;
  --ink: #1E1631;
  --muted: #5F5873;
  --line: #E2DDEA;
  --mist: #F6F4F9;
  --paper: #FFFFFF;
  --error: #B42318;
  --error-tint: #FDECEA;

  --font-head: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.section { padding: 2.25rem 1rem; }
.page-narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.25rem;
  font: 600 .95rem/1 var(--font-body);
  color: #fff; background: var(--brand);
  border: 2px solid var(--brand); border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-small { padding: .5rem .85rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---- Header ---------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }

/* The red / gold / green stripes from the logo's cart, run across the top */
.kente-strip {
  height: 5px;
  background: linear-gradient(90deg,
    var(--flag-red) 0 33.33%, var(--gold) 33.33% 66.66%, var(--flag-green) 66.66% 100%);
}

.header-bar { display: flex; align-items: center; gap: 1.25rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.search { flex: 1; display: flex; max-width: 640px; }
.search input {
  flex: 1; min-width: 0;
  padding: .7rem 1rem;
  font: inherit; color: var(--ink);
  border: 2px solid var(--brand); border-right: 0;
  border-radius: var(--radius-s) 0 0 var(--radius-s);
  background: var(--paper);
}
.search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand); }
.search button {
  padding: 0 1.1rem; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.search button:hover { background: var(--brand-deep); }
.search-inline { margin: 1.5rem auto; }
.search-inline button { padding: 0 1.25rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-link { text-decoration: none; font-weight: 600; color: var(--ink); font-size: .95rem; }
.header-link:hover { color: var(--brand); }
.cart-link { color: var(--ink); display: flex; }
.cart-link:hover { color: var(--brand); }

.category-nav { border-top: 1px solid var(--line); }
.category-nav-inner { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.category-nav-inner::-webkit-scrollbar { display: none; }
.category-nav a {
  padding: .6rem 0; white-space: nowrap;
  font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.category-nav a:hover { color: var(--brand); border-bottom-color: var(--gold); }

/* ---- Alerts ----------------------------------------------------------- */
.alert { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-s); border-left: 4px solid; font-size: .95rem; }
.alert-success { background: var(--brand-tint); border-color: var(--brand); }
.alert-error   { background: var(--error-tint); border-color: var(--error); }
.alert-info    { background: var(--gold-tint); border-color: var(--gold-deep); }

/* ---- Hero ------------------------------------------------------------- */
.hero { background: var(--brand); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero .btn-gold { color: var(--ink); }
.hero-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
  padding-top: 3.5rem; padding-bottom: 3.5rem;
}
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); max-width: 16ch; margin-bottom: .4em; }
.hero-copy p { font-size: 1.1rem; max-width: 46ch; color: #DDD0F2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.hero-points li:first-child { border-radius: var(--radius-m) var(--radius-m) 0 0; }
.hero-points li:last-child { border-radius: 0 0 var(--radius-m) var(--radius-m); }
.hero-points li { background: var(--brand-deep); padding: 1.1rem 1.25rem; display: grid; gap: .15rem; }
.hero-points strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--gold); }
.hero-points span { color: #CBBFE0; font-size: .95rem; }

/* ---- Sections --------------------------------------------------------- */
.section-title { margin-bottom: 1.1rem; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.category-tile {
  display: flex; flex-direction: column; gap: .35rem;
  min-height: 132px; padding: 1rem;
  border-radius: var(--radius-m); text-decoration: none; color: var(--ink);
  border: 1px solid transparent;
  transition: border-color .15s;
}
.category-tile:hover { border-color: var(--ink); color: var(--ink); }
.category-tile-name { font: 600 1.05rem/1.2 var(--font-head); }
.category-tile-count { font-size: .85rem; color: var(--muted); margin-top: auto; }
.tone-0 { background: var(--brand-tint); }
.tone-1 { background: var(--gold-tint); }
.tone-2 { background: #FBE9E3; }
.tone-3 { background: #E5EEF7; }
.tone-4 { background: #ECE9F4; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.product-card { background: var(--paper); border-radius: var(--radius-m); border: 1px solid var(--line); overflow: hidden; }
.product-card-link { display: block; padding: .75rem; text-decoration: none; color: var(--ink); }
.product-card-img { aspect-ratio: 1; background: var(--mist); border-radius: var(--radius-s); overflow: hidden; margin-bottom: .6rem; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-name {
  font: 500 .95rem/1.35 var(--font-body); margin: 0 0 .35rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.price { font-weight: 700; margin: 0 0 .2rem; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .4rem; }
.price s { font-weight: 400; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.product-card-shop { font-size: .82rem; color: var(--muted); margin: 0; }

.empty-panel {
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-m);
  padding: 2rem 1.5rem; text-align: center;
}
.empty-panel p { color: var(--muted); }
.empty-state { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }

.seller-band { background: var(--gold); }
.seller-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.seller-band h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.seller-band p { margin: 0; max-width: 55ch; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* ---- Listings ---------------------------------------------------------- */
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: var(--muted); }
.listing-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.listing-header h1 { margin-bottom: .15rem; }
.listing-count { color: var(--muted); margin: 0; }
.sort-form { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.sort-form select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; background: var(--paper); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 2rem; justify-content: center; }
.pagination a { min-width: 2.4rem; padding: .45rem .6rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); text-decoration: none; color: var(--ink); }
.pagination a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.seo-text { margin-top: 2.5rem; color: var(--muted); max-width: 75ch; font-size: .95rem; }

/* ---- Forms & auth ----------------------------------------------------- */
.auth-wrap { display: flex; justify-content: center; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.auth-logo { display: block; height: 52px; width: auto; margin: 0 auto 1.25rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius-m); padding: 2rem 1.75rem; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.auth-switch { text-align: center; margin: 1.25rem 0 0; font-size: .95rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem;
  font: inherit; color: var(--ink);
  border: 1px solid #C4CDC5; border-radius: var(--radius-s); background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.has-error input { border-color: var(--error); }
.field-error { color: var(--error); font-size: .85rem; margin: .3rem 0 0; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 4.5rem; }
.toggle-password {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--brand); font: 600 .85rem var(--font-body); cursor: pointer; padding: .4rem;
}

.check-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: .9rem; }
.check-table td { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.check-table .ok { color: var(--brand); font-weight: 700; text-align: right; }
.check-table .fail { color: var(--error); font-weight: 700; text-align: right; }

/* ---- Account ------------------------------------------------------------ */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.account-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.25rem; }
.account-panel h2 { font-size: 1.1rem; }
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: #CBBFE0; margin-top: 3rem; }
main:has(> .seller-band:last-child) + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-top: 2.75rem; padding-bottom: 2rem; }
.footer-logo { height: 44px; width: auto; margin-bottom: .75rem; }
.footer-tag { margin-bottom: .75rem; }
.footer-pay { color: var(--gold); font-size: .9rem; }
.footer-heading { font-size: 1rem; color: #fff; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: #CBBFE0; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; padding-bottom: 1.5rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-bar { flex-wrap: wrap; gap: .75rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; gap: .75rem; }
  .header-actions .btn-small { display: none; }
  .brand img { height: 38px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .seller-band-inner { flex-direction: column; align-items: flex-start; }
  .account-grid { grid-template-columns: 1fr; }
  .section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
}


/* =====================================================================
   Polish & motion
   Everything below is switched off for visitors who ask their device
   for reduced motion (see the block at the very end).
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-lift: 0 14px 30px -12px rgba(36, 3, 79, .28), 0 4px 10px -6px rgba(36, 3, 79, .18);
}

/* ---- Header -------------------------------------------------------------- */
.site-header { transition: box-shadow .3s var(--ease-out); }
.site-header.scrolled { box-shadow: 0 6px 20px -10px rgba(36, 3, 79, .35); }
.brand img { transition: transform .3s var(--ease-out); }
.brand:hover img { transform: scale(1.03); }
.search { border-radius: var(--radius-s); transition: box-shadow .25s var(--ease-out); }
.search:focus-within { box-shadow: 0 0 0 4px rgba(248, 174, 13, .35); }
.cart-link svg { transition: transform .25s var(--ease-out); }
.cart-link:hover svg { transform: translateY(-2px) rotate(-6deg); }

.category-nav a { position: relative; border-bottom: 0; }
.category-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.category-nav a:hover::after { transform: scaleX(1); }

/* ---- Buttons ---------------------------------------------------------------- */
.btn { transition: background-color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(36, 3, 79, .55); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

/* ---- Alerts: slide in, close themselves ------------------------------------- */
.alert { position: relative; padding-right: 2.75rem; animation: alert-in .45s var(--ease-out) both; }
.alert.is-leaving { animation: alert-out .35s ease-in forwards; }
.alert-close {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; border: 0; background: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: inherit; opacity: .6; border-radius: 50%;
}
.alert-close:hover { opacity: 1; background: rgba(0,0,0,.06); }
@keyframes alert-in  { from { opacity: 0; transform: translateY(-10px); } }
@keyframes alert-out { to   { opacity: 0; transform: translateY(-10px); } }

/* ---- Hero: one orchestrated entrance ---------------------------------------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-blob-1 { width: 420px; height: 420px; background: #7B2FE0; top: -140px; right: 8%; animation: drift 14s ease-in-out infinite alternate; }
.hero-blob-2 { width: 320px; height: 320px; background: #2A0663; bottom: -160px; left: -60px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }

.hero-swoosh { position: absolute; left: -2%; bottom: 6%; width: 62%; height: 46%; }
.hero-swoosh path {
  fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; opacity: .9;
  stroke-dasharray: 800; stroke-dashoffset: 800;
  animation: draw 1.6s .5s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.enter { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.hero-points li { transition: background-color .25s, transform .3s var(--ease-out); }
.hero-points li:hover { background: #2E0766; transform: translateX(4px); }

/* ---- Scroll reveal (only when JavaScript is running) ------------------------ */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- Category tiles ---------------------------------------------------------- */
.category-tile { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.category-tile:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent;
}
.cat-icon { color: var(--brand); transition: transform .35s var(--ease-out); }
.category-tile:hover .cat-icon { transform: scale(1.15) rotate(-6deg); }

/* ---- Product cards -------------------------------------------------------- */
.product-card { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
.product-card-img { position: relative; }
.product-card-img img { transition: transform .6s var(--ease-out); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img.no-img {
  background: var(--brand-tint) url("../img/logo-icon.png") center / 45% no-repeat;
}
.product-card-img.no-img::after {
  content: ""; position: absolute; inset: 0; background: var(--mist); opacity: .55;
}
.discount-tag {
  position: absolute; top: .5rem; left: .5rem; z-index: 1;
  background: var(--flag-red); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 4px;
}
.product-card-rating { display: flex; align-items: center; gap: .3rem; margin: 0 0 .2rem; font-size: .8rem; color: var(--muted); }

/* ---- Stars ------------------------------------------------------------------ */
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.stars svg { width: 1em; height: 1em; }
.stars-sm { font-size: 14px; }
.stars-md { font-size: 18px; }
.stars-lg { font-size: 24px; }
.stars-base, .stars-fill { display: inline-flex; gap: 1px; white-space: nowrap; }
.stars-base svg { fill: #DCD6E6; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.stars-fill svg { fill: var(--gold); flex-shrink: 0; }

/* ---- How it works -------------------------------------------------------------- */
.how { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.how-steps li { position: relative; padding: 1.25rem 1.25rem 1.25rem 0; }
.how-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.55rem; left: 3.5rem; right: -.5rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.how-num {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .9rem;
  border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.05rem var(--font-head);
  box-shadow: 0 0 0 6px var(--brand-tint);
}
.how-steps li:nth-child(2) .how-num { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px var(--gold-tint); }
.how-steps li:nth-child(3) .how-num { background: var(--flag-green); box-shadow: 0 0 0 6px #E0F2E5; }
.how-steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.how-steps p { color: var(--muted); margin: 0; max-width: 34ch; }

/* ---- Testimonials: slow moving strip, pauses on hover -------------------------- */
.testimonials { overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; padding: .5rem 0 1rem; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }
.testimonial {
  margin: 0; width: 320px; flex-shrink: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem;
}
.testimonial blockquote { margin: 0; font-size: .95rem; line-height: 1.55; }
.testimonial figcaption { margin-top: auto; display: grid; font-size: .85rem; }
.testimonial figcaption span { color: var(--muted); }

/* ---- Star picker (forms) --------------------------------------------------------- */
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { cursor: pointer; width: 2.1rem; height: 2.1rem; margin: 0; }
.star-picker label svg { width: 100%; height: 100%; fill: #DCD6E6; transition: fill .15s, transform .25s var(--ease-out); }
.star-picker label:hover svg,
.star-picker label:hover ~ label svg,
.star-picker input:checked ~ label svg { fill: var(--gold); }
.star-picker label:hover svg { transform: scale(1.18); }
.star-picker input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.account-panel textarea { min-height: 110px; resize: vertical; }
.status-pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.status-pending { background: var(--gold-tint); color: #8A5F00; }
.status-approved { background: #E0F2E5; color: var(--flag-green); }
.status-hidden { background: var(--mist); color: var(--muted); }

@media (max-width: 720px) {
  .how-steps { grid-template-columns: 1fr; gap: .5rem; }
  .how-steps li::after { display: none; }
  .hero-swoosh { width: 110%; height: 30%; bottom: 2%; }
  .testimonial { width: 270px; }
}

/* ---- Respect "reduce motion" -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-swoosh path { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }


/* =====================================================================
   Photo hero (homepage)
   ===================================================================== */
.hero-photo {
  background: #FBF9FC; color: var(--ink);
  min-height: clamp(440px, 46vw, 620px);
  display: flex; align-items: center;
}
.hero-media img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 78% 0%;
  animation: hero-settle 1.8s var(--ease-out) both;
}
@keyframes hero-settle { from { opacity: 0; transform: scale(1.05); } }

.hero-photo .hero-inner { display: block; padding-top: 3rem; padding-bottom: 3rem; }
.hero-photo .hero-copy { max-width: 540px; }
.hero-photo h1 { color: var(--brand-deep); max-width: 14ch; }
.hero-photo .hero-copy p { color: #3F3752; max-width: 40ch; }
.hero-photo .hero-swoosh { z-index: -1; left: -4%; bottom: 4%; width: 58%; height: 40%; }
.hero-photo .hero-swoosh path { stroke-width: 6; opacity: .75; }

.btn-outline { background: rgba(255,255,255,.7); border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); border-color: var(--brand-deep); color: var(--brand-deep); }

/* ---- Trust bar under the hero ---- */
.trust-bar { background: var(--brand-deep); color: #fff; }
.trust-list {
  list-style: none; margin: 0 auto; padding-top: 1.1rem; padding-bottom: 1.1rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.trust-list li { display: flex; align-items: center; gap: .8rem; }
.trust-list svg {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0; padding: .55rem; border-radius: 50%;
  background: rgba(248, 174, 13, .16); fill: none; stroke: var(--gold);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.trust-list strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.trust-list span { color: #CBBFE0; font-size: .88rem; }

@media (max-width: 980px) {
  .hero-photo .hero-copy { max-width: 46%; }
  .hero-photo h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
}
@media (max-width: 720px) {
  /* Phone: photo on top, text underneath on white */
  .hero-photo { display: block; min-height: 0; background: var(--paper); }
  .hero-media img { position: relative; inset: auto; z-index: 0; height: 340px; object-position: 50% 18%; }
  .hero-photo .hero-copy { max-width: none; }
  .hero-photo .hero-inner { padding-top: 1.5rem; padding-bottom: 2rem; }
  .hero-photo .hero-swoosh { display: none; }
  .trust-list { grid-template-columns: 1fr; gap: .75rem; }
}


/* =====================================================================
   How it works — photo cards
   Photos: assets/img/how-find/choose/pay/receive.webp (portrait 4:5, 480x600)
   ===================================================================== */
.how-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.how-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.how-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.how-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--brand-tint); }
.how-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.how-card:hover .how-media img { transform: scale(1.05); }

/* Stand-in panel until the photos are added */
.how-media-empty { display: grid; place-items: center; }
.how-media-empty svg {
  width: 38%; height: auto; fill: none; stroke: var(--brand); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.how-pay .how-media-empty { background: var(--gold-tint); }
.how-pay .how-media-empty svg { stroke: #9A6B00; }
.how-receive .how-media-empty { background: #E0F2E5; }
.how-choose .how-media-empty { background: #E5EEF7; }
.how-choose .how-num { background: #1D5FA8; }
.how-receive .how-media-empty svg { stroke: var(--flag-green); }

.how-card .how-num {
  position: absolute; left: 1rem; bottom: 1rem; margin: 0;
  width: 2.6rem; height: 2.6rem; box-shadow: 0 0 0 4px rgba(255,255,255,.85);
}
.how-pay .how-num { background: var(--gold); color: var(--ink); }
.how-receive .how-num { background: var(--flag-green); }
.how-body { padding: 1.1rem 1.25rem 1.35rem; }
.how-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.how-body p { color: var(--muted); margin: 0; }

@media (max-width: 980px) { .how-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .how-cards { gap: .75rem; }
  .how-body { padding: .8rem .85rem 1rem; }
  .how-body h3 { font-size: 1rem; }
  .how-body p { font-size: .88rem; }
  .how-card .how-num { width: 2.1rem; height: 2.1rem; left: .6rem; bottom: .6rem; font-size: .9rem; }
}

/* =====================================================================
   Sell on Veyano page
   ===================================================================== */
.sell-hero { background: var(--brand-deep); color: #fff; position: relative; overflow: hidden; }
.sell-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: #6B1FD0; filter: blur(90px); opacity: .45; top: -220px; right: -120px;
  animation: drift 16s ease-in-out infinite alternate;
}
.sell-hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.sell-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); max-width: 15ch; }
.sell-hero p { color: #DDD0F2; font-size: 1.1rem; max-width: 46ch; }
.sell-note { font-size: .9rem !important; color: var(--gold) !important; margin-top: 1rem; }
.btn.is-disabled { opacity: .6; cursor: default; pointer-events: none; }

.price-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-l); padding: 1.75rem; border-top: 5px solid var(--gold); box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
.price-card-label { display: block; color: var(--muted); font-weight: 600; font-size: .9rem; }
.price-card-big { display: block; font: 700 3.2rem/1.1 var(--font-head); color: var(--brand); margin: .2rem 0 1rem; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.price-card li { padding-left: 1.6rem; position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--flag-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.sell-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.sell-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.35rem; }
.sell-steps li:nth-child(2) .how-num { background: #1D5FA8; box-shadow: 0 0 0 6px #E5EEF7; }
.sell-steps li:nth-child(3) .how-num { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px var(--gold-tint); }
.sell-steps li:nth-child(4) .how-num { background: var(--flag-green); box-shadow: 0 0 0 6px #E0F2E5; }
.sell-steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.sell-steps p { color: var(--muted); margin: 0; font-size: .95rem; }

.sell-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sell-benefits > div { border-left: 4px solid var(--gold); padding: .25rem 0 .25rem 1.1rem; }
.sell-benefits > div:nth-child(2) { border-color: var(--brand); }
.sell-benefits > div:nth-child(3) { border-color: var(--flag-green); }
.sell-benefits h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.sell-benefits p { color: var(--muted); margin: 0; }

@media (max-width: 980px) {
  .sell-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .sell-steps { grid-template-columns: repeat(2, 1fr); }
  .sell-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .sell-steps { grid-template-columns: 1fr; } }

/* =====================================================================
   Seller application & seller home
   ===================================================================== */
[hidden] { display: none !important; }
.apply-wrap { max-width: 860px; }
.apply-form { display: grid; gap: 1.1rem; margin-top: 1rem; }
.form-section { margin: 0; padding: 1.25rem 1.35rem .4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); }
.form-section legend { font: 700 1.1rem var(--font-head); padding: 0 .4rem; margin-left: -.4rem; color: var(--brand-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { display: flex; align-items: center; gap: .55rem; cursor: pointer; margin-bottom: 1rem; }
.choice-row .choice { margin: 0; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-s); transition: border-color .2s, background-color .2s; }
.choice-row .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); flex-shrink: 0; }
.field input[type=file] { padding: .55rem; background: var(--mist); cursor: pointer; }
.field input[type=file]::file-selector-button { margin-right: .75rem; padding: .45rem .8rem; border: 0; border-radius: var(--radius-s); background: var(--brand); color: #fff; font: 600 .85rem var(--font-body); cursor: pointer; }
.file-on-record { margin: 0 0 .4rem; font-size: .85rem; color: var(--flag-green); font-weight: 600; }
.file-on-record::before { content: "✓ "; }
.has-error select, .has-error textarea { border-color: var(--error); }

.status-card { max-width: 560px; margin: 2rem auto; text-align: center; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius-l); padding: 2.5rem 2rem; }
.status-card-rejected { border-top-color: var(--error); }
.status-icon svg { width: 3.2rem; height: 3.2rem; fill: none; stroke: #B07A00; stroke-width: 1.6; stroke-linecap: round; margin-bottom: .5rem; animation: spin-slow 8s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.seller-welcome { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.seller-welcome h1 { margin-bottom: .1rem; }
.seller-welcome .muted { margin: 0; }
.seller-kicker { margin: 0 0 .2rem; color: var(--gold-deep); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.verified-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: #E0F2E5; color: var(--flag-green); font-weight: 700; font-size: .9rem; }
.verified-badge svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seller-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.seller-stats .account-panel { display: grid; gap: .25rem; }
.seller-stats strong { font: 700 1.5rem var(--font-head); color: var(--brand); }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .seller-stats { grid-template-columns: 1fr 1fr; }
  .btn-block-mobile { width: 100%; }
}
.field label.choice { display: flex; font-weight: 500; font-size: 1rem; margin-bottom: 0; }
.field > label.choice { margin-bottom: .25rem; }
.apply-form > .btn { justify-self: start; min-width: 240px; }
@media (max-width: 720px) { .apply-form > .btn { justify-self: stretch; } }

/* ---- Notification bell & list ------------------------------------------ */
.bell-link { position: relative; display: flex; color: var(--ink); }
.bell-link:hover { color: var(--brand); }
.bell-link svg { transition: transform .3s var(--ease-out); transform-origin: 50% 10%; }
.bell-link:hover svg { transform: rotate(12deg); }
.bell-count {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--flag-red); color: #fff; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper);
  animation: pop .5s var(--ease-out) both .3s;
}
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.25); } }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.notif { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease-out); }
.notif:hover { border-color: var(--brand); transform: translateX(3px); color: var(--ink); }
.notif-dot { width: .6rem; height: .6rem; margin-top: .4rem; border-radius: 50%; flex-shrink: 0; background: transparent; }
.notif.is-unread { background: var(--brand-tint); border-color: #D9C8F3; }
.notif.is-unread .notif-dot { background: var(--brand); }
.notif-text { display: grid; gap: .15rem; flex: 1; }
.notif-text span { color: var(--muted); font-size: .92rem; }
.notif time { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* =====================================================================
   Milestone 4: product page, shop page, cart
   ===================================================================== */
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.cart-count.bump { animation: pop .5s var(--ease-out); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 1rem; max-width: calc(100% - 2rem);
  padding: .85rem 1.1rem; border-radius: var(--radius-m); background: var(--ink); color: #fff; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); transition: transform .45s var(--ease-out);
}
.toast.show { transform: translate(-50%, 0); }
.toast-ok { border-left: 4px solid var(--flag-green); }
.toast-err { border-left: 4px solid var(--flag-red); }
.toast a { color: var(--gold); font-weight: 700; white-space: nowrap; }

.section-flat { margin-top: 2.5rem; }
.chip-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-active:hover { color: #fff; }

/* ---- Product page ------------------------------------------------------------ */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.pd-gallery { position: sticky; top: 7.5rem; }
.pd-main { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.pd-noimg { aspect-ratio: 1; background: var(--brand-tint) url("../img/logo-icon.png") center / 35% no-repeat; }
.pd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink); opacity: 0; transition: opacity .25s, transform .25s var(--ease-out);
}
.pd-main:hover .pd-arrow, .pd-arrow:focus-visible { opacity: 1; }
.pd-prev { left: .75rem; } .pd-next { right: .75rem; }
.pd-arrow:hover { transform: translateY(-50%) scale(1.08); }
.pd-counter { position: absolute; right: .75rem; bottom: .75rem; background: rgba(30,22,49,.7); color: #fff; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.pd-discount { top: 1rem; left: 1rem; font-size: .85rem; padding: .25rem .6rem; }
.pd-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; background: var(--paper); cursor: pointer; transition: border-color .2s, transform .2s var(--ease-out); }
.pd-thumbs button:hover { transform: translateY(-2px); }
.pd-thumbs button.active { border-color: var(--brand); }
.pd-thumbs img { width: 72px; height: 72px; object-fit: cover; display: block; }

.pd-info { display: grid; gap: .9rem; }
.pd-shop { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; justify-self: start; }
.verified-tick svg { width: 1.05rem; height: 1.05rem; fill: var(--flag-green); stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.pd-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0; }
.pd-rating { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .9rem; justify-self: start; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.pd-price strong { font: 700 2rem var(--font-head); color: var(--brand); }
.pd-price strong.flash { animation: price-flash .6s var(--ease-out); }
@keyframes price-flash { 40% { color: var(--gold-deep); transform: scale(1.06); } }
.pd-price s { color: var(--muted); }

.pd-buy { display: grid; gap: .9rem; padding: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); }
.pd-options { border: 0; margin: 0; padding: 0; }
.pd-options legend { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.pd-options.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.option-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.option input { position: absolute; opacity: 0; }
.option span {
  display: inline-block; padding: .55rem .95rem; border: 1.5px solid #CFC7DC; border-radius: var(--radius-s);
  background: var(--paper); cursor: pointer; font-weight: 500; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.option span:hover { border-color: var(--brand); }
.option input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; transform: translateY(-1px); }
.option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.option.is-out span { color: #A9A1B8; text-decoration: line-through; cursor: not-allowed; background: var(--mist); }
.pd-stock { margin: 0; font-weight: 600; font-size: .92rem; }
.stock-in { color: var(--flag-green); } .stock-few { color: #B35C00; } .stock-out { color: var(--error); }
.pd-actions { display: flex; gap: .75rem; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid #CFC7DC; border-radius: var(--radius-s); overflow: hidden; background: var(--paper); }
.qty button { width: 2.6rem; border: 0; background: var(--mist); font-size: 1.2rem; cursor: pointer; color: var(--ink); transition: background-color .2s; }
.qty button:hover { background: var(--brand-tint); }
.qty input { width: 3.2rem; border: 0; text-align: center; font: 600 1rem var(--font-body); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.btn-add { flex: 1; padding: .9rem 1.2rem; font-size: 1rem; }
.btn-add:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-add.is-loading { position: relative; color: transparent; }
.btn-add.is-loading::after { content: ""; position: absolute; width: 1.2rem; height: 1.2rem; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin-slow .7s linear infinite; }
.pd-msg { margin: 0; font-size: .9rem; min-height: 0; }
.pd-msg.is-error { color: var(--error); font-weight: 600; }

.pd-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pd-perks li { display: flex; gap: .8rem; align-items: flex-start; }
.pd-perks svg { width: 2.3rem; height: 2.3rem; flex-shrink: 0; padding: .45rem; border-radius: 50%; background: var(--brand-tint); fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pd-perks div { display: grid; }
.pd-perks span { color: var(--muted); font-size: .88rem; }
.pd-share { display: flex; align-items: center; gap: .5rem; }
.pd-share > span { color: var(--muted); font-size: .9rem; margin-right: .25rem; }
.share-btn { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; transition: transform .2s var(--ease-out); }
.share-btn:hover { transform: translateY(-2px) scale(1.06); color: #fff; }
.share-btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.share-wa { background: #25D366; } .share-fb { background: #1877F2; } .share-copy.share-btn { background: var(--ink); }

.pd-lower { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; margin-top: 2.5rem; align-items: start; }
.pd-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.4rem 1.5rem; }
.pd-reviews { grid-column: 1; }
.pd-lead { font-weight: 600; }
.pd-desc { line-height: 1.7; margin-bottom: 1rem; }
.pd-specs { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { margin: 0; font-weight: 500; }
.pd-seller { grid-row: span 2; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.25rem; display: grid; gap: 1rem; position: sticky; top: 7.5rem; }
.seller-card { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); }
.seller-card img, .seller-initial { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.seller-initial { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font: 700 1.5rem var(--font-head); }
.seller-card > span { display: grid; }
.seller-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.seller-facts li { display: flex; align-items: center; gap: .45rem; }
.badge-founding { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--gold-tint); color: #8A5F00; font-weight: 700; font-size: .8rem; }
.review-summary { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.review-summary strong { font: 700 1.5rem var(--font-head); }
.review { padding: 1rem 0; border-top: 1px solid var(--line); }
.review header { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.review p { margin: 0 0 .35rem; }
.seller-reply { margin-top: .6rem; padding: .6rem .8rem; background: var(--brand-tint); border-radius: var(--radius-s); font-size: .92rem; }

/* ---- Shop page -------------------------------------------------------------------- */
.shop-banner { height: clamp(140px, 22vw, 280px); background: linear-gradient(120deg, var(--brand-deep), var(--brand) 60%, #7B2FE0) center / cover no-repeat; }
.shop-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding-top: 1rem; }
.shop-head .shop-logo { margin-top: -4.5rem; align-self: start; }
.shop-logo { width: 120px; height: 120px; border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 5px var(--mist), 0 12px 30px -12px rgba(0,0,0,.4); display: grid; place-items: center; font: 700 3rem var(--font-head); color: var(--brand); }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-title h1 { margin: 0 0 .4rem; }
.shop-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; }
.pill svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-green { background: #E0F2E5; border-color: #C3E5CD; color: var(--flag-green); }
.pill-gold { background: var(--gold-tint); border-color: #F5DD9A; color: #8A5F00; font-weight: 700; }
.shop-contact { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-wa { background: #1FAF53; border-color: #1FAF53; }
.btn-wa:hover { background: #178A41; border-color: #178A41; }
.shop-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.shop-side { display: grid; gap: 1rem; position: sticky; top: 7.5rem; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.15rem 1.25rem; }
.side-card h2 { font-size: 1.05rem; }
.side-card p { margin-bottom: .6rem; }
.side-pickup { padding: .6rem .8rem; background: #E0F2E5; border-radius: var(--radius-s); color: #0A5A25; }
.area-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; }
.area-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.area-list li > span:last-child { text-align: right; display: grid; }
.free { color: var(--flag-green); }
.mini-review { padding: .6rem 0; border-top: 1px solid var(--line); }
.mini-review p { margin: .3rem 0 .1rem; font-size: .92rem; }

/* ---- Cart -------------------------------------------------------------------------------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.cart-shops { display: grid; gap: 1rem; }
.cart-note { margin: 0; padding: .7rem 1rem; background: var(--gold-tint); border-radius: var(--radius-m); font-size: .92rem; }
.cart-shop { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.cart-shop > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; padding: .85rem 1.2rem; background: var(--brand-tint); }
.cart-shop > header a { font-weight: 700; text-decoration: none; color: var(--brand-deep); }
.cart-shop > footer { display: flex; justify-content: space-between; padding: .8rem 1.2rem; border-top: 1px solid var(--line); background: #FCFBFD; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-top: 1px solid var(--line); transition: opacity .3s; }
.cart-shop > header + .cart-line { border-top: 0; }
.cart-line.is-off { opacity: .65; }
.cart-img { width: 84px; height: 84px; border-radius: var(--radius-s); overflow: hidden; background: var(--brand-tint) url("../img/logo-icon.png") center / 45% no-repeat; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: grid; gap: .15rem; min-width: 0; }
.cart-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-name:hover { color: var(--brand); }
.cart-unit { font-size: .9rem; color: var(--muted); }
.cart-warn { color: var(--error); font-size: .85rem; font-weight: 600; }
.cart-qty { display: grid; justify-items: center; gap: .3rem; }
.qty-sm button { width: 2.1rem; font-size: 1rem; }
.qty-sm input { width: 2.6rem; font-size: .95rem; padding: .35rem 0; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--error); }
.cart-total { min-width: 6.5rem; text-align: right; }
.cart-summary { position: sticky; top: 7.5rem; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius-l); padding: 1.3rem; display: grid; gap: .9rem; }
.cart-summary h2 { margin: 0; font-size: 1.2rem; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin: 0; }
.cart-summary dd { margin: 0; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; border-top: 1px solid var(--line); }
.summary-total strong { font: 700 1.5rem var(--font-head); color: var(--brand); }
.summary-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.summary-perks li::before { content: "✓ "; color: var(--flag-green); font-weight: 700; }
.cart-empty { display: grid; justify-items: center; gap: .5rem; padding: 3rem 1rem; }
.cart-empty svg { color: #B9AFCB; }

@media (max-width: 980px) {
  .pd-grid, .pd-lower, .shop-body, .cart-grid { grid-template-columns: 1fr; }
  .pd-gallery, .pd-seller, .shop-side, .cart-summary { position: static; }
  .pd-seller { grid-row: auto; }
  .pd-reviews { grid-column: auto; }
  .shop-head { grid-template-columns: auto 1fr; }
  .shop-contact { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .product-page { padding-top: 1rem; }
  .pd-arrow { display: none; }
  .shop-head { grid-template-columns: 1fr; }
  .shop-head .shop-logo { margin-top: -3.5rem; }
  .shop-logo { width: 96px; height: 96px; border-radius: 20px; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-img { width: 72px; height: 72px; }
  .cart-qty { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: 1rem; }
  .cart-total { grid-column: 2; text-align: left; }
  .toast { bottom: 1rem; }
}

.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- SweetAlert2 dialogs in Veyano style ---- */
.swal2-popup.vy-swal { border-radius: 18px; padding: 1.6rem 1.4rem 1.3rem; font-family: var(--font-body); border-top: 5px solid var(--gold); }
.vy-swal .swal2-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); line-height: 1.3; padding-top: .4rem; }
.vy-swal .swal2-html-container { color: var(--muted); font-size: .98rem; }
.vy-swal .swal2-actions { gap: .6rem; margin-top: 1.3rem; }
.vy-swal .swal2-styled { border-radius: 8px; font-weight: 600; padding: .65rem 1.3rem; margin: 0; box-shadow: none !important; transition: transform .2s, filter .2s; }
.vy-swal .swal2-styled:hover { transform: translateY(-1px); filter: brightness(1.08); }
.vy-swal .swal2-icon { transform: scale(.8); margin: .6rem auto .2rem; }
.vy-swal .swal2-input { font-size: .95rem; border-radius: 8px; }
.swal2-container.swal2-backdrop-show { background: rgba(30, 22, 49, .55); }

/* =====================================================================
   Milestone 5: checkout, orders
   ===================================================================== */
.tag { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.tag-warn { background: var(--gold-tint); color: #8A5F00; }
.tag-blue { background: #E5EEF7; color: #1D5FA8; }
.tag-purple { background: var(--brand-tint); color: var(--brand); }
.tag-green { background: #E0F2E5; color: var(--flag-green); }
.tag-red { background: var(--error-tint); color: var(--error); }
.tag-slate { background: var(--mist); color: var(--muted); }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.checkout-main { display: grid; gap: 1rem; }
.co-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.3rem 1.4rem; }
.co-step h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: 1rem; }
.co-h2 { margin-top: 1.5rem !important; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.co-num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; }
.addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.addr { display: grid; gap: .15rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--ink); transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); }
.addr:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.addr.is-selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.addr-new summary { cursor: pointer; font-weight: 600; color: var(--brand); margin-bottom: .75rem; }
.addr-form { display: grid; gap: .25rem; }
.addr-form .btn { justify-self: start; }
.co-shop { border: 1px solid var(--line); border-radius: var(--radius-m); padding: .9rem 1rem; margin-bottom: .75rem; }
.co-shop-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.co-options { display: grid; gap: .5rem; }
.co-opt { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; transition: border-color .2s, background-color .2s; }
.co-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.co-opt input { margin-top: .2rem; accent-color: var(--brand); width: 1.1rem; height: 1.1rem; }
.co-opt span { display: grid; gap: .1rem; }
.co-opt small { color: var(--muted); }
.co-none { margin: 0; color: var(--error); font-size: .92rem; }
.pay-methods { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-chip { padding: .3rem .7rem; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.co-summary .co-item { display: grid; grid-template-columns: 48px 1fr auto; gap: .7rem; align-items: center; font-size: .92rem; }
.co-item-img { position: relative; width: 48px; height: 48px; border-radius: 8px; background: var(--brand-tint); }
.co-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.co-item-img b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.co-item-name { display: grid; } .co-item-name small { color: var(--muted); }
.btn-pay { padding: 1rem; font-size: 1.05rem; position: relative; }
.btn-pay.is-loading { color: transparent; }
.btn-pay.is-loading::after { content: ""; position: absolute; width: 1.2rem; height: 1.2rem; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin-slow .7s linear infinite; }
.secure-note { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .82rem; color: var(--muted); }

/* Order pages */
.order-success { display: flex; gap: 1.25rem; align-items: center; padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; background: #E8F6EC; border: 1px solid #BFE3C9; border-radius: var(--radius-l); }
.order-success h1 { font-size: 1.4rem; margin: 0 0 .2rem; } .order-success p { margin: 0; }
.success-tick svg { width: 56px; height: 56px; fill: none; stroke: var(--flag-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-tick circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s var(--ease-out) forwards; }
.success-tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .6s var(--ease-out) forwards; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-no { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .2rem 0; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.order-parts { display: grid; gap: 1rem; }
.order-part { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.order-part > header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1.2rem; background: var(--brand-tint); }
.order-part > header div { display: grid; }
.op-shop { font-weight: 700; color: var(--brand-deep); text-decoration: none; }
.order-part > footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .8rem 1.2rem; border-top: 1px solid var(--line); background: #FCFBFD; font-size: .92rem; }
.op-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.op-item { display: grid; grid-template-columns: 60px 1fr auto; gap: .9rem; align-items: center; padding: .8rem 1.2rem; border-top: 1px solid var(--line); }
.op-img { width: 60px; height: 60px; }
.op-name { display: grid; } .op-name a { color: var(--ink); font-weight: 600; text-decoration: none; } .op-name small { color: var(--muted); }
.op-stopped { margin: 0; padding: .8rem 1.2rem; color: var(--error); background: var(--error-tint); font-size: .92rem; }
.tracker { list-style: none; margin: 0; padding: 1.2rem 1.2rem .9rem; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tracker::before, .tracker::after { content: ""; position: absolute; top: calc(1.2rem + 9px); left: 12.5%; height: 3px; border-radius: 3px; }
.tracker::before { right: 12.5%; background: var(--line); }
.tracker::after { width: calc(75% * var(--progress)); background: var(--flag-green); transition: width 1s var(--ease-out); animation: grow 1.1s var(--ease-out) both .3s; }
@keyframes grow { from { width: 0; } }
.tracker li { position: relative; z-index: 1; display: grid; justify-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); text-align: center; }
.tracker .dot { width: 21px; height: 21px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); transition: background-color .3s, border-color .3s; }
.tracker li.done { color: var(--ink); font-weight: 600; }
.tracker li.done .dot { background: var(--flag-green); border-color: var(--flag-green); box-shadow: inset 0 0 0 3px var(--paper); }
.tracker li.next .dot { border-color: var(--gold); animation: pulse-ring 1.8s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(248,174,13,.5); } 70% { box-shadow: 0 0 0 8px rgba(248,174,13,0); } 100% { box-shadow: 0 0 0 0 rgba(248,174,13,0); } }
.pickup-box { display: grid; justify-items: center; gap: .15rem; margin: .2rem 1.2rem 1rem; padding: .9rem; background: var(--gold-tint); border: 2px dashed #E7C35E; border-radius: var(--radius-m); text-align: center; }
.pickup-box strong { font: 700 2rem var(--font-head); letter-spacing: .35em; color: var(--brand-deep); padding-left: .35em; }
.pickup-box small { color: var(--muted); }
.order-side-col { display: grid; gap: 1rem; position: sticky; top: 7.5rem; }
.order-list { display: grid; gap: .6rem; }
.order-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease-out); }
.order-row:hover { border-color: var(--brand); transform: translateX(3px); color: var(--ink); }
.order-img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--brand-tint) url("../img/logo-icon.png") center / 50% no-repeat; }
.order-img img { width: 100%; height: 100%; object-fit: cover; }
.order-main, .order-side { display: grid; gap: .2rem; } .order-side { justify-items: end; }
.mini-orders { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.mini-orders li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mini-orders strong { margin-left: auto; }

@media (max-width: 980px) {
  .checkout-grid, .order-grid { grid-template-columns: 1fr; }
  .order-side-col { position: static; }
}
@media (max-width: 560px) {
  .tracker li { font-size: .72rem; }
  .order-row { grid-template-columns: 48px 1fr; }
  .order-side { grid-column: 2; justify-items: start; }
}

/* ---- Milestone 6: review page ------------------------------------------------ */
.review-form { display: grid; gap: 1rem; margin-top: 1rem; }
.rv-card { margin: 0; padding: 1.2rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); display: grid; gap: .8rem; }
.rv-card h2 { font-size: 1.15rem; margin: 0; }
.rv-product { display: flex; align-items: center; gap: .9rem; }
.rv-product .cart-img { width: 64px; height: 64px; }
.rv-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.rv-row > span { font-weight: 600; }
.rv-done { margin: 0; display: flex; align-items: center; gap: .6rem; color: var(--flag-green); font-weight: 600; }
.star-picker-lg label { width: 2.6rem; height: 2.6rem; }
.star-picker-sm label { width: 1.7rem; height: 1.7rem; }
.rv-submit { justify-self: start; min-width: 220px; padding: .9rem 1.4rem; }
@media (max-width: 560px) { .rv-submit { justify-self: stretch; } }

/* ---- Complaint conversation (used in site and dashboards) ---- */
.cthread { display: grid; gap: .75rem; }
.cthread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; padding-bottom: .75rem; border-bottom: 1px solid #E2DDEA; }
.cthread-head > div { display: grid; gap: .25rem; }
.cmuted { color: #5F5873; font-size: .85rem; font-weight: 400; }
.ctag { justify-self: start; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.ctag-warn { background: #FEF3D9; color: #8A5F00; } .ctag-blue { background: #E5EEF7; color: #1D5FA8; }
.ctag-green { background: #E0F2E5; color: #078A2A; } .ctag-slate { background: #EDEFF3; color: #475467; }
.chold { padding: .3rem .7rem; border-radius: 8px; background: #E0F2E5; color: #0A5A25; font-size: .82rem; font-weight: 700; }
.cmsg { max-width: 85%; padding: .7rem .9rem; border-radius: 12px; background: #F6F4F9; }
.cmsg p { margin: .25rem 0 0; line-height: 1.55; }
.cmsg-who { font-weight: 700; font-size: .88rem; }
.cmsg-customer { justify-self: start; background: #F1EAFB; border-bottom-left-radius: 4px; }
.cmsg-seller { justify-self: end; background: #E5EEF7; border-bottom-right-radius: 4px; }
.cmsg-admin { justify-self: center; max-width: 95%; background: #FEF3D9; border: 1px solid #F5DD9A; }
.cdecision { padding: .9rem 1rem; border-radius: 10px; background: #E0F2E5; border-left: 4px solid #078A2A; }
.cdecision p { margin: .3rem 0 0; }
.creply { display: grid; gap: .45rem; padding-top: .5rem; }
.creply label { font-weight: 600; font-size: .88rem; }
.creply textarea { width: 100%; padding: .6rem .75rem; font: inherit; border: 1px solid #D5CFE0; border-radius: 8px; }
.creply button { justify-self: start; }

/* ---- Milestone 7: codes, security, complaints ---- */
.auth-forgot { text-align: center; margin: .9rem 0 0; font-size: .92rem; }
.otp-input { font: 700 1.8rem var(--font-head) !important; letter-spacing: .45em; text-align: center; padding-left: .45em !important; }
.code-form { display: grid; gap: .6rem; }
.code-form label { font-weight: 600; font-size: .92rem; }
.code-resend, .code-actions { display: flex; justify-content: center; gap: 1.25rem; margin-top: .75rem; }
.reason-list { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.reason-list legend { font-weight: 700; margin-bottom: .5rem; }
.btn-report { border-color: var(--error) !important; color: var(--error) !important; }
.btn-report:hover { background: var(--error-tint) !important; }
.pw-form { max-width: 420px; }

/* ---- Legal pages ---- */
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; max-width: 1080px; }
.legal-nav { position: sticky; top: 7.5rem; display: grid; gap: .25rem; }
.legal-nav a { padding: .55rem .8rem; border-radius: var(--radius-s); text-decoration: none; color: var(--muted); font-weight: 500; }
.legal-nav a:hover { background: var(--paper); color: var(--brand); }
.legal-nav a.active { background: var(--brand); color: #fff; }
.legal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 2rem 2.25rem; line-height: 1.7; max-width: 76ch; }
.legal h1 { margin-bottom: .2rem; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; color: var(--brand-deep); }
.legal ul, .legal ol { padding-left: 1.3rem; } .legal li { margin: .35rem 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .5rem; }
.footer-legal a { font-size: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.agree-note { margin: .75rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 800px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
  .legal { padding: 1.4rem 1.2rem; }
}
