/* ============================================================
   Зөвхөн түүнд — дизайны систем (албан ёсны brand guideline-аар)
   Cream + Hot pink (#ff6698) + Deep green (#0f4b42) + Black/White
   Фонт: Museo Sans Cyrillic (бодит фонтын файл) + Caveat (зурвас)
   ============================================================ */

@font-face{ font-family:"Museo Sans Cyrl"; font-weight:100; font-style:normal; font-display:swap;
  src: url("fonts/museo-100.woff2") format("woff2"); }
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:100; font-style:italic; font-display:swap;
  src: url("fonts/museo-100-italic.woff2") format("woff2"); }
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:300; font-style:normal; font-display:swap;
  src: url("fonts/museo-300.woff2") format("woff2"); }
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:300; font-style:italic; font-display:swap;
  src: url("fonts/museo-300-italic.woff2") format("woff2"); }
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:500; font-style:normal; font-display:swap;
  src: url("fonts/museo-500.woff2") format("woff2"); }
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:500; font-style:italic; font-display:swap;
  src: url("fonts/museo-500-italic.woff2") format("woff2"); }
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:700; font-style:normal; font-display:swap;
  src: url("fonts/museo-700.woff2") format("woff2"); }
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:700; font-style:italic; font-display:swap;
  src: url("fonts/museo-700-italic.woff2") format("woff2"); }
/* 900 жигнэлдээ зөвхөн Italic ирсэн тул regular 900 declare-лоогүй (900 текст хүсвэл 700-р орлуулна) */
@font-face{ font-family:"Museo Sans Cyrl"; font-weight:900; font-style:italic; font-display:swap;
  src: url("fonts/museo-900-italic.woff2") format("woff2"); }

:root{
  --paper:        #FBF4E8;   /* brand cream */
  --paper-deep:   #FFEAF1;   /* pink tint (cup/flower cards) */
  --paper-card:   #FFFFFF;
  --blush:        #EFB8C3;   /* brand blush/secondary pink */
  --ink:          #15140F;   /* near-black text */
  --ink-soft:     #4B5A55;   /* muted green-grey for secondary text */
  --ink-faint:    #9AA39F;
  --ribbon:       #FF6698;   /* brand primary pink */
  --ribbon-dark:  #C75077;   /* pressed/hover pink */
  --ribbon-tint:  #FFEAF1;
  --sage:         #0F4B42;   /* brand deep green */
  --sage-tint:    #E7EDEC;
  --gold:         #FF6698;   /* sale badge reuses brand pink (no separate gold in brand palette) */
  --gold-tint:    #FFEAF1;
  --line:         rgba(15,20,18,.12);
  --shadow-soft:  0 2px 10px rgba(15,20,18,.05), 0 10px 28px rgba(15,20,18,.06);
  --shadow-lift:  0 8px 22px rgba(15,20,18,.10), 0 22px 50px rgba(15,20,18,.09);
  --radius-card:  26px;
  --radius-pill:  999px;
  --font-display: "Museo Sans Cyrl", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Museo Sans Cyrl", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-hand:    "Caveat", cursive;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }
:focus-visible{ outline: 2.5px solid var(--ribbon-dark); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 600px){ .wrap{ padding: 0 28px; } }

h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .4em; }
.hero h1 em{ font-style: normal; font-weight: 700; color: var(--ribbon); }
.eyebrow{
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: 12.5px; color: var(--ribbon-dark);
}
.lede{ color: var(--ink-soft); font-size: 17px; max-width: 46em; }

/* ---------------- Header / nav ---------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(251,243,236,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height: 76px; gap: 24px; }
.logo{ font-family: var(--font-display); font-size: 23px; font-weight: 700; display:flex; align-items:center; gap:10px; }
.logo .mark{ width:34px; height:34px; flex-shrink:0; }
.logo .wordmark-img{ height:18px; }
.main-nav{ display:flex; align-items:center; gap: 28px; }
.main-nav a{
  font-size: 14px; font-weight: 500; color: var(--ink-soft); position:relative; padding: 4px 0;
}
.main-nav a:hover, .main-nav a.active{ color: var(--ink); }
.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px; background: var(--ribbon);
}
.nav-cart{
  display:flex; align-items:center; gap:8px; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 700;
  border: none; cursor:pointer;
}
.nav-cart .count{
  background: var(--ribbon); color:#fff; border-radius: 50%; min-width: 19px; height:19px;
  display:inline-flex; align-items:center; justify-content:center; font-size: 11px;
}
.burger{ display:none; }

@media (max-width: 760px){
  .site-header .wrap{ height:auto; flex-wrap:wrap; padding-top:12px; padding-bottom:12px; gap:10px; }
  .main-nav{ order:3; width:100%; gap:18px; overflow-x:auto; padding-bottom:2px; }
  .main-nav a{ font-size:13px; white-space:nowrap; }
  .logo .wordmark-img{ display:none; }
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  padding: 13px 24px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--ribbon); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover{ background: var(--ribbon-dark); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }
.btn-ghost{ background: var(--paper-deep); color: var(--ink); }
.btn-ghost:hover{ background: var(--line); }
.btn-sm{ padding: 9px 16px; font-size: 13px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none !important; box-shadow:none !important; }

/* ---------------- Hero ---------------- */
.hero{ padding: 64px 0 56px; }
.hero .wrap{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items:center; }
.hero h1{ font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; }
.hero-actions{ display:flex; gap:14px; margin-top: 28px; flex-wrap:wrap; }
.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; }
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 320px; margin: 0 auto; }
}

