/* =========================================================================
   Amor Flowers — design tokens
   Палитра: тёплый кремовый фон, приглушённая пыльная роза (из акварельной
   розы в логотипе), тонкий золотой акцент для премиального ощущения.
   Типографика: Cormorant Garamond (винтажный романтичный serif, заголовки)
   + Jost (чистый geometric sans, текст/интерфейс) — сознательная пара
   "характер + нейтральность", а не Inter/Space Grotesk по умолчанию.
   ========================================================================= */

:root {
  --cream: #fbf6f1;
  --surface: #ffffff;
  --surface-soft: #f6ece9;
  --surface-soft-2: #f2e3df;
  --ink: #2e2320;
  --ink-soft: #7a6b65;
  --ink-faint: #a99b94;
  --rose: #c98e97;
  --rose-deep: #a9636f;
  --rose-pale: #f1dedf;
  --gold: #ad8a4f;
  --gold-pale: #ece1cd;
  --line: #e7dcd3;
  --success: #6f8f66;
  --shadow-sm: 0 1px 2px rgba(46, 35, 32, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(46, 35, 32, 0.22);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Раньше фон был сплошной заливкой, и на светлых секциях страница
     «терялась» — не читалось, где кончается карточка и начинается фон.
     Добавлен едва заметный цветочный узор: даёт фактуру, но не спорит
     с фотографиями товаров. */
  background-color: var(--cream);
  background-image: url("../img/petals.svg");
  background-repeat: repeat;
  background-size: 360px 360px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Jost', 'Poppins', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Cormorant Garamond', 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.002em;
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
  margin: 0 0 10px;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-soft); max-width: 46ch; margin: 8px 0 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo-text span { color: var(--rose-deep); font-style: italic; }

.main-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
  font-size: 14.5px;
}

.main-nav a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--ink); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--rose-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--surface-soft);
  border-radius: 100px;
  padding: 3px;
}

.lang-switch a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all .2s ease;
}

.lang-switch a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--surface-soft); }
.icon-btn-whatsapp { color: #25d366; }
.icon-btn-whatsapp:hover { background: #e8fbf0; }

/* .whatsapp-float удалён — дублировал .wa-fab (см. base.html) */

.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.burger { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--cream) 78%);
  padding: 76px 0 56px;
}

.hero-sprig {
  position: absolute;
  opacity: 0.5;
}
.hero-sprig.left { left: -60px; top: -40px; width: 260px; transform: rotate(-18deg); }
.hero-sprig.right { right: -70px; bottom: -60px; width: 320px; transform: rotate(160deg) scaleX(-1); }

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero .eyebrow { justify-content: center; display: flex; }

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-style: italic;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 100px;
}
.trust-badge svg { width: 15px; height: 15px; color: var(--rose-deep); flex-shrink: 0; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--rose-deep); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--rose-deep); color: var(--rose-deep); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* -------------------------------------------------------------- quicknav */

.quicknav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}

.quicknav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.quicknav-circle {
  /* Овал вместо круга и заметно крупнее: элемент стал главной точкой
     входа в каталог, поэтому он должен читаться первым экраном. */
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quicknav-circle svg { width: 54px; height: 54px; color: var(--rose-deep); }

.quicknav-item:hover .quicknav-circle {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose);
}

.quicknav-item span { font-size: 15px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .quicknav { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}

/* ---------------------------------------------------------- product grid */

.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: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-thumb {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}

.product-thumb .placeholder-art {
  width: 100%; height: 100%;
}

.product-old-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 100px;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.product-price { font-size: 17px; font-weight: 600; }
.product-price-old { font-size: 13px; color: var(--ink-faint); text-decoration: line-through; }
.test-price-note { font-size: 10.5px; color: var(--gold); }

.product-add {
  margin-top: 10px;
}

/* ------------------------------------------------------------ categories */

.category-bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  padding: 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform .2s ease;
}
.category-card:hover { transform: translateY(-3px); }
.category-card svg { width: 30px; height: 30px; color: var(--rose-deep); opacity: .8; }
.category-card span { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; }

.category-card.c1 { background: var(--rose-pale); }
.category-card.c2 { background: var(--surface-soft-2); }
.category-card.c3 { background: var(--gold-pale); }
.category-card.c4 { background: var(--surface-soft); }
.category-card.c5 { background: var(--surface); }

