/* ============================================================
   Golden Wok — Restaurant Website
   Pure CSS (no framework). Dark + gold/red oriental theme.
   ============================================================ */

:root {
  --bg: #0e0d0c;
  --bg-2: #161413;
  --bg-3: #1e1b19;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3ece4;
  --muted: #a49b91;
  --gold: #e0b060;
  --gold-2: #f5d79a;
  --red: #c0392b;
  --red-2: #e0503c;
  --green: #4caf7d;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --head: "Playfair Display", "Georgia", serif;
  --body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.2; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Reusable bits ---------- */

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--muted); margin-top: 12px; }

.divider {
  width: 68px; height: 2px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .4px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 10px 24px rgba(192, 57, 43, .3); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(192, 57, 43, .42); }

.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #23180a; font-weight: 600; }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(224, 176, 96, .35); }

.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 12.5px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(224, 176, 96, .12);
  border: 1px solid rgba(224, 176, 96, .28);
  color: var(--gold-2);
  font-size: 11.5px; letter-spacing: .5px;
}
.chip.veg { background: rgba(76,175,125,.12); border-color: rgba(76,175,125,.3); color: #7fd6a8; }
.chip.spicy { background: rgba(224,80,60,.13); border-color: rgba(224,80,60,.3); color: #f19181; }

/* Both columns share one row height (map ↔ contact form). */
.layout-2col.stretch { align-items: stretch; }
.layout-2col.stretch > * { height: 100%; }

/* Panel whose form stretches to the panel's full height,
   pushing the submit button to the bottom edge. */
.fill-col { display: flex; flex-direction: column; }
.fill-col > form { flex: 1; display: flex; flex-direction: column; }
.fill-col > form > .field:last-of-type { flex: 1; display: flex; flex-direction: column; }
.fill-col > form > .field:last-of-type textarea.input { flex: 1; }
.fill-col > form > .btn { margin-top: auto; }

/* ---------- contact info boxes (under the map) ---------- */
.info-grid { margin-top: 24px; }
.info-card { padding: 40px 26px 34px; text-align: center; }
.info-card .ico-lg {
  width: 86px; height: 86px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 26px;
  background: linear-gradient(145deg, rgba(224,176,96,.16), rgba(224,176,96,.05));
  border: 1px solid rgba(224,176,96,.3);
  color: var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
}
.info-card .ico-lg svg { width: 42px; height: 42px; }
.info-card:hover .ico-lg { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 30px rgba(224,176,96,.22); }
.info-card h3 { font-size: 21px; margin-bottom: 12px; }
.info-card p { color: var(--muted); font-size: 14px; }
.info-card .info-link {
  display: inline-block; margin-top: 18px;
  font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.info-card .info-link:hover { border-bottom-color: var(--gold); }

/* image fallback when Unsplash photo fails to load */
.img-wrap { background: linear-gradient(135deg, #2a2320, #191614); overflow: hidden; }
img.fallback { object-fit: contain; padding: 18%; opacity: .35; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.nav.solid, .nav.inner {
  background: rgba(14, 13, 12, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-2), #8e2419);
  font-family: var(--head); font-size: 20px; color: #ffe9c9;
  box-shadow: 0 6px 18px rgba(192,57,43,.35);
}
.brand-name { font-family: var(--head); font-size: 20px; letter-spacing: .5px; line-height: 1.1; }
.brand-name span { color: var(--gold); }
.brand-sub { font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 100px;
  font-size: 13.5px; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 100px;
  background: var(--red-2); color: #fff;
  font-size: 11px; font-weight: 600;
  border: 2px solid var(--bg);
}
.cart-count[data-empty="1"] { display: none; }

.burger { display: none; }
@media (max-width: 1024px) { .hide-sm { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(6,5,5,.72);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(310px, 82vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 26px 22px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a {
  padding: 13px 14px; border-radius: 10px;
  color: var(--muted); font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.drawer-panel a.active, .drawer-panel a:hover { color: var(--gold); }
.drawer-close { align-self: flex-end; margin-bottom: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(14,13,12,.42), rgba(14,13,12,.9) 70%),
    linear-gradient(to top, var(--bg) 4%, rgba(14,13,12,.35) 55%);
}
.hero-inner { position: relative; z-index: 2; max-width: 830px; }
.hero h1 {
  font-size: clamp(40px, 8vw, 84px);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  color: #cdc3b8; max-width: 560px; margin: 18px auto 34px;
  font-size: 16px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 46px; flex-wrap: wrap;
  margin-top: 62px; padding-top: 34px;
  border-top: 1px solid var(--line);
}
.hero-stats b { display: block; font-family: var(--head); font-size: 30px; color: var(--gold); }
.hero-stats span { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); display: grid; gap: 8px; justify-items: center;
}
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: .3 } 50% { opacity: 1 } }

/* page banner for inner pages */
.page-banner {
  position: relative;
  padding: calc(var(--nav-h) + 78px) 0 78px;
  text-align: center;
  overflow: hidden;
}
.page-banner .hero-bg::after {
  background: linear-gradient(to bottom, rgba(14,13,12,.86), rgba(14,13,12,.94));
}
.page-banner-inner { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(32px, 6vw, 54px); }
.page-banner p { color: var(--muted); margin-top: 10px; }
.crumbs { font-size: 12px; color: var(--muted); margin-top: 16px; letter-spacing: 1px; }
.crumbs a:hover { color: var(--gold); }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(224,176,96,.4); box-shadow: var(--shadow); }

/* feature (why us) */
.feature { padding: 34px 26px; text-align: center; }
.feature .ico {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 16px;
  background: rgba(224,176,96,.1);
  border: 1px solid rgba(224,176,96,.22);
  color: var(--gold);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 13.5px; }

/* dish card */
.dish { display: flex; flex-direction: column; }
.dish-img { position: relative; aspect-ratio: 4/3; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .dish-img img { transform: scale(1.07); }
.dish-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.dish-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dish-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dish-top h3 { font-size: 18px; }
.dish-price { font-family: var(--head); font-size: 19px; color: var(--gold); white-space: nowrap; }
.dish-desc { color: var(--muted); font-size: 13px; flex: 1; }
.dish-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 1px; }
.dish-foot { display: flex; gap: 10px; align-items: center; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty button { width: 32px; height: 34px; background: rgba(255,255,255,.04); border: 0; cursor: pointer; color: var(--text); font-size: 16px; line-height: 1; }
.qty button:hover { background: rgba(224,176,96,.16); color: var(--gold); }
.qty span { min-width: 34px; text-align: center; font-size: 13.5px; font-weight: 500; }

/* menu filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 16px;
}
.filter-bar button {
  padding: 10px 20px; border-radius: 100px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 13px; cursor: pointer;
  transition: all .2s ease;
}
.filter-bar button:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.filter-bar button.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #23180a; border-color: transparent; font-weight: 600; }

.search-row { display: flex; gap: 12px; max-width: 520px; margin: 0 auto 40px; }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media .img-wrap { border-radius: var(--radius); aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
  position: absolute; bottom: -22px; right: -22px;
  width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #23180a; font-family: var(--head); line-height: 1.1;
  box-shadow: var(--shadow);
}
.split-media .badge b { font-size: 30px; display: block; }
.split-media .badge span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.split h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.tick-list { display: grid; gap: 10px; margin: 22px 0 28px; }
.tick-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.tick-list i {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
  background: rgba(76,175,125,.15); color: var(--green);
  display: grid; place-items: center; font-size: 11px; font-style: normal;
}

/* testimonials */
.quote { padding: 30px 26px; }
.quote p { color: #d6cdc3; font-style: italic; margin-bottom: 20px; font-size: 14.5px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-who .img-wrap { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; }
.quote-who img { width: 100%; height: 100%; object-fit: cover; }
.quote-who b { display: block; font-size: 14px; }
.quote-who span { font-size: 12px; color: var(--muted); }

/* gallery — masonry via CSS multi-column, so every tile keeps its own height */
.gallery { columns: 4; column-gap: 14px; }
.gallery .img-wrap {
  position: relative;
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 12px;
  cursor: zoom-in;
}
/* staggered heights make the masonry rhythm read as intentional */
.gallery .img-wrap:nth-child(4n + 1) { aspect-ratio: 3/4; }
.gallery .img-wrap:nth-child(4n + 2) { aspect-ratio: 1; }
.gallery .img-wrap:nth-child(4n + 3) { aspect-ratio: 4/5; }
.gallery .img-wrap:nth-child(4n + 4) { aspect-ratio: 4/3; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25);
  transition: transform .55s ease, filter .35s ease;
}
.gallery .img-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(224,176,96,.35);
  background: linear-gradient(to top, rgba(14,13,12,.5), transparent 60%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.gallery .img-wrap:hover img { transform: scale(1.07); filter: none; }
.gallery .img-wrap:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 180;
  display: grid; place-items: center; padding: 30px;
  background: rgba(6,5,5,.9); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1000px, 92vw); max-height: 84vh;
  border-radius: 14px; box-shadow: var(--shadow);
  object-fit: contain;
}
.lightbox .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(28,25,23,.9); color: var(--text);
  font-size: 22px; cursor: pointer; transition: all .2s ease;
}
.lightbox .lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox .lb-prev { left: 26px; }
.lightbox .lb-next { right: 26px; }
.lightbox .lb-close { top: 24px; right: 26px; transform: none; }
.lightbox .lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 12.5px; letter-spacing: 2px; color: var(--muted); }

/* CTA strip */
.cta-strip {
  position: relative; overflow: hidden;
  text-align: center; padding: 84px 0;
}
.cta-strip .hero-bg::after { background: linear-gradient(rgba(14,13,12,.82), rgba(14,13,12,.9)); }
.cta-strip-inner { position: relative; z-index: 2; }
.cta-strip h2 { font-size: clamp(28px, 4.6vw, 46px); }
.cta-strip p { color: var(--muted); margin: 12px auto 28px; max-width: 500px; }

/* ============================================================
   FORMS
   ============================================================ */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.panel-title { font-size: 21px; margin-bottom: 4px; }
.panel-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field .req { color: var(--red-2); }
.input, select.input, textarea.input {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,176,96,.12); }
.input::placeholder { color: #6d655d; }
textarea.input { resize: vertical; min-height: 92px; }
select.input { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a49b91' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 40px;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.err { color: #f3877a; font-size: 12px; margin-top: 6px; display: none; }
.field.invalid .input { border-color: #f3877a; }
.field.invalid .err { display: block; }

.pill-group { display: flex; flex-wrap: wrap; gap: 9px; }
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill-group label {
  margin: 0; padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg-3);
  font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted);
  cursor: pointer; transition: all .18s ease;
}
.pill-group input:checked + label { border-color: var(--gold); background: rgba(224,176,96,.14); color: var(--gold-2); }

.check { display: flex; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold); }

/* auth page */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-media { position: relative; }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,13,12,.55), rgba(142,36,25,.5)); }
.auth-media .copy { position: absolute; z-index: 2; bottom: 54px; left: 48px; right: 48px; }
.auth-media .copy h2 { font-size: 34px; }
.auth-media .copy p { color: #ded5cb; margin-top: 10px; }
.auth-form { display: grid; place-items: center; padding: 110px 26px 60px; }
.auth-form .inner { width: 100%; max-width: 400px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--bg-3); border-radius: 100px; margin-bottom: 26px; }
.tabs button {
  flex: 1; padding: 10px; border: 0; border-radius: 100px;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 13.5px;
  transition: all .2s ease;
}
.tabs button.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #23180a; font-weight: 600; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================================
   CART / CHECKOUT
   ============================================================ */
