/* POKA store styles */
:root {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f5f5f3;
  --bg: #fff;
  --accent: #1f3b2a; /* jungle green */
  --danger: #b3261e;
  --radius: 10px;
  --max: 1240px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* announcement + header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 9px 12px; letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .02em; padding: 8px 12px; text-decoration: none; font-size: 18px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 15px; color: #333; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; background: none; border: 0; padding: 8px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.bag-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.bag-count[hidden] { display: none; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; min-height: min(78vh, 640px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #3f6b3a 0%, transparent 55%), radial-gradient(ellipse at 75% 80%, #2c4a26 0%, transparent 60%), linear-gradient(160deg, #1d3320, #0e1a10);
  background-size: cover; background-position: center; }
/* Banner image — the POKA wordmark is real text on top, in Inter */
.hero.has-image { min-height: 0; height: clamp(460px, 54.5vw, 82vh);
  background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.32)), url(/images/hero.webp) center / cover no-repeat, #1d3320; }
.hero h1 { font-family: "Inter", system-ui, sans-serif; font-weight: 400; font-size: clamp(110px, 22vw, 300px); line-height: .85; margin: 0; letter-spacing: .02em; color: rgba(255,255,255,.82); text-shadow: 0 8px 40px rgba(0,0,0,.35); }
.hero p { margin: 10px 0 26px; font-size: 17px; opacity: .9; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; transition: transform .15s, background .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.85); color: #fff; backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }

/* sections */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
h1.page-title, .section-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.section-head a { font-size: 14px; color: var(--muted); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.card { text-decoration: none; display: block; }
.card-media { position: relative; background: var(--soft); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; right: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.badge.dark { background: var(--ink); color: #fff; }
.card h3 { font-size: 15px; font-weight: 600; margin: 14px 0 2px; text-transform: uppercase; letter-spacing: .02em; }
.card .price { font-size: 14px; color: var(--muted); }
.card .sizes-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 26px; font-size: 14px; color: var(--muted); }
.toolbar select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.trust div { font-size: 14px; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-size: 15px; }

/* product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 40px 0 72px; }
.product-media { background: var(--soft); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.product-info h1 { font-size: clamp(30px, 3.4vw, 44px); margin: 0 0 6px; letter-spacing: -.02em; text-transform: uppercase; }
.product-info .price { font-size: 20px; margin-bottom: 22px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--muted); font-size: 13px; }
.size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 8px; }
.size-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 13px 0; font-weight: 600; position: relative; }
.size-btn:hover:not(:disabled) { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-btn:disabled { color: #bbb; background: repeating-linear-gradient(135deg, #fff 0 6px, #f6f6f6 6px 12px); cursor: not-allowed; text-decoration: line-through; }
.stock-note { min-height: 20px; font-size: 13px; color: var(--danger); margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 40px; height: 44px; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; }
.buy-row .btn { flex: 1; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; font-weight: 400; }
.details details[open] summary::after { content: "–"; }
.details p, .details li { color: #444; font-size: 14px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.size-table th, .size-table td { text-align: center; padding: 8px; border-bottom: 1px solid var(--line); }

/* cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 50; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 24px; }
.ship-bar { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ship-bar .bar { height: 5px; background: var(--soft); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.ship-bar .bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; object-fit: contain; background: var(--soft); border-radius: 8px; mix-blend-mode: multiply; }
.line h4 { margin: 0; font-size: 14px; text-transform: uppercase; }
.line .meta { font-size: 13px; color: var(--muted); }
.line .qty button { width: 30px; height: 32px; font-size: 15px; }
.line .right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.remove { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.totals { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.small { font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 70px 0; }
.empty h3 { font-size: 22px; margin: 0 0 6px; }
.error-msg { color: var(--danger); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.pay-icons { display: flex; justify-content: center; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--muted); letter-spacing: .03em; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .signup input { font: inherit; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.form input:focus, .form textarea:focus, .signup input:focus { outline: none; border-color: var(--ink); }
.form textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-top: 12px; }
.notice.ok { background: #eef6ef; color: #1d5b2a; }
.notice.err { background: #fbeceb; color: var(--danger); }

/* signup + footer */
.signup-band { background: var(--soft); }
.signup-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.signup-band h2 { margin: 0 0 4px; font-size: 28px; }
.signup-band p { margin: 0; color: var(--muted); }
.signup { position: relative; }
.signup input { border-radius: 999px; padding-right: 56px; }
.signup button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 18px; }
footer.site-footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 28px; flex-wrap: wrap; }
footer.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--ink); }

/* prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: #333; }
.center { text-align: center; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* skeleton */
.skel { background: linear-gradient(90deg, #f2f2f0 25%, #e9e9e6 50%, #f2f2f0 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); aspect-ratio: 1; }
@keyframes sh { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .signup-band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: grid; }
  .site-header .wrap { gap: 10px; }
  .form { grid-template-columns: 1fr; }
  .grid { gap: 22px 12px; }
}

/* account */
.account { max-width: 820px; padding-top: 44px; padding-bottom: 80px; }
.signin { max-width: 420px; margin: 0 auto; text-align: center; }
.stack { display: grid; gap: 12px; margin-top: 18px; }
.stack input { font: inherit; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; }
.stack input:focus { outline: none; border-color: var(--ink); }
.code-input { text-align: center; letter-spacing: .5em; font-size: 24px !important; }
.perks { text-align: left; display: inline-block; margin-top: 26px; line-height: 1.9; }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.acct-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.acct-tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.acct-tabs button.on { color: var(--ink); border-color: var(--ink); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.order-top { display: flex; justify-content: space-between; gap: 12px; }
.order-top .right { text-align: right; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff3d6; color: #7a5200; margin-bottom: 4px; }
.status.done { background: #e5f3e7; color: #1d5b2a; }
.order-items { display: grid; gap: 10px; margin-top: 12px; }
.oi { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.oi img { width: 54px; height: 54px; object-fit: contain; background: var(--soft); border-radius: 8px; mix-blend-mode: multiply; }
.card-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acct-foot { margin-top: 40px; }

/* account menu (top-right person icon) */
.acct-menu-wrap { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.12); padding: 8px; z-index: 35; }
.acct-menu .am-head { padding: 10px 12px 12px; font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu a:not(.btn), .acct-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; background: none; border: 0; color: var(--ink); }
.acct-menu a:not(.btn):hover, .acct-menu button:hover { background: var(--soft); }
.acct-menu .btn { margin: 6px 0 4px; }

/* contact permission boxes in the bag */
.consent { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 4px; margin: 0 0 14px; }
.consent legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.consent label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; font-size: 14px; cursor: pointer; }
.consent input { width: 16px; height: 16px; accent-color: var(--ink); }
.consent .small { margin: 6px 0; }

/* settings tab */
h2.sub { font-size: 20px; margin: 6px 0 4px; }
h2.sub + .small { margin-top: 0; }
.prefs { display: grid; gap: 0; margin: 14px 0 6px; max-width: 520px; }
.prefs .btn { justify-self: start; margin-top: 16px; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pref-row > span:first-child { display: grid; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: #d5d5d2; border-radius: 999px; transition: .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.btn.danger { color: var(--danger); border-color: #e8c4c1; }
[data-panel="settings"] h2.sub:not(:first-child) { margin-top: 40px; }

.sub-tabs { display: inline-flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.sub-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.sub-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.del-box { border: 1px solid #f0d2cf; background: #fdf6f5; border-radius: 12px; padding: 18px 20px; max-width: 520px; margin-top: 14px; }
.del-box ul { margin: 6px 0 12px; padding-left: 20px; }
.del-box form { display: grid; gap: 8px; margin-top: 14px; }
.del-box input { font: inherit; padding: 12px 14px; border: 1.5px solid #e8c4c1; border-radius: 8px; max-width: 260px; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); justify-self: start; }
