:root {
  --cream: #F5E1BA;
  --light: #FFF8EC;
  --line: #EBD6B0;
  --card: #F2D3A6;
  --orange: #E0602A;
  --green: #1C6233;
  --lemon: #E8E99D;
  --purple: #A26BA7;
  --white: #FFFFFF;
  --text: #3A3A3A;
  --navy: #2B2E7A;
  --mix: #F28C28;
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid color-mix(in srgb, var(--orange) 25%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  font-weight: 900; font-size: 26px; letter-spacing: 1px;
  color: var(--orange); text-decoration: none;
  transform: rotate(-2deg); display: inline-block; white-space: nowrap;
}
.logo img { height: 40px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; color: var(--green); white-space: nowrap; }
.nav a:hover { color: var(--orange); }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--green); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-green { background: var(--green); color: var(--lemon); }
.btn-ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }
.nav .btn { padding: 9px 18px; font-size: 15px; color: var(--white); }

/* ---------- Ornaments ---------- */
.flowers { color: var(--orange); letter-spacing: 6px; font-size: 18px; text-align: center; }
.section-title {
  text-align: center; font-weight: 900; font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15; margin: 8px 0 10px;
}
.section-sub { text-align: center; max-width: 620px; margin: 0 auto 36px; }
section { padding: 72px 0; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  font-weight: 900; font-size: clamp(34px, 6vw, 58px); line-height: 1.08;
  color: var(--green); margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 19px; margin: 0 0 26px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-card {
  background: var(--card); border-radius: 40px; aspect-ratio: 4/3;
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.bubble {
  position: absolute; background: var(--white); color: var(--green);
  font-weight: 800; padding: 12px 18px; border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08); font-size: 15px;
}
.bubble::after {
  content: ""; position: absolute; bottom: -9px; left: 26px;
  border: 10px solid transparent; border-top-color: var(--white); border-bottom: 0;
}
.bubble.b1 { top: 22px; left: -18px; transform: rotate(-3deg); }
.bubble.b2 { bottom: 34px; right: -14px; transform: rotate(2deg); }
.price-pill {
  display: inline-block; background: var(--green); color: var(--lemon);
  font-weight: 900; padding: 8px 16px; border-radius: 999px; font-size: 15px;
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px;
}
.why .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: grid; place-items: center; font-weight: 900; margin-bottom: 14px;
}
.why h3 { margin: 0 0 6px; color: var(--green); font-size: 20px; line-height: 1.25; }
.why p { margin: 0; font-size: 16px; }

