:root {
  --bg: #f6f1ea;
  --bg-2: #fffdf9;
  --card: #ffffff;
  --ink: #171412;
  --muted: #6b635b;
  --line: #eadfd3;
  --header: #141210;
  --header-2: #1c1917;
  --accent: #f26b1a;
  --accent-2: #ff7a2e;
  --accent-dark: #d4550c;
  --danger: #e11d48;
  --ok: #16a34a;
  --shadow: 0 10px 30px rgba(28, 18, 10, .08);
  --radius: 22px;
  --header-h: 60px;
  --bottom-h: 68px;
  --page-pad: 14px;
  --script: "Great Vibes", cursive;
    --font: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: white;
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.skip-link {
  position: absolute; left: -999px; top: 8px;
}
.skip-link:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 80; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #469513;
  color: #fff;
  height: var(--header-h);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 0 var(--page-pad);
}
.brand {
  display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff;
  min-width: 0;
}
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-text strong { font-size: 16px; letter-spacing: .2px; }
.brand-text small { font-size: 8px; letter-spacing: 1.4px; opacity: .8; margin-top: 3px; }

.header-search {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: #2a2623;
  border-radius: 999px;
  padding: 0 14px;
  min-width: 220px;
  height: 42px;
}
.header-search input {
  border: 0; background: transparent; color: #fff; outline: none; width: 100%;
}
.header-search__icon { width: 18px; opacity: .7; display: grid; }
.header-search__icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; }
.header-actions { display: none; align-items: center; gap: 14px; }
.header-link { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.header-link svg, .cart-btn svg, .icon-btn svg, .bottom-nav svg, .menu-search svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
}
.cart-btn, .header-cart-mobile, .icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border: 0; background: transparent; color: #fff;
  display: grid; place-items: center; border-radius: 12px;
}
.cart-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 1.3em; font-weight: 700; display: none; place-items: center;
  line-height: 1;
}
.cart-badge:not(:empty) { display: grid; }
.header-menu-btn, .header-cart-mobile, .header-back-btn { display: grid; }

.drawer, .drawer-backdrop { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { background: rgba(0,0,0,.45); }
.drawer {
  right: auto; width: min(320px, 86vw); background: #fff; color: var(--ink);
  padding: 18px; box-shadow: var(--shadow);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head .brand { color: var(--ink); margin: 0; }
.drawer-head .icon-btn { color: var(--ink); font-size: 28px; }
.drawer-nav { display: grid; gap: 6px; margin-top: 22px; }
.drawer-nav a { padding: 12px 10px; border-radius: 12px; font-weight: 600; }
.drawer-nav a:hover { background: #f6efe7; }

main { min-height: 60vh; }
.flash {
  width: 100%;
  max-width: none;
  margin: 14px 0 0;
  padding: 12px var(--page-pad);
  border-radius: 0;
  box-sizing: border-box;
}
.flash-error { background: #fee2e2; color: #9f1239; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-info { background: #ffedd5; color: #9a3412; }

.hero {
  position: relative;
  min-height: min(58vh, 420px);
  color: #fff;
  background: #1a120c url("../images/hero-food.jpg") center 35%/cover no-repeat;
  display: grid; align-items: end;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,8,6,.28) 0%, rgba(12,8,6,.18) 35%, rgba(12,8,6,.78) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: none; margin: 0;
  padding: 28px var(--page-pad) 30px;
}
.hero h1 {
  font-size: clamp(28px, 7.4vw, 40px);
  line-height: 1.08; margin: 0 0 10px; font-weight: 800; max-width: 640px;
}
.hero h1 em {
  font-family: var(--script); font-style: normal; color: var(--accent);
  font-size: 1.12em; font-weight: 400;
}
.hero p {
  max-width: 460px; color: rgba(255,255,255,.88); font-size: 14px;
  line-height: 1.45; margin: 0;
}
.hero-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px;
}
.hero-actions .btn,
.hero-actions .btn-outline {
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
}

.btn, .btn-outline, .btn-add, .btn-dark {
  appearance: none; border: 0; cursor: pointer;
  border-radius: 999px; font-weight: 700;
  text-align: center;
}
.btn {
  background: var(--accent); color: #fff;
  padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 18px rgba(242,107,26,.28);
  text-align: center;
}
.btn:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.8);
  padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
}
.btn-dark { background: var(--header); color: #fff; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 12px 18px;
  border-radius: 999px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-block {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  letter-spacing: .02em;
  justify-content: center;
  text-align: center;
}
.btn-auth {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: none;
  justify-content: center;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(242, 107, 26, .32);
}
.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(212, 85, 12, .36);
}
.auth-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: center;
}
.auth-links a { color: var(--accent-dark); font-weight: 700; }
.auth-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--muted);
}
.btn-auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 14px rgba(28, 18, 10, .04);
}
.btn-auth-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff8f2;
}