.layout-2col { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }

.cart-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .img-wrap { width: 88px; height: 74px; border-radius: 10px; }
.cart-row img { width: 100%; height: 100%; object-fit: cover; }
.cart-row h4 { font-size: 16px; }
.cart-row .sub { font-size: 12.5px; color: var(--muted); }
.cart-row .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.line-total { font-family: var(--head); font-size: 17px; color: var(--gold); }
.link-danger { background: none; border: 0; color: #f3877a; font-size: 12px; cursor: pointer; padding: 0; }
.link-danger:hover { text-decoration: underline; }

.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--muted); }
.sum-row span:last-child { color: var(--text); }
.sum-row.total {
  border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 16px;
  font-family: var(--head); font-size: 21px; color: var(--text);
}
.sum-row.total span:last-child { color: var(--gold); }
.sum-row.free span:last-child { color: var(--green); }

.empty { text-align: center; padding: 70px 20px; }
.empty .ico { font-size: 46px; margin-bottom: 14px; opacity: .5; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 22px; }

/* address cards */
.addr-list { display: grid; gap: 14px; }
.addr {
  position: relative;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-3);
  cursor: pointer; transition: all .2s ease;
}
.addr:hover { border-color: rgba(224,176,96,.4); }
.addr.selected { border-color: var(--gold); background: rgba(224,176,96,.07); }
.addr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.addr-head b { font-size: 15px; }
.addr p { color: var(--muted); font-size: 13.5px; }
.addr-actions { display: flex; gap: 14px; margin-top: 14px; }
.addr-actions button { background: none; border: 0; cursor: pointer; font-size: 12px; color: var(--gold); padding: 0; }
.addr-actions button:hover { text-decoration: underline; }
.addr .tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(76,175,125,.14); color: var(--green);
}

