/* Verano Nuts – shared base styles. Themes define the CSS variables and the layout. Mobile first. */
:root {
  --c-primary: #2f7d32; --c-primary-dark: #22602a; --c-primary-soft: #e3f2e1;
  --c-accent: #f28c28; --c-accent-dark: #d9731a;
  --c-bg: #f4efe6; --c-surface: #ffffff; --c-surface-2: #faf7f1;
  --c-text: #1f2a1f; --c-muted: #6b6f66; --c-border: #e4ded2;
  --c-danger: #c0392b; --c-success: #2e7d32; --c-warn: #b7791f;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 6px 20px rgba(30, 40, 20, .10); --shadow-sm: 0 2px 6px rgba(30, 40, 20, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --container: 1180px; --gutter: 16px;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); } h2 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--c-muted); } .small { font-size: .85rem; } .center { text-align: center; } .inline { display: inline; }
.is-hidden, [hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 999; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 880px; } .container.narrow-xs { max-width: 520px; }
.section { padding: 28px 0; } @media (min-width: 768px) { .section { padding: 44px 0; } }
.page-title { margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--c-muted); max-width: 60ch; }
.req { color: var(--c-danger); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---- cards ---- */
.card { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 18px; border: 1px solid var(--c-border); }
.card.soft { background: var(--c-surface-2); box-shadow: none; }
.card h2 { font-size: 1.2rem; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .12s ease, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 12px rgba(47, 125, 50, .3); }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-accent { background: var(--c-accent); color: #fff; } .btn-accent:hover { background: var(--c-accent-dark); }
.btn-ghost { background: transparent; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-ghost.active, .chip.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; font-size: 1.05rem; padding: 12px 26px; }
.btn-block { width: 100%; display: flex; margin-top: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-added { background: var(--c-success); }
.link-btn { background: none; border: 0; padding: 0; color: var(--c-muted); font: inherit; cursor: pointer; text-decoration: underline; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--c-border); background: var(--c-surface); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--c-text); }
.chip:hover { border-color: var(--c-primary); text-decoration: none; }

/* ---- forms ---- */
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea, .field select {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-text); min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(47, 125, 50, .18); }
.field input[readonly] { background: var(--c-surface-2); color: var(--c-muted); }
.field textarea { resize: vertical; }
.field .hint { display: block; color: var(--c-muted); font-size: .8rem; margin-top: 4px; }
.field-error { display: block; color: var(--c-danger); font-size: .82rem; margin-top: 5px; font-weight: 600; }
.has-error input, .has-error textarea { border-color: var(--c-danger) !important; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; } @media (min-width: 560px) { .field-row { grid-template-columns: 2fr 1fr; } .field-row .field-sm { max-width: 160px; } }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--c-primary); }
.phone-wrap { display: flex; align-items: stretch; }
.phone-prefix { display: flex; align-items: center; padding: 0 12px; background: var(--c-surface-2); border: 1.5px solid var(--c-border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 700; color: var(--c-muted); }
.phone-wrap input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; letter-spacing: .08em; }
fieldset.fs { border: 0; padding: 0; margin: 0 0 22px; }
fieldset.fs legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.step { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: #fff; align-items: center; justify-content: center; font-size: .9rem; }
.choices { display: grid; gap: 8px; }
.choices-inline { grid-template-columns: 1fr 1fr; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer; background: var(--c-surface); }
.choice:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.choice.disabled { opacity: .55; cursor: not-allowed; }
.choice input { margin-top: 3px; accent-color: var(--c-primary); width: 18px; height: 18px; flex: none; }
.choice-body { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; } .choice-body small { color: var(--c-muted); }

/* ---- flash / toast ---- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; border: 1px solid; }
.flash-error { background: #fdecea; color: #8e2a1e; border-color: #f5c6c0; }
.flash-success { background: #e8f5e9; color: #1f5a22; border-color: #bfe3c2; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1f2a1f; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 1200; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--c-primary-dark); } .toast.warn { background: var(--c-warn); }

/* ---- product image / placeholder ---- */
.pimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--c-surface-2); }
.pimg-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 10px; color: #fff; position: relative; overflow: hidden; }
.pimg-ph svg { width: 42%; height: auto; opacity: .9; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.pimg-ph .pimg-label { font-weight: 700; font-size: .78rem; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pimg-ph .pimg-weight { font-size: .7rem; opacity: .85; }
.pimg-ph.cat-roasted { background: linear-gradient(145deg, #f2a65a, #d9731a); }
.pimg-ph.cat-raw { background: linear-gradient(145deg, #7bc96f, #3a8f3d); }
.pimg-ph.cat-dried-fruit { background: linear-gradient(145deg, #ef7a5c, #b8402b); }
.pimg-ph.cat-choco { background: linear-gradient(145deg, #8a5a3a, #4d2d1a); }

/* ---- product gallery ---- */
.gallery-main { transition: opacity .2s; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { flex: 0 0 72px; width: 72px; height: 72px; padding: 0; border: 2px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); overflow: hidden; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--c-primary); }

/* ---- click-to-load video ---- */
.video-facade { margin: 0 0 1.2em; }
.video-facade-btn { position: relative; display: block; width: 100%; aspect-ratio: 560 / 314; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; }
.video-facade-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .3s, opacity .3s; }
.video-facade-btn:hover img { transform: scale(1.03); opacity: 1; }
.video-play { position: absolute; top: 50%; left: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.video-play svg { margin-left: 4px; }
.video-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-weight: 700; text-align: left; font-size: .95rem; }
.video-facade iframe { width: 100%; aspect-ratio: 560 / 314; border-radius: var(--radius); display: block; }
.about-banner { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- product card (layout; themes restyle) ---- */
.pcard { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard-media { position: relative; display: block; }
.pcard-media .pimg { border-radius: 0; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--c-accent); color: #fff; font-size: .7rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.pcard-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-title { font-size: .98rem; margin: 0; } .pcard-title a { color: var(--c-text); }
.pcard-desc { font-size: .82rem; color: var(--c-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; flex-wrap: wrap; }
.pcard-price { display: flex; flex-direction: column; line-height: 1.1; }
.price { font-weight: 800; font-size: 1.1rem; color: var(--c-primary-dark); }
.pcard-weight { font-size: .75rem; color: var(--c-muted); }
.btn-add span { display: none; } @media (min-width: 420px) { .btn-add span { display: inline; } }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- empty state ---- */
.empty-state { text-align: center; padding: 40px 10px; } .empty-ico { width: 72px; height: 72px; margin: 0 auto 12px; color: var(--c-muted); }
.empty-inline a { font-weight: 700; }

/* ---- cart ---- */
.cart-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); align-items: start; }
.cart-line-media .pimg { width: 76px; height: 76px; }
.cart-line-title { font-weight: 700; color: var(--c-text); display: block; }
.cart-line-meta { font-size: .85rem; color: var(--c-muted); }
.cart-line-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.cart-line-total { font-weight: 800; white-space: nowrap; }
.cart-update-row { text-align: right; margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--c-border); border-radius: 999px; overflow: hidden; background: var(--c-surface); }
.qty-btn { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--c-primary-dark); }
.qty input { width: 46px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-summary .row, .checkout-summary .row, .order-meta { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.cart-summary .row.muted { font-size: .9rem; }
.checkout-summary .row.total { border-top: 2px solid var(--c-border); margin-top: 8px; padding-top: 10px; font-size: 1.1rem; }
.free-bar { margin: 14px 0; } .free-bar-track { height: 10px; background: var(--c-border); border-radius: 999px; overflow: hidden; }
.free-bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: 999px; transition: width .4s ease; }
.free-bar-text { font-size: .9rem; font-weight: 600; margin: 6px 0 0; color: var(--c-primary-dark); }

/* ---- checkout ---- */
.checkout-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } .checkout-summary { position: sticky; top: calc(var(--header-h) + 12px); } }
.summary-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.summary-lines li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--c-border); font-size: .95rem; }
.sl-qty { color: var(--c-muted); white-space: nowrap; } .sl-name { flex: 1; } .sl-name small { color: var(--c-muted); } .sl-total { white-space: nowrap; font-weight: 700; }
.checkout-login-hint { background: var(--c-surface-2); padding: 10px 14px; border-radius: var(--radius-sm); }

/* ---- order ---- */
.order-hero { text-align: center; margin-bottom: 16px; } .order-check { width: 72px; height: 72px; margin: 0 auto 10px; color: var(--c-success); }
.order-meta { flex-wrap: wrap; border-bottom: 1px solid var(--c-border); padding-bottom: 12px; margin-bottom: 14px; }
.order-meta > div { display: flex; flex-direction: column; } .order-meta .muted { font-size: .8rem; }
.order-items { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .95rem; }
.order-items td { padding: 8px 4px; border-bottom: 1px solid var(--c-border); vertical-align: top; } .order-items .num { text-align: right; white-space: nowrap; }
.order-items tfoot td { border: 0; } .order-items .total td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--c-border); }
.order-cols { display: grid; gap: 16px; } @media (min-width: 680px) { .order-cols { grid-template-columns: 1fr 1fr; } }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .95rem; } .bank dt { color: var(--c-muted); } .bank dd { margin: 0; } .bank code { font-size: 1rem; background: var(--c-surface-2); padding: 2px 6px; border-radius: 4px; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--c-primary-soft); color: var(--c-primary-dark); }
.status-shipped { background: #e3f0fb; color: #1b4f8a; } .status-delivered { background: #e8f5e9; color: #1f5a22; } .status-cancelled { background: #fdecea; color: #8e2a1e; }

/* ---- profile ---- */
.profile-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; } .profile-head h1 { margin: 0; width: 100%; }
.profile-grid { display: grid; gap: 18px; } @media (min-width: 900px) { .profile-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-row { padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.order-row-main { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .order-row-items { font-size: .85rem; margin: 4px 0; }
.order-row-foot { display: flex; justify-content: space-between; align-items: center; }

/* ---- contact ---- */
.contact-grid { display: grid; gap: 18px; } @media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.big-link { font-size: 1.25rem; font-weight: 800; }
.contact-apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* ---- static pages ---- */
.prose h2 { font-size: 1.15rem; margin-top: 1.4em; } .prose ul { padding-left: 20px; }
.info-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 14px; } .info-table th, .info-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--c-border); }
.debug { text-align: left; white-space: pre-wrap; font-size: .75rem; background: #222; color: #eee; padding: 12px; border-radius: 8px; overflow: auto; }

/* ---- cookie banner ---- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 12px; align-items: center; z-index: 1100; font-size: .9rem; transition: opacity .3s, transform .3s; }
.cookie.bye { opacity: 0; transform: translateY(10px); }
.cookie p { margin: 0; flex: 1; }
@media (min-width: 640px) { .cookie { left: auto; max-width: 440px; } }

/* ---- cart badge ---- */
[data-cart-count] { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: .72rem; font-weight: 800; align-items: center; justify-content: center; }
[data-cart-count].is-zero { opacity: .55; }
[data-cart-count].bump { animation: bump .4s ease; }
@keyframes bump { 30% { transform: scale(1.35); } }

/* ---- facts / quiz ---- */
.fact-text { transition: opacity .15s; opacity: 0; } .fact-text.in { opacity: 1; }
.quiz-progress { height: 6px; background: var(--c-border); border-radius: 999px; overflow: hidden; margin-bottom: 12px; } .quiz-progress span { display: block; height: 100%; background: var(--c-primary); transition: width .3s; }
.quiz-q { font-weight: 700; font-size: 1.05rem; }
.quiz-answers { display: grid; gap: 8px; } @media (min-width: 560px) { .quiz-answers { grid-template-columns: 1fr 1fr; } }
.quiz-answers .btn { justify-content: flex-start; text-align: left; }
.quiz-result { font-size: 1.6rem; color: var(--c-primary-dark); margin: 0 0 6px; } .quiz-result-kicker { margin: 0; color: var(--c-muted); font-weight: 600; }
.quiz-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---- theme switch (preview) ---- */
.theme-switch { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 1150; display: flex; flex-direction: column; gap: 4px; background: rgba(0,0,0,.6); padding: 6px; border-radius: 10px 0 0 10px; }
.theme-switch a { color: #fff; font-size: .7rem; font-weight: 800; padding: 6px 8px; border-radius: 6px; text-decoration: none; }
.theme-switch a.active { background: var(--c-accent); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
