/* =============================================================
   store.css — storefront pages: hero, product cards, grids,
   product detail, cart, checkout, account, auth.
   ============================================================= */

/* ------------------------------ hero ------------------------------ */
.hero { position: relative; padding: clamp(52px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -240px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--brand-glow), transparent 68%);
  filter: blur(20px); opacity: .55; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 1.1rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.hero-trust svg { width: 17px; height: 17px; color: var(--brand); }

/* the four-tile hero collage, mirroring the reference layout */
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1.02; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hero-tile:nth-child(odd) { transform: translateY(-14px); }
.hero-tile:hover { transform: translateY(-22px); box-shadow: var(--shadow-lg); }
.hero-tile:nth-child(even):hover { transform: translateY(-8px); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 16px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
}
.hero-tile figcaption strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero-tile figcaption span { font-size: .78rem; opacity: .82; }
.hero-stat {
  position: absolute; bottom: -14px; left: -18px; z-index: 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 18px; box-shadow: var(--shadow-md);
}
.hero-stat b { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); display: block; line-height: 1; }
.hero-stat span { font-size: .74rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.hero-visual { position: relative; }

/* ------------------------------ marquee band ------------------------------ */
.band { padding: 18px 0; border-block: 1px solid var(--line); background: var(--surface); }
.band-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-soft);
  font-size: .88rem; font-weight: 500; color: var(--text-dim); white-space: nowrap;
}
.band-item span:first-child { font-size: 1rem; }

/* ------------------------------ promise strip ------------------------------ */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise {
  padding: 26px 22px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface);
}
.promise-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--brand);
}
.promise-icon svg { width: 21px; height: 21px; }
.promise h3 { font-size: 1.02rem; margin-bottom: 5px; }
.promise p { font-size: .89rem; margin: 0; }

/* ------------------------------ category grid ------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; gap: 4px; justify-content: flex-end;
  min-height: 148px; padding: 22px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px;
  border-radius: 50%; background: var(--brand-soft); transition: transform .45s var(--ease);
}
.cat-card:hover::after { transform: scale(1.6); }
.cat-card .cat-emoji { font-size: 1.7rem; position: relative; z-index: 1; margin-bottom: auto; }
.cat-card strong { font-family: var(--font-display); font-size: 1.05rem; position: relative; z-index: 1; }
.cat-card span { font-size: .82rem; color: var(--muted); position: relative; z-index: 1; }

/* ------------------------------ product card ------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.pcard {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
}
.pcard:hover { border-color: var(--line-strong); }
.pcard-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-flags { position: absolute; top: 12px; left: 12px; display: grid; gap: 6px; z-index: 2; }
.flag {
  padding: 4px 10px; border-radius: var(--r-pill); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; background: var(--brand); color: #fff;
}
.flag--dark { background: var(--text); color: var(--bg); }
.flag--out { background: var(--muted); }

.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  color: var(--muted); opacity: 0; transform: translateY(-6px);
  transition: all .28s var(--ease);
}
.pcard:hover .wish-btn, .wish-btn.on { opacity: 1; transform: none; }
.wish-btn:hover, .wish-btn.on { color: var(--brand); border-color: var(--brand); }
.wish-btn.on svg { fill: var(--brand); }
.wish-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

.pcard-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; gap: 6px;
  opacity: 0; transform: translateY(12px); transition: all .32s var(--ease);
}
.pcard:hover .pcard-add { opacity: 1; transform: none; }
.pcard-add .btn { flex: 1; padding-inline: 10px; }
.pcard-add .btn svg { width: 13px; height: 13px; }

.pcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard-vendor { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard-title { font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.pcard-title:hover { color: var(--brand); }
.pcard-rating { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.stars { color: #F5A623; letter-spacing: -1px; }
.pcard-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 9px; }
.pcard-price b { font-family: var(--font-display); font-size: 1.18rem; }
.pcard-price s { color: var(--muted); font-size: .88rem; }

/* ------------------------------ shop page ------------------------------ */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.filters {
  position: sticky; top: calc(var(--header-h) + 18px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 22px;
}
.filter-group + .filter-group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-group h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); margin-bottom: 12px; }
.filter-list { display: grid; gap: 2px; }
.filter-list button {
  text-align: left; padding: 8px 11px; border-radius: var(--r-sm); border: none; background: none;
  cursor: pointer; font-size: .9rem; color: var(--text-dim); display: flex; justify-content: space-between;
  transition: background .2s, color .2s;
}
.filter-list button:hover { background: var(--bg-soft); color: var(--text); }
.filter-list button.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.filter-list button i { font-style: normal; font-size: .78rem; opacity: .7; }