@media (max-width: 900px) { .category-bento { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ misc */

.divider-sprig {
  display: flex;
  justify-content: center;
  margin: 8px 0 40px;
  opacity: .6;
}
.divider-sprig svg { width: 80px; height: 24px; color: var(--rose); }

.pill-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill-filter {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--surface);
}
.pill-filter.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* -------------------------------------------------------- luxe filter select */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-bar-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
  margin-right: 2px;
}

.luxe-select { position: relative; }
.luxe-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.luxe-select-trigger:hover { border-color: var(--rose); }
.luxe-select.is-open .luxe-select-trigger {
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(169,99,111,.12);
}
.luxe-select-trigger svg {
  width: 13px; height: 13px; color: var(--ink-faint);
  transition: transform .2s ease;
}
.luxe-select.is-open .luxe-select-trigger svg { transform: rotate(180deg); }
.luxe-select-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
}

.luxe-select-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  max-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(60,30,35,.14);
  padding: 10px;
  display: none;
}
.luxe-select-panel .luxe-option-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}
.luxe-select.is-open .luxe-select-panel { display: block; }

.luxe-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .15s ease;
}
.luxe-option:hover { background: var(--cream); }
.luxe-option input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.luxe-option input[type="checkbox"]::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--rose-deep);
  transform: scale(0);
  transition: transform .12s ease;
}
.luxe-option input[type="checkbox"]:checked::after { transform: scale(1); }
.luxe-option-swatch {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
}
.luxe-select-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.luxe-select-reset {
  background: none; border: none;
  font-size: 12.5px;
  color: var(--ink-faint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.luxe-select-apply {
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12.5px;
  border: none;
  cursor: pointer;
}

/* -------------------------------------------------------------- site search */

.search-widget { position: relative; }
.search-toggle {
  background: none; border: none; padding: 0;
  display: inline-flex; cursor: pointer; color: var(--ink);
}
.search-flyout {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(380px, 90vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(60,30,35,.16);
  padding: 14px;
  display: none;
  z-index: 40;
}
.search-widget.is-open .search-flyout { display: block; }
.search-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px;
}
.search-input-row svg { width: 15px; height: 15px; color: var(--ink-faint); flex-shrink: 0; }
.search-input-row input {
  border: none; outline: none; font-family: inherit;
  font-size: 14px; width: 100%; background: transparent; color: var(--ink);
}
.search-results { margin-top: 10px; max-height: 360px; overflow-y: auto; }
.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
  color: var(--ink);
}
.search-result-row:hover { background: var(--cream); }
.search-result-thumb {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
}
.search-result-name { font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.search-result-price { font-size: 12px; color: var(--ink-faint); }
.search-empty, .search-hint { font-size: 13px; color: var(--ink-faint); padding: 10px 6px; }
.search-show-all {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 9px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--rose-deep);
}

/* --------------------------------------------------- admin tag checkboxes */

.tag-checks { display: flex; flex-wrap: wrap; gap: 8px; }
/* Scoped as ".form-group .tag-check" (not just ".tag-check") so this beats the
   ".form-group label { display:block }" rule above on specificity — otherwise
   that rule wins (it has one more element in the selector) and silently
   blockifies these labels, collapsing the inline-flex layout and squashing
   the color swatch dot down to a sliver. */
.form-group .tag-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color .15s ease, background .15s ease;
}
.form-group .tag-check:has(input:checked) { border-color: var(--rose-deep); background: var(--rose-pale); color: var(--ink); }
.form-group .tag-check input { accent-color: var(--rose-deep); width: auto; }
.color-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.review-stars { color: var(--gold); font-size: 13px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.review-author { font-size: 13px; font-weight: 500; }
.review-author-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-source-badge {
  font-size: 10.5px;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--rose-deep);
  background: var(--rose-pale);
  padding: 3px 8px;
  border-radius: 100px;
}

.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
  margin: 0 28px;
}
.cta-band h2 { color: var(--cream); font-style: italic; margin-bottom: 14px; }
.cta-band p { color: rgba(251,246,241,0.7); margin-bottom: 26px; }
.cta-band .btn-primary { background: var(--rose); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ----------------------------------------------------------------footer */

.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-grid p, .footer-grid a { color: var(--ink-soft); font-size: 14px; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--rose-deep); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- forms */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 480px;
  margin: 0 auto;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose-deep);
  background: var(--surface);
}

.form-group textarea { resize: vertical; min-height: 80px; }

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

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.checkbox-row input { width: auto; }

.form-error {
  background: #fbe9e8;
  color: #a13c3c;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }

/* ------------------------------------------------------------------ page */

.page-header {
  padding: 48px 0 8px;
  text-align: center;
}
.page-header h1 { font-size: clamp(32px, 5vw, 48px); font-style: italic; }

.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--rose-deep); }