.features {
  background: #f3ebe1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 10px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-width: 0;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff; color: var(--accent); display: grid; place-items: center;
  box-shadow: var(--shadow); font-size: 18px; flex: 0 0 auto;
}
.feature h3 {
  margin: 0; font-size: 10.5px; line-height: 1.25; font-weight: 700;
  letter-spacing: -.15px;
  max-width: 100%;
  hyphens: auto;
}
.feature p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.feature-copy { display: none; }

.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px var(--page-pad);
}
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 22px; }
.link-all { color: var(--danger); font-weight: 700; font-size: 14px; white-space: nowrap; }

.cat-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-card {
  width: 104px; min-width: 104px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); flex: 0 0 auto; text-align: center; padding-bottom: 10px;
  border: 2px solid transparent; scroll-snap-align: start;
}
.cat-card.is-active { border-color: var(--accent); }
.cat-card.all {
  background: var(--header); color: #fff;
  min-height: 118px; height: 100%;
  display: grid; place-items: center; padding: 14px;
}
.cat-thumb {
  height: 72px; display: grid; place-items: center; font-size: 32px;
  background: linear-gradient(180deg, #fff6ee, #f3e6d8);
}
.cat-card h3 { margin: 8px 0 0; font-size: 12px; padding: 0 6px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); min-width: 0;
}
.product-card__image { display: block; }
.product-media {
  height: 120px; background: linear-gradient(180deg, #fff3e6, #f0e0cf);
  display: grid; place-items: center; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-emoji { font-size: 44px; line-height: 1; }
.product-card__body { padding: 10px 12px 12px; }
.product-card__title {
  margin: 0 0 4px; font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__desc {
  margin: 0 0 10px; color: var(--muted); font-size: 11px; min-height: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 800; font-size: 16px; }
.btn-add {
  width: 34px; height: 34px; border-radius: 50%; background: #469513; color: #fff;
  font-size: 20px; line-height: 1; display: grid; place-items: center; flex: 0 0 auto;
}
.btn-add:hover { transform: scale(1.06); }

.menu-toolbar { display: grid; gap: 12px; margin-bottom: 18px; }
.menu-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 0 16px; height: 48px;
  box-shadow: var(--shadow);
  border: solid 1px black;
}
.menu-search input { border: 0; outline: none; width: 100%; background: transparent; }
.filter-chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  border: 0; background: #469513; border-radius: 999px; padding: 8px 14px;
  white-space: nowrap; font-weight: 600; color: aliceblue;
}
.chip.is-active { background: var(--header); color: #fff; }

.detail {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px var(--page-pad) 40px;
  display: grid; gap: 22px;
}
.detail-media { border-radius: 28px; overflow: hidden; min-height: 260px; background: #f3e6d8; display: grid; place-items: center; }
.detail-media img { width: 100%; height: 360px; object-fit: cover; }
.detail-media .product-emoji { font-size: 96px; }
.qty {
  display: inline-flex; align-items: center; background: #fff; border-radius: 999px;
  overflow: hidden; box-shadow: var(--shadow);
}
.qty button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 700; }
.muted { color: var(--muted); }

.cart-layout, .checkout-layout, .account-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px var(--page-pad) 48px;
  display: grid; gap: 18px;
}
.cart-item, .panel, .order-card, .pay-card, .account-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow);
}
.cart-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; padding: 12px; align-items: center; }
.cart-item .product-media { height: 86px; border-radius: 16px; }
.summary {
  background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow);
  position: sticky; bottom: calc(var(--bottom-h) + 8px);
}
.summary-row, .line { display: flex; justify-content: space-between; margin: 8px 0; }
.empty {
  text-align: center; padding: 64px 16px; background: #fff; border-radius: 24px; box-shadow: var(--shadow);
}
.empty h2 { margin-bottom: 8px; }

