/* ===== Terma Coffee — storefront ===== */
:root {
  --bg: #14100c;             /* warm near-black coffee */
  --surface: #1e1813;        /* roasted brown surface */
  --surface-2: #271f18;
  --accent: #c99a53;          /* warm gold */
  --accent-2: #e0b56b;
  --text: #f5efe7;
  --muted: #b0a596;
  --border: #342a21;
  --green: #25d366;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body {
  color: var(--text); line-height: 1.6;
  /* Solid warm-brown backdrop (no images) */
  background: linear-gradient(160deg, #3b2718 0%, #2a1c12 45%, #1d130c 100%) fixed;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* NAVBAR */
header {
  background: rgba(17,17,17,.95); border-bottom: 1px solid var(--border);
  position: fixed; top: 0; width: 100%; z-index: 1000; backdrop-filter: blur(10px);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 11px; cursor: pointer; font-size: 18px; }
.brand-group { display: flex; flex-direction: column; cursor: pointer; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-menu a:hover { color: var(--accent); }
.cart-btn { position: relative; background: var(--accent); color: #1a1a1a; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: transform .2s; }
.cart-btn:hover { transform: scale(1.08); }
.cart-count { position: absolute; top: -4px; right: -4px; background: #e0392b; color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }

/* HERO */
.hero { padding: 130px 20px 30px; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: 1px; }
.hero h1 span { color: var(--accent); }

/* FEATURED beans & powder */
.featured { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { position: relative; height: 280px; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.feat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feat-card:hover img { transform: scale(1.07); }
.feat-overlay { position: relative; z-index: 2; width: 100%; padding: 26px; background: linear-gradient(180deg, transparent, rgba(15,10,6,.45) 40%, rgba(15,10,6,.9)); }
.feat-kicker { display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.feat-overlay h2 { font-size: 2rem; color: #fff; line-height: 1.1; }
.feat-overlay p { color: #e9dcc9; font-size: 14px; margin-top: 4px; }
.feat-cta { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 800; font-size: 14px; transition: gap .2s; }
.feat-card:hover .feat-cta { color: var(--accent-2); }
/* Mobile: keep all three featured boxes in a row, compact and tidy */
@media (max-width: 680px) {
  .featured { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
  .feat-card { height: 150px; border-radius: 14px; }
  .feat-overlay { padding: 12px 10px; }
  .feat-overlay h2 { font-size: 1rem; line-height: 1.15; }
  .feat-kicker, .feat-overlay p, .feat-cta { display: none; }
}
@media (max-width: 400px) {
  .feat-card { height: 124px; }
  .feat-overlay h2 { font-size: .82rem; }
}

/* BUTTONS */
.btn { font: inherit; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1a1a; box-shadow: 0 8px 22px rgba(201,154,83,.3); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-whatsapp { background: var(--green); color: #fff; }
.full { width: 100%; }

/* CATALOG */
.catalog { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: 1.9rem; color: var(--accent); }
.section-head p { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.machine-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.mf-chip { padding: 7px 16px; border-radius: 99px; font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: all .2s; }
.mf-chip:hover { color: var(--text); }
.mf-chip.active { background: var(--accent); color: #1a1a1a; border-color: transparent; }

/* PRODUCT CARD */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card-visual { height: 175px; position: relative; overflow: hidden; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-visual img { transform: scale(1.07); }
.card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,15,11,.55)); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.card-body .ptag { font-size: 12px; color: var(--accent); font-weight: 600; }
.card-body .pdesc { font-size: 12px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { color: var(--accent); font-weight: 800; font-size: 16px; }
.price small { color: var(--muted); font-weight: 500; font-size: 11px; }
.add-mini { background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 16px; transition: all .2s; }
.add-mini:hover { background: var(--accent); color: #1a1a1a; }

/* OVERLAY shared */
.overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.close-x { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 30px; cursor: pointer; line-height: 1; z-index: 5; }
.close-x:hover { color: var(--text); }

/* PRODUCT DETAIL */
.product-detail { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: min(820px, 100%); max-height: 90vh; overflow-y: auto; position: relative; animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.95); } }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
.detail-visual { overflow: hidden; min-height: 320px; }
.detail-visual img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.detail-body { padding: 28px; }
.detail-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.detail-body h3 { font-size: 1.5rem; margin: 6px 0; }
.detail-tag { color: var(--muted); margin-bottom: 14px; }
.detail-desc { color: #ddd; font-size: 14px; margin-bottom: 18px; }
.detail-opt { margin-bottom: 16px; }
.opt-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.detail-variants, .detail-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip, .color-chip { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 13px; transition: all .2s; }
.variant-chip:hover, .color-chip:hover { color: var(--text); }
.variant-chip.active, .color-chip.active { border-color: var(--accent); color: var(--accent); background: rgba(201,154,83,.1); }
.color-chip { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: inline-block; }
.sw-black { background: #1c1c1c; }
.sw-white { background: #f3f3f3; }
.sw-red { background: #d33; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.spec-table td { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.detail-buy { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qty-control { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 38px; height: 38px; background: var(--surface-2); border: none; color: var(--text); font-size: 18px; cursor: pointer; }
.qty-control button:hover { background: var(--accent); color: #1a1a1a; }
.qty-control span { min-width: 34px; text-align: center; font-weight: 700; }
.detail-price span { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

/* CART DRAWER */
.drawer-overlay { justify-items: end; padding: 0; }
.cart { background: var(--surface); width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; border-left: 1px solid var(--border); animation: slide .3s ease; }
@keyframes slide { from { transform: translateX(100%); } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); position: relative; }
.cart-head h3 { font-size: 1.2rem; }
.cart-head .close-x { position: static; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.ci { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.ci-thumb { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-info { flex: 1; }
.ci-info h4 { font-size: 14px; font-weight: 600; }
.ci-info .ci-var { font-size: 12px; color: var(--muted); }
.ci-info .ci-price { font-size: 13px; color: var(--accent); margin-top: 2px; }
.ci-qty { display: flex; align-items: center; gap: 6px; }
.ci-qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.ci-qty button:hover { background: var(--accent); color: #1a1a1a; }
.ci-rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.ci-rm:hover { color: #e0392b; }
.cart-foot { padding: 20px; border-top: 1px solid var(--border); }
.cart-line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.cart-line.muted { color: var(--muted); }
.cart-line.total { font-size: 18px; font-weight: 800; color: var(--accent); margin: 12px 0 16px; }

/* CHECKOUT */
.checkout, .success { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: min(440px, 100%); max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 30px; position: relative; animation: pop .3s; }
.checkout h3, .success h3 { font-size: 1.4rem; margin-bottom: 18px; }
.checkout label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.checkout input, .checkout textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; outline: none; resize: vertical; }
.checkout input:focus, .checkout textarea:focus { border-color: var(--accent); }
.checkout-summary { background: var(--surface-2); border-radius: 10px; padding: 14px; font-size: 13px; margin: 6px 0 18px; }
.checkout-summary .cs-line { display: flex; justify-content: space-between; margin-bottom: 5px; }
.checkout-summary .cs-total { font-weight: 800; color: var(--accent); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.checkout-fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* payment method picker */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.pay-opt { cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-box { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); transition: border-color .2s, background .2s; height: 100%; }
.pay-box i { font-size: 20px; color: var(--accent); margin-bottom: 3px; }
.pay-box strong { font-size: 14px; }
.pay-box small { font-size: 11px; color: var(--muted); }
.pay-opt input:checked + .pay-box { border-color: var(--accent); background: rgba(201,154,83,.12); box-shadow: 0 0 0 1px var(--accent) inset; }

/* payment note on success screen */
.pay-note { border-radius: 12px; padding: 16px; margin-bottom: 14px; text-align: center; font-size: 14px; }
.pay-note i { font-size: 24px; margin-bottom: 6px; display: block; }
.pay-note p { color: var(--text); margin-bottom: 10px; }
.pay-note.online { background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.35); }
.pay-note.online i { color: var(--green); }
.pay-note.cod { background: rgba(201,154,83,.1); border: 1px solid rgba(201,154,83,.3); }
.pay-note.cod i { color: var(--accent); }
.pay-note.cod p { margin-bottom: 0; }

/* SUCCESS */
.success { text-align: center; }
.success-check { width: 70px; height: 70px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 18px; font-size: 32px; color: #fff; animation: pop .4s; }
.success p { color: var(--muted); margin-bottom: 20px; }
.success .btn { margin-bottom: 10px; }

/* TRACKING */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: min(520px, 100%); margin: 0 auto; padding: 30px; position: relative; }
.panel h3 { font-size: 1.35rem; margin-bottom: 6px; color: var(--accent); }
.track-hint { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.track-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.track-form input { flex: 1; min-width: 120px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; outline: none; }
.track-form input:focus { border-color: var(--accent); }
.track-form .btn { padding: 11px 22px; }
.track-err { color: #ff6b5e; font-size: 13px; margin-top: 10px; }

.track-card { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 20px; animation: fade .3s; }
.track-card .tc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.track-card .tc-top h4 { font-size: 1.05rem; }
.track-card .tc-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* timeline */
.timeline { position: relative; padding-left: 6px; }
.tl-step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -4px; width: 2px; background: var(--border); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); border: 2px solid var(--border); color: var(--muted); z-index: 1; }
.tl-text h5 { font-size: 14px; font-weight: 700; }
.tl-text p { font-size: 12px; color: var(--muted); }
/* completed steps */
.tl-step.done .tl-dot { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
.tl-step.done::before { background: var(--accent); }
.tl-step.done .tl-text h5 { color: var(--text); }
/* current step */
.tl-step.current .tl-dot { background: var(--accent); border-color: var(--accent-2); color: #1a1a1a; box-shadow: 0 0 0 5px rgba(201,154,83,.22); animation: pulse 1.6s infinite; }
.tl-step.current .tl-text h5 { color: var(--accent-2); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(201,154,83,.22); } 50% { box-shadow: 0 0 0 9px rgba(201,154,83,.06); } }
/* cancelled banner */
.tl-cancelled { background: rgba(224,57,43,.12); border: 1px solid rgba(224,57,43,.4); color: #ff8a7e; border-radius: 10px; padding: 14px; text-align: center; font-weight: 600; }
.tc-total { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-weight: 800; color: var(--accent); }
.pill { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.pill.s-pending    { background: rgba(201,154,83,.18); color: var(--accent); }
.pill.s-confirmed  { background: rgba(74,168,255,.18);  color: #6bb5ff; }
.pill.s-packed     { background: rgba(167,139,250,.20); color: #c4b5fd; }
.pill.s-on_the_way { background: rgba(224,181,107,.22); color: var(--accent-2); }
.pill.s-delivered  { background: rgba(37,211,102,.18);  color: var(--green); }
.pill.s-cancelled  { background: rgba(224,57,43,.18);   color: #ff8a7e; }

/* CONTACT */
.contact-section { max-width: 1000px; margin: 40px auto; padding: 60px 20px; text-align: center; }
.contact-section h2 { font-size: 2rem; color: var(--accent); }
.contact-lead { color: var(--muted); margin: 10px 0 34px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.social-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s, border-color .2s; }
.social-card i { font-size: 38px; margin-bottom: 6px; }
.social-card span { font-weight: 700; }
.social-card small { color: var(--muted); }
.social-card:hover { transform: translateY(-5px); }
.social-card.whatsapp:hover { border-color: #25d366; } .social-card.whatsapp i { color: #25d366; }
.social-card.instagram:hover { border-color: #e1306c; } .social-card.instagram i { color: #e1306c; }
.social-card.facebook:hover { border-color: #1877f2; } .social-card.facebook i { color: #1877f2; }
.social-card.tiktok:hover { border-color: #00f2fe; } .social-card.tiktok i { color: #69C9D0; }
.contact-info { margin-top: 28px; font-size: 1.15rem; font-weight: 600; }
.contact-label { color: #b9762f; }
.contact-number { color: var(--green); }

/* STORY */
.story { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: min(720px, 100%); max-height: 88vh; overflow-y: auto; padding: 40px; position: relative; animation: pop .3s; }
.story h2 { color: var(--accent); text-align: center; margin-bottom: 26px; font-size: 1.9rem; }
.story p { color: #ddd; margin-bottom: 18px; text-align: justify; }
.story-footer-brand { text-align: center; font-style: italic; color: var(--accent); margin-top: 20px; }

/* FOOTER */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 30px 20px; text-align: center; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }

/* TOASTS */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 3000; }
.toast { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 13px 20px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: tin .3s, tout .3s 2.7s forwards; }
.toast.err { border-left-color: #e0392b; }
@keyframes tin { from { opacity: 0; transform: translateY(20px); } }
@keyframes tout { to { opacity: 0; transform: translateY(20px); } }

/* ============ MOBILE ============ */
@media (max-width: 960px) {
  /* hamburger nav (switches earlier now that the links are neon buttons) */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 6px 18px 12px; box-shadow: 0 16px 30px rgba(0,0,0,.45);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { font-size: 16px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav-menu a:last-child { border-bottom: none; }
}

@media (max-width: 680px) {
  .brand-name { font-size: 19px; }
  .brand-tag { font-size: 10px; }
  .hero { padding: 104px 16px 24px; }

  /* product detail becomes a single column */
  .detail-grid { grid-template-columns: 1fr; }
  .detail-visual { min-height: 200px; }
  .product-detail { border-radius: 16px; }
  .detail-body { padding: 22px; }

  /* tighter sections */
  .catalog { padding: 34px 16px; }
  .section-head h2 { font-size: 1.5rem; }
  .contact-section { padding: 44px 16px; }

  /* 2-up product cards on phones */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-visual { height: 130px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 14px; }
  .card-body .pdesc { -webkit-line-clamp: 2; }

  /* social cards: one neat row of boxes (like the featured cards up top) */
  .social-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .social-card { padding: 16px 4px; gap: 4px; }
  .social-card i { font-size: 24px; margin-bottom: 2px; }
  .social-card span { font-size: 11px; }
  .social-card small { display: none; }

  /* full-height cart on phones */
  .cart { width: 100%; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  /* keep social as a single tidy row of 4 boxes even on small phones */
}

/* ============ SEPARATE PAGES ============ */
.page-hero { padding: 120px 20px 10px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: 1px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--muted); margin-top: 6px; }
.page-body { padding: 30px 20px 60px; }
/* keep the footer at the bottom of the screen on short pages */
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
.catalog { padding-top: 30px; }
.contact-section { margin-top: 10px; padding-top: 30px; }
@media (max-width: 680px) {
  .page-hero { padding: 100px 16px 6px; }
  .page-body { padding: 24px 16px 44px; }
}

/* ============ BROWN NEON THEME ============ */
:root {
  --neon: #cf7a30;                       /* glowing brown-orange tube */
  --neon-hot: #f0a25c;                   /* brighter core of the tube */
  --neon-mid: rgba(207, 122, 48, .55);
  --neon-dim: rgba(207, 122, 48, .38);
  --neon-haze: rgba(207, 122, 48, .22);
}

/* ambient neon light washing over the whole site */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 10% 6%,  rgba(207,122,48,.24), transparent 70%),
    radial-gradient(700px 480px at 94% 34%, rgba(207,122,48,.17), transparent 70%),
    radial-gradient(820px 520px at 28% 102%, rgba(207,122,48,.20), transparent 70%);
  animation: ambient 7s ease-in-out infinite alternate;
}
@keyframes ambient { from { opacity: .65; } to { opacity: 1; } }

/* neon tube along the header and footer */
header { border-bottom: 2px solid var(--neon); box-shadow: 0 2px 10px var(--neon-mid), 0 8px 34px var(--neon-haze); }
footer { border-top: 2px solid var(--neon); box-shadow: 0 -2px 10px var(--neon-mid), 0 -8px 34px var(--neon-haze); }

/* glowing text */
.brand-name span, .hero h1 span, .page-hero h1 span, .section-head h2, .contact-section h2, .panel h3 {
  text-shadow: 0 0 6px var(--neon-mid), 0 0 18px var(--neon-mid), 0 0 34px var(--neon-haze);
}
.brand-name { text-shadow: 0 0 10px var(--neon-haze); }
.hero h1 span, .page-hero h1 span { animation: flicker 5s linear infinite; }
@keyframes flicker {
  0%, 18%, 22%, 24%, 54%, 56%, 100% {
    text-shadow: 0 0 6px var(--neon-mid), 0 0 18px var(--neon-mid), 0 0 34px var(--neon-haze);
  }
  20%, 25%, 55% { text-shadow: 0 0 2px var(--neon-haze); }
}
.nav-menu a.active { color: var(--neon-hot); text-shadow: 0 0 10px var(--neon-mid); }
.nav-menu a:hover { text-shadow: 0 0 10px var(--neon-mid); }
.price, .detail-price span, .cart-line.total, .tc-total { text-shadow: 0 0 10px var(--neon-haze); }

/* glowing buttons */
.btn-primary { box-shadow: 0 0 14px var(--neon-mid), 0 8px 22px rgba(207,122,48,.3); }
.btn-primary:hover { box-shadow: 0 0 22px var(--neon), 0 10px 28px rgba(207,122,48,.4); }
.cart-btn { box-shadow: 0 0 12px var(--neon-mid); }
.cart-btn:hover { box-shadow: 0 0 20px var(--neon); }
.add-mini { border-color: var(--neon-dim); }
.add-mini:hover { box-shadow: 0 0 12px var(--neon-mid); }
.variant-chip.active, .color-chip.active { box-shadow: 0 0 10px var(--neon-haze); }

/* inputs light up when focused */
.checkout input:focus, .checkout textarea:focus, .track-form input:focus {
  border-color: var(--neon); box-shadow: 0 0 10px var(--neon-mid);
}

/* ---- FRAMES: every box gets a neon border with a second inner frame line ---- */
.card, .feat-card, .social-card, .panel,
.product-detail, .checkout, .success, .story {
  border: 2px solid var(--neon);
  outline: 1px solid var(--neon-dim); outline-offset: -8px;
  box-shadow: 0 0 8px var(--neon-mid), 0 0 24px var(--neon-haze), inset 0 0 14px var(--neon-haze);
}
.card, .feat-card, .social-card { transition: transform .2s, box-shadow .25s, outline-color .25s; }
.card:hover, .feat-card:hover, .social-card:hover {
  border-color: var(--neon-hot); outline-color: var(--neon-mid);
  box-shadow: 0 0 14px var(--neon), 0 0 38px var(--neon-mid), inset 0 0 18px var(--neon-mid);
}
/* social cards keep their brand colour on the frame when hovered */
.social-card.whatsapp:hover  { border-color: #25d366; box-shadow: 0 0 16px #25d366, 0 0 36px rgba(37,211,102,.4), inset 0 0 16px rgba(37,211,102,.25); }
.social-card.instagram:hover { border-color: #e1306c; box-shadow: 0 0 16px #e1306c, 0 0 36px rgba(225,48,108,.4), inset 0 0 16px rgba(225,48,108,.25); }
.social-card.facebook:hover  { border-color: #1877f2; box-shadow: 0 0 16px #1877f2, 0 0 36px rgba(24,119,242,.4), inset 0 0 16px rgba(24,119,242,.25); }
.social-card.tiktok:hover    { border-color: #00f2fe; box-shadow: 0 0 16px #00f2fe, 0 0 36px rgba(0,242,254,.35), inset 0 0 16px rgba(0,242,254,.22); }

/* smaller boxes: single lighter frame */
.pay-box, .checkout-summary, .track-card, .pay-note, .qty-control, .cart-foot .btn-ghost {
  border: 1px solid var(--neon-dim); box-shadow: 0 0 8px var(--neon-haze);
}
.track-card { border-top: 1px solid var(--neon-dim); padding: 18px; border-radius: 12px; }
.pay-opt input:checked + .pay-box { border-color: var(--neon); box-shadow: 0 0 12px var(--neon-mid), inset 0 0 10px var(--neon-haze); }
.ci { border: 1px solid var(--neon-dim); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 0 6px var(--neon-haze); }
.ci-thumb { border: 1px solid var(--neon-dim); }
.cart { border-left: 2px solid var(--neon); box-shadow: -4px 0 26px var(--neon-mid); }
.cart-head, .cart-foot { border-color: var(--neon-dim); }
.toast { border: 1px solid var(--neon-dim); border-left: 3px solid var(--neon); box-shadow: 0 0 14px var(--neon-mid); }

@media (prefers-reduced-motion: reduce) {
  body::before, .hero h1 span, .page-hero h1 span { animation: none; }
}

/* ============ ORDER PAGES (beans / powder / machines) ============ */
.order-section { padding: 26px 20px 60px; }
#orderApp { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.order-card {
  background: var(--surface); border-radius: 18px; padding: 26px; position: relative; animation: pop .3s;
  border: 2px solid var(--neon); outline: 1px solid var(--neon-dim); outline-offset: -8px;
  box-shadow: 0 0 8px var(--neon-mid), 0 0 24px var(--neon-haze), inset 0 0 14px var(--neon-haze);
}
.order-card[hidden] { display: none; }
.order-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.order-thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--neon); box-shadow: 0 0 10px var(--neon-mid); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-head h2 { font-size: 1.25rem; line-height: 1.25; }
.order-head p { color: var(--muted); font-size: 13px; }
.price-badge {
  display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 99px; font-weight: 800; font-size: 14px;
  color: var(--neon-hot); border: 1px solid var(--neon); box-shadow: 0 0 10px var(--neon-mid); text-shadow: 0 0 8px var(--neon-mid);
}
.price-badge[hidden], .detail-opt[hidden] { display: none; }

/* size chips: equal-width, weight on top and price underneath */
.order-card .variant-chip, .order-card .color-chip { padding: 10px 16px; font-size: 14px; }
.order-card .size-chip { flex: 1 1 0; min-width: 96px; text-align: center; }
.order-card .size-chip small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.order-card .detail-colors .color-chip { flex: 1 1 auto; justify-content: center; }

.order-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--neon-dim); padding-top: 16px; margin: 6px 0 16px; }
.order-total span { color: var(--muted); }
.order-total strong { font-size: 1.7rem; color: var(--accent); text-shadow: 0 0 12px var(--neon-mid); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
#oFinal, #oPlace { margin-bottom: 10px; }
#oCart { margin-top: 2px; }

.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 18px; color: var(--accent); }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #1a1a1a; background: var(--neon-hot); box-shadow: 0 0 12px var(--neon); }

/* form fields inside the order card (same look as the checkout popup) */
.order-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.order-card .pay-opt { margin-bottom: 0; }
.order-card input:not([type="radio"]), .order-card textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 14px; outline: none; resize: vertical;
}
.order-card input:not([type="radio"]):focus, .order-card textarea:focus { border-color: var(--neon); box-shadow: 0 0 10px var(--neon-mid); }
.order-card .checkout-summary { margin-top: 0; }

@media (max-width: 680px) {
  .order-section { padding: 20px 14px 44px; }
  .order-card { padding: 20px 18px; }
  .order-thumb { width: 68px; height: 68px; }
  .order-card .size-chip { min-width: 0; padding: 10px 6px; }
}

/* keep prices on one line in order summaries (long product names wrap instead) */
.checkout-summary .cs-line { gap: 12px; }
.checkout-summary .cs-line span:last-child { white-space: nowrap; }

/* final order page (/order) shares the order-card layout */
#checkoutApp { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
#checkoutApp .checkout-summary { margin-bottom: 16px; }
.order-empty { text-align: center; }
.order-empty p { color: var(--muted); margin-bottom: 18px; }
.order-empty .btn { margin-bottom: 10px; }
.step-title i { color: var(--neon-hot); text-shadow: 0 0 10px var(--neon-mid); }

/* final order page: the form card sits in the middle of the screen */
body[data-page="order"] main { display: flex; align-items: center; justify-content: center; padding: 100px 0 36px; }
body[data-page="order"] .order-section { width: 100%; padding: 0 16px; }
body[data-page="order"] #checkoutApp { max-width: 560px; }
.order-mini { display: flex; gap: 12px; align-items: stretch; margin-bottom: 10px; }
.order-mini img { width: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--neon); box-shadow: 0 0 10px var(--neon-mid); flex-shrink: 0; }
.order-mini .checkout-summary { flex: 1; margin: 0; }
#checkoutApp .order-mini .checkout-summary { margin-bottom: 0; }
.order-back { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.order-back:hover { color: var(--neon-hot); text-shadow: 0 0 8px var(--neon-mid); }

/* compact layout so the whole form fits on one laptop screen */
body[data-page="order"] main { padding-top: 96px; padding-bottom: 24px; }
body[data-page="order"] .order-card { padding: 20px 24px; }
body[data-page="order"] .step-title { margin-bottom: 12px; }
body[data-page="order"] .order-card label { margin-bottom: 10px; gap: 4px; }
body[data-page="order"] .order-card input:not([type="radio"]), body[data-page="order"] .order-card textarea { padding: 10px 13px; }
body[data-page="order"] .order-card textarea { resize: none; }
body[data-page="order"] .order-mini img { width: 84px; }
body[data-page="order"] .order-back { margin-bottom: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body[data-page="order"] .pay-methods { margin: 6px 0 14px; }
body[data-page="order"] .pay-box { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 10px 12px; }
body[data-page="order"] .pay-box i { margin: 0; font-size: 18px; }
body[data-page="order"] .pay-box small { flex-basis: 100%; }
body[data-page="order"] #oPlace { margin-bottom: 0; }
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  body[data-page="order"] .order-card { padding: 18px 16px; }
}

/* payment options: 2x2 grid, and the QR shown for online methods */
.pay-grid { grid-template-columns: 1fr 1fr; }
.qr-panel { display: flex; gap: 16px; align-items: center; margin: 0 0 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--neon); background: var(--surface-2); box-shadow: 0 0 12px var(--neon-mid), inset 0 0 10px var(--neon-haze); animation: fade .3s; }
.qr-panel[hidden] { display: none; }
.qr-panel img { width: 150px; height: 150px; border-radius: 10px; object-fit: contain; background: #000; border: 2px solid var(--neon); flex-shrink: 0; }
.qr-panel strong { color: var(--accent); font-size: 1.05rem; }
.qr-panel p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.qr-panel p b { color: var(--text); }
@media (max-width: 520px) {
  .qr-panel { flex-direction: column; text-align: center; }
  .qr-panel img { width: 190px; height: 190px; }
}

/* ===== GREEN NEON: the chosen payment method, and its details box ===== */
:root { --neon-green: #39ff88; --neon-green-mid: rgba(57,255,136,.55); --neon-green-haze: rgba(57,255,136,.25); }
.pay-opt input:checked + .pay-box {
  background: linear-gradient(135deg, rgba(57,255,136,.30), rgba(18,110,58,.34));
  border-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green), 0 0 24px var(--neon-green-mid), inset 0 0 16px var(--neon-green-haze);
}
.pay-opt input:checked + .pay-box strong { color: #fff; text-shadow: 0 0 8px var(--neon-green-mid); }
.pay-opt input:checked + .pay-box small { color: #d6ffe6; }
.pay-opt input:checked + .pay-box i { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
.pay-opt input:focus-visible + .pay-box { outline: 2px solid var(--neon-green); outline-offset: 2px; }

/* payment details box: QR on top, the three fields underneath, all in one green-framed box */
.qr-panel { display: block; text-align: left; border-color: var(--neon-green); box-shadow: 0 0 12px var(--neon-green-mid), inset 0 0 12px var(--neon-green-haze); }
.qr-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.qr-panel img { border-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green-mid); }
.qr-panel strong { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green-mid); }
.qr-fields { border-top: 1px solid var(--neon-green-mid); padding-top: 14px; }
.qr-fields label:last-child, .qr-fields .form-row label { margin-bottom: 0; }
.qr-fields > label { margin-bottom: 10px; }
.qr-fields input:not([type="radio"]):focus { border-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green-mid); }
@media (max-width: 520px) {
  .qr-top { flex-direction: column; text-align: center; }
  .qr-fields .form-row label { margin-bottom: 10px; }
}

/* ============ FULL-WIDTH BOXES ============ */
/* boxes now span the site's full content width (same as the header) */
#orderApp, body[data-page="order"] #checkoutApp { max-width: 1200px; }
.panel { width: 100%; max-width: 1200px; }
.contact-section { max-width: 1200px; }
.order-empty { width: 100%; max-width: 520px; margin: 0 auto; }

/* two columns inside a wide box */
.order-wide { padding: 28px 32px; }
body[data-page="order"] .order-wide { padding: 24px 32px; }
.order-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.order-col { min-width: 0; }

/* product pages: big photo on the left, choices on the right */
.order-photo { height: 340px; border-radius: 16px; overflow: hidden; border: 2px solid var(--neon); box-shadow: 0 0 14px var(--neon-mid), inset 0 0 12px var(--neon-haze); }
.order-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-info { margin-top: 18px; }
.order-info h2 { font-size: 1.6rem; line-height: 1.25; }
.order-info p { color: var(--muted); }
.order-wide .order-total { margin-top: 10px; }

/* /order page: delivery on the left, payment on the right */
body[data-page="order"] .step-title { margin-bottom: 18px; }
body[data-page="order"] #oPlace { margin-top: 18px; }

@media (max-width: 820px) {
  .order-cols { grid-template-columns: 1fr; gap: 22px; }
  .order-wide, body[data-page="order"] .order-wide { padding: 20px 18px; }
  .order-photo { height: 220px; }
  .order-info h2 { font-size: 1.3rem; }
}

.order-card .qty-control { width: fit-content; }

/* download button in the payment box */
.qr-download { margin-top: 12px; padding: 9px 18px; font-size: 14px; border-color: var(--neon-green); color: var(--neon-green); }
.qr-download:hover { background: rgba(57,255,136,.12); box-shadow: 0 0 12px var(--neon-green-mid); color: var(--neon-green); border-color: var(--neon-green); }

/* "(optional)" hint next to a field name */
.opt-tag { font-style: normal; font-size: 12px; opacity: .7; }

/* ===== product photos are shown whole (never cropped) ===== */
/* the whole picture sits on top; a blurred, darkened copy of it fills any empty sides */
.order-photo { position: relative; height: 400px; background: #120d09; }
.order-photo::before { content: ""; position: absolute; inset: -24px; background: var(--photo) center / cover; filter: blur(20px) brightness(.55); }
.order-photo img { position: relative; object-fit: contain; }
/* small thumbnails of the tall French Press photo */
img.fit-full { object-fit: contain; background: #e9e9e9; }
@media (max-width: 820px) { .order-photo { height: 300px; } }

/* ============ TRACK ORDER BUTTON (beside the cart) ============ */
.track-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: 99px; border: 1px solid var(--neon); color: var(--neon-hot);
  background: rgba(207,122,48,.10); box-shadow: 0 0 10px var(--neon-haze);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.track-btn i { font-size: 15px; }
.track-btn:hover, .track-btn.active { background: var(--neon); color: #1a1a1a; box-shadow: 0 0 16px var(--neon-mid); }

/* ============ HEADER: full width, neon nav buttons ============ */
/* the logo hugs the left edge; Track order + cart hug the right edge */
.nav-container { max-width: none; padding: 12px 18px; }

/* every nav link is a glowing neon pill; --c is its colour */
.nav-menu { gap: 12px; }
.nav-menu a.nav-link {
  --c: var(--neon-hot); --c-glow: var(--neon-mid); --c-haze: var(--neon-haze);
  padding: 8px 18px; border-radius: 99px; font-weight: 600; font-size: 15px;
  color: var(--c); border: 1px solid var(--c);
  text-shadow: 0 0 8px var(--c-glow);
  box-shadow: 0 0 10px var(--c-haze), inset 0 0 8px var(--c-haze);
  transition: background .2s, box-shadow .2s, color .2s;
}
.nav-menu a.nav-machines { --c: #ff4d4d; --c-glow: rgba(255,77,77,.65); --c-haze: rgba(255,77,77,.25); }   /* red */
.nav-menu a.nav-contact  { --c: var(--neon-green); --c-glow: var(--neon-green-mid); --c-haze: var(--neon-green-haze); } /* green */
/* Beans and Powder keep the default brown-orange neon, so they match each other */
.nav-menu a.nav-link:hover, .nav-menu a.nav-link.active {
  color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent);
  box-shadow: 0 0 16px var(--c-glow), 0 0 30px var(--c-haze), inset 0 0 12px var(--c-haze);
}

/* inside the phone menu the links are full-width rows with a coloured edge */
@media (max-width: 960px) {
  .nav-menu a.nav-link {
    border: 0; border-bottom: 1px solid var(--border); border-left: 3px solid var(--c);
    border-radius: 0; box-shadow: none; padding: 14px 4px 14px 14px; font-size: 16px;
  }
  .nav-menu a.nav-link:last-child { border-bottom: 0; }
  .nav-menu a.nav-link:hover, .nav-menu a.nav-link.active { box-shadow: none; background: color-mix(in srgb, var(--c) 14%, transparent); }
}

/* ============ MOBILE POLISH ============ */
/* solid colour behind the page so nothing ever flashes white, even where the gradient ends */
html { background: #1d130c; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, input, select, textarea, label { touch-action: manipulation; }
a, button, label.pay-opt, .card, .feat-card { -webkit-tap-highlight-color: rgba(207,122,48,.28); }

/* touch screens have no hover: don't leave cards "lifted" after a tap */
@media (hover: none) {
  .card:hover, .feat-card:hover, .social-card:hover, .btn:hover, .cart-btn:hover { transform: none; }
  .card:hover .card-visual img, .feat-card:hover img { transform: none; }
}

@media (max-width: 820px) {
  /* smoother scrolling on phones: no fixed backdrop, no blur, no flicker animation */
  body { background-attachment: scroll; }
  body::before, .hero h1 span, .page-hero h1 span { animation: none; }
  header { backdrop-filter: none; background: rgba(17,17,17,.97); }
  .overlay { backdrop-filter: none; background: rgba(0,0,0,.82); }
  .overlay:not(.drawer-overlay) { padding: 12px; }

  /* 16px inputs stop iPhones zooming the page when a field is tapped */
  input:not([type="radio"]):not([type="hidden"]), textarea, select { font-size: 16px !important; }

  /* finger-sized tap targets */
  .nav-menu a { min-height: 48px; display: flex; align-items: center; }
  .add-mini { width: 42px; height: 42px; }
  .qty-control button { width: 46px; height: 44px; }
  .ci-qty { gap: 8px; }
  .ci-qty button { width: 36px; height: 36px; }
  .ci-rm { padding: 10px; }
  .close-x { width: 44px; height: 44px; top: 6px; right: 6px; display: grid; place-items: center; }
  .variant-chip, .color-chip, .mf-chip { min-height: 44px; }
  .contact-number { display: inline-block; padding: 8px 0; }

  /* popups fit the visible screen (dvh ignores the collapsing browser bars) */
  .product-detail, .checkout, .success, .story { max-height: 92vh; max-height: 92dvh; }
  .cart-items, .product-detail, .checkout, .success, .story { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .checkout, .success { padding: 26px 18px; }
  .story { padding: 30px 20px; }
  .story p { text-align: left; }
  .cart-foot { padding-bottom: max(20px, env(safe-area-inset-bottom)); }

  /* notifications sit above the sticky buy bar */
  .toast-wrap { bottom: 112px; width: calc(100% - 28px); }
  .toast { text-align: center; }

  /* product pages: total + buy buttons stay pinned to the bottom of the screen */
  .order-actions {
    position: sticky; bottom: 0; z-index: 20;
    margin: 8px -18px -20px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) 18px;
    background: var(--surface); border-top: 1px solid var(--neon-dim); border-radius: 0 0 16px 16px;
    box-shadow: 0 -12px 24px rgba(0,0,0,.5);
    /* one slim row: [ total ] [ add-to-cart icon ] [ main button ] */
    display: grid; grid-template-columns: auto 50px 1fr; gap: 10px; align-items: center;
  }
  .order-actions .order-total { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; margin: 0; padding: 0; border: 0; }
  .order-actions .order-total span { font-size: 12px; }
  .order-actions .order-total strong { font-size: 1.2rem; white-space: nowrap; }
  .order-actions #oCart { grid-column: 2; grid-row: 1; margin: 0; padding: 0; height: 50px; font-size: 18px; }
  .order-actions #oFinal { grid-column: 3; grid-row: 1; margin: 0; padding: 0 8px; height: 50px; font-size: 15px; }
  .hide-sm { display: none; }
}

/* small phones: keep logo + Track order + cart + menu on one tidy row */
@media (max-width: 480px) {
  .nav-container { padding: 10px 10px; }
  .nav-actions { gap: 8px; }
  .brand-name { font-size: 16px; letter-spacing: .5px; white-space: nowrap; }
  .brand-tag { display: none; }
  .brand-group { min-height: 44px; justify-content: center; }
  .track-btn { padding: 0 12px; gap: 6px; font-size: 12.5px; }
  .track-btn i { font-size: 13px; }
}
@media (max-width: 350px) {
  .track-btn span { display: none; }
  .track-btn { width: 42px; padding: 0; justify-content: center; }
  .track-btn i { font-size: 16px; }
}

/* ============ EXTRA-WIDE BOXES (every page) ============ */
/* boxes stretch nearly edge to edge, with a small gap on each side */
#orderApp, #checkoutApp, body[data-page="order"] #checkoutApp,
.panel, .contact-section, .catalog, .featured { max-width: 1600px; }
.order-section, body[data-page="order"] .order-section { padding-left: 24px; padding-right: 24px; }

/* bigger inside, to fill the extra room */
.order-wide, body[data-page="order"] .order-wide { padding: 36px 44px; }
.order-cols { gap: 48px; }
.order-photo { height: 480px; }
.order-info h2 { font-size: 1.9rem; }
.order-info p { font-size: 1.05rem; }
.step-title { font-size: 1.45rem; }
.order-card .variant-chip, .order-card .color-chip { padding: 13px 20px; font-size: 15.5px; }
.order-total strong { font-size: 2rem; }

@media (max-width: 820px) {
  .order-section, body[data-page="order"] .order-section { padding-left: 14px; padding-right: 14px; }
  .order-wide, body[data-page="order"] .order-wide { padding: 20px 18px; }
  .order-cols { gap: 22px; }
  .order-photo { height: 300px; }
  .order-info h2 { font-size: 1.3rem; }
  .step-title { font-size: 1.25rem; }
  .order-card .variant-chip, .order-card .color-chip { padding: 10px 16px; font-size: 14px; }
}

/* ============ CONTACT PAGE: big full-screen social cards ============ */
body[data-page="contact"] main { display: flex; flex-direction: column; }
body[data-page="contact"] .contact-section {
  flex: 1; width: 100%; max-width: none; margin: 0; padding: 24px 32px 40px;
  display: flex; flex-direction: column;
}
body[data-page="contact"] .social-grid {
  width: 100%; max-width: 1180px; margin: 0 auto; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
/* square cards */
body[data-page="contact"] .social-card { aspect-ratio: 1 / 1; }
body[data-page="contact"] .social-card {
  --brand: var(--neon); --brand-soft: rgba(207,122,48,.14);
  justify-content: center; gap: 8px; padding: 20px; border-radius: 22px;
  background: linear-gradient(180deg, var(--brand-soft), transparent 70%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline: none; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position: relative; overflow: hidden;
}
body[data-page="contact"] .social-card.whatsapp  { --brand: #25d366; --brand-soft: rgba(37,211,102,.14); }
body[data-page="contact"] .social-card.instagram { --brand: #e1306c; --brand-soft: rgba(225,48,108,.14); }
body[data-page="contact"] .social-card.facebook  { --brand: #1877f2; --brand-soft: rgba(24,119,242,.16); }
body[data-page="contact"] .social-card.tiktok    { --brand: #69c9d0; --brand-soft: rgba(105,201,208,.14); }
/* thin brand-coloured strip along the top */
body[data-page="contact"] .social-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand);
}
body[data-page="contact"] .social-card i {
  font-size: 42px; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 10px;
  border-radius: 50%; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  transition: transform .25s;
}
body[data-page="contact"] .social-card span { font-size: 1.35rem; font-weight: 800; letter-spacing: .3px; color: var(--text); }
body[data-page="contact"] .social-card small { display: block; font-size: 1.05rem; color: var(--muted); }
.social-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 20px;
  border-radius: 99px; font-style: normal; font-weight: 700; font-size: 15px;
  color: var(--brand, var(--accent)); border: 1px solid var(--brand, var(--accent));
  transition: background .2s, color .2s;
}
.social-cta b { font-size: 13px; transition: transform .2s; }
body[data-page="contact"] .social-card:hover { transform: translateY(-6px); border-color: var(--brand); }
body[data-page="contact"] .social-card:hover i { transform: scale(1.08); }
body[data-page="contact"] .social-card:hover .social-cta { background: var(--brand); color: #111; }
body[data-page="contact"] .social-card:hover .social-cta b { transform: translateX(4px); }
body[data-page="contact"] .contact-info { margin-top: 30px; font-size: 1.3rem; }

/* tablets: 2 x 2 */
@media (max-width: 960px) {
  body[data-page="contact"] .social-grid { grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; }
  body[data-page="contact"] .social-card { padding: 24px 16px; }
}
/* phones: 2 x 2, compact */
@media (max-width: 680px) {
  body[data-page="contact"] .contact-section { padding: 16px 14px 32px; }
  body[data-page="contact"] .social-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  body[data-page="contact"] .social-card { padding: 12px 8px; gap: 4px; border-radius: 16px; }
  body[data-page="contact"] .social-card i { font-size: 30px; width: 60px; height: 60px; margin-bottom: 4px; }
  body[data-page="contact"] .social-cta { display: none; }
  body[data-page="contact"] .social-card span { font-size: 1.05rem; }
  body[data-page="contact"] .social-card small { display: block; font-size: 12px; }
  .social-cta { margin-top: 10px; padding: 7px 14px; font-size: 13px; }
  body[data-page="contact"] .contact-info { font-size: 1.1rem; }
}

/* brewer choice for powder: name on top, grind size underneath */
.order-card .grind-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.order-card .grind-chips .grind-chip { flex-direction: column; gap: 2px; line-height: 1.2; text-align: center; }
.grind-chip small { font-size: 11.5px; opacity: .72; font-weight: 400; }
