:root {
  /* Палитра «чёрный + песочное золото» (в стиле VLORÉ) */
  --bg: #0f0e0c;
  --surface: #171512;
  --tile: #3a342c;
  --tile-grad: radial-gradient(120% 90% at 50% 30%, #5a5044 0%, #3a342c 55%, #26221d 100%);
  --soft: #1f1c18;
  --line: #2e2a24;
  --text: #ece6da;
  --muted: #9a9386;
  --accent: #c8a97e;
  --accent-hover: #d7bb93;
  --on-accent: #14120f;
  --brass: #c8a97e;
  --sale: #d0644f;
  --new: #c8a97e; /* значок «Новинка» */
  --ok: #7fb08f; /* скидка, карта привязана, доставлен */
  --warn: #d9a14e;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --radius-xl: 2px;
  --radius: 2px;
  --pill: 2px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 14, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo img { width: 170px; height: auto; }

.search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 48px;
  border-radius: var(--pill);
  background: var(--soft);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search img { width: 18px; opacity: 0.7; filter: invert(1); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: flex;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--soft);
}
.lang button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.lang button.active { background: var(--accent); color: var(--on-accent); }

.icon-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
}
.icon-btn img { width: 20px; filter: invert(1); opacity: .9; }
.icon-btn:hover { background: var(--line); }
#searchToggle { display: none; }

.cart-btn {
  height: 48px;
  padding: 0 8px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.cart-btn img { width: 19px; }
.cart-count {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--pill);
  background: rgba(20,18,15,.14);
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* ---------- Вкладки категорий ---------- */
.tabs { max-width: var(--container); margin: 0 auto; }
.searching .tabs,
.searching .hero { display: none; }
.tabs-inner {
  display: flex;
  gap: 8px;
  padding: 4px 20px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.tabs a:hover { background: var(--line); }
.tabs a.tab-sale { color: var(--sale); }
.tabs a.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Баннер ---------- */
.hero {
  max-width: var(--container);
  margin: 24px auto 8px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.hero-text {
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #f3efe6;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-text p { margin: 0; line-height: 1.6; color: #c9cbd3; max-width: 440px; }
.hero-cta {
  align-self: flex-start;
  margin-top: 28px;
  padding: 15px 26px;
  border-radius: var(--pill);
  background: var(--brass);
  color: var(--accent);
  font-weight: 700;
}
.hero-cta:hover { background: var(--accent-hover); }
.hero-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 440px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.1); }
/* у banner.jpeg по бокам «вшиты» стрелки карусели — слегка увеличиваем, чтобы их обрезать */
.card-photo img.crop-arrows { transform: scale(1.12); }
.card:hover .card-photo img.crop-arrows { transform: scale(1.16); }

/* ---------- Каталог ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 8px;
}
.section h2 { margin: 0 0 22px; font-size: 30px; letter-spacing: -0.01em; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}

.card { display: flex; flex-direction: column; }
.card-photo {
  position: relative;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--tile);
  display: grid;
  place-items: center;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card-photo svg { width: 72%; height: 72%; transition: transform 0.35s; }
.card:hover .card-photo img,
.card:hover .card-photo svg { transform: scale(1.04); }

.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.badge {
  padding: 6px 11px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--on-accent);
}
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--new); }

.soldout-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 14, 12, 0.6);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.is-soldout .card-photo svg,
.is-soldout .card-photo img { filter: grayscale(1); opacity: 0.55; }

.card-body { padding: 14px 4px 0; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card-meta { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.stock { margin-left: 6px; font-size: 12px; font-weight: 700; }
.stock-low { color: var(--warn); }
.stock-out { color: var(--muted); }

.price { margin: auto 0 0; padding-top: 12px; font-size: 20px; font-weight: 800; }
.price s { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.card:has(.badge-sale) .price { color: var(--sale); }

.card-btn {
  margin-top: 14px;
  height: 52px;
  border: 0;
  border-radius: var(--pill);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.card-btn img { width: 19px; filter: invert(1); }
.card-btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card-btn:hover:not(:disabled) img { filter: none; }
.card-btn:disabled { cursor: not-allowed; color: var(--muted); }
.card-btn:disabled img { opacity: 0.4; }

/* ---------- Поиск: пусто ---------- */
.empty {
  padding: 56px 24px;
  border-radius: var(--radius-xl);
  background: var(--soft);
  text-align: center;
  color: var(--muted);
}
.empty-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--text); }
.empty p { margin: 0 0 18px; }
.ghost-btn {
  padding: 12px 22px;
  border: 1px solid var(--text);
  border-radius: var(--pill);
  background: transparent;
  font-weight: 700;
}

