/* =========================================================
   Blesh — storefront styles
   Palette: ivory cream · maroon #5E2124 · deep #48181B · sage #86966C · gold
   ========================================================= */
:root {
  --ivory: #FAF6EE;
  --cream: #F3EBDD;
  --paper: #FFFDF9;
  --maroon: #5E2124;
  --maroon-deep: #48181B;
  --sage: #86966C;
  --sage-soft: #E7EBDD;
  --gold: #C29B57;
  --gold-soft: #EADCC0;
  --ink: #2A1F1C;
  --muted: #6F625C;
  --line: #E6DCCB;
  --ok: #3F6B3A;
  --warn: #8A5A12;
  --err: #9B2C2C;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(72, 24, 27, .08);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ivory); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-deep); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--maroon-deep); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin-bottom: .8em; display: block; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 500 1rem/1 var(--sans); letter-spacing: .04em;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--gold); background: var(--maroon); color: #fff; cursor: pointer;
  text-decoration: none; transition: background .2s, transform .1s; }
.btn:hover { background: var(--maroon-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--maroon); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- header */
.announce { background: var(--maroon-deep); color: var(--gold-soft); text-align: center; font-size: .82rem; letter-spacing: .06em; padding: 8px 16px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.logo { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--maroon); text-decoration: none; letter-spacing: .02em; line-height: 1; }
.logo small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin-top: 4px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; letter-spacing: .03em; }
.nav a:hover, .nav a.active { color: var(--maroon); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: inline-flex; color: var(--maroon); padding: 6px; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--maroon); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--paper); }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--maroon); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
}

/* ---------- flash */
.flash { padding: 14px 18px; border-radius: 10px; margin: 18px 0; font-size: .95rem; border: 1px solid; }
.flash-success { background: #EEF4EA; color: var(--ok); border-color: #CFE0C6; }
.flash-error { background: #FBEDEC; color: var(--err); border-color: #EFCFCB; }
.flash-warning { background: #FBF3E4; color: var(--warn); border-color: #EFDDB8; }

/* ---------- hero */
.hero { background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 55%, var(--sage-soft) 100%); padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 1/1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0%, var(--gold-soft) 60%, transparent 61%); display: grid; place-items: center; }
.hero-art img { width: 70%; filter: drop-shadow(0 30px 40px rgba(72,24,27,.25)); }
@media (max-width: 860px) { .hero { padding: 44px 0 52px; } .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 360px; margin: 0 auto; } }

/* ---------- trust strip */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-family: var(--serif); color: var(--maroon); font-size: 1.05rem; margin-bottom: 2px; }
.trust-item span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; } .trust-item { border-top: 1px solid var(--line); } }

/* ---------- sections */
.section { padding: 80px 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }

