/* Zura Mart — public storefront stylesheet. Mobile-first, one file, no external deps. */
:root{
  --bg:#f6f7f9; --surface:#ffffff; --ink:#17202e; --muted:#5d6a7d; --line:#e5e8ee;
  --brand:#0e7c61; --brand-dark:#0a5f4b; --brand-soft:#e7f4ef;
  --accent:#b45309; --accent-soft:#fdf1e0;
  --blue:#1d4ed8; --blue-soft:#e9effd;
  --purple:#7c3aed; --purple-soft:#f1eafd;
  --danger:#dc2626; --danger-soft:#fdecec;
  --ok:#15803d; --ok-soft:#e8f6ec;
  --radius:12px; --radius-sm:8px;
  --shadow:0 1px 2px rgba(16,24,40,.06),0 6px 20px rgba(16,24,40,.07);
  --header-h:60px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-size:16px;line-height:1.5;color:var(--ink);background:var(--bg);min-height:100dvh;display:flex;flex-direction:column}
main{flex:1}
img,svg{display:block;max-width:100%}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.container{max-width:1120px;margin:0 auto;padding:0 16px}
.section{padding:28px 0}
.section-title{font-size:1.35rem;font-weight:700;margin-bottom:4px;letter-spacing:-.01em}
.section-sub{color:var(--muted);font-size:.95rem;margin-bottom:18px}

/* ---------- announcement + header ---------- */
.announce{background:var(--ink);color:#fff;font-size:.83rem;text-align:center;padding:8px 12px}
.announce strong{color:#ffd88a}
.site-header{position:sticky;top:0;z-index:50;background:var(--surface);border-bottom:1px solid var(--line);min-height:var(--header-h)}
.header-in{display:flex;align-items:center;gap:12px;height:var(--header-h)}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem;color:var(--ink);letter-spacing:-.02em}
.logo:hover{text-decoration:none}
.logo-mark{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,var(--brand),var(--brand-dark));display:grid;place-items:center;color:#fff;flex:none}
.logo-mark svg{width:19px;height:19px}
.logo b{color:var(--brand)}
.main-nav{display:none;gap:4px;margin-left:8px}
.main-nav a{color:var(--ink);font-weight:600;font-size:.93rem;padding:10px 12px;border-radius:8px}
.main-nav a:hover{background:var(--bg);text-decoration:none}
.main-nav a.active{color:var(--brand);background:var(--brand-soft)}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:4px}
.icon-btn{position:relative;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--ink)}
.icon-btn:hover{background:var(--bg)}
.icon-btn svg{width:22px;height:22px}
.cart-count{position:absolute;top:4px;right:2px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--danger);color:#fff;font-size:.72rem;font-weight:700;display:grid;place-items:center}
.mobile-nav{display:flex;gap:4px;overflow-x:auto;padding:8px 16px;border-top:1px solid var(--line);scrollbar-width:none}
.mobile-nav::-webkit-scrollbar{display:none}
.mobile-nav a{flex:none;color:var(--ink);font-weight:600;font-size:.9rem;padding:10px 14px;border-radius:9px;background:var(--bg)}
.mobile-nav a.active{background:var(--brand-soft);color:var(--brand)}
@media(min-width:860px){.main-nav{display:flex}.mobile-nav{display:none}}