.shop-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.shop-toolbar .count { color: var(--muted); font-size: .9rem; margin-right: auto; }
.field {
  padding: 10px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); font-size: .88rem; cursor: pointer;
}
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination button {
  min-width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: .9rem; transition: all .2s;
}
.pagination button:hover { border-color: var(--brand); color: var(--brand); }
.pagination button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------ product detail ------------------------------ */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; }
.gallery-main {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); aspect-ratio: 1/1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  width: 74px; height: 74px; border-radius: var(--r-md); overflow: hidden; padding: 0;
  border: 2px solid transparent; background: var(--bg-soft); cursor: pointer;
}
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px; }
.pdp-price b { font-family: var(--font-display); font-size: 2.1rem; }
.pdp-price s { color: var(--muted); font-size: 1.05rem; }
.pdp-meta { display: grid; gap: 10px; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.pdp-meta div { display: flex; gap: 12px; font-size: .9rem; }
.pdp-meta dt { color: var(--muted); min-width: 92px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden;
}
.qty button { width: 40px; height: 44px; border: none; background: none; cursor: pointer; font-size: 1.1rem; color: var(--text-dim); }
.qty button:hover { color: var(--brand); background: var(--bg-soft); }
.qty input { width: 46px; height: 44px; border: none; text-align: center; background: none; font-weight: 600; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.pdp-actions .btn--solid { background: var(--text); color: var(--bg); }
.pdp-actions .btn svg { width: 15px; height: 15px; }

/* zoom-on-hover for the main gallery image, desktop only (see initGalleryZoom) */
.gallery-main { cursor: zoom-in; }
.gallery-main img { transition: transform .25s var(--ease); }

/* sticky mobile buy bar — always visible at the foot of the product page on
   small screens so add-to-cart / buy-now never scroll out of reach */
.mobile-buy-bar { display: none; }
@media (max-width: 720px) {
  .mobile-buy-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 88;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 26px rgba(0,0,0,.08);
  }
  .mobile-buy-bar .mbb-price { flex-shrink: 0; }
  .mobile-buy-bar .mbb-price b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
  .mobile-buy-bar .mbb-price s { font-size: .74rem; color: var(--muted); }
  .mobile-buy-bar .btn { flex: 1; padding-inline: 10px; }
}

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 56px 0 26px; }
.tabs button {
  padding: 13px 20px; border: none; background: none; cursor: pointer; font-weight: 600;
  font-size: .95rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; max-width: 760px; white-space: pre-line; }
.tab-panel.active { display: block; animation: rise .4s var(--ease); }

.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.verified-chip { font-size: .68rem; padding: 3px 9px; }
.review-locked {
  margin-top: 24px; padding: 20px; max-width: 520px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px;
}
.review-locked p { margin: 0; }
.review-already { margin-top: 22px; display: inline-flex; }

/* ------------------------------ recently viewed ------------------------------ */
.recent-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.recent-strip::-webkit-scrollbar { height: 6px; }
.recent-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.recent-strip .pcard { min-width: 220px; max-width: 220px; scroll-snap-align: start; }

/* ------------------------------ cart / checkout ------------------------------ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.cart-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.cart-row img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-md); background: var(--bg-soft); }
.cart-row h4 { margin: 0 0 3px; font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.link-danger { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .84rem; padding: 0; }
.link-danger:hover { color: var(--brand); }

.summary {
  position: sticky; top: calc(var(--header-h) + 18px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 26px;
}
.summary-line { display: flex; justify-content: space-between; padding: 9px 0; font-size: .93rem; color: var(--text-dim); }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text);
}
.progress { height: 6px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin: 6px 0 16px; }
.progress i { display: block; height: 100%; background: var(--brand); transition: width .5s var(--ease); }

.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.lbl { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.input {
  width: 100%; padding: 12px 15px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); font-size: .94rem; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { min-height: 96px; resize: vertical; }

.pay-option {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md); transition: all .22s var(--ease);
}
.pay-option + .pay-option { margin-top: 12px; }
.pay-option:hover { border-color: var(--line-strong); }
.pay-option.selected { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input { margin-top: 4px; accent-color: var(--brand); }
.pay-option strong { display: block; font-size: .96rem; }
.pay-option span { font-size: .85rem; color: var(--muted); }
.card-fields { margin-top: 14px; display: none; }
.card-fields.show { display: grid; gap: 14px; animation: rise .35s var(--ease); }

/* ------------------------------ auth ------------------------------ */
.auth-wrap { display: grid; place-items: center; padding: 60px 0 90px; }
.auth-card {
  width: min(440px, 100%); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 36px; box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 1.9rem; }