.site-footer {
  margin-top: 60px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Окно товара ---------- */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
  animation: fade 0.2s;
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  width: min(1040px, 100%);
  height: min(640px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
}
.modal-photo {
  background: var(--tile);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-photo svg { width: 70%; height: 70%; }
.modal-photo img.crop-arrows { transform: scale(1.12); }

.modal-body { display: flex; flex-direction: column; min-height: 0; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; }
.modal-head .card-meta { margin: 0; }
.modal-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  font-size: 26px;
  line-height: 1;
}
.modal-close:hover { background: var(--line); }

.modal-scroll { flex: 1; overflow-y: auto; padding: 20px 28px; }
.modal-price { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.modal-price s { margin-left: 6px; font-size: 16px; font-weight: 500; color: var(--muted); }
.modal-desc { margin: 0 0 22px; line-height: 1.6; color: #bdb5a7; }

.opt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 15px;
}
.opt-head span { font-size: 14px; color: var(--muted); }
.opt-head .warn { color: var(--warn); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover:not(:disabled) { border-color: #6b6356; }
.chip.is-active { border-color: var(--accent); background: rgba(200,169,126,.12); color: var(--accent); }
.chip:disabled {
  cursor: not-allowed;
  color: #5f594f;
  background: repeating-linear-gradient(135deg, transparent 0 6px, #1c1a16 6px 12px);
}
.chip:disabled .dot { opacity: 0.35; }
.chip-size { min-width: 58px; justify-content: center; flex-direction: column; gap: 0; line-height: 1.1; }
.chip-size small { font-size: 10px; font-weight: 600; text-transform: uppercase; }

.modal-foot {
  display: flex;
  gap: 12px;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--line);
}
.stepper {
  flex: none;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
}
.stepper button {
  width: 48px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 22px;
}
.stepper button:disabled { color: #4a453d; cursor: not-allowed; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; font-size: 17px; }
.add-btn {
  flex: 1;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
}
.add-btn b { white-space: nowrap; }
.add-btn:disabled { background: #3a362f; color: #7c7568; cursor: not-allowed; }

@media (max-width: 760px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-card {
    width: 100%;
    height: 94vh;
    height: 94dvh;
    grid-template-columns: 1fr;
    grid-template-rows: 34% 1fr;
    border-radius: var(--radius);
  }
  .modal-head { padding: 18px 18px 14px; }
  .modal-head h2 { font-size: 20px; }
  .modal-close { width: 40px; height: 40px; }
  .modal-scroll { padding: 16px 18px; }
  .modal-price { font-size: 21px; }
  .chip { min-height: 42px; padding: 0 13px; font-size: 14px; }
  .chip-size { min-width: 52px; }
  .modal-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 10px; }
  .stepper { height: 52px; }
  .stepper button { width: 40px; }
  .add-btn { height: 52px; padding: 0 18px; font-size: 15px; }
}

/* ---------- Корзина ---------- */
body.drawer-open { overflow: hidden; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.6);
  animation: fade 0.2s;
}
.drawer[hidden] { display: none; }
.drawer-panel {
  width: min(480px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  animation: slide-in 0.25s ease-out;
}
@keyframes slide-in { from { transform: translateX(40px); opacity: 0.6; } }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 28px; }
.drawer-head p { margin: 2px 0 0; color: var(--muted); }
.drawer-head-actions { display: flex; align-items: center; gap: 8px; }
.text-btn {
  border: 0;
  background: transparent;
  padding: 10px;
  color: var(--muted);
  font-weight: 600;
}
.text-btn:hover { color: var(--text); }

.drawer-scroll { flex: 1; overflow-y: auto; padding: 18px 24px 24px; }
.lines { display: flex; flex-direction: column; gap: 12px; }
.line {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.line-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tile);
  display: grid;
  place-items: center;
}
.line-photo img { width: 100%; height: 100%; object-fit: cover; }
.line-photo img.crop-arrows { transform: scale(1.12); }
.line-photo svg { width: 78%; height: 78%; }
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line-top { display: flex; justify-content: space-between; gap: 8px; }
.line-top h4 { margin: 2px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.line-remove {
  flex: none;
  width: 34px;
  height: 34px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.line-remove svg { width: 20px; height: 20px; }
.line-remove:hover { background: var(--soft); color: var(--sale); }
.line-variant { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.line-variant .dot { width: 12px; height: 12px; }
.line-limit { margin: 4px 0 0; font-size: 13px; color: var(--warn); }
.line-bottom { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stepper-sm { height: 40px; }
.stepper-sm button { width: 38px; font-size: 19px; }
.stepper-sm span { font-size: 15px; }
.line-price { font-size: 17px; white-space: nowrap; }

.upsell-head { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 14px; }
.upsell-head h3 { margin: 0; font-size: 20px; }
.upsell-head span { color: var(--muted); font-size: 14px; }
.upsell-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.upsell {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upsell-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--tile);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.upsell-photo svg { width: 70%; height: 70%; }
.upsell-plus {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}
.upsell:hover .upsell-plus { background: var(--accent); color: var(--on-accent); }
.upsell-name { font-size: 14px; line-height: 1.3; }
.upsell b { font-size: 15px; }

.drawer-foot { padding: 14px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; color: var(--text); }
.sum-total b { font-size: 26px; }
.checkout-btn {
  width: 100%;
  height: 58px;
  margin-top: 12px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 700;
}
.checkout-btn:hover { background: var(--accent-hover); }

.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; color: var(--muted); }
.drawer-empty p { margin: 0 0 16px; }

@media (max-width: 760px) {
  .drawer-panel { width: 100%; }
  .drawer-head { padding: 16px 16px 14px; }
  .drawer-head h2 { font-size: 24px; }
  .drawer-scroll { padding: 14px 16px 20px; }
  .line { padding: 10px; gap: 10px; border-radius: var(--radius); }
  .line-photo { width: 84px; height: 84px; border-radius: var(--radius); }
  .line-top h4 { font-size: 15px; }
  .upsell-row { grid-auto-columns: 132px; }
  .drawer-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
  .sum-total b { font-size: 22px; }
  .checkout-btn { height: 54px; }
}

/* ---------- Оформление ---------- */
.field-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.field-row {
  border: 1.5px dashed #3d382f;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.field-row.is-filled { border-style: solid; border-color: var(--line); }
.field-row.is-open { border-style: solid; border-color: var(--accent); }
.field-row.has-error { border-style: solid; border-color: var(--sale); }
.row-main {
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.row-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.row-icon svg { width: 22px; height: 22px; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-text small { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.row-value { font-size: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.is-filled .row-value { color: var(--text); font-weight: 600; }
.row-error { font-size: 13px; color: var(--sale); font-weight: 600; }
.row-action {
  flex: none;
  padding: 10px 14px;
  border-radius: var(--pill);
  background: var(--soft);
  color: var(--sale);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.is-filled .row-action { color: var(--muted); }
.row-editor { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.row-editor .chips { margin: 0; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.fld input, .fld textarea, .fld-inline input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 16px;
  outline: none;
  resize: vertical;
}
.fld input:focus, .fld textarea:focus, .fld-inline input:focus { border-color: var(--accent); }
.fld-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.fld-inline { display: flex; gap: 8px; }
.fld-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.fld-ok { margin: 0; font-weight: 700; color: var(--ok); }
.fld-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--sale); }
.dark-btn {
  align-self: flex-start;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  white-space: nowrap;
}
.dark-btn.wide { align-self: stretch; height: 54px; }
.ghost-btn.small { align-self: flex-start; padding: 9px 16px; font-size: 14px; }
.line-discount { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--ok); }

.sum-discount { color: var(--ok); font-weight: 600; }
.kaspi-btn {
  width: 100%;
  height: 58px;
  margin-top: 12px;
  border: 0;
  border-radius: var(--pill);
  background: #f14635;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
.kaspi-btn:hover { background: #d93a2a; }
.kaspi-btn:disabled { opacity: 0.65; cursor: wait; }

.placed { flex: 1; overflow-y: auto; padding: 40px 24px; text-align: center; }
.placed-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
}
.placed h3 { margin: 0 0 10px; font-size: 24px; }
.placed > p { margin: 0 auto 24px; max-width: 340px; line-height: 1.5; color: var(--muted); }
.placed dl {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--soft);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  text-align: left;
}
.placed dt { color: var(--muted); }
.placed dd { margin: 0; font-weight: 700; text-align: right; }
.placed dd s { font-weight: 500; color: var(--muted); }

@media (max-width: 760px) {
  .row-main { padding: 12px; gap: 10px; }
  .row-icon { width: 44px; height: 44px; }
  .row-value { font-size: 15px; }
  .row-action { padding: 8px 11px; font-size: 13px; }
  .row-editor { padding: 0 12px 14px; }
  .kaspi-btn { height: 54px; }
  /* На телефоне подсказки показываем сверху, чтобы не закрывать кнопку оплаты */
  .toast { top: 12px; bottom: auto; transform: translate(-50%, -16px); }
  .toast.show { transform: translate(-50%, 0); }
  .fld-inline { flex-wrap: wrap; }
  .fld-inline input { flex: 1 1 100%; }
  .fld-inline .dark-btn { flex: 1 1 100%; align-self: stretch; }
  .placed { padding: 28px 16px; }
  .placed dl { grid-template-columns: 1fr; gap: 2px; }
  .placed dd { text-align: left; margin-bottom: 10px; }
}

/* ---------- Готовые образы ---------- */
body.look-open { overflow: hidden; }
.look-modal { z-index: 35; }
.looks-grid .card-photo { aspect-ratio: 4 / 5; }
.badge-look { background: rgba(15, 14, 12, 0.8); color: var(--accent); }
.look-composition {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.look-collage {
  width: 100%;
  height: 100%;
  padding: 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
}
.look-collage > span { display: grid; place-items: center; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); }
.look-collage svg { width: 82%; height: 82%; }
.modal-photo .look-collage svg { width: 70%; height: 70%; }
.card:hover .look-collage svg { transform: none; }

.look-hint { margin: -10px 0 16px; }
.look-items { display: flex; flex-direction: column; gap: 10px; }
.look-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.look-item .line-photo { width: 72px; height: 72px; padding: 0; border: 0; cursor: pointer; }
.look-item .line-photo:disabled { cursor: default; }
.look-item.is-soldout .line-photo > * { filter: grayscale(1); opacity: 0.5; }
.look-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.look-item-info b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.look-item-info .card-meta { margin: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-item-price { font-weight: 800; }
.look-item-price s { font-weight: 500; color: var(--muted); font-size: 13px; }
.look-btn {
  flex: none;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  white-space: nowrap;
}
.look-btn.is-added { background: var(--soft); color: var(--ok); }
.look-status { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.look-foot { justify-content: space-between; align-items: center; font-size: 15px; color: var(--muted); }
.look-foot b { font-size: 22px; color: var(--text); }

@media (max-width: 760px) {
  .look-item .line-photo { width: 60px; height: 60px; }
  .look-btn { padding: 9px 12px; font-size: 14px; }
  .look-foot b { font-size: 19px; }
}

/* ---------- Профиль ---------- */
.pf-intro { margin: 0 0 16px; font-size: 15px; }
.seg { display: flex; padding: 4px; margin-bottom: 18px; border-radius: var(--pill); background: var(--soft); }
.seg button {
  flex: 1;
  padding: 11px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  font-weight: 700;
  color: var(--muted);
}
.seg button.active { background: var(--accent); color: var(--on-accent); }
.pf-form { display: flex; flex-direction: column; gap: 12px; }
.fld-bad input { border-color: var(--sale); }
.fld em.fld-error, em.fld-error { font-style: normal; font-size: 13px; }
.form-error { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius); background: rgba(208,100,79,.14); color: var(--sale); font-weight: 600; }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.check small { color: var(--muted); }
.check-bad span { color: var(--sale); }
.pf-demo { margin-top: 20px; }

.pf-hello { margin: 4px 0 18px; font-size: 22px; }
.pf-section { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.pf-section h4 { margin: 0 0 12px; font-size: 17px; }
.pf-section .pf-sub { margin: 10px 0 2px; }
.pf-section > .fld-note { margin-bottom: 10px; }
.pf-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(127,176,143,.12);
  color: var(--ok);
  font-weight: 700;
}
.pf-orders { display: flex; flex-direction: column; gap: 8px; }
.pf-order { border-radius: var(--radius); background: var(--soft); }
.pf-order summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
}
.pf-order summary::-webkit-details-marker { display: none; }
.pf-order summary > span { display: flex; flex-direction: column; gap: 2px; }
.pf-order small { font-size: 13px; color: var(--muted); }
.pf-order-right { text-align: right; }
.pf-status { font-weight: 700; }
.pf-status.st-new, .pf-status.st-packing { color: var(--muted) !important; }
.pf-status.st-shipping { color: var(--warn) !important; }
.pf-status.st-delivered { color: var(--ok) !important; }
.pf-status.st-cancelled { color: var(--sale) !important; }
.tracker { display: flex; margin: 4px 16px 12px; padding: 0; list-style: none; }
.tracker li {
  position: relative;
  flex: 1;
  padding: 26px 2px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
}
.tracker li span {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid #4a453d;
}
.tracker li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #4a453d;
}
.tracker li:first-child::before { display: none; }
.tracker li.done span, .tracker li.current span { background: var(--ok); border-color: var(--ok); }
.tracker li.done::before, .tracker li.current::before { background: var(--ok); }
.tracker li.current { color: var(--text); font-weight: 700; }
.demo-status { display: flex; flex-direction: column; gap: 6px; margin: 0 16px 14px; padding: 10px; border: 1px dashed #4a453d; border-radius: var(--radius); font-size: 12px; color: var(--muted); }
.demo-status select { padding: 8px; border-radius: 2px; border: 1px solid var(--line); background: var(--soft); color: var(--text); font: inherit; font-size: 14px; }
.pf-order ul { margin: 0; padding: 0 16px 6px; list-style: none; }
.pf-order li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pf-order li span { display: flex; flex-direction: column; }
.pf-order .fld-note { padding: 0 16px 12px; }
.pf-logout { width: 100%; }
.pf-admin { display: block; margin: -6px 0 18px; text-align: center; }
.pf-pending { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); background: rgba(127,176,143,.12); color: var(--ok); font-weight: 600; font-size: 14px; line-height: 1.45; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart-label { display: none; }
  .cart-btn { padding: 0 8px 0 14px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .header-inner { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  .logo img { width: 124px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 44px; display: none; }
  body.search-open .search { display: flex; }
  #searchToggle { display: grid; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .lang button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
  .logo { min-height: 40px; }
  .cart-btn { height: 40px; padding: 0 4px 0 12px; gap: 6px; }
  .cart-count { min-width: 28px; height: 28px; }
  .tabs-inner { padding: 2px 16px 10px; }
  .tabs a { padding: 8px 14px; font-size: 14px; }

  .hero { grid-template-columns: 1fr; padding: 0 16px; margin-top: 14px; }
  .hero-photo { display: none; }
  .hero-text { padding: 30px 24px; }

  .section { padding: 28px 16px 4px; }
  .section h2 { font-size: 24px; margin-bottom: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card-photo { border-radius: var(--radius); }
  .badges { top: 10px; left: 10px; }
  .badge { padding: 4px 8px; font-size: 11px; }
  .card-body h3 { font-size: 15px; }
  .card-meta { font-size: 12px; }
  .price { font-size: 17px; }
  .price s { display: block; margin: 2px 0 0; font-size: 13px; }
  .card-btn { height: 44px; font-size: 14px; }
}

@media (max-width: 400px) {
  .logo img { width: 104px; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* ---------- Стиль VLORÉ: шрифты, баннер, линии ---------- */
body { font-weight: 400; letter-spacing: 0.005em; }
.logo img { filter: invert(1) sepia(0.25) brightness(0.95); }
.site-header { border-bottom-color: rgba(200, 169, 126, 0.14); }
.search, .lang, .icon-btn { background: transparent; }
.search { border: 1px solid var(--line); }
.lang { border: 1px solid var(--line); padding: 3px; }
.lang button { letter-spacing: 0.08em; }
.icon-btn:hover { background: var(--soft); }
.cart-btn { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Категории — как меню: заглавные буквы, золотая линия под активной */
.tabs-inner { gap: 4px; justify-content: center; }
.tabs a {
  padding: 10px 14px;
  background: transparent;
  border-bottom: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfc7b8;
}
.tabs a:hover { background: transparent; color: var(--accent); }
.tabs a.active { background: transparent; color: var(--text); border-bottom-color: var(--accent); }

/* Баннер во всю ширину: текст слева, фото справа растворяется в тёмном фоне */
.hero {
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  background: radial-gradient(90% 120% at 75% 40%, #2b251e 0%, #15130f 60%, #0f0e0c 100%);
  border-bottom: 1px solid var(--line);
}
.hero-text {
  background: transparent;
  color: var(--text);
  padding: 72px 40px 72px max(20px, calc((100vw - var(--container)) / 2 + 20px));
}
.hero-label { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; color: var(--accent); }
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero-text p { color: #c9c1b3; font-size: 16px; }
.hero-cta {
  margin-top: 34px;
  padding: 16px 26px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-cta::after { content: "\2192"; margin-left: 18px; font-size: 14px; letter-spacing: 0; }
.hero-photo {
  position: relative;
  height: auto;
  min-height: 560px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 55%);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  transform: scale(1.1);
  transform-origin: center 20%;
  filter: sepia(0.35) saturate(0.7) brightness(0.78) contrast(1.05);
}

/* Заголовки разделов — антиква, как «Elevated Essentials» */
.section { padding-top: 56px; }
.section h2 {
  margin-bottom: 30px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: 0.01em;
  text-align: center;
}
.section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--accent);
}
.drawer-head h2, .modal-head h2, .empty-title, .pf-hello, .upsell-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.drawer-head h2 { font-size: 32px; }
.modal-head h2 { font-size: 30px; }
.empty-title { font-size: 28px; }

/* Карточки товаров */
.card-photo { background: var(--tile-grad); }
.modal-photo, .line-photo, .upsell-photo { background: var(--tile-grad); }
.badge { border-radius: 0; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.card-body h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }
.price { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.card-btn {
  height: 46px;
  border: 1px solid #3a352d;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.modal-price { font-weight: 600; }
.add-btn, .checkout-btn, .dark-btn, .look-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.add-btn:hover:not(:disabled), .checkout-btn:hover, .dark-btn:hover, .look-btn:hover:not(.is-added) { background: var(--accent-hover); }
.ghost-btn { border-color: var(--accent); color: var(--accent); letter-spacing: 0.08em; }
.row-text small, .opt-head { letter-spacing: 0.06em; }
.line, .look-item, .pf-section { background: var(--surface); }
.pf-order, .placed dl { background: var(--soft); }
.kaspi-btn { letter-spacing: 0.04em; }

.site-footer {
  margin-top: 80px;
  padding: 36px 20px;
  background: #0b0a09;
  border-top-color: rgba(200, 169, 126, 0.18);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .tabs-inner { justify-content: flex-start; }
  .tabs a { padding: 8px 10px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; position: relative; }
  .hero-photo { display: block; position: absolute; inset: 0; min-height: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-photo img { filter: sepia(0.35) saturate(0.6) brightness(0.3); }
  .hero-text { position: relative; z-index: 1; padding: 56px 20px 60px; }
  .hero h1 { font-size: 42px; }
  .section { padding-top: 40px; }
  .section h2 { font-size: 30px; margin-bottom: 20px; }
  .card-btn { height: 42px; font-size: 11px; letter-spacing: 0.12em; }
  .drawer-head h2 { font-size: 26px; }
  .modal-head h2 { font-size: 23px; }
}

/* ---------- Шапка на телефоне: логотип и иконки в одной строке ---------- */
@media (max-width: 760px) {
  .logo { flex: 1 1 0; min-width: 64px; display: flex; align-items: center; }
  .logo img { width: 100%; max-width: 124px; }
  .header-actions { flex-shrink: 0; }
}
@media (max-width: 400px) {
  .header-inner { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .header-actions { gap: 2px; }
  .lang { padding: 2px; }
  .lang button { min-height: 32px; padding: 5px 7px; font-size: 11px; }
  .icon-btn { width: 34px; height: 34px; }
  .cart-btn { padding: 0 3px 0 10px; gap: 4px; }
}