/* ---------- hero ---------- */
.hero{background:linear-gradient(180deg,var(--brand-soft),var(--bg));padding:36px 0 30px}
.hero-grid{display:grid;gap:24px;align-items:center}
@media(min-width:860px){.hero-grid{grid-template-columns:1.05fr .95fr}.hero{padding:52px 0}}
.hero h1{font-size:1.75rem;line-height:1.2;letter-spacing:-.02em;margin-bottom:10px}
@media(min-width:860px){.hero h1{font-size:2.5rem}}
.hero p{color:var(--muted);margin-bottom:20px;max-width:46ch}
.hero-ctas{display:flex;gap:10px;flex-wrap:wrap}
.hero-art{border-radius:16px;overflow:hidden;box-shadow:var(--shadow);aspect-ratio:4/3;background:#0b3d33}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:10px;border:1px solid transparent;font-weight:700;font-size:.95rem;transition:transform .06s ease,background .15s}
.btn:active{transform:scale(.98)}
.btn svg{width:18px;height:18px;flex:none}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-dark);text-decoration:none;color:#fff}
.btn-ghost{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand);text-decoration:none}
.btn-danger-ghost{background:var(--danger-soft);color:var(--danger)}
.btn-block{width:100%}
.btn-sm{min-height:44px;padding:8px 14px;font-size:.88rem}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}

/* ---------- type split cards ---------- */
.type-split{display:grid;gap:12px;margin:22px 0}
@media(min-width:700px){.type-split{grid-template-columns:1fr 1fr}}
.type-card{display:flex;align-items:center;gap:14px;padding:18px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.type-card:hover{text-decoration:none;border-color:var(--brand)}
.type-card .t-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;flex:none}
.type-card .t-ic svg{width:28px;height:28px}
.type-card.physical .t-ic{background:var(--blue-soft);color:var(--blue)}
.type-card.digital .t-ic{background:var(--purple-soft);color:var(--purple)}
.type-card h3{font-size:1.05rem;margin-bottom:2px;color:var(--ink)}
.type-card p{font-size:.85rem;color:var(--muted)}
.type-card .go{margin-left:auto;color:var(--muted);flex:none}
.type-card .go svg{width:22px;height:22px}