.auth-alt { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--brand); font-weight: 600; }
.demo-note {
  margin-top: 18px; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--bg-soft); font-size: .82rem; color: var(--text-dim); line-height: 1.65;
}
.alert {
  padding: 12px 15px; border-radius: var(--r-md); background: var(--brand-soft);
  color: var(--brand); font-size: .88rem; font-weight: 500; margin-bottom: 16px;
}

/* Registration asks for more than it used to, so its card is wider and its
   name fields sit side by side. responsive.css drops .form-row to one
   column on a phone, so nothing extra is needed there. */
.auth-card--wide { width: min(540px, 100%); }
.field-hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.choice-row { display: grid; gap: 10px; }

/* The six-digit code box. Wide letter spacing and tabular figures so the
   digits line up as they are typed and a mistyped one is easy to spot. */
.code-input {
  font-size: 1.7rem; letter-spacing: .5em; text-align: center;
  font-variant-numeric: tabular-nums; padding-left: .5em; font-weight: 600;
}
.code-input::placeholder { letter-spacing: .5em; opacity: .35; font-weight: 400; }
.resend-row {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 18px;
}

/* A confirmed email address or phone number, and its opposite. Used on the
   account page and in the platform admin's user list. */
.verify-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px;
  padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--bg-soft); color: var(--muted);
}
.verify-chip--ok { background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; }
.verify-chip--no { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------ misc blocks ------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem); color: var(--brand); line-height: 1; }
.stat span { font-size: .88rem; color: var(--muted); }

.cta-band {
  border-radius: var(--r-lg); background: var(--text); color: var(--bg);
  padding: clamp(40px, 6vw, 70px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: -50% 40% auto auto; width: 480px; height: 480px;
  background: radial-gradient(circle, var(--brand), transparent 62%); opacity: .5;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: var(--bg); opacity: .72; max-width: 52ch; margin-inline: auto; }

.quote-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.quote-card p { font-size: .98rem; color: var(--text); }
.quote-foot { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.quote-foot strong { font-size: .9rem; display: block; }
.quote-foot span { font-size: .8rem; color: var(--muted); }

.empty { text-align: center; padding: 70px 20px; }
.empty-icon { font-size: 2.6rem; margin-bottom: 12px; }
.empty h3 { margin-bottom: 6px; }

.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); padding: 22px 0; }
.crumbs a:hover { color: var(--brand); }

.page-head { padding: 34px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 6px; }
.page-head p { margin: 0; }

.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 22px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.order-line { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: .9rem; }
.order-line img { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-soft); }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .product-grid, .cat-grid, .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 560px) {
  .product-grid, .cat-grid, .promise-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row img { width: 72px; height: 72px; }
  .pcard-add { opacity: 1; transform: none; position: static; margin-top: 12px; }
}

/* =============================================================
   Campaign hero — the rotating banner at the top of the homepage
   ============================================================= */
.campaign {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); margin-top: 26px;
  min-height: clamp(400px, 52vw, 520px);
}
.campaign-slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr .95fr;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease);
}
.campaign-slide.on { opacity: 1; visibility: visible; }
.campaign-copy {
  padding: clamp(30px, 5vw, 62px); display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 4px; position: relative; z-index: 2;
}
.campaign-slide.on .campaign-copy > * { animation: rise .7s var(--ease) both; }
.campaign-slide.on .campaign-copy > *:nth-child(1) { animation-delay: .10s; }
.campaign-slide.on .campaign-copy > *:nth-child(2) { animation-delay: .20s; }
.campaign-slide.on .campaign-copy > *:nth-child(3) { animation-delay: .30s; }
.campaign-slide.on .campaign-copy > *:nth-child(4) { animation-delay: .40s; }
.campaign-copy h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 12px; }
.campaign-copy p { font-size: 1.05rem; max-width: 44ch; }
.campaign-media { position: relative; overflow: hidden; }
.campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.campaign-slide.on .campaign-media img { animation: slow-zoom 9s var(--ease) both; }
@keyframes slow-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.campaign-dots {
  position: absolute; left: clamp(30px, 5vw, 62px); bottom: 30px; z-index: 3;
  display: flex; gap: 8px;
}
.campaign-dots button {
  width: 26px; height: 5px; border-radius: 3px; border: none; padding: 0; cursor: pointer;
  background: var(--line-strong); transition: background .3s, width .3s var(--ease);
}
.campaign-dots button.on { background: var(--brand); width: 40px; }
.campaign-arrows { position: absolute; right: 22px; bottom: 24px; z-index: 3; display: flex; gap: 8px; }
.campaign-arrows button {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-dim);
  font-size: 1.1rem; transition: all .2s var(--ease);
}
.campaign-arrows button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