/* ---------- product cards */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 1/1; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img[src$=".svg"] { width: 60%; height: auto; object-fit: contain; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body h3 a { text-decoration: none; color: inherit; }
.card-body p { font-size: .93rem; color: var(--muted); flex: 1; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .now { font-size: 1.3rem; font-weight: 600; color: var(--maroon-deep); }
.price .mrp { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price .off { color: var(--sage); font-weight: 500; font-size: .88rem; }
.badge { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sage-soft); color: #4E5B3A; }
.badge-out { background: #F1E4E4; color: var(--err); }

/* ---------- story band */
.story-band { background: var(--maroon-deep); color: var(--gold-soft); }
.story-band h2 { color: #fff; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-points { display: grid; gap: 22px; }
.story-point { border-left: 2px solid var(--gold); padding-left: 18px; }
.story-point strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.12rem; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- product page */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 26px 0 70px; align-items: start; }
.gallery-main { background: var(--cream); border-radius: var(--radius); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img[src$=".svg"] { width: 55%; height: auto; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: var(--cream); }
.thumbs button.active { border: 2px solid var(--maroon); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .tagline { font-size: 1.1rem; color: var(--muted); }
.variant-picker { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.variant-picker label { cursor: pointer; }
.variant-picker input { position: absolute; opacity: 0; }
.variant-picker span { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 18px; min-width: 110px; text-align: center; background: var(--paper); }
.variant-picker span b { display: block; font-weight: 600; }
.variant-picker span small { color: var(--muted); }
.variant-picker input:checked + span { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(94,33,36,.1); }
.variant-picker input:focus-visible + span { outline: 2px solid var(--gold); }
.variant-picker input:disabled + span { opacity: .45; text-decoration: line-through; }
.buy-row { display: flex; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { width: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--maroon); }
.qty input { width: 44px; text-align: center; border: 0; font: inherit; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; min-width: 160px; }
.pin-check { margin: 20px 0; padding: 16px 18px; background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; }
.pin-check form { display: flex; gap: 8px; }
.pin-check input { flex: 1; }
.pin-result { margin-top: 8px; font-size: .9rem; }
.highlights { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.highlights li { padding-left: 28px; position: relative; }
.highlights li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--sage-soft); border: 3px solid var(--sage); }
.tabs { border-top: 1px solid var(--line); margin-top: 26px; }
.tabs details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.tabs summary { cursor: pointer; padding: 14px 0; font-family: var(--serif); font-size: 1.12rem; color: var(--maroon-deep); list-style: none; display: flex; justify-content: space-between; }
.tabs summary::after { content: '+'; font-family: var(--sans); color: var(--gold); font-size: 1.4rem; line-height: 1; }
.tabs details[open] summary::after { content: '–'; }
.tabs .tab-body { padding-bottom: 18px; color: var(--muted); }
.nutrition { width: 100%; border-collapse: collapse; font-size: .95rem; }
.nutrition td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.nutrition td:last-child { text-align: right; font-weight: 500; color: var(--ink); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- forms */
label.f { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(94,33,36,.1); }
.field { margin-bottom: 16px; }
.field .err { color: var(--err); font-size: .83rem; margin-top: 4px; }
.field.has-err input, .field.has-err select { border-color: var(--err); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row-2, .row-3 { grid-template-columns: 1fr; gap: 0; } }

/* ---------- cart & checkout */
.page-title { padding: 40px 0 10px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding-bottom: 80px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 1.15rem; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--cream); }
.cart-line .name { font-family: var(--serif); color: var(--maroon-deep); font-size: 1.05rem; text-decoration: none; }
.cart-line .line-total { font-weight: 600; text-align: right; }
.cart-line .qty { margin-top: 8px; }
.totals { width: 100%; border-collapse: collapse; }
.totals td { padding: 7px 0; }
.totals td:last-child { text-align: right; }
.totals tr.grand td { border-top: 1px solid var(--line); padding-top: 14px; font-size: 1.2rem; font-weight: 600; color: var(--maroon-deep); }
.ship-hint { background: var(--sage-soft); color: #4E5B3A; padding: 10px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 14px; }
.coupon-form { display: flex; gap: 8px; margin-top: 14px; }
.coupon-form input { text-transform: uppercase; }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; background: #fff; }
.pay-option input { margin-top: 5px; accent-color: var(--maroon); }
.pay-option:has(input:checked) { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(94,33,36,.08); }
.pay-option.disabled { opacity: .55; cursor: not-allowed; }
.pay-option b { display: block; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.mini-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .95rem; }
.empty { text-align: center; padding: 70px 20px; }

/* ---------- order / thank you */
.status-steps { display: flex; gap: 0; margin: 26px 0; counter-reset: s; }
.status-steps li { list-style: none; flex: 1; text-align: center; position: relative; font-size: .82rem; color: var(--muted); padding-top: 34px; }
.status-steps li::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--line); z-index: 1; }
.status-steps li::after { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.status-steps li:first-child::after { display: none; }
.status-steps li.done { color: var(--maroon-deep); font-weight: 500; }
.status-steps li.done::before { background: var(--maroon); box-shadow: 0 0 0 4px rgba(94,33,36,.15); }
.status-steps li.done::after { background: var(--maroon); }
.status-steps { padding: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.two-col .panel + .panel { margin-top: 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- content pages */
.prose { max-width: 760px; margin: 0 auto; padding: 20px 0 80px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- footer */
.site-footer { background: var(--maroon-deep); color: #E8D9C7; padding: 60px 0 26px; font-size: .93rem; }
.site-footer a { color: #E8D9C7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: var(--gold-soft); font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { font-family: var(--serif); font-size: 2rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #BFA99A; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--maroon-deep); color: #fff; padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow); z-index: 100; transition: transform .3s, visibility .3s; visibility: hidden; font-size: .95rem; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.toast a { color: var(--gold-soft); font-weight: 500; white-space: nowrap; }

/* ---------- whatsapp */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 50; }