/* -------------------------------------------------------------- product */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: flex-start;
}
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } }

.product-gallery { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }

.product-info .product-cat { margin-bottom: 6px; }
.product-info h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
.product-info .price-block { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.product-info .price-block .product-price { font-size: 28px; }
.product-info .description { color: var(--ink-soft); margin: 20px 0 28px; line-height: 1.7; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; }
.qty-stepper button { width: 36px; height: 36px; background: none; border: none; font-size: 17px; }
.qty-stepper span { width: 32px; text-align: center; font-weight: 500; }

/* -------------------------------------------------------------- cart */

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: flex-start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row .thumb-mini { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.cart-row .cart-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; }
.cart-row .cart-remove { font-size: 12px; color: var(--ink-faint); }
.cart-row .cart-remove:hover { color: var(--rose-deep); }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 10px; color: var(--ink-soft); }
.summary-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 600; margin: 16px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); }

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

/* -------------------------------------------------------------- modal (upsell) */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(46,35,32,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 560px; width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
}
.modal-card h3 { font-size: 24px; font-style: italic; margin-bottom: 6px; }
.modal-card .modal-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }

.addon-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.addon-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px;
}
.addon-item .thumb-mini { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.addon-item .addon-name { font-size: 14.5px; font-weight: 500; flex: 1; }
.addon-item .addon-price { font-size: 13.5px; color: var(--ink-soft); }

/* -------------------------------------------------------------- tables (account/admin) */

table.simple-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-faint); padding: 10px 12px; border-bottom: 1px solid var(--line);
}
table.simple-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }

.status-pill {
  display: inline-block; padding: 4px 11px; border-radius: 100px; font-size: 12px; font-weight: 500;
}
.status-new { background: var(--gold-pale); color: var(--gold); }
.status-confirmed { background: #e2e9dd; color: var(--success); }
.status-delivering { background: var(--rose-pale); color: var(--rose-deep); }
.status-done { background: #dfeee0; color: #3f7a45; }
.status-cancelled { background: #f2dede; color: #a13c3c; }

/* ---------------------------------------------------------- admin shell */

.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--ink); color: var(--cream); padding: 28px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.admin-sidebar .logo-text { color: var(--cream); }
.admin-sidebar nav { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar a { padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: rgba(251,246,241,0.75); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { padding: 36px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card .stat-num { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 600; }
.stat-card .stat-label { font-size: 13px; color: var(--ink-soft); }

.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

.thumb-cell { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; flex-direction: row; overflow-x: auto; }
  .admin-sidebar nav { flex-direction: row; margin-top: 0; margin-left: 20px; }
}

/* ------------------------------------------------------------ animations */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeInUp .6s ease both;
  }
  .fade-in-delay-1 { animation-delay: .08s; }
  .fade-in-delay-2 { animation-delay: .16s; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------- плавающая кнопка WhatsApp */
.wa-fab{
  position:fixed; right:20px; bottom:20px; z-index:900;
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 22px; border-radius:100px;
  background:#C8306B; color:#fff;
  font-weight:600; font-size:.92rem; text-decoration:none;
  box-shadow:0 12px 30px rgba(200,48,107,.36);
  opacity:0; transform:translateY(14px); pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, filter .16s ease;
}
.wa-fab[data-show="1"]{opacity:1; transform:none; pointer-events:auto}
.wa-fab:hover{filter:brightness(1.07); color:#fff}
.wa-fab:active{transform:scale(.98)}
.wa-fab:focus-visible{outline:3px solid #7A0F3E; outline-offset:3px}

/* На телефоне — только иконка, чтобы не перекрывать цену и «В корзину» */
@media (max-width:560px){
  .wa-fab{right:14px; bottom:14px; padding:15px; border-radius:50%}
  .wa-fab__label{position:absolute; width:1px; height:1px;
    overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){ .wa-fab{transition:none} }


/* --------------------------------------------------------------- логотип */
/* Растровый логотип вместо прежней SVG-заглушки. */
.logo-mark-img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

/* Секции лежат поверх узорного фона — им нужна своя подложка,
   иначе текст читается по цветам. */
.site-header,
.product-card,
.admin-card,
.footer {
  background-color: var(--surface, #fff);
}

@media (max-width: 760px) {
  /* background-attachment: fixed на мобильных даёт дёрганый скролл */
  body { background-attachment: scroll; }
}