/* ---------- category tiles ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){.cat-grid{grid-template-columns:repeat(4,1fr)}}
.cat-tile{display:flex;flex-direction:column;gap:10px;padding:18px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.cat-tile:hover{border-color:var(--brand);text-decoration:none}
.cat-tile .c-ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center}
.cat-tile .c-ic svg{width:24px;height:24px}
.cat-tile h3{font-size:.98rem;color:var(--ink)}
.cat-tile span{font-size:.8rem;color:var(--muted)}

/* ---------- product cards ---------- */
.grid-products{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){.grid-products{grid-template-columns:repeat(3,1fr);gap:16px}}
@media(min-width:1024px){.grid-products{grid-template-columns:repeat(4,1fr)}}
.p-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:border-color .15s}
.p-card:hover{border-color:var(--brand)}
.p-art{position:relative;aspect-ratio:4/3;background:var(--bg);overflow:hidden}
.p-art svg{width:100%;height:100%}
.p-badges{position:absolute;top:8px;left:8px;display:flex;gap:6px;flex-wrap:wrap}
.p-body{padding:12px;display:flex;flex-direction:column;gap:6px;flex:1}
.p-name{font-size:.92rem;font-weight:600;line-height:1.35;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.p-name:hover{color:var(--brand)}
.p-seller{font-size:.78rem;color:var(--muted)}
.p-price-row{display:flex;align-items:baseline;gap:8px;margin-top:auto}
.p-price{font-weight:800;font-size:1.05rem}
.p-old{font-size:.82rem;color:var(--muted);text-decoration:line-through}
.p-stock{font-size:.78rem;font-weight:600}
.p-stock.low{color:var(--accent)} .p-stock.out{color:var(--danger)} .p-stock.ok{color:var(--ok)}

/* ---------- badges & chips ---------- */
.badge{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:999px;letter-spacing:.02em}
.badge svg{width:12px;height:12px}
.b-physical{background:var(--blue-soft);color:var(--blue)}
.b-digital{background:var(--purple-soft);color:var(--purple)}
.b-cod{background:var(--ok-soft);color:var(--ok)}
.b-out{background:#eceff3;color:var(--muted)}
.b-low{background:var(--accent-soft);color:var(--accent)}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;padding:5px 12px;border-radius:999px}
.chip::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.st-pending{background:var(--accent-soft);color:var(--accent)}
.st-confirmed{background:var(--blue-soft);color:var(--blue)}
.st-preparing{background:#e8e4fb;color:#5b21b6}
.st-shipped{background:var(--purple-soft);color:var(--purple)}
.st-delivered{background:#dcf3f0;color:#0f766e}
.st-completed{background:var(--ok-soft);color:var(--ok)}
.st-cancelled{background:#eceff3;color:var(--muted)}
.st-refunded{background:var(--danger-soft);color:#b91c1c}

/* ---------- trust + steps ---------- */
.trust-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){.trust-grid{grid-template-columns:repeat(4,1fr)}}
.trust-item{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.trust-item .t-ic{width:42px;height:42px;border-radius:11px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.trust-item .t-ic svg{width:22px;height:22px}
.trust-item h4{font-size:.9rem;margin-bottom:2px}
.trust-item p{font-size:.8rem;color:var(--muted)}
.steps{display:grid;gap:12px;counter-reset:step}
@media(min-width:700px){.steps{grid-template-columns:repeat(3,1fr)}}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:flex;gap:14px}
.step .n{counter-increment:step;flex:none;width:38px;height:38px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800;display:grid;place-items:center}
.step .n::before{content:counter(step)}
.step h4{font-size:.95rem;margin-bottom:4px}
.step p{font-size:.85rem;color:var(--muted)}

/* ---------- shop toolbar ---------- */
.toolbar{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:grid;gap:12px;margin-bottom:18px}
.toolbar-row{display:grid;gap:10px}
@media(min-width:700px){.toolbar-row{grid-template-columns:1fr 1fr 1fr}}
.chip-row{display:flex;gap:8px;flex-wrap:wrap}
.f-chip{min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:.88rem;color:var(--ink)}
.f-chip[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.result-meta{font-size:.88rem;color:var(--muted);margin-bottom:12px}
.empty{background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius);padding:48px 20px;text-align:center;color:var(--muted)}
.empty svg{width:48px;height:48px;margin:0 auto 12px;color:var(--line)}

/* ---------- forms ---------- */
.field{margin-bottom:14px}
.hint{font-size:.83rem;color:var(--muted);margin-top:8px}
.field label{display:block;font-weight:600;font-size:.88rem;margin-bottom:6px}
.field .hint{font-size:.78rem;color:var(--muted);margin-top:4px}
.input,select.input,textarea.input{width:100%;min-height:48px;padding:12px 14px;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:var(--surface);color:var(--ink)}
.input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--brand-soft)}
.input[aria-invalid="true"]{border-color:var(--danger)}
.f-error{font-size:.8rem;color:var(--danger);margin-top:5px;display:none}
.f-error.show{display:block}
.form-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}
.radio-card{display:flex;gap:12px;border:1.5px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:10px;cursor:pointer;align-items:flex-start}
.radio-card:hover{border-color:var(--brand)}
.radio-card input{width:22px;height:22px;margin-top:2px;accent-color:var(--brand);flex:none}
.radio-card.selected{border-color:var(--brand);background:var(--brand-soft)}
.radio-card h4{font-size:.95rem;margin-bottom:3px}
.radio-card p{font-size:.83rem;color:var(--muted)}
.pay-instructions{background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius-sm);padding:14px;font-size:.87rem;margin-top:12px;white-space:pre-line}

/* ---------- product page ---------- */
.crumbs{font-size:.83rem;color:var(--muted);margin:16px 0;display:flex;gap:8px;flex-wrap:wrap}
.crumbs a{color:var(--muted)}
.pdp{display:grid;gap:22px}
@media(min-width:860px){.pdp{grid-template-columns:1fr 1fr;gap:36px}}
.pdp-gallery{border-radius:16px;overflow:hidden;box-shadow:var(--shadow);aspect-ratio:4/3;background:var(--bg)}
.pdp-gallery svg{width:100%;height:100%}
.pdp-info h1{font-size:1.5rem;letter-spacing:-.01em;margin:8px 0}
@media(min-width:860px){.pdp-info h1{font-size:1.9rem}}
.pdp-seller{font-size:.88rem;color:var(--muted);margin-bottom:10px}
.pdp-price{display:flex;align-items:baseline;gap:10px;margin:12px 0}
.pdp-price .now{font-size:1.7rem;font-weight:800}
.pdp-price .was{color:var(--muted);text-decoration:line-through}
.pdp-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.qty-row{display:flex;align-items:center;gap:12px;margin:16px 0}
.stepper{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:10px;overflow:hidden}
.stepper button{width:48px;height:48px;border:0;background:var(--surface);display:grid;place-items:center;color:var(--ink)}
.stepper button:hover{background:var(--bg)}
.stepper button svg{width:18px;height:18px}
.stepper output{min-width:52px;text-align:center;font-weight:700;font-size:1.05rem}
.cta-row{display:grid;gap:10px}
@media(min-width:560px){.cta-row{grid-template-columns:1fr 1fr}}
.spec-table{width:100%;border-collapse:collapse;font-size:.9rem;margin-top:8px}
.spec-table th,.spec-table td{text-align:left;padding:10px 4px;border-bottom:1px solid var(--line)}
.spec-table th{color:var(--muted);font-weight:600;width:38%}
.desc{color:#2b3546;font-size:.95rem}
.desc p{margin-bottom:10px}

/* ---------- cart ---------- */
.cart-layout{display:grid;gap:18px}
@media(min-width:860px){.cart-layout{grid-template-columns:1fr 340px;align-items:start}}
.cart-item{display:grid;grid-template-columns:84px 1fr;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px;margin-bottom:12px}
.cart-item .thumb{border-radius:8px;overflow:hidden;aspect-ratio:1;background:var(--bg)}
.cart-item .thumb svg{width:100%;height:100%}
.cart-item h4{font-size:.92rem;margin-bottom:2px}
.cart-item .unit{font-size:.8rem;color:var(--muted);margin-bottom:8px}
.cart-item .row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.cart-item .line-total{font-weight:800}
.link-danger{background:none;border:0;color:var(--danger);font-size:.83rem;font-weight:600;display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:6px 4px}
.link-danger svg{width:15px;height:15px}
.summary{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);position:sticky;top:calc(var(--header-h) + 12px)}
.summary h3{font-size:1.05rem;margin-bottom:14px}
.sum-row{display:flex;justify-content:space-between;font-size:.92rem;padding:6px 0;color:var(--muted)}
.sum-row.total{font-size:1.1rem;font-weight:800;color:var(--ink);border-top:1px solid var(--line);margin-top:8px;padding-top:12px}

/* ---------- checkout ---------- */
.steps-bar{display:flex;gap:6px;margin:18px 0 22px}
.steps-bar .s{flex:1;text-align:center;font-size:.78rem;font-weight:700;color:var(--muted);padding-top:10px;position:relative}
.steps-bar .s::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;border-radius:2px;background:var(--line)}
.steps-bar .s.done{color:var(--brand)} .steps-bar .s.done::before{background:var(--brand)}
.steps-bar .s.now{color:var(--ink)} .steps-bar .s.now::before{background:var(--ink)}
.auth-tabs{display:flex;gap:8px;margin-bottom:18px}
.auth-tabs button{flex:1;min-height:48px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);font-weight:700}
.auth-tabs button[aria-selected="true"]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-dark)}

