:root {
  --paper: #fbf6ee;
  --paper-2: #f3ead9;
  --ink: #3a2f24;
  --muted: #7a6b5a;
  --gold: #b8893a;
  --gold-2: #d4b06a;
  --gold-d: #8d6524;
  --line: rgba(184, 137, 58, .28);
  --card: #fffdf8;
  --shadow: 0 18px 40px rgba(90, 62, 24, .08);
  --red: #c45c4a;
  --ok: #3d8b63;
  --radius: 18px;
  --sans: "Nunito", "Segoe UI", sans-serif;
  --display: "Cormorant Infant", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff8e8 0%, transparent 55%),
    radial-gradient(900px 400px at 110% 0%, #f3e2c4 0%, transparent 50%),
    var(--paper);
  min-height: 100vh;
}
a { color: var(--gold-d); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #f0d9a0, #b8893a);
  color: #fff; font-family: var(--display);
  font-weight: 600; font-size: 22px;
  box-shadow: 0 6px 16px rgba(184, 137, 58, .35);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong {
  font-family: var(--display);
  font-size: 28px; font-weight: 600; letter-spacing: .01em;
}
.logo__text small { color: var(--muted); font-size: 12px; letter-spacing: .02em; font-weight: 500; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.is-on, .nav a:hover { border-bottom-color: var(--gold); }
.top__right { display: flex; align-items: center; gap: 10px; }
.contact-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  white-space: nowrap;
}
.pill:hover { border-color: var(--gold); }
.pill--wa { background: #eef8ef; }
.pill--tg { background: #eef4fb; }
.pill--max { background: #f3eef8; }
.pill--phone { background: #fff6e8; }
.cart-btn {
  background: var(--ink); color: #fff !important; border-radius: 999px;
  padding: 10px 14px; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.cart-btn__n {
  min-width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 11px;
}
.banner {
  text-align: center; font-size: 13px; font-weight: 600;
  padding: 8px 12px; background: linear-gradient(90deg, #f3ead9, #efe0c2, #f3ead9);
  color: var(--gold-d); border-top: 1px solid var(--line);
}
.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background:
    linear-gradient(#3a2f24,#3a2f24) center 15px / 18px 2px no-repeat,
    linear-gradient(#3a2f24,#3a2f24) center 21px / 18px 2px no-repeat,
    linear-gradient(#3a2f24,#3a2f24) center 27px / 18px 2px no-repeat,
    #fff;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 8px; padding: 12px 16px 16px;
  background: #fffdf8; border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-weight: 600; color: var(--ink); padding: 8px 0; }

.hero {
  padding: 42px 0 18px; text-align: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px); margin: 0 0 8px; font-weight: 500;
}
.hero p { margin: 0 auto; max-width: 640px; color: var(--muted); }
.ornament {
  width: 86px; height: 10px; margin: 16px auto 0;
  background:
    radial-gradient(circle at 43px 5px, var(--gold) 2px, transparent 3px),
    linear-gradient(var(--gold-2), var(--gold-2)) center / 70px 1px no-repeat;
}

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 28px 0 22px;
}
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 14px; cursor: pointer;
}
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 60px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(90,62,24,.12); }
.card__img {
  aspect-ratio: 1; background: #f6efe3; overflow: hidden;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: 12px; color: var(--gold-d); font-weight: 600; }
.card__body h3 { margin: 0; font-size: 20px; font-family: var(--display); font-weight: 600; }
.card__body p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.card__row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.price { font-weight: 700; color: var(--red); font-size: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 600; font-family: inherit;
  border-radius: 12px; padding: 12px 16px;
}
.btn--gold { background: linear-gradient(180deg, #d7b46d, #b8893a); color: #fff; }
.btn--gold:hover { filter: brightness(1.05); }
.btn--ghost { background: #f6ead3; color: var(--gold-d); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Product like WB */
.crumbs { padding: 18px 0 8px; color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.pdp {
  display: grid;
  grid-template-columns: 72px minmax(280px, 1fr) minmax(280px, 1.05fr) 320px;
  gap: 18px;
  align-items: start;
  padding-bottom: 70px;
}
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button {
  width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: #fff; cursor: pointer;
}
.thumbs button.is-on { border-color: var(--gold); }
.thumbs img, .stage img { width: 100%; height: 100%; object-fit: cover; }
.stage {
  background: #fff; border-radius: 22px; border: 1px solid var(--line);
  aspect-ratio: 1; overflow: hidden; box-shadow: var(--shadow);
}
.info h1 {
  font-family: var(--display);
  font-size: 34px; line-height: 1.2; margin: 0 0 8px; font-weight: 600;
}
.info .lead { color: var(--muted); margin: 0 0 18px; }
.opt-title { font-weight: 600; font-size: 14px; margin: 16px 0 8px; }
.size-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px;
}
.size-grid button, .opt-grid button {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 6px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--ink);
}
.size-grid button.is-on, .opt-grid button.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.dims { display: flex; align-items: flex-end; gap: 10px; }
.dims label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dims input {
  width: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: inherit; font-weight: 600; background: #fff; color: var(--ink);
}
.dims__x { padding-bottom: 12px; color: var(--muted); font-weight: 700; }
.specs { margin-top: 22px; }
.specs h3 { margin: 0 0 10px; font-size: 16px; }
.spec {
  display: grid; grid-template-columns: max-content 1fr max-content;
  gap: 8px; align-items: end; padding: 7px 0; font-size: 14px;
}
.spec span:first-child { color: var(--muted); }
.spec i {
  border-bottom: 1px dotted rgba(122,107,90,.45); height: 0; margin-bottom: 6px;
}
.buy {
  position: sticky; top: 96px;
  background: #fff; border-radius: 22px; padding: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.buy .price { font-size: 32px; letter-spacing: -.02em; }
.buy .old { color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 600; }
.buy .tier { font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px;
}
.qty button { width: 42px; height: 42px; border: 0; background: #fbf6ee; font-size: 20px; cursor: pointer; }
.qty input {
  width: 70px; border: 0; text-align: center; font-weight: 600; font-family: inherit; font-size: 16px; background: #fff;
}
.buy .note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px;
  display: none; z-index: 80; font-weight: 600;
}
.toast.is-on { display: block; }

.cart-layout, .checkout-layout, .contacts-layout {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; padding: 24px 0 70px;
}
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow);
}
.line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.line h4 { margin: 0 0 4px; font-size: 15px; }
.line .meta { font-size: 12px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px;
  font: inherit; background: #fff;
}
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

.foot {
  border-top: 1px solid var(--line); background: #f6efe3; padding: 36px 0 18px; margin-top: 20px;
}
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
.foot a, .foot p { display: block; margin: 6px 0; color: var(--ink); }
.foot__copy { padding-top: 18px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .pdp { grid-template-columns: 64px 1fr 1fr; }
  .buy { grid-column: 1 / -1; position: static; }
}
@media (max-width: 860px) {
  .nav, .contact-pills { display: none; }
  .burger { display: block; margin-left: auto; }
  .catalog { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; }
  .cart-layout, .checkout-layout, .contacts-layout, .foot__grid { grid-template-columns: 1fr; }
  .top__inner { gap: 10px; }
}
@media (max-width: 560px) {
  .catalog { grid-template-columns: 1fr; }
}