@media (max-width: 860px) {
  .campaign { min-height: 0; }
  .campaign-slide { position: relative; grid-template-columns: 1fr; display: none; }
  .campaign-slide.on { display: grid; }
  .campaign-media { order: -1; aspect-ratio: 16/9; }
  .campaign-dots { position: static; padding: 0 24px 24px; }
  .campaign-arrows { display: none; }
}

/* =============================================================
   Seller shop page
   ============================================================= */
.vendor-hero {
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(26px, 4vw, 44px); margin: 26px 0 34px; position: relative; overflow: hidden;
}
.vendor-hero::after {
  content: ''; position: absolute; top: -140px; right: -100px; width: 340px; height: 340px;
  border-radius: 50%; background: var(--brand-soft);
}
.vendor-hero > * { position: relative; z-index: 1; }
.vendor-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vendor-logo {
  width: 68px; height: 68px; border-radius: 18px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; box-shadow: 0 8px 22px var(--brand-glow);
}
.vendor-facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.vendor-facts div b {
  display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--brand); line-height: 1.1;
}
.vendor-facts div span { font-size: .8rem; color: var(--muted); }
.vendor-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* clickable seller name on a product card */
a.pcard-vendor:hover { color: var(--brand); }

/* =============================================================
   Nested category filters
   ============================================================= */
.filter-list .sub {
  padding-left: 26px; font-size: .86rem; position: relative;
}
.filter-list .sub::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 6px; height: 1px; background: var(--line-strong);
}
.filter-parent { display: flex; align-items: center; }
.filter-parent .twist {
  width: 22px; height: 22px; margin-left: 2px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: .7rem; transition: transform .25s var(--ease);
}
.filter-parent .twist.open { transform: rotate(90deg); }
.filter-kids { display: none; }
.filter-kids.open { display: grid; animation: rise .3s var(--ease); }

/* status pills shared with the dashboards */
.chip--pending { background: rgba(180,105,14,.14); color: var(--warn); }
.chip--rejected { background: var(--brand-soft); color: var(--brand); }

/* =============================================================
   Seller shop page — the parts the seller controls themselves.
   --shop-accent falls back to the platform brand colour when the
   seller hasn't picked one, so an unstyled shop still looks right.
   ============================================================= */
:root { --shop-accent: var(--brand); }

.shop-announce {
  background: var(--shop-accent); color: #fff; border-radius: var(--r-md);
  padding: 11px 18px; margin-top: 24px; text-align: center;
  font-size: .88rem; font-weight: 500;
}
.vendor-hero.has-cover { padding-top: 0; }
.vendor-cover {
  height: clamp(130px, 22vw, 230px); margin: 0 calc(clamp(26px, 4vw, 44px) * -1) clamp(20px, 3vw, 30px);
  background: var(--bg-soft) center/cover no-repeat;
}
.vendor-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.vendor-logo { background: var(--shop-accent); overflow: hidden; }
.vendor-facts div b { color: var(--shop-accent); }
.shop-location { margin: 6px 0 0; font-size: .84rem; color: var(--muted); }
.shop-about { max-width: 62ch; margin-top: 20px; }

.shop-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.shop-contact a {
  font-size: .8rem; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-dim); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.shop-contact a:hover { border-color: var(--shop-accent); color: var(--shop-accent); }

.product-grid--compact { grid-template-columns: repeat(5, 1fr); gap: 14px; }

.shop-policies {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); margin-top: 50px; padding-top: 34px;
}
.shop-policies h3 { margin: 0 0 8px; font-size: 1.05rem; }
.shop-policies p { margin: 0; color: var(--text-dim); white-space: pre-line; }

/* =============================================================
   Product options (colour, size and the rest)
   ============================================================= */
.options { margin: 24px 0 6px; display: grid; gap: 18px; }
.option-group { display: grid; gap: 9px; }
.option-label { font-size: .82rem; font-weight: 600; color: var(--text-dim); }
.option-label b { font-weight: 500; color: var(--muted); }
.option-values { display: flex; gap: 8px; flex-wrap: wrap; }
.option-chip {
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 9px 17px; font: inherit; font-size: .87rem; cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.option-chip:hover:not(:disabled) { border-color: var(--brand); }
.option-chip.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.option-chip.out {
  color: var(--muted); border-style: dashed; text-decoration: line-through;
  cursor: not-allowed; opacity: .65;
}
.option-note { font-size: .83rem; color: var(--muted); margin: 2px 0 0; }
.option-note--warn { color: var(--warn); }

.specs { margin-top: 30px; }
.specs h3 { font-size: 1.05rem; margin: 0 0 12px; }
.specs dl { display: grid; gap: 0; margin: 0; }
.specs dl > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); font-size: .86rem; }
.specs dd { margin: 0; font-size: .9rem; }