/* ---------- order success ---------- */
.success-wrap{max-width:560px;margin:0 auto;text-align:center;padding:36px 0}
.success-ic{width:84px;height:84px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center;margin:0 auto 18px}
.success-ic svg{width:42px;height:42px}
.order-no{font-size:1.6rem;font-weight:800;letter-spacing:.02em;background:var(--surface);border:1.5px dashed var(--brand);border-radius:var(--radius);padding:14px;margin:18px 0;color:var(--brand-dark)}
.wa-btn{background:#1faa53;color:#fff}
.wa-btn:hover{background:#178a43;color:#fff;text-decoration:none}

/* ---------- dashboard ---------- */
.dash-layout{display:grid;gap:18px}
@media(min-width:860px){.dash-layout{grid-template-columns:230px 1fr;align-items:start}}
.dash-nav{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px;display:flex;gap:4px;overflow-x:auto}
@media(min-width:860px){.dash-nav{flex-direction:column;position:sticky;top:calc(var(--header-h) + 12px)}}
.dash-nav button{flex:none;display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 14px;border:0;border-radius:9px;background:transparent;font-weight:600;color:var(--ink);font-size:.92rem;white-space:nowrap}
.dash-nav button svg{width:19px;height:19px}
.dash-nav button[aria-selected="true"]{background:var(--brand-soft);color:var(--brand-dark)}
.order-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:12px;box-shadow:var(--shadow)}
.order-card .top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.order-card .no{font-weight:800}
.order-card .meta{font-size:.82rem;color:var(--muted)}
.order-card .items{font-size:.87rem;color:var(--muted);margin:8px 0}
.order-card .foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.timeline{list-style:none;margin:6px 0 0;padding:0}
.timeline li{position:relative;padding:0 0 18px 28px;font-size:.88rem}
.timeline li::before{content:"";position:absolute;left:8px;top:22px;bottom:0;width:2px;background:var(--line)}
.timeline li:last-child::before{display:none}
.timeline .dot{position:absolute;left:2px;top:4px;width:14px;height:14px;border-radius:50%;background:var(--brand);border:3px solid var(--brand-soft)}
.timeline .t-status{font-weight:700;text-transform:capitalize}
.timeline .t-meta{color:var(--muted);font-size:.78rem}
.timeline .t-note{font-size:.83rem;color:#2b3546;margin-top:2px}
.addr-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:12px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.addr-card p{font-size:.88rem}
.addr-card .acts{display:flex;gap:6px;flex:none}

/* ---------- static pages ---------- */
.prose{max-width:720px}
.prose h2{font-size:1.25rem;margin:26px 0 8px}
.prose h3{font-size:1.05rem;margin:20px 0 6px}
.prose p,.prose li{color:#2b3546;font-size:.95rem;margin-bottom:10px}
.prose ul{padding-left:20px}
.contact-grid{display:grid;gap:12px}
@media(min-width:700px){.contact-grid{grid-template-columns:repeat(3,1fr)}}

/* ---------- toast ---------- */
.toast-wrap{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px)}
.toast{display:flex;align-items:center;gap:10px;background:var(--ink);color:#fff;padding:13px 16px;border-radius:12px;font-size:.9rem;font-weight:600;box-shadow:var(--shadow);animation:tin .18s ease}
.toast svg{width:19px;height:19px;flex:none}
.toast.ok{background:var(--ok)} .toast.err{background:var(--danger)}
@keyframes tin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:#c6cfdd;margin-top:40px}
.foot-grid{display:grid;gap:24px;padding:36px 0 24px}
@media(min-width:700px){.foot-grid{grid-template-columns:1.4fr 1fr 1fr}}
.site-footer h4{color:#fff;font-size:.95rem;margin-bottom:12px}
.site-footer a{color:#c6cfdd;font-size:.88rem;padding:7px 0;min-height:44px;display:flex;align-items:center}
.site-footer a:hover{color:#fff}
.foot-brand p{font-size:.85rem;max-width:34ch}
.foot-bottom{border-top:1px solid #2a3547;padding:16px 0;font-size:.8rem;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001s !important;transition-duration:.001s !important}
}
