/* =========================================================================
   DOMIX — design system
   Brand: logo black + logo gold, warm cream paper.
   ========================================================================= */
:root {
  --ink: #0e0e10;
  --ink-2: #1b1b1f;
  --ink-3: #2a2a30;
  --gold: #e9c25c;
  --gold-2: #f3d78a;
  --gold-deep: #a87a14;      /* gold that passes contrast on cream */
  --cream: #faf7f0;
  --paper: #ffffff;
  --sand: #f2ecdf;
  --line: #e7e0d0;
  --text: #17171a;
  --muted: #6c6a64;
  --success: #1f8f4e;
  --danger: #c93c3c;
  --info: #2563eb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 14, 16, .06), 0 2px 8px rgba(14, 14, 16, .04);
  --shadow: 0 10px 30px -12px rgba(14, 14, 16, .18);
  --shadow-lg: 0 30px 60px -20px rgba(14, 14, 16, .35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.ico { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 560px; }
.muted { color: var(--muted); }
.gold { color: var(--gold-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(168, 122, 20, .7); }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--line); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--sand); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-wa { background: #25d366; color: #fff; }
.btn-tg { background: #2aa3df; color: #fff; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); transition: all .2s var(--ease); position: relative;
}
.icon-btn:hover { border-color: var(--ink); }
.is-loading { position: relative; color: transparent !important; }
.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .25); border-top-color: var(--ink); animation: spin .7s linear infinite;
}
.btn-dark.is-loading::after { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--paper); transition: border-color .2s, box-shadow .2s; outline: none;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(233, 194, 92, .22); }
.input-lg { min-height: 60px; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1em; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- announcement + header ---------- */
.announce { background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; padding: 7px 16px; }
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .08em; color: var(--gold); line-height: 1; }
.brand-name small { display: block; font-family: var(--font); font-size: 10px; letter-spacing: .2em; color: #b9b5aa; font-weight: 700; margin-top: 4px; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1px solid #34343a; background: var(--ink-2);
  color: #fff; padding: 0 50px 0 20px; outline: none; transition: border-color .2s, background .2s;
}
.header-search input::placeholder { color: #8d8a82; }
.header-search input:focus { border-color: var(--gold); background: #222227; }
.header-search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header .icon-btn { background: transparent; border-color: #34343a; color: #fff; }
.header .icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.badge-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.badge-count:empty, .badge-count[data-count="0"] { display: none; }
.badge-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #34343a; background: transparent; color: #fff; font-weight: 700; font-size: 14px; }
.lang-btn:hover { border-color: var(--gold); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); color: var(--text); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 170px; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: all .2s var(--ease); z-index: 60;
}
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-align: left; }
.lang-menu button:hover { background: var(--sand); }
.lang-menu button.active { color: var(--gold-deep); }
.nav-row { background: var(--ink-2); border-top: 1px solid #26262b; }
.nav-row .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-row .container::-webkit-scrollbar { display: none; }
.nav-row a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: #d9d5ca; font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-row a:hover, .nav-row a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-row a.nav-highlight { color: var(--gold); }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .header-search { display: none; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 21px; }
  .brand-name small { display: none; }
  .header-actions .hide-mobile { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(14, 14, 16, .96); backdrop-filter: blur(10px); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid #26262b;
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: #a9a59a; font-size: 11px; font-weight: 700; position: relative; }
  .tabbar a.active { color: var(--gold); }
  .tabbar .badge-count { top: 0; right: calc(50% - 22px); }
  body { padding-bottom: 76px; }
  .mobile-search { display: block !important; }
}
.mobile-search { display: none; padding: 10px 0 12px; }
.mobile-search .header-search { display: block; max-width: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 85% 10%, rgba(233, 194, 92, .22), transparent 60%),
              radial-gradient(600px 400px at 0% 100%, rgba(233, 194, 92, .10), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-family: var(--display); font-size: clamp(42px, 6vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { color: #cfcbc0; font-size: 18px; margin-top: 18px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta .btn-outline { background: transparent; color: #fff; border-color: #3a3a40; }
.hero-cta .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--display); font-size: 34px; color: var(--gold); line-height: 1; }
.hero-stats div span { color: #a9a59a; font-size: 13px; font-weight: 600; }
.hero-card {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/4.4; background: var(--ink-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transform: rotate(1.5deg); transition: transform .6s var(--ease);
}
.hero-card:hover { transform: rotate(0); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .85)); }
.hero-card-copy { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.hero-card-copy span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero-card-copy h3 { font-family: var(--display); font-size: 30px; margin-top: 6px; }
.hero-card-tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero-card-tools a { background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.hero-card-tools a:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 48px; gap: 30px; }
  .hero-card { aspect-ratio: 4/3.4; transform: none; }
}

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center;
  display: grid; justify-items: center; gap: 12px; font-weight: 700; font-size: 14px; transition: all .25s var(--ease);
}
.cat-tile .cat-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--ink); transition: all .25s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-tile:hover .cat-icon { background: var(--ink); color: var(--gold); }

/* ---------- product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.p-card {
  position: relative; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.p-media { position: relative; aspect-ratio: 1/1; background: linear-gradient(145deg, #fbf8f1, #efe7d4); display: grid; place-items: center; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-placeholder { color: var(--ink); opacity: .85; display: grid; place-items: center; width: 100%; height: 100%; }
.p-placeholder .ico { width: 42%; height: 42%; stroke-width: 1.1; }
.p-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-direction: column; align-items: flex-start; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag-sale { background: var(--danger); color: #fff; }
.tag-gold { background: var(--gold); color: var(--ink); }
.tag-dark { background: var(--ink); color: var(--gold); }
.tag-soft { background: var(--sand); color: var(--text); }
.fav-btn {
  position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: var(--danger); }
.fav-btn.active svg { fill: currentColor; }
.fav-btn.pop { animation: bump .45s var(--ease); }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.p-title { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.p-short { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; display: block; }
.add-btn {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; transition: transform .2s var(--ease), background .2s;
}
.add-btn:hover { background: var(--gold); color: var(--ink); }
.add-btn.done { background: var(--success); color: #fff; }
.add-btn[disabled] { background: var(--sand); color: var(--muted); }
.fav-btn, .p-badges { z-index: 1; }
.stock-out { font-size: 12px; color: var(--danger); font-weight: 700; }
@media (max-width: 560px) {
  .p-body { padding: 10px 12px 12px; }
  .price { font-size: 16px; }
  .add-btn { width: 40px; height: 40px; border-radius: 12px; }
  .p-short { display: none; }
}

/* ---------- recipe card ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.r-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: all .3s var(--ease); display: flex; flex-direction: column; }
.r-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.r-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.r-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.r-card:hover .r-media img { transform: scale(1.06); }
.r-media .tag { position: absolute; left: 14px; top: 14px; }
.r-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.r-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.r-meta span { display: inline-flex; align-items: center; gap: 5px; }
.r-title { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.1; }
.r-title a::after { content: ""; position: absolute; inset: 0; }
.r-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-tools { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold-deep); }
.r-tools .avatars { display: flex; }
.r-tools .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); background: var(--sand); display: grid; place-items: center; margin-left: -8px; overflow: hidden; color: var(--ink); }
.r-tools .avatars span:first-child { margin-left: 0; }
.r-tools .avatars img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.feature .f-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.feature h4 { font-size: 15px; }
.feature p { color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- how to order ---------- */
.steps-band { background: var(--ink); color: #fff; border-radius: 30px; padding: 44px; position: relative; overflow: hidden; }
.steps-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(rgba(233, 194, 92, .25), transparent 70%); }
.steps-band h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); }
.steps-band .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; position: relative; }
.how-step { background: var(--ink-2); border: 1px solid #2a2a30; border-radius: 20px; padding: 22px; }
.how-step .num { font-family: var(--display); font-size: 44px; color: var(--gold); line-height: 1; }
.how-step h4 { margin-top: 10px; font-size: 17px; }
.how-step p { color: #b5b1a6; font-size: 14px; margin-top: 6px; }
.steps-band .cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; position: relative; }
@media (max-width: 900px) { .steps-band .grid4 { grid-template-columns: repeat(2, 1fr); } .steps-band { padding: 28px 20px; border-radius: 24px; } }
@media (max-width: 520px) { .steps-band .grid4 { grid-template-columns: 1fr; } }

/* ---------- page header / breadcrumbs ---------- */
.page-hero { padding: 34px 0 10px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 54px); font-weight: 700; margin-top: 6px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 60px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 20px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: grid; gap: 2px; }
.filter-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.filter-list a:hover { background: var(--sand); }
.filter-list a.active { background: var(--ink); color: var(--gold); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs .input { min-height: 42px; padding: 8px 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .select { width: auto; min-height: 44px; padding: 8px 14px; border-radius: 999px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 14px; transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 90; border-radius: 24px 24px 0 0; max-height: 85vh; overflow: auto; transform: translateY(105%); transition: transform .35s var(--ease); padding-bottom: 100px; }
  .filters.open { transform: none; box-shadow: var(--shadow-lg); }
  .filters-toggle { display: inline-flex; }
}
.empty { text-align: center; padding: 60px 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .ico { margin: 0 auto 14px; color: var(--gold-deep); }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 420px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; }
.pagination .current { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }

/* ---------- product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 1/1; border-radius: 26px; overflow: hidden; background: linear-gradient(145deg, #fbf8f1, #efe7d4); display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { width: 78px; height: 78px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--sand); flex-shrink: 0; }
.gallery-thumbs button.active { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.buy-box { position: sticky; top: calc(var(--header-h) + 60px); display: grid; gap: 18px; }
.buy-box h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 46px); font-weight: 700; }
.buy-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy-price .price { font-size: 34px; }
.buy-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); height: 50px; }
.qty button { width: 46px; height: 100%; border: 0; background: none; display: grid; place-items: center; }
.qty input { width: 44px; text-align: center; border: 0; font-weight: 800; background: none; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 40px; } .qty-sm button { width: 36px; } .qty-sm input { width: 32px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.perks { display: grid; gap: 10px; }
.perks div { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.perks .ico { color: var(--gold-deep); }
.specs { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.specs td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs tr:last-child td { border-bottom: 0; }
.specs td:first-child { color: var(--muted); width: 45%; font-weight: 600; }
.prose { font-size: 16px; line-height: 1.75; white-space: pre-line; }
.tabs-block { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .product-layout, .tabs-block { grid-template-columns: 1fr; gap: 24px; } .buy-box { position: static; } }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.cart-list { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 12px; transition: opacity .3s, transform .3s; }
.cart-row.removing { opacity: 0; transform: translateX(30px); }
.cart-thumb { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row h3 { font-size: 16px; }
.cart-row .muted { font-size: 13px; }
.cart-right { display: grid; justify-items: end; gap: 8px; }
.summary { position: sticky; top: calc(var(--header-h) + 60px); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 14px; }
.summary h3 { font-family: var(--display); font-size: 28px; }
.sum-row { display: flex; justify-content: space-between; font-weight: 600; }
.sum-row.total { font-size: 22px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); }
.free-bar { background: var(--sand); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; }
.free-bar .bar { height: 6px; border-radius: 6px; background: #e5dcc6; margin-top: 8px; overflow: hidden; }
.free-bar .bar span { display: block; height: 100%; background: var(--gold-deep); transition: width .4s var(--ease); }
.divider-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .cart-row { grid-template-columns: 70px 1fr; } .cart-thumb { width: 70px; height: 70px; } .cart-right { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; } }

/* ---------- recipe page ---------- */
.recipe-hero { position: relative; border-radius: 30px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; background: var(--ink); }
.recipe-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.recipe-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 20%, rgba(0, 0, 0, .85)); }
.recipe-hero-copy { position: relative; z-index: 1; padding: 34px; width: 100%; }
.recipe-hero h1 { font-family: var(--display); font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; max-width: 820px; }
.recipe-hero p { color: #e2ded3; max-width: 680px; margin-top: 10px; font-size: 17px; }
.recipe-facts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.recipe-facts span { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.recipe-gallery-strip { display: flex; gap: 8px; position: absolute; right: 24px; top: 24px; z-index: 2; }
.recipe-gallery-strip button { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .5); padding: 0; background: none; transition: transform .2s; }
.recipe-gallery-strip button.active { border-color: var(--gold); transform: scale(1.06); }
.recipe-gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.recipe-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: 30px; align-items: start; }
.recipe-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-actions .btn.active { background: var(--ink); color: var(--gold); }
.author-card { display: flex; gap: 16px; background: var(--ink); color: #fff; border-radius: 22px; padding: 22px; align-items: flex-start; }
.author-card .avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 20px; }
.author-card .who { font-size: 13px; color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.author-card p { color: #ddd9ce; margin-top: 6px; white-space: pre-line; }
.block { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head h2 { font-family: var(--display); font-size: 32px; }
.ingredients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ingredients label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--cream); cursor: pointer; font-weight: 600; transition: all .2s; }
.ingredients input { width: 20px; height: 20px; accent-color: var(--ink); }
.ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
@media (max-width: 640px) { .ingredients { grid-template-columns: 1fr; } }
.progress { height: 8px; background: var(--sand); border-radius: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .45s var(--ease); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); transition: all .3s var(--ease); }
.step.done { background: #f6f1e4; }
.step.done .step-num { background: var(--success); color: #fff; }
.step-num { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 700; transition: all .3s; }
.step h3 { font-size: 18px; }
.step p { color: #3a3934; margin-top: 6px; }
.step-img { margin-top: 14px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: var(--sand); }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-tool { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--sand); font-weight: 700; font-size: 14px; }
.step-tool .mini { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.step-tool .mini img { width: 100%; height: 100%; object-fit: cover; }
.step-tool:hover { background: var(--gold); }
.step-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } .step-num { width: 46px; height: 46px; font-size: 22px; } }
.tool-side { position: sticky; top: calc(var(--header-h) + 60px); display: grid; gap: 14px; }
.tool-card { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; position: relative; transition: all .25s var(--ease); }
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card .thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: linear-gradient(145deg, #fbf8f1, #efe7d4); display: grid; place-items: center; }
.tool-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tool-card h4 { font-size: 14px; line-height: 1.3; }
.tool-card .note { font-size: 12px; color: var(--muted); }
.tool-card .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.tool-card .price { font-size: 16px; }
.tool-card .add-btn { width: 38px; height: 38px; border-radius: 12px; }
.kit-box { background: var(--ink); color: #fff; border-radius: 22px; padding: 20px; display: grid; gap: 12px; }
.kit-box h3 { font-family: var(--display); font-size: 26px; color: var(--gold); }
.kit-box p { color: #c9c5ba; font-size: 14px; }
@media (max-width: 960px) { .recipe-layout { grid-template-columns: 1fr; } .tool-side { position: static; } .recipe-hero { min-height: 400px; border-radius: 22px; } .recipe-hero-copy { padding: 22px; } .recipe-gallery-strip { right: 14px; top: 14px; } .recipe-gallery-strip button { width: 46px; height: 46px; } }

/* ---------- comments ---------- */
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 800; }
.comment-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.comment-head strong { font-size: 15px; }
.comment-text { margin-top: 4px; white-space: pre-line; }
.comment .stars { color: var(--gold-deep); letter-spacing: 2px; }
.replies { margin-top: 12px; display: grid; gap: 10px; }
.reply { background: var(--cream); border-radius: 16px; padding: 12px 14px; border-left: 3px solid var(--line); }
.reply.author { background: #fbf3dc; border-left-color: var(--gold-deep); }
.reply-form { display: none; margin-top: 10px; gap: 8px; }
.reply-form.open { display: grid; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { display: none; }
.rating-input label { font-size: 28px; color: #d7cfbb; cursor: pointer; transition: color .15s, transform .15s; line-height: 1; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--gold-deep); }
.rating-input label:active { transform: scale(1.2); }

/* ---------- modal / sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.97); opacity: 0; transition: all .35s var(--ease); }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-close { position: absolute; right: 16px; top: 16px; }
.modal-card h2 { font-family: var(--display); font-size: 32px; }
.modal-card .sub { color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) {
  .modal { place-items: end center; padding: 0; }
  .modal-card { width: 100%; border-radius: 26px 26px 0 0; padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); transform: translateY(100%); }
}
.auth-step { display: none; gap: 14px; margin-top: 20px; }
.auth-step.active { display: grid; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.phone-wrap { position: relative; }
.phone-wrap .prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 20px; color: var(--muted); }
.phone-wrap .input { padding-left: 76px; }
.otp-hint { background: var(--sand); padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.link-btn { background: none; border: 0; color: var(--gold-deep); font-weight: 700; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.contact-options { display: grid; gap: 10px; margin-top: 18px; }
.contact-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); font-weight: 700; transition: all .2s; }
.contact-option:hover { border-color: var(--ink); transform: translateX(4px); }
.contact-option .c-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.contact-option small { display: block; color: var(--muted); font-weight: 600; }

/* ---------- toast + debug sms ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
@media (max-width: 860px) { .toasts { bottom: 90px; } }
.toast { background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; animation: toastIn .4s var(--ease); pointer-events: auto; }
.toast .ico { color: var(--gold); }
.toast.error { background: var(--danger); }
.toast.error .ico { color: #fff; }
.toast a { margin-left: auto; color: var(--gold); font-weight: 800; white-space: nowrap; }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.debug-sms { position: fixed; right: 16px; top: 90px; z-index: 310; width: min(340px, calc(100% - 32px)); background: #111; color: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--gold); font-size: 14px; animation: toastIn .4s var(--ease); }
.debug-sms b { color: var(--gold); display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.debug-sms button { position: absolute; right: 8px; top: 8px; background: none; border: 0; color: #aaa; }
.flash { padding: 14px 18px; border-radius: 16px; font-weight: 600; margin-top: 16px; }
.flash.success { background: #e6f4ea; color: #145c33; }
.flash.error { background: #fbeaea; color: #8a2020; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cfcbc0; margin-top: 70px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1.3fr; gap: 28px; padding: 54px 0 34px; }
.footer h4 { color: var(--gold); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; color: #cfcbc0; font-size: 14px; }
.footer a:hover { color: var(--gold); }
.footer .about { font-size: 14px; margin-top: 14px; color: #a9a59a; }
.footer .socials { display: flex; gap: 8px; margin-top: 16px; }
.footer .socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #34343a; display: grid; place-items: center; padding: 0; }
.footer .socials a:hover { border-color: var(--gold); }
.footer-contact { display: flex; gap: 10px; align-items: center; }
.track-form { display: grid; gap: 8px; }
.track-form input { background: var(--ink-2); border: 1px solid #34343a; color: #fff; border-radius: 12px; height: 46px; padding: 0 14px; outline: none; }
.track-form input:focus { border-color: var(--gold); }
.footer-bottom { border-top: 1px solid #26262b; padding: 18px 0; font-size: 13px; color: #8d8a82; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.card h2 { font-family: var(--display); font-size: 28px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 28px; font-weight: 800; }

/* ---------- order flow ---------- */
.flow-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
@media (max-width: 960px) { .flow-layout { grid-template-columns: 1fr; } .flow-layout .summary { order: -1; } }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.stepper button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; text-align: left; transition: all .25s var(--ease); }
.stepper .n { width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; transition: all .25s; }
.stepper button.active { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.stepper button.active .n { background: var(--ink); color: var(--gold); }
.stepper button.done .n { background: var(--success); color: #fff; }
.stepper button[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) { .stepper button span.t { display: none; } .stepper button { justify-content: center; } }
.flow-panel { display: none; }
.flow-panel.active { display: block; animation: fadeUp .4s var(--ease); }
.map-wrap { position: relative; border-radius: 24px; overflow: hidden; height: min(62vh, 520px); min-height: 360px; background: #e9e5da; border: 1px solid var(--line); }
#map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 500; pointer-events: none; transform: translate(-50%, -100%); transition: transform .25s var(--ease); color: var(--ink); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.map-pin svg { width: 48px; height: 48px; fill: var(--gold); stroke: var(--ink); stroke-width: 1.4; }
.map-pin.lifted { transform: translate(-50%, calc(-100% - 14px)); }
.map-pin-shadow { position: absolute; left: 50%; top: 50%; z-index: 499; width: 14px; height: 6px; margin-left: -7px; margin-top: -3px; border-radius: 50%; background: rgba(0, 0, 0, .35); transition: transform .25s var(--ease); pointer-events: none; }
.map-pin-shadow.lifted { transform: scale(1.8); opacity: .5; }
.map-search { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 600; }
.map-search .input { padding-left: 46px; min-height: 52px; border: 0; box-shadow: var(--shadow); }
.map-search .s-ico { position: absolute; left: 16px; top: 15px; color: var(--muted); }
.map-results { margin-top: 6px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; max-height: 280px; overflow-y: auto; }
.map-results.open { display: block; }
.map-results button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.map-results button:hover, .map-results button.focus { background: var(--sand); }
.map-results small { display: block; color: var(--muted); }
.map-gps { position: absolute; right: 12px; bottom: 96px; z-index: 600; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .2s; }
.map-gps:hover { transform: scale(1.08); }
.map-gps.locating { animation: pulse 1.2s infinite; color: var(--gold-deep); }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(233, 194, 92, .25); } }
.map-address { position: absolute; left: 12px; right: 76px; bottom: 12px; z-index: 600; background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.map-address .ico { color: var(--gold); }
.map-address small { display: block; color: #a9a59a; font-weight: 600; font-size: 12px; }
.gps-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(37, 99, 235, .5); animation: gpsPulse 2s infinite; }
@keyframes gpsPulse { 70% { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }
.pay-options { display: grid; gap: 12px; }
.pay-option { position: relative; display: grid; grid-template-columns: 56px 1fr 26px; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; transition: all .25s var(--ease); }
.pay-option:hover { border-color: #bdb39c; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option .p-logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; overflow: hidden; }
.pay-option .p-logo img { width: 100%; height: 100%; object-fit: cover; }
.pay-option .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: all .2s; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: var(--shadow); }
.pay-option:has(input:checked) .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
.pay-details { display: none; margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--cream); border: 1px dashed #d9cfb6; gap: 12px; }
.pay-details.open { display: grid; animation: fadeUp .35s var(--ease); }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper); border-radius: 14px; padding: 12px 14px; font-weight: 800; font-size: 18px; letter-spacing: .03em; }
.pay-qr { width: 180px; border-radius: 14px; }
.upload { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px dashed #cdbf9f; background: var(--paper); cursor: pointer; font-weight: 700; font-size: 14px; }
.upload input { display: none; }
.upload.has-file { border-style: solid; border-color: var(--success); color: var(--success); }
.flow-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.mini-items { display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.mini-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.mini-item .thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.mini-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.success-burst { width: 96px; height: 96px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin: 0 auto; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.timeline div { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.timeline div::before { content: ""; display: block; height: 6px; border-radius: 6px; background: var(--sand); margin-bottom: 8px; }
.timeline div.done { color: var(--text); }
.timeline div.done::before { background: var(--success); }
.timeline div.current::before { background: linear-gradient(90deg, var(--success), var(--gold)); }

/* ---------- misc ---------- */
.info-page { max-width: 820px; }
.info-page .prose { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px; margin-top: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

@media print {
  .header, .announce, .nav-row, .footer, .tabbar, .tool-side, .recipe-actions, #comments, .toasts { display: none !important; }
  body { background: #fff; padding: 0; }
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-hero { min-height: 260px; }
}