/* steps */
.steps { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.step i {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 12.5px;
  border: 1px solid var(--line); background: var(--bg-3);
}
.step.done i { background: var(--green); border-color: var(--green); color: #06210f; }
.step.active i { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: #23180a; font-weight: 600; }
.step.active { color: var(--text); }
.steps .bar { width: 44px; height: 1px; background: var(--line); }

/* payment options */
.pay-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-3);
  transition: all .2s ease; margin-bottom: 12px;
}
.pay-opt:hover { border-color: rgba(224,176,96,.4); }
.pay-opt input { accent-color: var(--gold); }
.pay-opt.selected { border-color: var(--gold); background: rgba(224,176,96,.07); }
.pay-opt b { font-size: 14px; display: block; }
.pay-opt span { font-size: 12.5px; color: var(--muted); }

/* success */
.success-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.tick-big {
  width: 96px; height: 96px; margin: 0 auto 26px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(76,175,125,.13); border: 1px solid rgba(76,175,125,.34);
  color: var(--green); font-size: 44px;
  animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 66px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { font-size: 15px; margin-bottom: 18px; letter-spacing: .5px; }
.footer p, .footer li { color: var(--muted); font-size: 13.5px; }
.footer ul { display: grid; gap: 9px; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: all .2s ease;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 50px; padding: 22px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter .input { padding: 11px 14px; }

/* ============================================================
   TOAST + MODAL
   ============================================================ */
.toast-host {
  position: fixed; z-index: 200; bottom: 26px; right: 26px;
  display: grid; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 18px; border-radius: 12px;
  background: rgba(28, 25, 23, .97);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13.5px; max-width: 330px;
  animation: slideIn .3s ease;
}
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red-2); }
.toast.info { border-left: 3px solid var(--gold); }
.toast.hide { animation: slideOut .3s ease forwards; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0 } }
@keyframes slideOut { to { transform: translateX(40px); opacity: 0 } }

.modal {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 22px;
  background: rgba(6,5,5,.78); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 460px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px;
  transform: translateY(18px) scale(.97);
  transition: transform .28s cubic-bezier(.2,1,.3,1);
  max-height: 88vh; overflow-y: auto;
}
.modal.open .modal-box { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .split { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-media { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 420px; }
  .split-media .badge { width: 104px; height: 104px; right: -10px; bottom: -14px; }
  .gallery { columns: 2; }
  .lightbox .lb-prev { left: 12px; }
  .lightbox .lb-next { right: 12px; }
  .section { padding: 68px 0; }
  .hero-stats { gap: 30px; margin-top: 44px; }
}

@media (max-width: 560px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row .right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .cart-row .img-wrap { width: 72px; height: 62px; }
  .panel { padding: 22px 18px; }
  .toast-host { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .hero-cta .btn { width: 100%; }
}