.pcard-opts { font-size: .74rem; color: var(--muted); font-weight: 500; }
.pcard-choose { width: 100%; text-align: center; text-decoration: none; }
.cart-variant {
  font-size: .8rem; color: var(--muted); margin-top: 3px;
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--bg-soft);
}
.review-nudge {
  margin-top: 12px; font-size: .84rem; color: var(--ok);
  background: rgba(23,136,106,.09); border-radius: var(--r-sm); padding: 9px 13px;
}

@media (max-width: 1080px) { .product-grid--compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .product-grid--compact { grid-template-columns: repeat(2, 1fr); }
  .shop-contact { margin-left: 0; }
  .specs dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* =============================================================
   Profile pictures
   One .avatar class everywhere — header, drawer, reviews, the
   dashboards and the account editor. It holds either an uploaded
   photo or the person's initials, so it never renders empty.
   ============================================================= */
.avatar { flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The header account button becomes the picture itself. */
.icon-btn--avatar { padding: 0; overflow: hidden; }
.icon-btn--avatar .avatar { width: 30px; height: 30px; }

.drawer-me {
  display: flex !important; align-items: center; gap: 12px;
  padding: 12px !important; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.drawer-me strong { display: block; font-size: .95rem; }
.drawer-me small { color: var(--muted); font-size: .78rem; }

/* The editor on the account page and in the dashboards. */
.avatar-editor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-editor .avatar {
  width: 88px; height: 88px; font-size: 1.9rem;
  border: 1px solid var(--line);
}
.avatar-editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.avatar-hint { flex-basis: 100%; font-size: .8rem; color: var(--muted); margin: 0; }

/* =============================================================
   Payment methods
   ============================================================= */
/* The row of accepted methods on a product page. */
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.pay-methods .chip { font-size: .74rem; }
.pay-methods .chip--advance { background: rgba(180,105,14,.14); color: var(--warn); }

/* A method the cart can't use, shown greyed with the reason rather than
   quietly removed — a customer who expected cash should learn why. */
.pay-option--blocked { opacity: .55; cursor: not-allowed; }
.pay-option--blocked:hover { border-color: var(--line); }
.pay-option-why {
  display: block; margin-top: 6px; font-size: .78rem; color: var(--warn);
}

/* The "৳X now, ৳Y on delivery" breakdown under the 50% advance option. */
.pay-split {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.pay-split div span { display: block; font-size: .74rem; color: var(--muted); }
.pay-split div b { font-family: var(--font-display); font-size: 1.05rem; }
.pay-split .pay-split-due b { color: var(--warn); }

/* Outstanding balance on an order card. */
.order-due {
  margin-top: 12px; font-size: .84rem; color: var(--warn);
  background: rgba(180,105,14,.10); border-radius: var(--r-sm); padding: 9px 13px;
}

/* =============================================================
   Seller shop statistics
   The headline row at the top of a shop: categories, listed
   products and the positive rating ratio.
   ============================================================= */
.shop-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px;
}
.shop-stat {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-soft); padding: 16px 18px;
}
.shop-stat b {
  display: block; font-family: var(--font-display); line-height: 1.05;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--shop-accent, var(--brand));
}
.shop-stat span {
  display: block; font-size: .78rem; color: var(--muted); margin-top: 4px;
}
.shop-stat small { display: block; font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* The positive-rating bar under the percentage. */
.shop-stat-bar {
  height: 5px; border-radius: 3px; background: var(--line);
  overflow: hidden; margin-top: 9px;
}
.shop-stat-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: var(--ok); transition: width .8s var(--ease);
}

/* Secondary facts (items delivered, reviews) sit under the headline three. */
.vendor-facts { margin-top: 18px; }

@media (max-width: 560px) {
  .shop-stats { grid-template-columns: 1fr; gap: 10px; }
  .shop-stat { display: flex; align-items: baseline; gap: 12px; padding: 13px 15px; }
  .shop-stat b { font-size: 1.5rem; }
  .shop-stat span { margin-top: 0; }
  .shop-stat-bar { display: none; }
  .shop-stat small { display: none; }
}