/* ---------------- Gift-tag recipient row ---------------- */
.section{ padding: 56px 0; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap: 20px; margin-bottom: 30px; flex-wrap:wrap; }

.tag-row{
  display:flex; gap: 22px; overflow-x:auto; padding: 18px 4px 28px;
  scrollbar-width: none;
}
.tag-row::-webkit-scrollbar{ display:none; }
.gift-tag{
  flex: 0 0 auto; width: 168px; background: var(--paper-card); border: 1px solid var(--line);
  border-radius: 10px 10px 26px 26px; padding: 22px 16px 18px; text-align:center;
  box-shadow: var(--shadow-soft); position:relative; transition: transform .18s ease, box-shadow .18s ease;
}
.gift-tag::before{
  content:""; position:absolute; top:-13px; left:50%; transform: translateX(-50%);
  width:2px; height:16px; background: var(--ink-faint);
}
.gift-tag::after{
  content:""; position:absolute; top:-15px; left:50%; transform: translateX(-50%);
  width:10px; height:10px; border-radius:50%; border:2px solid var(--ink-faint); background: var(--paper);
}
.gift-tag:hover{ transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lift); }
.gift-tag .emoji{ font-size: 30px; display:block; margin-bottom: 10px; }
.gift-tag .label{ font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.gift-tag .hint{ font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

/* ---------------- Category strip ---------------- */
.cat-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px){ .cat-grid{ grid-template-columns: repeat(2,1fr); } }
.cat-card{
  background: var(--paper-card); border:1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 20px; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cat-icon{ width:46px; height:46px; border-radius: 50%; display:flex; align-items:center; justify-content:center; margin-bottom: 14px; }
.cat-card h3{ font-size: 19px; margin-bottom: 4px; }
.cat-card .count{ font-size: 13px; color: var(--ink-faint); }

/* ---------------- Product cards / grid ---------------- */
.filter-pills{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 28px; }
.sort-row{ display:flex; justify-content:flex-end; margin:-6px 0 14px; }
.sort-row #sort-select{ max-width:200px; }
@media (max-width: 600px){
  .sort-row{ justify-content:stretch; }
  .sort-row #sort-select{ max-width:none; width:100%; }
}
.pill{
  font-size: 13.5px; font-weight: 700; padding: 9px 17px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--paper-card); cursor:pointer; color: var(--ink-soft);
}
.pill.is-active{ background: var(--ink); color: var(--paper); border-color: var(--ink); }

.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px){ .product-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .product-grid{ grid-template-columns: 1fr 1fr; gap:14px; } }

