/* Raja Banner v3 — storefront (mobile-first). Matches the "Desain Mobile" canvas. */
:root { --tab-h: 68px; }
.ic { flex: none; }
.muted { color: var(--muted); }
.wrap { padding: 0 16px; }
main { min-height: 60vh; }
body.with-tabs { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }

/* ---------- top ---------- */
.announce { background: var(--forest); color: #FDE68A; font-size: .76rem; text-align: center; padding: 7px 12px; letter-spacing: .02em; }
.topbar { background: var(--paper); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; }
.topbar-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; }
.search { order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 23px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.search input { border: 0; outline: 0; flex: 1; font-size: 16px; background: transparent; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 14%, transparent); }
.topnav { display: none; margin-left: auto; align-items: center; gap: 6px; }
.topnav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.topnav a:hover, .topnav a[aria-current] { background: var(--forest-soft); color: var(--amber-d); }
.topnav-user { border: 1px solid var(--line-2); }

/* ---------- bottom tab bar + WhatsApp ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: .7rem; min-height: 44px; }
.tabbar a[aria-current] { color: var(--amber-d); font-weight: 600; }
.tabbar a[aria-current] .ic { color: var(--amber); }
.wa-float { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 41; width: 52px; height: 52px; border-radius: 50%; background: #1F9D55; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.22); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- sections ---------- */
.sec { margin-top: 26px; }
.sec-title { font-size: 1.4rem; margin-bottom: 12px; }
.page-title { font-size: 1.8rem; margin: 8px 0 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head a { font-weight: 600; font-size: .9rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip-link small { color: var(--muted); }
.chip-link.is-on { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 600; }
.chip-link.is-on small { color: #D6D3D1; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* hero */
.hero { margin-top: 16px; }
.hero-card { position: relative; overflow: hidden; border-radius: 22px; background: var(--forest); color: #F7F3EC; padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.hero-card .eyebrow { color: #FCD34D; }
.hero-card h1 { font-size: 1.9rem; max-width: 15ch; position: relative; z-index: 1; }
.hero-card p { color: #D6D3D1; font-size: .92rem; max-width: 30ch; margin: 0; position: relative; z-index: 1; }
.btn-light { background: #FBBF24; color: #1C1917; align-self: flex-start; position: relative; z-index: 1; }
.btn-light:hover { background: #FCD34D; }
.hero-img { position: absolute; right: -28px; bottom: -34px; width: 150px; height: 196px; object-fit: cover; border-radius: 10px; transform: rotate(-8deg); box-shadow: 0 12px 28px rgba(0,0,0,.35); opacity: .95; }

/* product cards */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { aspect-ratio: 1; background: var(--paper-2); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pcard-meta { font-size: .7rem; color: var(--muted); }
.pcard-name { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.pcard-price { font-weight: 700; color: var(--ink); }
.pcard-price small { font-weight: 500; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 56px; position: relative; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--forest-soft); color: var(--amber-d); font-weight: 700; display: grid; place-items: center; }
.steps span { color: var(--muted); font-size: .9rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.faq summary { padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--amber-d); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 16px 14px; margin: 0; color: #3B4842; }

/* product page */
.crumbs { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.product { display: grid; gap: 18px; margin-top: 10px; }
.product-media { border-radius: 20px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 1.75rem; margin: 6px 0 4px; }
.product-sub { color: var(--muted); margin: 0 0 8px; }
.price-big { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.price-big small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); }
.tier b { color: var(--ink); font-size: .9rem; }
.opt-group { margin-bottom: 4px; }
.opt-label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.order-soon { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--brass-soft); color: #78350F; font-size: .9rem; margin: 6px 0 12px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { list-style: none; padding: 16px; margin: 16px 0 0; background: var(--paper-2); border-radius: 16px; display: grid; gap: 10px; font-size: .9rem; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .ic { color: var(--amber-d); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }

/* login */
body.bare { background: var(--paper); }
.login { min-height: 100vh; display: flex; flex-direction: column; }
.login-hero { height: 260px; background: var(--forest); position: relative; overflow: hidden; flex: none; }
.login-hero img { position: absolute; width: 124px; height: 172px; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.lp1 { left: calc(50% - 160px); top: 64px; transform: rotate(-7deg); }
.lp2 { left: calc(50% - 60px); top: 34px; transform: rotate(4deg); }
.lp3 { left: calc(50% + 40px); top: 84px; transform: rotate(9deg); }
.login-card { flex: 1; margin-top: -28px; background: var(--paper); border-radius: 28px 28px 0 0; position: relative; padding: 30px 22px 28px; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 480px; align-self: center; }
.login-card h1 { font-size: 1.8rem; }
.login-logo { height: 30px; width: auto; align-self: flex-start; }
.login-card .muted { margin: 0; }
.login-back { position: absolute; top: -64px; left: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); }
.btn-google { background: #fff; border: 1px solid var(--line-2); color: var(--ink); min-height: 54px; gap: 12px; font-size: 1rem; }
.btn-google:hover { border-color: var(--forest); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp .btn { min-height: 52px; }
.otp .btn + .btn { margin-top: 8px; }
.otp-input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.fine { font-size: .78rem; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* account */
.acc-head { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.acc-head h1 { font-size: 1.35rem; font-family: var(--font-body); font-weight: 700; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: #FCD34D; font-family: var(--font-display); font-size: 1.3rem; display: grid; place-items: center; object-fit: cover; flex: none; }
.points-card { margin-top: 16px; border-radius: 20px; background: linear-gradient(135deg, #B45309, #78350F); color: #FFF8EB; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.points-card .eyebrow { color: #FDE68A; }
.points-card b { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.points-card b small { font-family: var(--font-body); font-size: .9rem; color: #FDE68A; }
.points-card span:last-child { font-size: .8rem; color: #FDE68A; }
.panel { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.panel-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.panel-head a { font-size: .85rem; font-weight: 600; }
.panel-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shortcuts a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: .7rem; text-align: center; padding: 4px 0; }
.shortcuts .ic { color: var(--amber-d); }
.badge { position: absolute; top: -4px; left: 50%; margin-left: 6px; background: var(--bad); color: #fff; font-size: .62rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu { padding: 0; overflow: hidden; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 0 16px; min-height: 56px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #F1EBE1; }
.menu a:last-child { border-bottom: 0; }
.menu a span { flex: 1; }
.menu .ic:first-child { color: var(--amber-d); }
.logout { margin-top: 18px; }

/* orders */
.olist { display: grid; gap: 10px; }
.orow { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.orow-top, .orow-bot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--forest-soft); color: #78350F; white-space: nowrap; }
.st-pending_payment { background: var(--warn-soft); color: #7a4d00; }
.st-cancelled, .st-refunded { background: #EEE; color: #555; }
.st-complaint { background: var(--bad-soft); color: #86261a; }
.st-completed, .st-delivered { background: var(--ok-soft); color: #14603b; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.status-hero { display: flex; gap: 12px; align-items: center; background: var(--forest); color: #FFF8EB; border-radius: 20px; padding: 18px; }
.status-hero b { display: block; font-size: 1.1rem; }
.status-hero span { display: block; font-size: .85rem; color: #D6D3D1; }
.status-hero.st-cancelled, .status-hero.st-refunded { background: #4A4F4C; }
.status-hero.st-complaint { background: #7A2C1E; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.tl-done::before, .timeline li.tl-now::before { background: var(--forest); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--line); flex: none; display: grid; place-items: center; color: #fff; }
.tl-done .tl-dot { background: var(--forest); }
.tl-now .tl-dot { background: var(--forest); box-shadow: 0 0 0 5px color-mix(in srgb, var(--forest) 18%, transparent); }
.tl-todo .tl-body b { color: var(--muted); }
.tl-body { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.tl-body time { font-size: .78rem; color: var(--muted); }
.tl-body p { margin: 4px 0 0; font-size: .82rem; color: #3B4842; }
.oitem { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.oitem .muted { display: flex; gap: 6px; align-items: center; font-size: .82rem; }
.oitem .note { font-size: .82rem; background: #FFF6DB; border-radius: 8px; padding: 6px 8px; margin-top: 4px; }
.oitem-price { align-self: flex-end; font-weight: 700; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 12px 0 0; font-size: .9rem; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; text-align: right; }
.sum .sum-total { color: var(--ink); font-weight: 700; font-size: 1rem; border-top: 1px solid var(--line); padding-top: 8px; }

/* legal + error */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 22px 0 6px; }
.legal p { color: #3B4842; }
.errpage { text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.err-code { font-family: var(--font-display); font-weight: 700; font-size: 4rem; color: var(--amber); line-height: 1; }

/* footer */
.foot { margin-top: 48px; background: #F3ECDF; padding: 28px 0 20px; font-size: .88rem; }
.foot-in { display: grid; gap: 18px; }
.foot-in p { color: var(--muted); margin: 8px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot-copy { color: var(--muted); font-size: .78rem; margin-top: 16px; }

/* ---------- tablet & desktop ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-card { padding: 44px; min-height: 340px; }
  .hero-card h1 { font-size: 2.8rem; }
  .hero-img { width: 230px; height: 300px; right: 40px; bottom: -40px; }
  .product { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .foot-in { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 960px) {
  :root { --tab-h: 0px; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .search { order: 0; flex: 0 1 380px; margin-left: 24px; }
  .topbar-in { flex-wrap: nowrap; }
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wa-float { bottom: 24px; right: 24px; }
  .login { flex-direction: row; }
  .login-hero { height: auto; flex: 1; }
  .login-hero img { width: 180px; height: 250px; }
  .lp1 { top: 30%; left: calc(50% - 230px); } .lp2 { top: 22%; left: calc(50% - 90px); } .lp3 { top: 34%; left: calc(50% + 50px); }
  .login-card { margin-top: 0; border-radius: 0; justify-content: center; padding: 40px; max-width: 520px; }
  .login-back { top: 20px; left: auto; right: 20px; background: #fff; border: 1px solid var(--line); }
  .account, .order { max-width: 760px; }
}
/* hero: keep copy clear of the poster image on phones */
@media (max-width: 719px) {
  .hero-card { padding-bottom: 120px; }
  .hero-card p { max-width: none; }
  .hero-img { width: 110px; height: 146px; right: 18px; bottom: -26px; }
}

/* status hero amber icon */
.status-hero .ic { color: #FBBF24; }
.tl-done .tl-dot, .tl-now .tl-dot { background: var(--amber-d); }
.timeline li.tl-done::before, .timeline li.tl-now::before { background: var(--amber-d); }
.tl-now .tl-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 25%, transparent); }

/* ---------- configurator ---------- */
.cfg { margin-top: 10px; }
.cfg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 14px; }
.cfg-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cfg-group .chips { margin: 0; }
.cfg-head { display: flex; justify-content: space-between; align-items: baseline; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 44px; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; color: var(--ink); cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--forest-soft); }
.step-in { width: 46px; border: 0; text-align: center; font: 700 1rem var(--font-body); background: transparent; color: var(--ink); }
.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty-row.sm .stepper { height: 36px; } .qty-row.sm .stepper button { width: 34px; height: 36px; font-size: 1.1rem; } .qty-row.sm .step-in { width: 34px; font-size: .9rem; }
.qty-row.sm span { font-size: .8rem; color: var(--muted); }
.tier-hint { font-size: .82rem; color: var(--amber-d); font-weight: 600; }
.m2-row { display: flex; align-items: flex-end; gap: 8px; } .m2-row .field { flex: 1; margin: 0; } .m2-x { padding-bottom: 12px; color: var(--muted); }
.files { display: flex; flex-direction: column; gap: 10px; }
.file-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.file-card.warn { border-color: #EBD3A6; background: #FFFBEB; }
.file-thumb { flex: none; padding: 0; border: 0; background: var(--paper-2); border-radius: 8px; overflow: hidden; cursor: pointer; align-self: flex-start; }
.file-ph { width: 64px; height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.file-top { display: flex; justify-content: space-between; gap: 8px; } .file-top b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btn.sm { width: 32px; height: 32px; }
.fstat { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; }
.fstat-ok { color: #14603b; } .fstat-warn { color: #92400E; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--amber-d); font: 600 .88rem var(--font-body); cursor: pointer; }
.add-file { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 1.5px dashed #E5C07B; background: #FFFBEB; color: var(--ink); font: 600 .92rem var(--font-body); cursor: pointer; }
.add-file:hover { border-color: var(--amber); }
.upload-progress { position: relative; height: 34px; border-radius: 10px; background: var(--paper-2); overflow: hidden; font-size: .8rem; display: flex; align-items: center; padding: 0 12px; }
.upload-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #FDE68A; transition: width .2s; }
.upload-progress span { position: relative; }
.small { font-size: .8rem; } .txt-bad { color: var(--bad); }
.crop-checks { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 39; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 -6px 18px rgba(28,25,23,.06); }
.sticky-price { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sticky-total { font-size: 1.15rem; }
.sticky-buy .btn { min-height: 48px; }
body.has-sticky main { padding-bottom: 90px; }
body.has-sticky .wa-float { bottom: calc(var(--tab-h) + 96px + env(safe-area-inset-bottom)); }
.cart-badge { position: absolute; top: 6px; left: 50%; margin-left: 6px; background: var(--bad); color: #fff; font-size: .62rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.tabbar a, .topnav-cart { position: relative; }
.topnav-cart .cart-badge { top: -2px; left: auto; right: -4px; margin: 0; }

/* cart + checkout */
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cart-line { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.cart-line.compact { border: 0; padding: 8px 0; border-bottom: 1px dashed var(--line); border-radius: 0; align-items: center; }
.line-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.cart-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.pick.on { border: 2px solid var(--amber-d); background: #FFFBEB; padding: 11px; }
.pick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber-d); flex: none; }
.pick-body { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.pay-info { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checkout .panel { margin-top: 12px; }
@media (min-width: 960px) {
  .sticky-buy { position: sticky; bottom: 0; border-radius: 16px; border: 1px solid var(--line); margin-top: 12px; }
  body.has-sticky main { padding-bottom: 0; }
  body.has-sticky .wa-float { bottom: 24px; }
}

/* add-ons + voucher */
.addon-group { display: flex; flex-direction: column; gap: 8px; }
.addon-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; }
.addon-total { font-weight: 600; }
.voucher-row { display: flex; gap: 8px; } .voucher-row .input { flex: 1; text-transform: uppercase; }
.txt-ok { color: var(--ok); }

/* promos (campaigns, flash sale) */
.pcard-img { position: relative; }
.promo-badge { position: absolute; top: 10px; left: 10px; background: #B3261E; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.promo-badge.static { position: static; display: inline-block; }
.promo-badge.is-flash { background: #F59E0B; color: #1C1917; }
.price-was { color: var(--muted); font-weight: 400; font-size: .82em; text-decoration: line-through; }
.promo-bar { display: block; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 4px; }
.promo-bar i { display: block; height: 100%; width: 0; background: #F59E0B; border-radius: inherit; }
.promo-box { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.promo-box.is-flash { border-color: #F59E0B; }
.promo-box .price-big { margin: 6px 0 2px; }
.promo-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .85rem; color: #B45309; }
.countdown.is-over { color: var(--muted); }
.flash-head { align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.flash-head .sec-title { display: inline-flex; align-items: center; gap: 8px; }
.promo-line { font-size: .8rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.txt-warn { color: #B45309; }

/* batch 3: favourites, ratings, reviews, points, stock alerts */
.pcard-wrap { position: relative; display: flex; min-width: 0; }
.pcard-wrap > .pcard { flex: 1; min-width: 0; }
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.fav-btn .ic { fill: none; transition: transform .15s; }
.fav-btn.on { color: #DC2626; }
.fav-btn.on .ic { fill: currentColor; }
.fav-btn:active .ic { transform: scale(.85); }
.fav-inline { position: static; flex: none; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.soldout-badge { position: absolute; bottom: 10px; left: 10px; background: rgba(28, 25, 23, .85); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; color: #F59E0B; }
.star { fill: none; }
.star.on { fill: currentColor; }
.pcard-rating { display: flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.rating-sum { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); margin-bottom: 8px; font-size: .9rem; }
.rating-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rating-head > div { display: flex; flex-direction: column; gap: 2px; }
.rating-big { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review p { margin: 6px 0 0; overflow-wrap: anywhere; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.review-photos img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.review-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid #F59E0B; background: var(--paper-2); border-radius: 0 10px 10px 0; font-size: .9rem; }
.review-btn { align-self: flex-start; margin-top: 6px; }
.star-pick { display: flex; gap: 6px; margin: 6px 0 12px; }
.star-btn { border: 0; background: none; padding: 4px; color: #D6D3D1; cursor: pointer; min-width: 44px; min-height: 44px; }
.star-btn svg { fill: none; }
.star-btn.on { color: #F59E0B; }
.star-btn.on svg { fill: currentColor; }
.stock-alert { display: flex; flex-direction: column; gap: 8px; }
.stock-alert b { display: inline-flex; align-items: center; gap: 8px; }
.stock-alert p { margin: 0; }
.stock-alert .voucher-row .input { text-transform: none; }
a.points-card { text-decoration: none; }
.tier-progress .promo-bar { height: 8px; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger li > div { display: flex; flex-direction: column; min-width: 0; }
.ledger .small { overflow-wrap: anywhere; }
.voucher-own { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.voucher-own .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; }
.txt-bad { color: var(--bad); }

/* batch 4: proof approval, complaints, templates */
.proof-panel.is-waiting { border-color: #F59E0B; }
.proof-img { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; max-width: 420px; }
.proof-img img { display: block; width: 100%; height: auto; }
.pill-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem; background: var(--paper-2); }
.st-proof-approved { background: var(--ok-soft, #DCFCE7); color: var(--ok); }
.st-proof-revision { background: var(--warn-soft, #FEF3C7); color: #B45309; }
.templates { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.template-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.template-link span { flex: 1; font-weight: 600; font-size: .9rem; }
.template-link small { color: var(--muted); }
.template-link .ic { color: var(--amber-d); }

/* batch 5: affiliate portal */
.aff-input { text-transform: none !important; }
.voucher-row .aff-input { font-size: .85rem; }
.aff-share .btn-block { margin-top: 4px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stat-mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-mini b { font-size: 1rem; overflow-wrap: anywhere; }
.stat-mini span { font-size: .72rem; color: var(--muted); }
/* parcel tracking */
.track-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.track-list li { border-left: 2px solid var(--brass, #d4a017); padding-left: 10px; }
.track-list time { display: block; font-size: .78rem; opacity: .7; }
/* manual bank transfer */
.pay-info svg, .check svg { flex: none; }
.transfer-panel { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--amber-d); }
.transfer-panel.is-waiting { border-color: var(--line); }
.transfer-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; align-items: baseline; }
.transfer-kv dt { color: var(--muted); font-size: .88rem; }
.transfer-kv dd { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; overflow-wrap: anywhere; }
.transfer-kv .mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: 1.05rem; }
.transfer-amount { font-size: 1.2rem; color: var(--amber-d); }
.transfer-form { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.proof-img.transfer-proof { max-width: 160px; }
/* installable app (PWA) */
.install-app { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.install-app b { display: inline-flex; align-items: center; gap: 8px; }
.install-app p { margin: 0; }
.foot-install { padding: 0; font: inherit; color: var(--ink); text-decoration: underline; }
.offline-page { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding-top: 32px; padding-bottom: 32px; max-width: 520px; }
.offline-page h1 { font-size: 1.7rem; margin: 10px 0 0; }
.offline-page p { margin: 0; }
.offline-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (display-mode: standalone) { [data-install], [data-install-panel] { display: none !important; } }
/* newsletter */
.nl-form { display: grid; gap: 10px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.nl-text p { color: var(--muted); margin: 4px 0 0; }
.nl-row .input { text-transform: none; min-width: 0; }
.nl-form [data-msg] { margin: 0; }
.nl-page-form { display: grid; gap: 10px; margin: 12px 0; max-width: 420px; }
.nl-switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.nl-switch input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber-d); flex: none; }
@media (min-width: 720px) { .nl-form { grid-template-columns: 1fr minmax(300px, 420px); align-items: center; } .nl-form [data-msg] { grid-column: 2; } }
/* gallery of finished prints */
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gitem { margin: 0; min-width: 0; }
.gitem-img { display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gitem-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gitem-img:hover img { transform: scale(1.03); }
.gitem figcaption { padding: 6px 2px 0; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.gitem-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gitem-meta { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.gitem-meta a { color: inherit; }
.gal-lead { margin: -6px 0 16px; max-width: 60ch; }
.gal-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gal-cta p { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.lightbox .modal-body { padding: 0 16px 16px; }
.lightbox-img { display: block; width: 100%; max-height: 58vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox-text { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lightbox-text .btn { margin-top: 4px; }
.lightbox-nav { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (min-width: 720px) { .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
