/* Shop page (body.shop). Reference: Icebug on recent.design — photo banner, bold type, clean product grid —
   plus marketing / trust sections made for Lao shoppers. Loaded after style.css on index.html only. */
body.shop {
  --ink: #1d211c;
  --muted: #595e56;
  --bg: #f5f3ef;
  --card: #ffffff;
  --line: #e0dcd3;
  --brand: #1d211c;
  --brand-deep: #1d211c;
  --brand-soft: #ebe8e2;
  --on-brand: #f5f3ef;
  --accent: #3f5a3c; /* moss green: badges, ticks, focus */
  --accent-soft: #dfe6da;
  --sun: #ffcf5c; /* "under 100K" shelf */
  --hero-bg: #232a22;
  --foot-bg: #1d211c;
  --foot-fg: #e9e6df;
  --ph-clothes: #e6dfd3;
  --ph-home: #dde3da;
  --ph-icon: #6f6a5f;
  --wa: #127a3a; /* darker WhatsApp green: white text passes 4.5:1 */
  --wa-hover: #0e6430;
  --msgr: #0866ff;
  --shadow: 0 18px 40px rgba(29, 33, 28, 0.14);
  --font: 'Inter', 'Noto Sans Lao', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Noto Sans Lao', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
/* Dark mode: only when the visitor turns it on (theme.js). */
:root[data-theme="dark"] body.shop {
  --ink: #eeebe4;
  --muted: #a5aaa0;
  --bg: #141713;
  --card: #1c201b;
  --line: #30362f;
  --brand: #eeebe4;
  --brand-deep: #eeebe4;
  --brand-soft: #242923;
  --on-brand: #141713;
  --accent: #9cc28f;
  --accent-soft: #263022;
  --hero-bg: #1b211a;
  --foot-bg: #0e100d;
  --foot-fg: #d9d6cf;
  --ph-clothes: #2a2721;
  --ph-home: #232a24;
  --ph-icon: #a29b8d;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Overrides of shared style.css rules (the tokens above do the rest). */
.shop :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop a:hover { color: var(--accent); }
.shop .btn.primary:hover:not(:disabled) { opacity: .88; }
.shop .modal { border-radius: 14px; }
.shop .drawer { border-radius: 14px 0 0 14px; }
.shop .wrap { max-width: 1320px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.shop .price.big strong { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.shop .price.big small { color: var(--muted); font-size: .9rem; font-weight: 500; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes wapulse { 0% { box-shadow: 0 0 0 0 rgba(18, 122, 58, .5); } 100% { box-shadow: 0 0 0 20px rgba(18, 122, 58, 0); } }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise.d1 { animation-delay: .12s; }
.rise.d2 { animation-delay: .24s; }
.pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
/* Sections slide up as they scroll into view (browsers without scroll timelines just show them). */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
}
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s ease-in-out infinite; pointer-events: none; }

/* ---------- announcement bar ---------- */
.announce {
  min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 16px;
  background: #3f5a3c; color: #ffffff; font-size: 13px; font-weight: 600; text-align: center; overflow: hidden;
}
.announce-item { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- top menu (sits on the banner) ---------- */
.topnav {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  min-height: 72px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  color: #ffffff;
}
.topnav-links { display: flex; gap: 4px; }
.topnav-link {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  color: inherit; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
}
.topnav-link:hover, .topnav-link[aria-pressed="true"] { background: rgba(255, 255, 255, .16); }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.shop .brand:hover { color: inherit; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffffff; color: #1d211c; font-size: 12px; font-weight: 800; }
.topnav-tools { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.topnav-pill {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6);
  background: transparent; color: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.topnav-pill:hover { background: rgba(255, 255, 255, .16); }
.topnav-pill.theme-btn { width: 44px; padding: 0; }
.cart-btn { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #ffffff; color: #1d211c; cursor: pointer; }
.badge {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: #3f5a3c; color: #ffffff; border: 2px solid #ffffff;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}

/* ---------- banner ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(520px, 82vh, 760px); display: flex; align-items: flex-end;
  background: var(--hero-bg); color: #ffffff;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-img.on { opacity: 1; animation: kb 7s ease-out both; }
.hero.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%);
}
/* Shown only while there is no banner photo. */
.hero-art { position: absolute; z-index: -1; right: max(20px, 6vw); bottom: 64px; display: flex; align-items: flex-end; gap: 16px; }
.hero.has-img .hero-art { display: none; }
.hero-art-tile { width: clamp(150px, 17vw, 260px); aspect-ratio: 4 / 5; border-radius: 10px; display: grid; place-items: center; background: #e6dfd3; color: #6f6a5f; }
.hero-art-tile.home { background: #dde3da; transform: translateY(-48px); }
.hero-art-tile svg { width: 38%; height: 38%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-float {
  position: absolute; z-index: 2; right: max(20px, 6vw); top: 130px;
  display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px;
  background: #ffffff; color: #1d211c; box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  animation: bob 4s ease-in-out infinite;
}
.hero-float span { font-size: 12px; font-weight: 600; color: #595e56; }
.hero-float strong { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.hero.has-img .hero-float { top: 120px; }

.hero-inner {
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: 130px max(20px, env(safe-area-inset-right, 0px)) 52px max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 16px;
}
.hero-copy { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.hero-eyebrow {
  margin: 0; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hero-title {
  margin: 0; max-width: 12ch; font-family: var(--display); font-weight: 800;
  font-size: clamp(42px, 7.2vw, 96px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.hero-text { margin: 0; max-width: 46ch; font-size: 17px; opacity: .92; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-price { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.hero-link { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .8); background: transparent; color: #ffffff; font-weight: 600; cursor: pointer; }
.hero-link:hover { background: rgba(255, 255, 255, .14); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 6px; }
.hero-btn {
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .85);
  background: transparent; color: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.hero-btn:hover { background: rgba(255, 255, 255, .14); }
.hero-btn.solid { background: #ffffff; color: #1d211c; border-color: #ffffff; }
.hero-btn.solid:hover { background: #e9e6df; }
.social { margin: 0 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.social strong { font-family: var(--display); font-size: 20px; font-weight: 800; }
.hero-dots { display: flex; gap: 8px; max-width: 360px; padding-top: 12px; }
.hero-dot { flex: 1; height: 24px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; cursor: pointer; }
.hero-dot span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero-dot span.bar::after { content: ""; position: absolute; inset: 0; background: #ffffff; transform-origin: left center; animation: bar 5s linear both; }

/* ---------- moving strip ---------- */
.ticker { overflow: hidden; background: #1d211c; color: #e9e6df; }
.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 28px; padding: 14px 28px 14px 0; font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ticker-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9cc28f; }

/* ---------- trust cards ---------- */
.shop-main { padding-top: 28px; padding-bottom: 24px; }
.trust { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.trust li { background: var(--card); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center; transition: transform .3s, box-shadow .3s; }
.trust li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust strong { display: block; font-weight: 700; }
.trust small { display: block; color: var(--muted); font-size: 13px; }
.trust-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.trust-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- under 100K shelf ---------- */
.cheap { margin-bottom: 72px; padding: 28px; border-radius: 18px; background: var(--sun); color: #1d211c; }
.cheap-tag { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5a3d00; }
.cheap h2 { margin: 2px 0 20px; font-family: var(--display); font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.cheap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cheap-item { background: #ffffff; border-radius: 14px; padding: 8px 14px 8px 8px; display: flex; align-items: center; gap: 12px; transition: transform .3s, box-shadow .3s; }
.cheap-item:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0, 0, 0, .12); }
.cheap-pic { flex: none; width: 88px; height: 108px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #ebe8e2; cursor: pointer; }
.cheap-pic img, .cheap-pic .card-ph { width: 100%; height: 100%; object-fit: cover; }
.cheap-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cheap-info strong { font-weight: 700; line-height: 1.3; }
.cheap-k { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cheap-info small { color: #595e56; font-size: 12px; }
.cheap-item .add-btn { position: static; background: #1d211c; color: #ffffff; box-shadow: none; }
.cheap .card-ph { color: #6f6a5f; }
.cheap .card-ph.ph-clothes { background: #e6dfd3; }
.cheap .card-ph.ph-home { background: #dde3da; }

/* ---------- products ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.03em; }
.shop .search {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; width: min(340px, 100%);
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.shop .search:focus-within { border-color: var(--ink); }
.shop .search input { flex: 1; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 14px; outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-brand); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; min-width: 0; background: var(--card); border-radius: 16px; padding: 8px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--brand-soft); }
.card-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.card-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-open img { transform: scale(1.06); }
.card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ph-icon); }
.card-ph.ph-clothes { background: var(--ph-clothes); }
.card-ph.ph-home { background: var(--ph-home); }
.card-ph .i-ph { width: 30%; height: 30%; stroke-width: 1.2; }
.card.is-out .card-media { opacity: .6; }
.card-tag { position: absolute; top: 10px; left: 10px; min-height: 26px; padding: 0 11px; border-radius: 999px; display: grid; place-items: center; background: #1d211c; color: #ffffff; font-size: 12px; font-weight: 700; pointer-events: none; }
.card-body { padding: 12px 8px 6px; display: flex; flex-direction: column; gap: 3px; }
.card-cat { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 4px; }
.card-price { margin: 0; display: flex; flex-direction: column; line-height: 1.15; }
.card-price strong { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.card-price small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.add-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--ink); color: var(--on-brand); cursor: pointer; transition: transform .15s ease, background .2s;
}
.add-btn:hover:not(:disabled) { transform: scale(1.08); }
.add-btn:disabled { opacity: .4; cursor: not-allowed; }
.add-btn .ico { stroke-width: 2.6; }
.add-btn .i-check, .in-cart .add-btn .i-plus { display: none; }
.in-cart .add-btn .i-check { display: block; }
.in-cart .add-btn { background: var(--accent); color: #ffffff; }
.card.skeleton { aspect-ratio: 4 / 6; background: linear-gradient(90deg, var(--brand-soft), var(--card), var(--brand-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* ---------- stamp card ---------- */
.stamps {
  margin-top: 72px; padding: 36px; border-radius: 20px; background: #1d211c; color: #f5f3ef; border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.stamps-copy { display: flex; flex-direction: column; gap: 12px; }
.stamps-copy p { margin: 0; opacity: .85; max-width: 44ch; }
.stamps-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--sun); color: #1d211c; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: 1 !important; }
.stamps h2 { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.stamps-card { background: #f5f3ef; color: #1d211c; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.stamp-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stamp {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed #c9c3b8; color: #6a6e66; font-weight: 800; font-size: 14px;
}
.stamp.gift { border-color: #b2292a; color: #b2292a; font-size: 13px; }
.stamps-note { margin: 0; color: #595e56; font-size: 12px; }

/* ---------- size help (product dialog) ---------- */
.size-help { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.size-help p { margin: 0; font-size: 14px; }
.size-link { align-self: flex-start; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--wa); color: #ffffff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.shop .size-link:hover { color: #ffffff; background: var(--wa-hover); }

/* ---------- phase 2: sale price, color dots, color filter ---------- */
.card-sale { position: absolute; top: 10px; left: 10px; min-height: 26px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: #b2292a; color: #ffffff; font-size: 12px; font-weight: 800; pointer-events: none; }
.card-old, .old-price { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.old-price { font-size: 14px; }
.dots { display: flex; align-items: center; gap: 5px; min-height: 18px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--dot-line); }
.dots small { color: var(--muted); font-size: 12px; font-weight: 700; }
.color-filter { align-items: center; margin-top: -16px; }
.color-filter-label { font-weight: 700; margin-right: 2px; }
.color-chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 10px; }
.chip-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--dot-line); }

/* ---------- phase 2: product window options ---------- */
/* Equal columns; the photo keeps its own height (a tall info column must not stretch it). */
.shop .modal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.modal-media { position: relative; }
.shop .modal-media { aspect-ratio: 4 / 5; position: sticky; top: 0; }
.shop .modal-info { gap: 14px; }
.shop .price.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sale-pill { padding: 2px 10px; border-radius: 999px; background: #b2292a; color: #ffffff; font-size: 13px; font-weight: 800; }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.opt-label { margin: 0; font-weight: 600; }
.opt-link { min-height: 44px; font-weight: 700; text-decoration: underline; }
.swatches, .sizes { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.swatch { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.swatch-dot { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dot-line); transition: transform .15s; }
.swatch:hover:not(:disabled) .swatch-dot { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch.out { opacity: .5; cursor: not-allowed; }
.swatch.out::after, .size-btn.out::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: #a3261c; transform: rotate(-45deg); }
.size-btn { position: relative; overflow: hidden; min-width: 56px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; }
.size-btn:hover:not(:disabled) { border-color: var(--ink); }
.size-btn[aria-pressed="true"], .size-btn.on { background: var(--ink); border-color: var(--ink); color: var(--on-brand); }
.size-btn.out { opacity: .5; cursor: not-allowed; }
.size-btn.out::after { transform: rotate(-20deg); }
.size-chart { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: 10px; overflow: hidden; }
.size-chart caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.size-chart th, .size-chart td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.size-chart th { color: var(--muted); font-size: 12px; }
.size-chart tr.on td { background: var(--accent-soft); font-weight: 800; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy-row .stepper { margin-top: 0; }
.buy-row .stepper button { width: 44px; height: 48px; }
.buy-add { flex: 1 1 200px; min-height: 52px; }
.shop .modal-info .btn.whatsapp { min-height: 52px; }

/* ---------- phase 2: cart, review, receipt ---------- */
.cart-opt { margin: 0; font-size: 13px; font-weight: 600; }
.fee-line { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
/* Courier cards: the radio is hidden visually, the whole card is the target. */
.courier-pick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.courier-pick legend { font-size: .95rem; font-weight: 800; padding-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.courier-pick legend .ico { color: var(--accent); }
.courier-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.courier-opt { position: relative; min-height: 60px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.courier-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.courier-opt:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.courier-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.courier-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.courier-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #3a3f38; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
img.courier-logo { background: #fff; border: 1px solid var(--line); }
.privacy { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.review { display: flex; flex-direction: column; gap: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; align-self: flex-start; }
.back-link .ico { width: 16px; height: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.done-title:focus { outline: none; }
.steps li + li::before { content: ''; width: 16px; height: 2px; background: var(--line); }
.steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 800; font-size: 12px; }
.steps .done span { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.steps .now { color: var(--ink); font-weight: 700; }
.steps .now span { background: var(--ink); border-color: var(--ink); color: var(--on-brand); }
.order-no { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); }
.order-no strong { font-family: var(--display); font-size: 18px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.review-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.review-item .thumb { width: 56px; height: 56px; }
.review-info { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.review-info small { color: var(--muted); font-size: 13px; }
.review-sum { font-variant-numeric: tabular-nums; }
.review-totals { border-top: 1px solid var(--line); }
.review-totals .total { padding-bottom: 0; }
.info-block { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.info-head { display: flex; justify-content: space-between; align-items: center; }
.info-head h3 { margin: 0; font-size: 1rem; }
.info-head .link { min-height: 44px; font-weight: 700; text-decoration: underline; }
.info-block { container-type: inline-size; }
/* Label column can't grow past 40%, so long labels wrap instead of squeezing the value. */
.info-block dl { margin: 6px 0 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 14px; font-size: 14px; }
/* Narrow box (phone): label on top, value full width under it. */
@container (max-width: 360px) {
  .info-block dl { grid-template-columns: 1fr; gap: 0; }
  .info-block dt { margin-top: 8px; font-size: 13px; }
}
.info-block dt { color: var(--muted); }
.info-block dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; }
.review-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.review-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.review-check span { display: flex; flex-direction: column; }
.review-check small { color: var(--muted); }
.review .btn.whatsapp { min-height: 56px; }
.review-hint { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; animation: rise .4s ease both; }
.done { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.done-ico { align-self: center; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #ffffff; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.done-ico .ico { width: 34px; height: 34px; stroke-width: 2.6; }
.done-title { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 800; }
.receipt { text-align: left; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.receipt-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.receipt-lines li { display: flex; justify-content: space-between; gap: 12px; }
.receipt .total { padding: 8px 0 0; border-top: 1px solid var(--line); }
.done-actions { display: flex; gap: 10px; }
.done-actions > * { flex: 1; min-height: 48px; }
.done-warn { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- delivery & payment ---------- */
.ship-pay { padding-top: 72px; }
.kicker { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.big-title { margin: 4px 0 22px; font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.panel { background: var(--card); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.panel h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.couriers { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.couriers li { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.pays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pays li { border-radius: 14px; background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.pays small { color: var(--muted); font-size: 13px; }
.pay-ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #ffffff; margin-bottom: 4px; }
.pay-ico .ico { width: 26px; height: 26px; stroke-width: 2; }

/* ---------- owner + how to order ---------- */
.owner-how { padding-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; }
.owner { background: var(--accent-soft); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.owner-mark { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #ffffff; font-family: var(--display); font-size: 24px; font-weight: 800; }
.owner h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.2; }
.owner p { margin: 0; }
.owner-name { font-weight: 700; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.pill-wa, .pill-msgr { min-height: 48px; padding: 0 20px; border-radius: 999px; color: #ffffff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pill-wa { background: var(--wa); animation: wapulse 2.2s ease-out infinite; }
.pill-msgr { background: var(--msgr); }
.shop .pill-wa:hover, .shop .pill-msgr:hover { color: #ffffff; filter: brightness(.92); }
.pill-wa svg, .pill-msgr svg, .wa-float svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how { background: var(--card); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.how h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.how ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.how li::before { content: counter(step); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); color: var(--accent); font-family: var(--display); font-size: 22px; font-weight: 800; }
.how-calm { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
.footer { margin-top: 96px; padding-top: 48px; background: var(--foot-bg); color: var(--foot-fg); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-main { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.foot-check { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.footer-brand { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.footer p { margin: 0; opacity: .8; }
.footer h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.shop .footer a { color: var(--foot-fg); }
.foot-cards { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.shop .foot-card { min-height: 62px; padding: 10px 16px; border-radius: 14px; color: #ffffff; text-decoration: none; display: flex; align-items: center; gap: 12px; transition: transform .25s; }
.foot-card:hover { transform: translateY(-3px); }
.foot-card.wa { background: var(--wa); }
.foot-card.fb { background: #1877f2; }
.foot-card .ico { width: 24px; height: 24px; }
.foot-card strong, .foot-card small { display: block; line-height: 1.25; }
.foot-card small { font-size: 13px; opacity: .9; font-variant-numeric: tabular-nums; }
.footer .copy { padding-top: 32px; padding-bottom: 28px; font-size: 13px; opacity: .7; margin: 0 auto; }

/* ---------- floating WhatsApp + cart bar ---------- */
.wa-float {
  position: fixed; z-index: 25; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #ffffff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); animation: wapulse 2.2s ease-out infinite;
}
.wa-float svg { width: 26px; height: 26px; }
.shop .wa-float:hover { color: #ffffff; background: var(--wa-hover); }
.cart-bar { display: none; }

@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-how { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shop .modal-grid { grid-template-columns: 1fr; }
  .shop .modal-media { aspect-ratio: 4 / 3; position: static; }
  .topnav { grid-template-columns: auto 1fr; }
  .topnav-links { display: none; }
  .topnav-tools { grid-column: 2; }
  .hero { min-height: clamp(480px, 76vh, 640px); }
  .hero-art, .hero-float { display: none; }
  .hero-inner { padding-bottom: 32px; }
  .shop .search { width: 100%; }
  .cheap { padding: 20px; }
  .stamps { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .stamp { width: 46px; height: 46px; font-size: 12px; }
  .how ol { grid-template-columns: 1fr; gap: 14px; }
  .how li { flex-direction: row; align-items: center; gap: 14px; }
  .how li::before { width: 44px; height: 44px; font-size: 18px; flex: none; }
  .cart-bar:not([hidden]) {
    position: fixed; z-index: 30;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(84px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 60px; padding: 0 8px 0 20px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ink); color: var(--on-brand); box-shadow: var(--shadow); text-align: left;
  }
  .cart-bar-info { display: flex; flex-direction: column; line-height: 1.25; }
  .cart-bar-info small { font-size: 12px; opacity: .75; }
  .cart-bar-info strong { font-weight: 700; font-variant-numeric: tabular-nums; }
  .cart-bar-go { min-height: 44px; padding: 0 18px; border-radius: 999px; display: grid; place-items: center; background: var(--wa); color: #ffffff; font-weight: 600; }
  body.shop:has(.cart-bar:not([hidden])) .footer { padding-bottom: 88px; }
  body.shop:has(.cart-bar:not([hidden])) .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 639px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 40px; }
  .trust li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .trust-ico { width: 40px; height: 40px; border-radius: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 6px; border-radius: 14px; }
  .card-body { padding: 10px 4px 4px; }
  .card-title { font-size: 15px; }
  .card-price strong { font-size: 20px; }
  .add-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .pop, .reveal, .announce-item, .hero-img.on, .hero-dot span.bar::after, .marquee, .hero-float, .pill-wa, .wa-float, .card, .shine::after { animation: none !important; }
  .hero-img { transition: none; }
}

/* ---------- QR payment (checkout card + receipt) ---------- */
.pay-first { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--accent); background: var(--card); text-align: left; }
.pay-first > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.pay-first small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.pay-first-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.qr-pay { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.qr-step { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.qr-img { width: 220px; max-width: 100%; height: auto; border-radius: 12px; background: #ffffff; }
.qr-name { margin: 0; font-weight: 700; text-align: center; }
.qr-amount { margin: 0; width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--line); }
.qr-amount strong { font-family: var(--display); font-size: 26px; font-weight: 800; white-space: nowrap; }
.qr-pay .done-actions { width: 100%; }
.qr-wait { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.qr-warn { margin: 0; width: 100%; padding: 8px 10px; border-radius: 10px; background: #fff7e0; color: #5a4300; font-size: 13px; text-align: center; }

/* ---------- Check my order page ---------- */
.os-page { min-height: 100vh; background: var(--bg); }
.os-top { max-width: 1040px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.os-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-size: 18px; }
.os-brand .brand-mark { background: var(--brand); color: var(--on-brand); }
.os-tools { display: flex; gap: 8px; }
.os-tools .theme-btn { width: 44px; padding: 0; }
.os-main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.os-intro h1 { margin: 0 0 6px; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; }
.os-form { margin-top: 16px; padding: 18px; border-radius: 18px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.os-form input { min-height: 52px; font-size: 17px; }
.os-form #os-no { font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.os-form .btn { min-height: 54px; }
.os-hint { margin: 0; color: var(--muted); font-size: 13px; }
.os-result:empty { display: none; }
.os-card { padding: 20px; border-radius: 18px; background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.os-head { display: flex; gap: 12px; align-items: center; }
.os-head > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.os-head small { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.os-head strong { font-size: 20px; }
.os-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); }
.os-st-new .os-ico { background: #fff1cc; }
.os-st-sent .os-ico { background: var(--accent); }
.os-st-cancelled .os-ico { background: #fbe4e1; }
.os-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.os-steps li { display: flex; flex-direction: column; gap: 6px; }
.os-steps li.on { color: var(--ink); }
.os-bar { height: 8px; border-radius: 4px; background: var(--line); }
.os-steps li.on .os-bar { background: var(--accent); }
.os-track { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); }
.os-track > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.os-track small { color: var(--muted); font-size: 13px; }
.os-track strong { font-size: 20px; letter-spacing: .04em; overflow-wrap: anywhere; }
.os-facts { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; }
.os-facts dt { color: var(--muted); }
.os-facts dd { margin: 0; font-weight: 700; }
.os-msg p { margin: 0; color: var(--muted); }
.os-tooMany { background: #fff7e0; color: #5a4300; }
.os-tooMany p { color: #5a4300; }
@media (max-width: 760px) {
  .os-main { grid-template-columns: 1fr; gap: 20px; padding-top: 8px; }
}

/* ---------- Pay page (QR first, then order + slip) ---------- */
.pay { display: flex; flex-direction: column; gap: 12px; }
.pay-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--muted); }
.pay-title:focus { outline: none; }
.slip-box { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.send-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.send-steps li { counter-increment: s; display: flex; gap: 10px; align-items: center; font-size: 15px; }
.send-steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #ffffff; font-size: 13px; font-weight: 800; }
.pay-hint { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.pay-cancel { align-self: center; min-height: 44px; color: var(--muted); text-decoration: underline; }

/* ---------- Slip: A) upload here / B) WhatsApp ---------- */
.slip-way { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); text-align: left; cursor: pointer; }
.slip-way.on { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.slip-way input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.slip-way > span:not(.slip-badge) { flex: 1; display: flex; flex-direction: column; }
.slip-way small { color: var(--muted); font-size: 13px; }
.slip-badge { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.slip-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slip-pick { position: relative; min-height: 64px; border-radius: 12px; border: 2px dashed var(--accent); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; cursor: pointer; }
.slip-pick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.slip-picked { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--accent-soft); text-align: left; }
.slip-picked img { width: 54px; height: 78px; object-fit: cover; border-radius: 8px; flex: none; }
.slip-picked > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.slip-picked small { color: var(--muted); font-size: 12px; }
.slip-picked .link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: underline; cursor: pointer; }
.slip-progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.slip-progress span { display: block; width: 40%; height: 100%; background: var(--wa); animation: slip-move 1.2s ease-in-out infinite; }
@keyframes slip-move { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .slip-progress span { animation: none; width: 100%; } }
.slip-failed { border-color: var(--danger); }
.slip-failed strong { color: var(--danger); }
.slip-ok { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent); }

