:root {
  --bg: #f4ebe0;
  --bg2: #eadccb;
  --paper: #fffaf3;
  --ink: #24160f;
  --muted: #6d5344;
  --line: rgba(36, 22, 15, .12);
  --brand: #c45c2a;
  --brand2: #8a3516;
  --gold: #b8863a;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}
body.is-splash { overflow: hidden; }
body.is-rtl { direction: rtl; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
a { color: inherit; text-decoration: none; }
.loader {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #140c08; color: #f6ead7;
  transition: opacity .4s ease, visibility .4s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; letter-spacing: .14em; font-size: 22px;
}
.loader__tag { color: #c4a88a; font-size: 13px; }
.loader__bar { width: min(220px, calc(100vw - 48px)); height: 4px; border-radius: 4px; background: rgba(255,214,170,.12); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e8a45a, #c45c2a); }
.loader__pct { font-size: 12px; color: #c4a88a; }
.promo {
  text-align: center; padding: 8px 16px;
  background: #24160f; color: #f6ead7; font-size: 12px; letter-spacing: .06em;
}
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 32px) 10px;
  background: rgba(244, 235, 224, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: 20px;
}
.logo__mark {
  width: 28px; height: 28px; flex: none;
  background: url("./assets/favicon.svg") center / contain no-repeat;
}
.logo__word { color: var(--ink); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.search input {
  background: var(--paper); border: 1px solid #c9b09a; color: var(--ink);
  border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 16px;
  min-height: 42px; width: min(220px, 28vw);
}
.search--nav { display: none; }
.lang { position: relative; }
.lang__btn {
  background: var(--paper); border: 1px solid #c9b09a; color: var(--ink);
  border-radius: 10px; cursor: pointer; padding: 8px 12px; font: inherit; font-size: 13px; min-width: 64px;
}
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; min-width: 168px; max-height: min(50vh, 360px); overflow-y: auto;
  padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff;
}
.lang__menu li { padding: 10px 12px; border-radius: 8px; cursor: pointer; color: #111827; font-size: 13px; }
.lang__menu li:hover, .lang__menu li[aria-selected="true"] { background: #f3e7d8; }
.bag {
  position: relative; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: var(--paper); border: 1px solid #c9b09a;
}
.bag__icon {
  position: absolute; left: 13px; top: 14px; width: 16px; height: 12px;
  border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 4px 4px;
}
.bag__icon::before {
  content: ""; position: absolute; left: 2px; top: -6px; width: 8px; height: 7px;
  border: 2px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.bag__n {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700;
}
.nav__menu {
  display: none; width: 44px; height: 44px; flex-direction: column;
  justify-content: center; gap: 5px; padding: 10px;
  background: var(--paper); border: 1px solid #c9b09a; border-radius: 12px; cursor: pointer;
}
.nav__menu span { display: block; height: 2px; background: var(--ink); }
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 650;
  border: 1px solid transparent; cursor: pointer;
}
.btn--solid { background: linear-gradient(120deg, #e08a4a, var(--brand)); color: #fffaf3; }
.btn--ghost { background: transparent; border-color: #c9b09a; color: var(--ink); }
.hero, .section { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px); }
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.kicker { color: var(--brand); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
h1, h2, .card h3 { font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.02em; max-width: 16ch; }
.lead { margin-top: 14px; color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
img { display: block; max-width: 100%; height: auto; }
.hero__shelf {
  min-height: 0; padding: 0; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line); background: #f7f0e6;
  cursor: zoom-in;
}
.hero__shelf img { width: 100%; height: auto; min-height: 0; object-fit: contain; display: block; }
.cat__img {
  width: 100%; height: 160px; object-fit: contain; border-radius: 10px;
  background: #f7f0e6; padding: 8px;
}
.card__stage {
  height: 420px; border-radius: 12px; overflow: hidden;
  background: #f7f0e6; margin-bottom: 6px; cursor: zoom-in;
}
.card__stage img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.bag__thumb { width: 48px; height: 64px; object-fit: contain; border-radius: 8px; background: #f7f0e6; }
.cats {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 8px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cat {
  flex: 1 1 140px;
  display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: 16px 8px; border-radius: 16px; background: var(--paper);
  border: 1px solid var(--line); cursor: pointer; color: var(--ink); font-weight: 650; font-size: 13px;
}
.cat.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(196, 92, 42, .2); }
.section__head { max-width: var(--max); margin: 0 auto 24px; }
.section__head h2 { font-size: clamp(24px, 4vw, 36px); }
.section--alt { background: var(--bg2); }
.filters { max-width: var(--max); margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.chip.is-on { background: var(--ink); color: #fffaf3; border-color: var(--ink); }
.grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; display: grid; gap: 8px; cursor: pointer; text-align: left; color: inherit;
}
.card h3 { font-size: 17px; }
.card__meta, .card__note { color: var(--muted); font-size: 13px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card__price { font-weight: 800; font-size: 18px; }
.card .btn { height: 44px; padding: 0 14px; font-size: 13px; }
.empty { max-width: var(--max); margin: 12px auto 0; color: var(--muted); }
.form { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea {
  background: #ffffff; border: 1px solid #7a5438; color: #111827;
  border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none; min-height: 48px;
}
.field select option { background: #ffffff; color: #111827; }
.form__hint { min-height: 1.2em; font-size: 13px; }
.form__hint.ok { color: var(--brand); }
.form__hint.err { color: #b42318; }
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: var(--paper); }
.qa summary { cursor: pointer; padding: 12px 0; font-weight: 650; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { color: var(--muted); padding: 0 0 14px; font-size: 14px; }
.foot {
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 8, .4);
}
.drawer[hidden], .scrim[hidden] { display: none !important; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 60; width: min(400px, 100vw);
  height: 100%; background: var(--paper); padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line);
}
body.is-rtl .drawer { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.icon-x {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.icon-x span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); top: 19px;
}
.icon-x span:first-child { transform: rotate(45deg); }
.icon-x span:last-child { transform: rotate(-45deg); }
.drawer__list { flex: 1; overflow: auto; display: grid; gap: 10px; align-content: start; }
.bag-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.bag-row button {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font: inherit;
}
.drawer__total { display: flex; justify-content: space-between; font-size: 16px; }
.drawer__cta { width: 100%; }
.modal {
  width: min(960px, calc(100vw - 24px)); border: 0; border-radius: 20px; padding: 0;
  background: var(--paper); color: var(--ink);
  position: relative;
}
.modal::backdrop { background: rgba(20, 12, 8, .5); }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.modal[open] { display: grid; grid-template-columns: 1.1fr .9fr; }
.modal__art {
  background: #f7f0e6; min-height: 520px; padding: 0; overflow: hidden; cursor: zoom-in;
}
.modal__img { width: 100%; height: 100%; min-height: 520px; object-fit: contain; padding: 20px; }
.zoom {
  position: relative;
  width: min(720px, calc(100vw - 16px)); max-height: 92vh;
  border: 0; border-radius: 16px; padding: 40px 12px 12px;
  background: #f7f0e6; color: var(--ink);
}
.zoom::backdrop { background: rgba(20, 12, 8, .72); }
.zoom img { width: 100%; height: min(82vh, 900px); object-fit: contain; }
.zoom__close { position: absolute; top: 8px; right: 8px; }
.modal__copy { padding: 28px 24px; display: grid; gap: 8px; align-content: start; }
.modal__price { font-size: 28px; font-weight: 800; }
body.is-rtl .lang__menu { right: auto; left: 0; }
body.is-rtl .nav__links { margin-left: 0; margin-right: auto; }

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .search--desk { display: none; }
  .search--nav { display: block; width: 100%; }
  .search--nav input { width: 100%; }
  .nav__menu { display: flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 16px;
    background: rgba(244, 235, 224, .98); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero__shelf img { min-height: 0; }
  .cats { flex-direction: column; }
  .cat { flex: 1 1 auto; width: 100%; }
  .cat__img { width: 100%; height: 220px; }
  .card__stage { height: min(520px, 88vw); }
  .grid { grid-template-columns: 1fr; }
  .modal__art, .modal__img { min-height: 420px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn, .card .btn, .drawer__cta { width: 100%; height: 48px; }
  .modal[open] { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