.auth-page {
  min-height: calc(100vh - var(--header-h) - var(--bottom-h));
  display: grid; place-items: center; padding: 24px 16px 40px;
}
.auth-card {
  width: min(460px, 100%); background: #fff; border-radius: 28px; padding: 28px 22px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 6px; }
.form-group { display: grid; gap: 6px; margin: 14px 0; }
.form-group input, .form-group textarea, .form-group select {
  height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: #fffdf9;
}
.form-group textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.field-error { color: var(--danger); font-size: 13px; }
.form-error { background: #fee2e2; color: #9f1239; padding: 10px 12px; border-radius: 12px; }

.pay-grid { display: grid; gap: 10px; }
.pay-card { padding: 14px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; border: 2px solid transparent; }
.pay-card input { accent-color: var(--accent); margin-top: 4px; }
.pay-card.is-active { border-color: var(--accent); }
.pay-extra { display: none; margin-top: 10px; }
.pay-card.is-active .pay-extra { display: block; }
.pay-extra input {
  width: 100%; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; padding: 0 12px; background: #fffdf9;
}

.order-card { padding: 16px; display: grid; gap: 8px; }
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.order-actions .btn,
.order-actions .btn-ghost,
.slip-upload {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}
.slip-form { margin: 0; }
.slip-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.slip-upload { position: relative; }
.slip-uploaded {
  margin: 0;
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
}
.status-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: #ffedd5; color: #9a3412; font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.status-pill.open { background: #ffedd5; color: #9a3412; }
.status-pill.complete, .status-pill.paid { background: #dcfce7; color: #166534; }
.status-pill.cancel, .status-pill.refund { background: #fee2e2; color: #9f1239; }

.account-hero { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.status-unverified { color: #b45309; font-weight: 700; }
.account-grid { display: grid; gap: 12px; }
.account-card { padding: 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.account-card--action {
  width: 100%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #1c1917, #2a221c);
  color: #fff;
  text-align: left;
  font: inherit;
  box-shadow: var(--shadow);
}
.account-card--action span:last-child { color: var(--accent); }

.site-footer {
  background:#469513;
  margin-top: 12px;
  margin-bottom: 0;
}
.footer-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.footer-brand,
.footer-order {
  grid-column: 1 / -1;
}
.footer-links,
.footer-customer {
  min-width: 0;
}
.footer-grid h4 { color: #fff; margin: 0 0 10px; }
.footer-grid a, .footer-about { display: block; margin: 6px 0; color: rgba(255,255,255,.75); }
.footer-bottom {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  display: grid; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px;
}
.footer-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pills span {
  background: #2a2623; border-radius: 999px; padding: 6px 10px; font-size: 12px;
}

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -8px 24px rgba(20, 12, 6, .06);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: #8a827a; position: relative; font-weight: 600;
}
.bottom-nav a.is-active { color: var(--accent); }
.bottom-nav .cart-badge { top: 6px; right: calc(50% - 22px); }

.page-bar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px var(--page-pad) 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 42%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  box-shadow: 0 6px 16px rgba(28, 18, 10, .05);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.page-back:hover {
  border-color: #e0d0c0;
  background: #fffaf5;
  transform: translateX(-2px);
}
.page-back__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--header);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.page-back__icon svg {
  width: 16px;
  height: 16px;
}
.page-back__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.page-back__kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-back__label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-bar__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(20px, 5.6vw, 28px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-back-btn { display: grid; }
.header-back-btn svg { width: 22px; height: 22px; }
.success-emoji { font-size: 42px; margin: 0 0 8px; }
.auth-card h2 { margin: 0 0 6px; font-size: 26px; }
.account-hero h2 { margin: 0 0 8px; }

.toast-wrap { position: fixed; top: calc(var(--header-h) + 12px); right: 12px; left: 12px; z-index: 70; display: grid; gap: 8px; }
.toast {
  background: var(--header); color: #fff; padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow); animation: toast-in .25s ease;
}
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } }
.btn-add.pop { animation: pop .28s ease; }
@keyframes pop { 50% { transform: scale(1.18); } }

.skeleton { background: linear-gradient(90deg, #efe6dc, #f7f1ea, #efe6dc); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 18px; height: 210px; }
@keyframes sk { to { background-position: -200% 0; } }

.detail-media { border-radius: 22px; }
.detail-media img { height: 240px; }
.cart-layout, .checkout-layout, .account-layout { padding: 18px var(--page-pad) 32px; }
.cart-item { grid-template-columns: 72px 1fr; }
.cart-item > div:last-child { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.summary { bottom: calc(var(--bottom-h) + 12px); }
.auth-card { padding: 24px 18px; border-radius: 22px; }

.site-footer { padding: 36px var(--page-pad) 28px; }

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
    --bottom-h: 0px;
    --page-pad: 32px;
  }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .header-menu-btn, .header-cart-mobile, .header-back-btn { display: none; }
  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 var(--page-pad);
    grid-template-columns: none;
  }
  .header-nav {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 28px;
    margin: 0;
    z-index: 1;
  }
  .header-actions { display: flex; margin-left: 0; }
  .header-search {
    display: flex;
    margin-left: auto;
    min-width: 200px;
    max-width: 280px;
  }
  .brand { margin-inline: 0; justify-content: flex-start; flex: 0 0 auto; z-index: 2; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 36px; height: 36px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { font-size: 9px; letter-spacing: 1.8px; margin-top: 4px; }

  .hero {
    min-height: 520px;
    align-items: center;
    background-position: center;
  }
  .hero::after {
    background: linear-gradient(90deg, rgba(12,8,6,.78) 0%, rgba(12,8,6,.35) 55%, rgba(12,8,6,.15) 100%);
  }
  .hero-inner { padding: 64px var(--page-pad); }
  .hero h1 { font-size: clamp(40px, 5vw, 64px); max-width: 720px; }
  .hero p { font-size: 18px; max-width: 520px; }
  .hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px;
    grid-template-columns: none;
  }
  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: auto;
    padding: 14px 22px;
    font-size: 15px;
  }

  .features {
    width: 100%;
    padding: 28px var(--page-pad);
    gap: 16px;
  }
  .feature {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    justify-content: center;
  }
  .feature-icon { width: 42px; height: 42px; font-size: 20px; }
  .feature h3 { font-size: 15px; }
  .feature-copy { display: block; }

  .section { padding: 36px var(--page-pad); }
  .section-head h2 { font-size: 28px; }
  .link-all { font-size: 15px; }
  .cat-scroll {
    margin: 0;
    padding: 0 0 8px;
    gap: 14px;
  }
  .cat-card { width: auto; min-width: 150px; border-radius: 18px; padding-bottom: 12px; }
  .cat-card.all { min-height: 148px; padding: 18px; }
  .cat-thumb { height: 88px; font-size: 38px; }
  .cat-card h3 { font-size: 14px; margin-top: 10px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .product-card { border-radius: var(--radius); }
  .product-media { height: 270px; }
  .product-emoji { font-size: 52px; }
  .product-card__body { padding: 12px 14px 14px; }
  .product-card__title { font-size: 15px; }
  .product-card__desc { font-size: 1em; min-height: 16px; }
  .price { font-size: 18px; }
  .btn-add { width: 36px; height: 36px; font-size: 22px; }

  .cart-layout, .checkout-layout, .account-layout {
    grid-template-columns: 1.5fr .9fr; align-items: start;
    padding: 28px var(--page-pad) 56px;
    gap: 24px;
  }
  .cart-item { grid-template-columns: 86px 1fr auto; }
  .cart-item > div:last-child { grid-column: auto; display: block; }
  .summary { position: sticky; top: 90px; bottom: auto; }
  .detail {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    padding: 28px var(--page-pad) 56px;
    gap: 36px;
  }
  .detail-media { border-radius: 28px; }
  .detail-media img { height: 420px; }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 24px;
  }
  .footer-brand,
  .footer-order,
  .footer-links,
  .footer-customer {
    grid-column: auto;
  }
  .site-footer { padding: 42px var(--page-pad) 32px; }
  .toast-wrap { left: auto; right: 16px; width: min(320px, calc(100vw - 32px)); }
  .page-bar {
    padding: 22px var(--page-pad) 8px;
    gap: 18px;
  }
  .page-back {
    max-width: none;
    padding: 8px 14px 8px 10px;
  }
  .page-back__kicker { font-size: 10px; }
  .page-back__label { font-size: 14px; }
  .page-bar__title {
    font-size: 34px;
    white-space: normal;
  }
  .auth-page { padding: 28px var(--page-pad) 56px; }
  .auth-card { width: min(520px, 100%); }
}

@media (min-width: 1100px) {
  :root { --page-pad: 40px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
  :root { --page-pad: 48px; }
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}

/* PWA install prompt */
.pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom));
  z-index: 75;
  animation: pwa-up .35s ease;
}
.pwa-install[hidden],
.pwa-ios-sheet[hidden] { display: none !important; }
.pwa-install__card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(20, 12, 6, .22);
  border: 1px solid rgba(234, 223, 211, .9);
}
.pwa-install__media img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #141210;
}
.pwa-install__body h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.pwa-install__body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.pwa-install__actions {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8px;
}
.pwa-install__actions .btn-auth,
.pwa-install__actions .btn-auth-secondary {
  min-height: 44px;
  margin: 0;
  border-radius: 12px;
  font-size: 14px;
}
.pwa-install__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.pwa-ios-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.pwa-ios-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.pwa-ios-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0,0,0,.2);
  animation: pwa-up .32s ease;
}
.pwa-ios-sheet__handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #ddd;
  margin: 4px auto 16px;
}
.pwa-ios-sheet__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.pwa-ios-sheet__head img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.pwa-ios-sheet__head h3 { margin: 0 0 2px; }
.pwa-ios-sheet__head p { margin: 0; color: var(--muted); font-size: 13px; }
.pwa-ios-steps {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.pwa-ios-share {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f3ebe1;
}
@keyframes pwa-up {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .pwa-install {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
  }
  .pwa-ios-sheet__panel {
    left: 50%;
    right: auto;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
    transform: translateX(-50%);
    border-radius: 22px;
    padding-bottom: 22px;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .pwa-install,
  .pwa-ios-sheet,
  [data-pwa-open] { display: none !important; }
}