.product-card{
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow:hidden; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column;
}
.product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-art{
  aspect-ratio: 1/1; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
  border-radius: var(--radius-card);
}
.product-art svg{ width:46%; height:46%; }
.product-art.is-detail{ aspect-ratio: auto; width:100%; height:420px; }
@media (max-width: 760px){ .product-art.is-detail{ height: 300px; } }
.badge{
  position:absolute; top:10px; left:10px; font-size: 11px; font-weight:700; padding: 5px 10px;
  border-radius: var(--radius-pill); background: var(--gold); color:#fff;
}
.badge.sold{ background: var(--ink-faint); }
.product-body{ padding: 12px 14px 14px; display:flex; flex-direction:column; flex:1; }
.product-body .name{ font-size: 14px; font-weight: 700; line-height:1.35; display:block; color:var(--ink); min-height:2.7em; }
.price-row{ display:flex; align-items:baseline; gap:8px; margin-top:8px; }
.price{ font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ribbon-dark); }
.price-old{ font-size: 13px; color: var(--ink-faint); text-decoration: line-through; }
.product-add-btn{ margin-top:auto !important; }
@media (max-width: 480px){
  .product-actions{ flex-direction: column; }
  .product-actions .btn{ padding: 8px 6px; font-size: 11.5px; white-space: normal; }
}

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--sage); color: var(--paper); padding: 52px 0 30px; margin-top: 40px; }
.site-footer .wrap{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h4{ color: var(--paper); font-family: var(--font-body); font-size: 13px; text-transform:uppercase; letter-spacing:.1em; opacity:.65; }
.site-footer .logo{ color: var(--paper); }
.site-footer p, .site-footer a{ color: rgba(251,244,232,.8); font-size: 14px; }
.site-footer a:hover{ color: var(--ribbon); }
.foot-bottom{ border-top: 1px solid rgba(251,244,232,.18); margin-top: 34px; padding-top: 20px; font-size: 12.5px; color: rgba(251,244,232,.55); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
@media (max-width:760px){ .site-footer .wrap{ grid-template-columns: 1fr; } }

/* ---------------- Breadcrumb ---------------- */
.crumb{ font-size: 13px; color: var(--ink-faint); margin: 14px 0 6px; }

.product-detail-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:start; padding:24px 0 10px; }
@media (max-width: 760px){ .product-detail-grid{ grid-template-columns: 1fr; gap:24px; } }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
@media (max-width: 600px){ .grid-2{ grid-template-columns: 1fr; } }

.grid-2-wide{ display:grid; grid-template-columns: 2fr 1fr; gap:14px; }
@media (max-width: 600px){ .grid-2-wide{ grid-template-columns: 1fr; } }

.grid-3{ display:grid; grid-template-columns: 2fr 1fr 1fr; gap:14px; }
@media (max-width: 600px){ .grid-3{ grid-template-columns: 1fr; } }

.grid-3-even{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; }
@media (max-width: 600px){ .grid-3-even{ grid-template-columns: 1fr; } }

.explainer-box{ background:var(--paper-deep); border-radius:24px; padding:44px 40px; display:grid; grid-template-columns:1.2fr .8fr; gap:30px; align-items:center; }
@media (max-width: 760px){ .explainer-box{ grid-template-columns: 1fr; padding: 30px 24px; } }
.crumb a:hover{ color: var(--ink); }

/* ---------------- Empty state ---------------- */
.empty-state{ text-align:center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------------- Toast ---------------- */
.toast{
  position: fixed; bottom: 26px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight:500; box-shadow: var(--shadow-lift); opacity:0; pointer-events:none;
  transition: opacity .25s ease, transform .25s ease; z-index: 200; display:flex; align-items:center; gap:10px;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

/* ---------------- Builder ---------------- */
.builder-layout{ display:grid; grid-template-columns: 1fr 380px; gap: 40px; align-items:flex-start; }
@media (max-width: 940px){ .builder-layout{ grid-template-columns: 1fr; } }

.steps-nav{ display:flex; gap:6px; margin-bottom: 32px; flex-wrap:wrap; }
.step-dot{
  display:flex; align-items:center; gap:8px; font-size: 12.5px; font-weight:700; color: var(--ink-faint);
  padding: 8px 14px 8px 10px; border-radius: var(--radius-pill); background: var(--paper-deep);
}
.step-dot .num{
  width:20px; height:20px; border-radius:50%; background:#fff; color: var(--ink-faint); border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size: 11px;
}
.step-dot.is-active{ background: var(--ribbon-tint); color: var(--ribbon-dark); }
.step-dot.is-active .num{ background: var(--ribbon); color:#fff; border-color: var(--ribbon); }
.step-dot.is-done .num{ background: var(--sage); color:#fff; border-color: var(--sage); }
@media (max-width: 760px){
  .steps-nav{ flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 2px 4px; margin-left: 0; margin-right: 0; }
  .steps-nav::-webkit-scrollbar{ display:none; }
  .step-dot{ flex: 0 0 auto; padding: 7px 12px 7px 8px; font-size: 11.5px; gap:6px; }
  .step-dot .num{ width:18px; height:18px; font-size:10px; }
}

.step-panel{ background: var(--paper-card); border:1px solid var(--line); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-soft); min-height: 360px; }
.step-panel h2{ font-size: 25px; }
.choice-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top: 22px; }
@media (max-width: 620px){ .choice-grid{ grid-template-columns: repeat(2,1fr); } }
.choice-card{
  border: 2px solid var(--line); border-radius: 20px; padding: 18px 14px; text-align:center; cursor:pointer;
  background: #fff; transition: border-color .15s ease, transform .15s ease;
}
.choice-card:hover{ transform: translateY(-3px); }
.choice-card.is-selected{ border-color: var(--ribbon); background: var(--ribbon-tint); }
.choice-card .emoji{ font-size: 28px; }
.choice-card .t{ font-weight:700; font-size: 14px; margin-top:6px; }

.item-pick-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 20px; max-height: 480px; overflow-y:auto; padding-right: 6px; }
@media (max-width: 620px){ .item-pick-grid{ grid-template-columns: repeat(2,1fr); } }
.pick-card{
  border: 2px solid var(--line); border-radius: var(--radius-card); background:#fff; padding: 12px; cursor:pointer;
  transition: border-color .15s ease, transform .15s ease; text-align:left;
}
.pick-card.is-selected{ border-color: var(--sage); background: var(--sage-tint); }
.pick-card .product-art{ aspect-ratio: 1.4/1; border-radius: 10px; margin-bottom:8px; }
.pick-card .product-art svg{ width:34%; height:34%; }
.pick-card .pname{ font-size: 12.5px; font-weight:700; min-height: 2.4em; }
.pick-card .pprice{ font-size: 13px; color: var(--ribbon-dark); font-weight:700; margin-top:4px; }

.msg-box textarea{
  width:100%; border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; font-family: var(--font-hand);
  font-size: 24px; color: var(--ink); resize: vertical; min-height: 140px; background: #fffdf9;
}
.msg-box textarea::placeholder{ color: var(--ink-faint); font-family: var(--font-body); font-size: 14px; }

.step-actions{ display:flex; justify-content:space-between; margin-top: 28px; }

/* Box preview panel */
.box-preview{
  position: sticky; top: 96px; background: var(--paper-deep); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-soft);
}
.box-preview h3{ font-size: 16px; text-transform:uppercase; letter-spacing:.08em; font-family: var(--font-body); }
.box-preview .recipient-line{ font-family: var(--font-display); font-size: 20px; color: var(--ribbon-dark); margin-bottom: 14px; }
.box-art{ display:flex; justify-content:center; margin: 6px 0 14px; }
.box-art svg{ width: 200px; height:auto; }
.box-items-list{ display:flex; flex-direction:column; gap:8px; margin: 14px 0; max-height: 220px; overflow-y:auto; }
.box-item-row{ display:flex; justify-content:space-between; gap:8px; font-size: 13px; padding: 8px 10px; background:#fff; border-radius:10px; border:1px solid var(--line); }
.box-item-row button{ background:none; border:none; color: var(--ink-faint); cursor:pointer; font-size:15px; line-height:1; }
.box-total{ display:flex; justify-content:space-between; align-items:baseline; border-top: 1.5px dashed var(--line); padding-top:14px; margin-top: 10px; }
@media (max-width: 940px){
  .box-preview{ order: -1; position: static; top: auto; }
}
.box-total .num{ font-family: var(--font-display); font-size: 24px; font-weight:700; color: var(--ribbon-dark); }
.box-empty-note{ font-size: 13px; color: var(--ink-faint); text-align:center; padding: 18px 4px; }

.summary-card{ background: var(--paper-card); border:1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-soft); }
.summary-text{
  font-family: "Courier New", monospace; font-size: 13.5px; white-space: pre-wrap; background: var(--paper-deep);
  border-radius: 12px; padding: 18px; line-height:1.7; max-height: 320px; overflow-y:auto;
}
.copy-row{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }

/* ---------------- Form fields ---------------- */
.field-label{ display:block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field-input{
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 14.5px; background: #fff; color: var(--ink);
}
.field-input:focus{ border-color: var(--ribbon); }

/* ---------------- Notice / bank-info cards (checkout step) ---------------- */
.notice-box{
  background: var(--sage-tint); border: 1px solid rgba(15,75,66,.18); border-radius: 16px;
  padding: 14px 18px; font-size: 13.5px; line-height: 1.6; color: var(--ink); margin-top: 14px;
}
.notice-box.warn{ background: var(--ribbon-tint); border-color: rgba(255,102,152,.3); }
.notice-box strong{ font-weight: 700; }
.bank-card{
  background: var(--ink); color: var(--paper); border-radius: 18px; padding: 20px 22px;
  margin-top: 14px; font-size: 14.5px; line-height: 1.9;
}
.bank-card .row{ display:flex; justify-content:space-between; gap:14px; border-bottom: 1px solid rgba(251,244,232,.16); padding: 6px 0; }
.bank-card .row:last-child{ border-bottom:none; }
.bank-card .row b{ color: var(--ribbon); font-family: var(--font-display); }
.bank-card .label{ color: rgba(251,244,232,.65); font-size: 12.5px; text-transform:uppercase; letter-spacing:.06em; }

/* Page headers (category/product/builder intro) */
.page-head{ padding: 14px 0 8px; }
.page-head h1{ font-size: clamp(28px,3.4vw,40px); }