/* ---------- Products ---------- */
.cat { margin-top: 48px; }
.cat-title { text-align: center; font-weight: 900; font-size: 30px; margin: 0 0 22px; }
.cat-title.single { color: var(--green); }
.cat-title.mix { color: var(--mix); }
.cat-title.soup { color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(58,58,58,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(58,58,58,.10); }
.product .ph { aspect-ratio: 1/1; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .ph .fallback { font-weight: 900; font-size: 64px; color: var(--orange); opacity: .4; }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-name { margin: 0; color: var(--green); font-size: 19px; font-weight: 900; line-height: 1.2; }
.p-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.p-price { font-weight: 900; font-size: 18px; color: var(--text); }
.p-weight { font-size: 14px; color: #8a8a8a; font-weight: 700; }
.p-order { margin-top: auto; justify-content: center; width: 100%; padding: 12px 18px; }
.note { text-align: center; margin-top: 26px; font-size: 15px; }

/* ---------- Trust ---------- */
.trust { background: var(--green); color: var(--lemon); border-radius: 40px; padding: 48px 32px; }
.trust .section-title { color: var(--lemon); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.trust-item { background: rgba(232,233,157,.1); border-radius: 22px; padding: 22px; }
.trust-item b { display: block; font-size: 30px; font-weight: 900; color: var(--white); }

/* ---------- Stores ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tab {
  border: 2px solid var(--green); background: transparent; color: var(--green);
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; cursor: pointer;
  font-family: inherit;
}
.tab.active { background: var(--green); color: var(--lemon); }
.stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.store {
  background: var(--white); border-radius: 18px; padding: 16px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.store .dot {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--white); display: grid; place-items: center; font-size: 16px;
}
.store h4 { margin: 0 0 2px; color: var(--green); font-size: 17px; }
.store p { margin: 0; font-size: 15px; }
.store a.map { font-size: 14px; font-weight: 800; color: var(--orange); text-decoration: none; }

/* ---------- B2B ---------- */
.b2b { background: var(--purple); color: var(--white); border-radius: 40px; padding: 48px 32px; }
.b2b .wrap-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.b2b h2 { font-weight: 900; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 14px; color: var(--lemon); }
.b2b ul { padding-left: 20px; margin: 0; }
.b2b li { margin-bottom: 6px; }
form.lead-form { background: var(--lemon); color: var(--text); border-radius: 26px; padding: 24px; display: grid; gap: 12px; }
form.lead-form label { font-weight: 800; font-size: 14px; color: var(--green); }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid transparent;
  font-family: inherit; font-size: 16px; background: var(--white);
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus { outline: none; border-color: var(--orange); }
.form-msg { font-weight: 800; color: var(--green); min-height: 1em; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details { background: var(--white); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 800; color: var(--green); cursor: pointer; }
details p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
footer { border-top: 2px solid var(--orange); padding: 36px 0 48px; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer .tagline { color: var(--orange); font-weight: 800; }
footer a { color: var(--green); font-weight: 700; }

/* ---------- Legal page ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 16px 72px; }
.legal h1 { color: var(--green); font-weight: 900; }
.legal h2 { color: var(--orange); font-size: 22px; margin-top: 32px; }

/* ---------- Floating Messenger ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  background: var(--orange); color: var(--white); border-radius: 999px;
  padding: 14px 20px; font-weight: 900; text-decoration: none;
  box-shadow: 0 8px 22px rgba(224,96,42,.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
         background: var(--cream); flex-direction: column; padding: 16px; gap: 14px; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-card { aspect-ratio: 1/1; }
  .bubble.b1 { left: 8px; } .bubble.b2 { right: 8px; }
  .stores { grid-template-columns: 1fr; }
  .b2b .wrap-in { grid-template-columns: 1fr; }
  .b2b, .trust { padding: 36px 20px; border-radius: 28px; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product { border-radius: 20px; }
  .product .body { padding: 12px; gap: 4px; }
  .p-name { font-size: 16px; }
  .p-price { font-size: 15px; }
  .p-weight { font-size: 12px; }
  .p-order { padding: 10px 12px; font-size: 15px; }
  .hero { padding-top: 32px; }
}

/* ---------- Section bands ---------- */
.band-light { background: var(--light); }
.band-cream { background: var(--cream); }
.band-green { background: var(--green); }
.band-purple { background: var(--purple); }
.band-light, .band-cream, .band-green, .band-purple { position: relative; }
/* Хэсгүүдийн заагт зөөлөн долгион */
.band-light::before, .band-green::before, .band-purple::before, .band-cream::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 28px; pointer-events: none;
  background: inherit;
  -webkit-mask: radial-gradient(28px 20px at 50% 0, transparent 98%, #000) 0 0 / 56px 28px repeat-x;
          mask: radial-gradient(28px 20px at 50% 0, transparent 98%, #000) 0 0 / 56px 28px repeat-x;
  transform: translateY(-27px);
}
.band-green .trust, .band-purple .b2b { background: transparent; padding: 0; border-radius: 0; }
.band-light .store { border: 1px solid var(--line); }
.band-light .why { background: var(--white); border: 1px solid var(--line); }
.band-cream details { border: 1px solid var(--line); }
footer { margin-top: 0; background: var(--light); }

/* ---------- Сагс ---------- */
.head-actions { display: flex; align-items: center; gap: 14px; }
.site-header .back { font-weight: 800; color: var(--green); text-decoration: none; }
.cart-link { position: relative; text-decoration: none; font-size: 22px; line-height: 1; }
.cart-badge {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--orange); color: var(--white); border-radius: 999px;
  font-size: 12px; font-weight: 900; display: grid; place-items: center;
}
.cart-badge[hidden] { display: none; }
.toast {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: 84px; transform: translateY(20px); opacity: 0; pointer-events: none;
  background: var(--green); color: var(--lemon); padding: 12px 16px; border-radius: 16px; z-index: 60;
  display: flex; gap: 14px; align-items: center; font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18); transition: all .2s ease; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast a { color: var(--white); white-space: nowrap; }
.product a.ph { display: grid; }
.product a.p-name { text-decoration: none; display: block; }
.product a.p-name:hover { color: var(--orange); }

/* ---------- Бүтээгдэхүүний хуудас ---------- */
.pd-section { padding-top: 36px; }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-main { background: var(--card); border-radius: 32px; overflow: hidden; aspect-ratio: 1/1; display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main .fallback { font-size: 96px; color: var(--orange); opacity: .4; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 14px; overflow: hidden; border: 3px solid transparent; cursor: pointer; background: none; }
.pd-thumbs button.on { border-color: var(--orange); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { color: var(--orange); font-weight: 800; font-size: 15px; }
.pd-info h1 { color: var(--green); font-weight: 900; font-size: clamp(30px, 5vw, 44px); margin: 4px 0 8px; line-height: 1.1; }
.pd-price { font-size: 26px; }
.pd-age { display: inline-block; background: var(--white); border-radius: 999px; padding: 6px 14px; font-weight: 800; color: var(--green); margin: 6px 0 4px; }
.pd-desc { font-size: 17px; }
.pd-buy { display: flex; gap: 12px; align-items: center; margin: 18px 0 8px; }
.pd-buy .btn { flex: 1; justify-content: center; }
.pd-qty { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 999px; padding: 6px; }
.pd-qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 20px; font-weight: 900; font-family: inherit; }
.pd-qty .minus { background: var(--card); color: var(--green); }
.pd-qty .plus { background: var(--orange); color: var(--white); }
.pd-qty .n { min-width: 28px; padding: 0 2px; text-align: center; font-weight: 900; font-size: 18px; }
.pd-checkout { display: inline-block; font-weight: 800; color: var(--green); margin-bottom: 18px; }
.pd-block { background: var(--white); border-radius: 18px; padding: 14px 18px; margin-top: 10px; border: 1px solid var(--line); }
.pd-block h3 { margin: 0 0 6px; color: var(--green); font-size: 17px; }
.pd-block p, .pd-block ul { margin: 0; }
.pd-block ul { padding-left: 18px; }
@media (max-width: 720px) {
  .pd { grid-template-columns: 1fr; gap: 20px; }
  .pd-section { padding-top: 20px; }
  .head-actions .back { display: none; }
}
