:root {
  --ivory: #fbfaf7;
  --paper: #ffffff;
  --sand: #eee7dc;
  --beige: #d8c9b6;
  --taupe: #9b8870;
  --gold: #b99662;
  --graphite: #1f1f1d;
  --muted: #6e6a64;
  --line: #e9e1d6;
  --danger: #9b3f32;
  --success: #4f724f;
  --shadow: 0 18px 50px rgba(31, 31, 29, .08);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; overflow-x: clip; scroll-padding-top: 180px; }

body {
  margin: 0;
  color: var(--graphite);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

main { min-width: 0; }
.container > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
textarea { resize: vertical; }

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

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.narrow { width: min(100% - 40px, 760px); }

.site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.top-strip {
  background: linear-gradient(90deg, #dfd5c8, #f6f1ea);
  font-size: 13px;
  color: #3d372f;
}

.top-strip__inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-strip__links { display: flex; gap: 30px; }
.top-strip__links a:hover { color: var(--gold); }

.header-main {
  min-height: 84px;
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) 190px 330px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brand__name {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.brand__tag {
  font-size: 10px;
  letter-spacing: .42em;
  color: var(--taupe);
  margin-top: 7px;
}

.brand--footer { align-items: flex-start; margin-bottom: 18px; }

.search {
  height: 46px;
  display: flex;
  align-items: center;
  background: #f5f1ec;
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.search:focus-within {
  background: #fff;
  border-color: var(--gold);
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
}

.search button,
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--graphite);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  color: var(--gold);
}

.header-main__burger { display: none; }
.header-search-trigger { display: none; }

.header-contact a {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
}

.header-contact span { color: var(--muted); font-size: 12px; }

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.header-action b {
  position: absolute;
  top: -12px;
  left: 17px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: #4a3822;
  color: #fff;
  font-size: 11px;
}

.category-nav {
  border-top: 1px solid var(--line);
}

.category-nav__inner {
  height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__inner a {
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 650;
}

.category-nav__inner a:hover,
.category-nav__inner a.is-active { color: var(--gold); }

.search-overlay {
  position: fixed;
  inset: 0 0 auto;
  z-index: 95;
  background: rgba(251,250,247,.98);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform .24s ease;
  padding: 24px 0;
}
.search-overlay.is-open { transform: none; }
.search-overlay__inner {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 14px;
  align-items: center;
}
.search-overlay__form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}
.search-overlay__form input {
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 0 16px;
  outline-color: var(--gold);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--graphite);
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--graphite); color: #fff;}
.btn--dark:hover { background: #352b22; border-color: #352b22; }
.btn--light { background: #fff; color: var(--graphite); border-color: var(--line); }
.btn--small { min-height: 38px; padding-inline: 16px; font-size: 12px; }
.btn.is-disabled { pointer-events: none; opacity: .45; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--graphite);
  padding: 0 24px;
  background: transparent;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button--dark { background: var(--graphite); color: #fff; }
.button--dark:hover { background: #352b22; border-color: #352b22; }
.button--light { background: #fff; color: var(--graphite); border-color: var(--line); }
.button--wide { width: 100%; }
.button[disabled], .button.is-loading { opacity: .6; pointer-events: none; }

.eyebrow {
  display: inline-block;
  color: #5b4632;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  background: #fff;
  padding: 42px 0 0;
}

.hero__slider {
  position: relative;
  width: min(100% - 22px, 1514px);
  margin: 0 auto;
  min-height: 342px;
  background: linear-gradient(90deg, #e6dbcd 0%, #f4eee6 42%, #d8c9b6 100%);
  overflow: hidden;
}

.hero__inner {
  min-height: 342px;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-left: 56px;
}

.hero h1 {
  max-width: 560px;
  margin: 16px 0 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.15vw, 45px);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: 0;
}

.hero p {
  max-width: 470px;
  color: #4f4a44;
  margin: 0 0 24px;
}

.hero__media {
  height: 342px;
  align-self: stretch;
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -90px;
  width: 190px;
  background: linear-gradient(90deg, #e6dbcd 0%, rgba(230,219,205,.88) 45%, rgba(230,219,205,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
}

.hero__arrow--left { left: 18px; }
.hero__arrow--right { right: 18px; }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero__dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
}

.hero__dots .is-active { background: #fff; }

.benefits {
  background: #fff;
  padding: 27px 0;
}

.benefits__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
}

.benefit b {
  display: block;
  color: var(--graphite);
  font-size: 13px;
}

.benefit span { color: var(--muted); font-size: 12px; }

.section { padding: 46px 0; }
.section--split { padding-top: 18px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2,
.promo-column h2,
.seo-block h2,
.page-hero h1,
.product-summary h1,
.cabinet-content h1,
.form-card h2,
.summary-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.section-head h2,
.promo-column h2 { font-size: 31px; }

.section-head a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #5b4632;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  min-width: 0;
  display: block;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sand);
  transition: transform .28s ease, filter .28s ease;
}

.category-card:hover img {
  transform: translateY(-3px);
  filter: saturate(1.05) contrast(1.02);
}

.category-card strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
}

.category-card span {
  color: var(--muted);
  font-size: 13px;
}

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

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

.product-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #f0ebe4;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #dfd3c5;
}

.product-card__image {
  display: block;
  background: #f4f0eb;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-card:hover .product-card__image img { transform: scale(1.035); }

.product-card__body { padding: 14px; }
.product-card__rating { color: var(--gold); font-size: 12px; display: flex; gap: 4px; align-items: center; margin-bottom: 7px; }
.product-card__title { min-height: 46px; display: block; font-weight: 650; }

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

.price-row strong { font-size: 18px; }
.price-row span { color: var(--muted); text-decoration: line-through; }
.price-row em { color: var(--danger); font-style: normal; font-weight: 700; }

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  background: #3d2c18;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.badge--sale { left: auto; right: 9px; background: var(--danger); }

.promo-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-tile {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #eee7dc, #fff);
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.promo-tile h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
}

.promo-tile p { color: var(--muted); margin: 0 0 18px; }
.promo-tile img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; }
.promo-tile--dark { display: block; background: #2b2925; color: #fff; }
.promo-tile--dark p { color: #ddd5ca; }
.link-more { display: inline-flex; align-items: center; gap: 8px; color: #5b4632; font-weight: 700; }
.promo-tile--dark .link-more { color: #e4c591; }

.seo-block {
  padding: 64px 0;
  background: #f3eee7;
}

.seo-block__inner {
  max-width: 900px;
}

.seo-block h2 {
  margin: 12px 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.seo-block p { color: #504c47; }

.subscription-band {
  background: #2d2924;
  color: #fff;
  padding: 42px 0;
}

.subscription-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
}

.subscription-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  margin: 8px 0 8px;
}

.subscription-band p { color: #ddd4c8; margin: 0; }

.subscribe-form {
  display: flex;
  background: #fff;
  padding: 6px;
}

.subscribe-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0 16px;
  outline: 0;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  padding: 46px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 38px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

.footer-grid p { color: var(--muted); max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { color: var(--graphite); border-bottom: 1px solid var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.flash {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.flash--success { border-color: rgba(79,114,79,.35); color: var(--success); }
.flash--error { border-color: rgba(155,63,50,.35); color: var(--danger); }

.page-hero {
  padding: 46px 0;
  background: linear-gradient(135deg, #f5efe7, #fff);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  margin: 10px 0 12px;
}

.page-hero p { max-width: 690px; color: var(--muted); margin: 0; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--gold); }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
}

.filters,
.summary-card,
.form-card,
.auth-card,
.cabinet-nav,
.bonus-card,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}

.filters { align-self: start; position: sticky; top: 170px; }
.filters h2 { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; }
.filters label, .form-card label, .auth-card label, .checkout-form label, .admin-form label { display: grid; gap: 7px; margin-bottom: 14px; color: #4d4841; }
.filters input, .filters select, .form-card input, .form-card textarea, .auth-card input, .checkout-form input, .checkout-form textarea, .admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 42px;
  padding: 10px 12px;
  outline-color: var(--gold);
}

.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-categories { margin-top: 26px; display: grid; gap: 9px; }
.filter-categories h3 { margin: 0 0 4px; font-size: 15px; }
.filter-categories a { color: var(--muted); }
.filter-categories a.is-active, .filter-categories a:hover { color: var(--gold); }
.catalog-toolbar { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--muted); }

.pagination {
  margin-top: 28px;
  display: flex;
  gap: 8px;
}

.pagination a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.pagination a.is-active { background: var(--graphite); color: #fff; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 44px;
}

.product-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sand);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.product-gallery__thumbs button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.product-gallery__thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-summary h1 { font-size: clamp(34px, 4vw, 50px); margin: 10px 0 12px; line-height: 1.1; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 13px;
}
.product-meta span { display: inline-flex; align-items: center; gap: 5px; }
.stock-ok { color: var(--success); }
.stock-no { color: var(--danger); }
.price-row--large strong { font-size: 30px; }

.variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.variant-grid label input { position: absolute; opacity: 0; pointer-events: none; }
.variant-grid label span {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.variant-grid input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

.buy-panel {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 10px;
  margin-bottom: 20px;
}
.buy-panel input { border: 1px solid var(--line); text-align: center; }
.delivery-note { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; color: var(--muted); }
.delivery-note b { color: var(--graphite); }

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-top: 44px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 15px 18px;
  color: var(--muted);
}
.tabs button.is-active { color: var(--graphite); border-bottom: 2px solid var(--gold); }
.tab-panel { display: none; padding: 24px 0; }
.tab-panel.is-active { display: block; }
.specs { display: grid; grid-template-columns: 220px 1fr; gap: 10px 22px; }
.specs dt { color: var(--muted); }
.review { background: #fff; border: 1px solid var(--line); padding: 18px; margin-bottom: 12px; }
.review span { color: var(--gold); display: block; margin: 4px 0; }

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr 110px 74px 110px 74px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border-radius: 15px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.cart-item img { width: 88px; height: 88px; object-fit: cover; }
.cart-item a { font-weight: 700; display: block; }
.cart-item span { color: var(--muted); font-size: 13px; }
.cart-item input { width: 70px; border: 1px solid var(--line); min-height: 38px; text-align: center; }
.link-button { border: 0; background: transparent; color: var(--danger); padding: 0; }

.summary-card {
  position: sticky;
  top: 170px;
  display: grid;
  gap: 12px;
}
.summary-card div { display: flex; justify-content: space-between; gap: 16px; }
.summary-card__total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 19px; }
.coupon-form { display: flex; gap: 6px; margin: 8px 0; }
.coupon-form input { min-width: 0; width: 100%; border: 1px solid var(--line); padding: 0 12px; }
.coupon-form button { border: 1px solid var(--graphite); background: #fff; padding: 0 12px; }

.checkout-form { display: grid; gap: 16px; }
.choice-grid { display: grid; gap: 10px; }
.choice-grid label {
  grid-template-columns: 22px 1fr;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  margin: 0;
}
.choice-grid small { display: block; color: var(--muted); }

.auth-page {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 58px 20px;
  background: linear-gradient(135deg, #f4eee6, #fff);
}
.auth-card { width: min(100%, 420px); box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--serif); font-weight: 400; margin: 8px 0 20px; }
.auth-card p { display: flex; justify-content: space-between; gap: 16px; }

.cabinet-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cabinet-nav { display: grid; gap: 10px; position: sticky; top: 170px; }
.cabinet-nav a, .cabinet-nav button { color: var(--muted); border: 0; background: transparent; text-align: left; padding: 0; }
.cabinet-nav a:hover, .cabinet-nav button:hover { color: var(--gold); }
.cabinet-content { min-width: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 30px;
}
.stat-grid div {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.stat-grid span { display: block; color: var(--muted); }
.stat-grid b { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.order-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.bonus-card b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.prose { font-size: 17px; }
.prose h2 { font-family: var(--serif); font-weight: 400; margin-top: 30px; }

.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(31,31,29,.42);
  display: none;
  place-items: center;
  padding: 20px;
}
.quick-modal.is-open { display: grid; }
.quick-modal__panel {
  position: relative;
  width: min(100%, 780px);
  background: #fff;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}
.quick-modal__close { position: absolute; top: 12px; right: 12px; }
.quick-view { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.quick-view img { width: 260px; aspect-ratio: 1 / 1; object-fit: cover; }

@media (max-width: 1180px) {
  .header-main { grid-template-columns: 200px minmax(220px,1fr) 170px 260px; gap: 18px; }
  .benefits__inner { grid-template-columns: repeat(3, 1fr); }
  .category-row { grid-template-columns: repeat(4, 1fr); }
  .product-grid, .product-grid--compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 28px, 1120px); }
  .top-strip__links, .header-contact, .header-actions span { display: none; }
  .header-main { min-height: 70px; grid-template-columns: 42px 1fr auto; }
  .header-main__burger { display: inline-flex; }
  .brand { align-items: flex-start; }
  .brand__name { font-size: 23px; }
  .brand__tag { font-size: 9px; letter-spacing: .28em; }
  .search { grid-column: 1 / -1; order: 5; margin-bottom: 12px; }
  .header-actions { display: flex; gap: 8px; }
  .header-search-trigger { display: inline-flex; }
  .header-action { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); }
  .category-nav.is-open { display: block; }
  .category-nav__inner { height: auto; padding: 16px 0; flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 16px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding: 42px 28px 24px; }
  .hero__media { height: 260px; }
  .hero__media::before { display: none; }
  .hero__arrow { display: none; }
  .benefits__inner { grid-template-columns: repeat(2, 1fr); }
  .home-columns, .catalog-layout, .product-detail, .cart-layout, .checkout-layout, .cabinet-layout, .footer-grid, .subscription-band__inner {
    grid-template-columns: 1fr;
  }
  .filters, .summary-card, .cabinet-nav { position: static; }
  .product-grid, .product-grid--compact { grid-template-columns: repeat(2, 1fr); }
  .category-row { grid-template-columns: repeat(3, 1fr); }
  .buy-panel { grid-template-columns: 78px 1fr; }
  .buy-panel .btn--light { grid-column: 1 / -1; }
  .cart-item { grid-template-columns: 72px 1fr 70px; }
  .cart-item strong, .cart-item b { font-size: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .hero__slider { width: 100%; }
  .hero h1 { font-size: 32px; }
  .section { padding: 34px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .category-row { grid-template-columns: repeat(2, 1fr); }
  .product-grid,     .product-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
  .benefits__inner { grid-template-columns: 1fr; }
  .promo-tile { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { min-height: 44px; }
  .tabs { overflow-x: auto; }
  .specs { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr; }
  .quick-view { grid-template-columns: 1fr; }
  .quick-view img { width: 100%; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 18px, 1120px); }
  .top-strip { font-size: 11px; }
  .top-strip__inner { min-height: 32px; }
  .header-main { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 62px; }
  .header-actions { min-width: 82px; gap: 4px; }
  .brand__name { font-size: 17px; }
  .product-grid, .product-grid--compact { gap: 8px; }
  .product-card__favorite { width: 34px; height: 34px; }
  .price-row { flex-wrap: wrap; gap: 3px 6px; }
  .price-row strong { font-size: 13px !important; }
  .product-card__actions .icon-btn { display: none; }
  .product-card__actions .btn { width: 100%; min-height: 38px; }
}

@media (hover: none) and (pointer: coarse) {
  button, .btn, .button, .icon-btn, input, select { min-height: 44px; }
}
@media (max-width: 768px) {
    .hero__copy {
        text-align: center;
    }
}

body { overflow-x: hidden; }

.section--tight { padding: 34px 0; }
.section--muted { background: #f4f0ea; padding: 42px 0; }
.home-columns--balanced { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .22s ease, border-color .22s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.header-actions { position: relative; }
.mini-cart {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 330px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}
.header-actions:hover .mini-cart,
.header-actions:focus-within .mini-cart {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mini-cart__item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.mini-cart__item img { width: 54px; height: 54px; object-fit: cover; }
.mini-cart__item span { font-weight: 700; }
.mini-cart__item small { display: block; color: var(--muted); font-weight: 400; }
.mini-cart__total { display: flex; justify-content: space-between; padding: 14px 0; }

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card__image { position: relative; }
.product-card__overlay {
  position: absolute;
  inset: auto 12px 12px;
  min-height: 38px;
  display: grid;
  place-items: center;
  background: rgba(31,31,29,.86);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.product-card:hover .product-card__overlay { opacity: 1; transform: none; }
.product-card__badges {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 56px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.product-card__badges .badge { position: static; }
.badge--new { background: #7c775f; }
.product-card__favorite {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
}
.product-card__favorite .icon-btn { background: rgba(255,255,255,.92); }
.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-card__meta {
  min-height: 22px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.product-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.product-card__title { flex: 1; }
.product-card__actions form { flex: 1; }
.product-card__actions .btn { width: 100%; }
.btn.is-added,
.btn .is-added { background: var(--success); border-color: var(--success); }

.filters-toggle { display: none; margin-bottom: 14px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filters__close { display: none; }
.filters__reset { display: inline-block; color: var(--muted); margin-top: 12px; }
.check-line {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--graphite);
}
.check-line input { width: 18px; height: 18px; min-height: 0; padding: 0; }
.category-seo-text {
  margin-top: 34px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  color: #4f4a44;
}
.category-seo-text h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}

.option-group { margin: 22px 0; }
.option-group > b { display: block; margin-bottom: 10px; }
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch-grid label input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-grid label span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.swatch-grid input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.one-click-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 20px;
}
.one-click-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 12px;
}
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.delivery-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.delivery-grid span { display: block; color: var(--muted); margin-top: 6px; }

.lifestyle-block {
  padding: 48px 0;
  background: #fff;
}
.lifestyle-block__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 38px;
  align-items: center;
}
.lifestyle-block img {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  object-fit: cover;
}
.lifestyle-block h2,
.faq-block h2 {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 400;
}
.lifestyle-block p,
.faq-block p { color: var(--muted); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.review-card span { color: var(--gold); letter-spacing: .08em; }
.review-card p { min-height: 92px; color: #4f4a44; }
.review-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.review-card__head time { color: var(--muted); font-size: 12px; }
.review-card__rating { display: block; margin-top: 8px; }
.reviews-more { display: flex; justify-content: center; margin-top: 22px; }

.faq-block {
  padding: 46px 0;
  background: #f4f0ea;
}
.faq-block__inner {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
}
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-list p { margin-bottom: 0; }

.footer-trust {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-trust span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--muted);
  background: #fbfaf7;
}

@media (max-width: 900px) {
  .mini-cart { display: none; }
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed;
    inset: 0 16% 0 0;
    z-index: 90;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 20px 0 80px rgba(31,31,29,.18);
  }
  .filters.is-open { transform: none; }
  .filters__close { display: inline-flex; }
  .has-drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(31,31,29,.34);
    z-index: 80;
  }
  .lifestyle-block__inner,
  .faq-block__inner,
  .delivery-grid,
  .review-grid,
  .one-click-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section--tight { padding: 28px 0; }
  .filters { inset-right: 0; }
  .one-click-form .btn { width: 100%; }
  .product-card__overlay { display: none; }
  .review-card p { min-height: 0; }
  .category-seo-text { padding: 20px; }
}

.category-nav { position: relative; background: #fff; }
.category-nav__inner {
  position: relative;
  overflow: visible;
}
.category-nav__item {
  height: 100%;
  display: flex;
  align-items: center;
}
.category-nav__item > a {
  height: 46px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.category-nav__item:hover > a,
.category-nav__item:focus-within > a {
  color: var(--graphite);
  border-color: var(--graphite);
}
.mega-menu {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(15, 17, 20, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.category-nav__item:hover .mega-menu,
.category-nav__item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega-menu__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 22px;
}
.mega-menu__group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
}
.mega-menu__title {
  color: var(--graphite);
  font-weight: 800;
}
.mega-menu__group a:not(.mega-menu__title) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.mega-menu__group a:hover { color: var(--graphite); }
.mega-menu__promo {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.mega-menu__promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62));
}
.mega-menu__promo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-menu__promo span,
.mega-menu__promo em {
  font-size: 13px;
  font-style: normal;
}
.mega-menu__promo b {
  margin: 4px 0 14px;
  font-size: 22px;
  line-height: 1.15;
}
.mega-menu__promo em {
  width: max-content;
  background: #fff;
  color: var(--graphite);
  padding: 9px 14px;
  font-weight: 700;
}

.section--catalog {
  padding: 30px 0 0;
  background: #fff;
}
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.catalog-head h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 400;
}
.catalog-sort label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.catalog-sort select {
  min-width: 210px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  outline-color: var(--gold);
}
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
}
.quick-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fbfaf7;
  color: var(--graphite);
  font-size: 13px;
}
.quick-tags a:hover {
  border-color: var(--gold);
  background: #fff;
}
.filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.filter-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.filter-group .check-line {
  margin-bottom: 8px;
}
.check-line span {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.check-line small {
  color: var(--muted);
}
.filter-categories__child {
  padding-left: 14px;
  font-size: 13px;
}
.catalog-content {
  position: relative;
  min-width: 0;
}
.catalog-content.is-loading,
[data-catalog-results].is-loading {
  opacity: .55;
  pointer-events: none;
}
.variant-grid button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
  color: var(--graphite);
}
.variant-grid button.is-active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.variant-grid button.is-disabled,
.variant-grid button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.variant-grid--color button {
  min-width: 64px;
}

@media (max-width: 1180px) {
  .mega-menu__columns { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

@media (max-width: 900px) {
  .category-nav {
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .category-nav__inner {
    gap: 0;
  }
  .category-nav__item {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .category-nav__item > a {
    width: 100%;
    height: auto;
    padding: 12px 0;
  }
  .mega-menu {
    position: static;
    display: block;
    padding: 0 0 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mega-menu__columns {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mega-menu__group {
    gap: 7px;
    padding-left: 12px;
  }
  .mega-menu__promo { display: none; }
  .catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .catalog-sort,
  .catalog-sort select {
    width: 100%;
  }
}

/* Django bridge: keeps PHP premium design while covering existing Django pages. */
.image-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--taupe);
  font-family: var(--serif);
  font-size: 24px;
}

.flash { width: min(100% - 40px, 1120px); margin: 16px auto 0; }
.brand--footer .brand__tag { color: #d7c4a4; }
.product-card__favorite { position: absolute; top: 9px; right: 9px; z-index: 4; }
.badge--new { background: var(--success); }
.section--surface, .section--muted { background: #f3eee7; }
.display-title { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 400; line-height: 1.12; }
.lead { color: var(--muted); font-size: 17px; }

.trust-grid, .usp-grid, .reviews-grid, .account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item, .usp-card, .review-card, .account-card, .auth-panel, .info-panel,
.checkout-card, .cart-summary, .filter-panel, .content-prose {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.trust-item strong, .usp-card strong, .review-card strong { display: block; margin-bottom: 7px; }
.trust-item span, .usp-card p, .review-card p, .content-prose p, .content-prose li { color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-tile {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.category-tile img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  margin-bottom: 14px;
  background: var(--sand);
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-tile b { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.1; }
.category-tile span { color: var(--muted); }

.promo-grid, .auth-shell, .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}
.promo-card {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #eee7dc, #fff);
  border: 1px solid var(--line);
}
.promo-card--light { background: #fff; }
.promo-card h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; }

.email-capture, .subscribe-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.field, .select, textarea, .auth-panel input, .auth-panel select, .auth-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  outline-color: var(--gold);
}
textarea { min-height: 116px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row { display: grid; gap: 7px; }
.form-row--full { grid-column: 1 / -1; }
.form-row label { color: var(--muted); }

.account-layout, .catalog-layout, .cart-layout, .checkout-layout, .product-page {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cart-layout, .checkout-layout, .product-page { grid-template-columns: minmax(0, 1fr) 360px; }
.account-nav, .filter-panel, .product-info, .cart-summary { position: sticky; top: 150px; }
.account-nav {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  gap: 4px;
}
.account-nav a { padding: 11px 12px; color: var(--muted); }
.account-nav a:hover { color: var(--graphite); background: #f5f1ec; }
.account-content { display: grid; gap: 18px; }

.data-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.status-pill, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: #f0e8dc;
  color: #5b4632;
  font-size: 13px;
}

.check-row, .check-line { display: flex; gap: 9px; align-items: center; color: var(--muted); }
.cart-list { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}
.cart-item img, .cart-item__image, .order-item img, .order-item__image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  background: var(--sand);
}
.quantity { display: flex; gap: 8px; align-items: center; }
.quantity input { width: 70px; min-height: 38px; border: 1px solid var(--line); text-align: center; }
.remove-btn { border: 0; background: transparent; color: var(--danger); padding: 8px 0; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0; }
.summary-row--total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 20px; }
.empty-state { background: #fff; border: 1px solid var(--line); padding: 42px; text-align: center; }

.store-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  background: var(--graphite);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.store-toast.is-visible { opacity: 1; transform: none; }
.store-toast--error { background: var(--danger); }

.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.checkout-step { padding: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.checkout-step.is-active { background: var(--graphite); color: #fff; }
.address-card { display: block; border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; background: #fff; }
.address-card.selected { border-color: var(--gold); background: #fbf7f0; }
.order-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-item img, .order-item__image { width: 54px; height: 54px; }

.gallery { display: grid; gap: 12px; }
.gallery__main { background: var(--sand); border: 1px solid var(--line); }
.gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery__thumbs span,
.gallery__thumbs img { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); }
.gallery__thumbs img { width: 100%; object-fit: cover; }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.price-line strong { font-family: var(--serif); font-size: 34px; font-weight: 400; }
.price-line del { color: var(--muted); }
.stock { display: inline-flex; padding: 6px 10px; color: var(--success); background: #eef3ee; }
.spec-list { display: grid; gap: 10px; margin: 20px 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }

.modal-layer { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; background: rgba(31,31,29,.45); }
.modal-layer.is-open { display: grid; }
.modal-panel { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; padding: 24px; box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .trust-grid, .usp-grid, .reviews-grid, .account-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-grid, .auth-shell, .contact-grid, .account-layout, .catalog-layout, .cart-layout, .checkout-layout, .product-page { grid-template-columns: 1fr; }
  .account-nav, .filter-panel, .product-info, .cart-summary { position: static; }
}

@media (max-width: 560px) {
  .trust-grid, .usp-grid, .reviews-grid, .account-grid, .category-grid, .form-grid,
  .checkout-steps, .email-capture, .subscribe-form { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: auto 76px 1fr; }
  .cart-item img, .cart-item__image { width: 76px; height: 76px; }
  .cart-item__actions, .cart-item__price { grid-column: 2 / -1; }
}
/* Слайдер - обязательно! */
.hero__slides-container {
    overflow: hidden;
}

.hero__slide {
    display: none !important;
}

.hero__slide.hero__slide--active {
    display: block !important;
}

.hero__arrow {
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 900px) {

  .category-nav {
      position: fixed;
      top: 0;
      left: 0;

      width: 280px;
      height: 100vh;
      min-height: 100vh;

      background: #fff;

      overflow-y: auto;

      transform: translateX(-280px);
      transition: transform .35s cubic-bezier(.22,1,.36,1);

      z-index: 10001;
  }

  .category-nav.is-open {
      transform: translateX(0);
  }


  .menu-overlay {
      position: fixed;

      top: 0;
      left: 280px;

      width: calc(100vw - 280px);
      height: 100vh;

      background: rgba(0,0,0,0);

      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(0px);

      opacity: 0;
      visibility: hidden;
      pointer-events: none;

      z-index: 9999;

      transition:
          opacity .45s ease .12s,
          background-color .45s ease .12s,
          backdrop-filter .45s ease .12s,
          -webkit-backdrop-filter .45s ease .12s;
  }

  .menu-overlay.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;

      background: rgba(0,0,0,.35);

      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
  }

  .overlay-close {
    position: fixed;
    top: 16px;
    left: 296px;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: #fff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    z-index: 10002;
  }
  .overlay-close {
      opacity: 0;
      transform: scale(.7);

      transition:
          opacity .25s ease,
          transform .25s ease;
  }

  .menu-overlay.is-open + .overlay-close {
      display: flex;
      opacity: 1;
      transform: scale(1);
  }
  .category-nav__item {
    border-bottom: 1px solid #e5e5e5;
  }

  .category-nav__item a {
      display: flex;
      align-items: center;
      justify-content: space-between;

      min-height: 58px;
      padding: 0 18px;

      text-decoration: none;
      color: #333;
  }
  .category-nav__item--category a::after {
      content: "›";

      width: 28px;
      height: 28px;

      display: flex;
      align-items: center;
      justify-content: center;

      border: 1px solid #ddd;
      border-radius: 4px;

      color: #888;
      font-size: 18px;
  }

  .category-nav__arrow {
      font-size: 22px;
      color: #888;
      transition: transform .2s ease;
  }

  .category-nav__item a:hover .category-nav__arrow {
      transform: translateX(3px);
  }
}

@media (max-width: 900px) {

  .category-nav {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 280px !important;

      height: 100vh !important;
      min-height: 100vh !important;

      background: #fff !important;

      overflow-y: auto;
  }
  .header-search-trigger {
    font-size: 22px;
  }
    .header-action {
        font-size: 22px;
    }
        .search button {
        font-size: 24px;
    }
      .home-columns {
        display: flex;
        flex-direction: column;
    }

    .promo-column {
        order: 2; /* переносим вниз */
        margin-top: 20px;
    }

    .product-grid {
        order: 1;
    }
      .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
        .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
  
}

@media (min-width: 901px) {
    .overlay-close {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .submenu-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 10003;
        transform: translateX(-100%);
        transition: transform .35s ease;
        overflow-y: auto;
    }
    .submenu-panel.is-open {
        transform: translateX(0);
    }
    .submenu-header {
        position: sticky;
        top: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        padding: 0 18px;
        min-height: 58px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .submenu-back {
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px 16px;
        margin: 0 -8px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .submenu-back svg {
        width: 28px;
        height: 28px;
        stroke: #333;
        stroke-width: 2;
        fill: none;
    }
    .submenu-title {
        font-size: 15px;
        font-weight: 500;
        margin: 0;
        color: #333;
    }
    .submenu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    /* ЛИНИЯ У КАЖДОГО ЭЛЕМЕНТА */
    .submenu-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        padding: 0 18px 0 36px;
        text-decoration: none;
        color: #333;
        font-size: 15px;
        border-bottom: 1px solid #e5e5e5;  /* ЛИНИЯ */
    }
    .submenu-list a:last-child {
        border-bottom: none;
    }
    .submenu-list a::after {
        content: "›";
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        color: #888;
        font-size: 18px;
        transition: transform .2s ease;
    }
    .submenu-list a:hover::after {
        transform: translateX(3px);
    }
    .submenu-list a:first-child {
        font-weight: 700;
        color: #b99662;
    }
    .submenu-list a:first-child::after {
        display: none;
    }
    .submenu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0);
        opacity: 0;
        visibility: hidden;
        z-index: 10002;
        transition: opacity .3s ease;
    }
    .submenu-overlay.is-open {
        opacity: 1;
        visibility: visible;
        background: rgba(0,0,0,.35);
        backdrop-filter: blur(8px);
    }
}

@media (max-width: 900px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e9e1d6;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .product-card__image {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .product-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-card__body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .product-card__title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        min-height: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-top: 4px;
    }
    
    .price-row strong {
        font-size: 16px;
        font-weight: 700;
        color: #1f1f1d;
    }
    
    .price-row span {
        font-size: 12px;
        color: #9b8870;
        text-decoration: line-through;
    }
    
    .product-card__rating {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: #b99662;
    }
    
    .product-card__actions {
        margin-top: 8px;
    }
    
    .product-card__actions .btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
}

@media (max-width: 560px) {
    .product-grid {
        gap: 10px;
    }
    
    .product-card__body {
        padding: 8px;
    }
    
    .product-card__title {
        font-size: 12px;
    }
    
    .price-row strong {
        font-size: 14px;
    }
    
    .product-card__actions .btn {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }
}

@media (min-width: 901px) {
    .submenu-back {
        display: none;
    }
    
    .submenu-panel,
    .submenu-overlay {
        display: none;
    }
}


[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
}


@media (min-width: 769px) {
    .product-description-mobile {
        display: none !important;
    }
    .product-description-desktop {
        display: block;
        margin-top: 24px;
    }
}

/* Мобильная версия (меньше 768px) */
@media (max-width: 768px) {
    .product-description-desktop {
        display: none !important;
    }
    .product-description-mobile {
        display: block;
        margin-top: 24px;
    }
}
/* Общие стили для описания */
.product-description-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.product-description-content p {
    margin: 0 0 12px 0;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}
/* Общие стили для описания */
.product-description-content {
    font-size: 15px;
    line-height: 1.65;
    color: var(--graphite);
}

.product-description-content p {
    margin: 0 0 14px 0;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

.product-description-content strong,
.product-description-content b {
    color: var(--graphite);
    font-weight: 600;
}

.product-description-content ul,
.product-description-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.product-description-content li {
    margin: 5px 0;
    color: var(--graphite);
}

/* Для ПК */
@media (min-width: 769px) {
    .product-description-desktop {
        display: block;
        margin-top: 28px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 20px 24px;
    }
}

/* Для мобилки */
@media (max-width: 768px) {
    .product-description-mobile {
        display: block;
        margin-top: 20px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 16px 18px;
    }
    
    .product-description-content {
        font-size: 14px;
    }
}

 .cart-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 24px;
    padding: 14px 20px;
    border: 1px solid #ccc0a8af;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.check-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #005bff;
}

.check-row span {
    font-size: 15px;
    font-weight: 500;
    color: #001a34;
    user-select: none;
}

@media (max-width: 560px) {
    .cart-controls-row {
        padding: 12px 16px;
    }
    .check-row span {
        font-size: 14px;
    }
}


  .cart-item__image-wrapper {
      position: relative;
      width: 88px;
      height: 88px;
      flex-shrink: 0;
  }

  .cart-item__image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
  }
  .cart-item__image-wrapper::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 24px;
      height: 24px;
      background: #f5f7fa;
      border-bottom-right-radius: 8px;
      z-index: 2;
      pointer-events: none;
  }

  /* Чекбокс в левом верхнем углу поверх обрезанного угла */
  .cart-item__image-wrapper .item-checkbox {
      position: absolute;
      top: -9px;
      left: 0px;
      width: 20px;
      height: 20px;
      margin: 0;
      cursor: pointer;
      accent-color: #005bff;
      z-index: 3;
  }

    /* Карточка товара */
    .cart-item {
        display: flex;
        gap: 16px;
        background: #fff;
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 16px;
        border: 1px solid #e9e1d6;
        align-items: flex-start;
    }
    
    .cart-item__info {
        flex: 1;
    }
    
    .cart-item__info a {
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        color: #1f1f1d;
    }
    
    .cart-item__info a:hover {
        color: #b99662;
    }
    
    .cart-item__size {
        color: #000000;
        font-size: 13px;
        font-weight: 500;
        margin: 6px 0 0;
    }
    
    .cart-item__sku {
        color: #6e6a64;
        font-size: 12px;
        margin: 4px 0 0;
    }
    
    .cart-item__price {
        text-align: right;
        min-width: 130px;
    }
    
    .cart-item__price .item-total {
        font-size: 18px;
        font-weight: 700;
        color: #1f1f1d;
    }
    
    .price-per-unit {
        color: #6e6a64;
        font-size: 12px;
        margin: 4px 0 0;
    }
    
    .quantity {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f5f1ec;
        padding: 4px 8px;
        border-radius: 30px;
    }
    
    .quantity-input {
        width: 50px;
        text-align: center;
        border: none;
        background: transparent;
        font-weight: 500;
        font-size: 14px;
    }
    
    .update-btn {
        background: none;
        border: 1px solid #e9e1d6;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        cursor: pointer;
    }
    
    .remove-btn-js {
        background: none;
        border: none;
        color: #9b8870;
        cursor: pointer;
        font-size: 13px;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .remove-btn-js:hover {
        background: #fef3f1;
        color: #9b3f32;
    }
    
    @media (max-width: 768px) {
        .cart-item {
            flex-wrap: wrap;
            padding: 16px;
        }
        .cart-item__price {
            text-align: left;
        }
        .cart-item__actions {
            width: 100%;
            display: flex;
            justify-content: space-between;
            margin-top: 12px;
        }
        .cart-item__image-wrapper {
            width: 72px;
            height: 72px;
        }
    }


.cart-item__info-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.wishlist-btn,
.remove-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f5f5f5;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #1f1f1d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-btn svg,
.remove-info-btn svg {
    width: 18px;
    height: 18px;
    stroke: #1f1f1d;
    stroke-width: 1.8;
    fill: none;
}

.wishlist-btn:hover,
.remove-info-btn:hover {
    background: #e8e8e8;
}

.wishlist-btn:active,
.remove-info-btn:active {
    transform: scale(0.97);
}

/* Активное состояние для избранного (если товар в wishlist) */
.wishlist-btn.active svg {
    stroke: #f91155 !important;
    fill: #f91155 !important;
}

.wishlist-btn.active {
    background: #fff0f5 !important;
}

.cart-item__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #1f1f1d;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e8e8e8;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 16px;
    color: #1f1f1d;
    padding: 8px 0;
}

.qty-input:focus {
    outline: none;
}

/* Shared storefront hardening: consistent header and responsive cards. */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  isolation: isolate;
}
.header-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.socials a, .footer-contact-socials a { display: inline-flex; align-items: center; gap: 7px; }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.footer-contact-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.footer-contact-socials a { color: var(--gold); font-weight: 700; }
.footer-contact-socials svg { width: 19px; height: 19px; fill: currentColor; }

@media (max-width: 900px) {
  .site-header { backdrop-filter: none; }
  .top-strip__inner { justify-content: center; text-align: center; }
  .header-main { gap: 10px; }
  .header-actions { min-width: 136px; justify-content: flex-end; }
  .product-card, .category-card { min-width: 0; }
  .product-card__title { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  .header-main { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .header-actions { min-width: 88px; }
  .header-actions .header-action:not(.header-action--cart) { display: none; }
  .header-action, .header-search-trigger, .header-main__burger { width: 40px; height: 40px; }
  .brand__name { font-size: clamp(18px, 6vw, 22px); }
  .brand__tag { display: none; }
  .product-card__body { padding: 12px 10px 14px; }
  .product-card__meta { gap: 4px; flex-wrap: wrap; font-size: 10px; }
  .product-card__actions { align-items: stretch; }
  .product-card__actions .btn { min-width: 0; padding-inline: 9px; font-size: 10px; }
  .product-card__actions .icon-btn { flex: 0 0 38px; }
  .footer-grid > div { min-width: 0; }
}

/* Canonical navigation. These rules intentionally replace legacy menu variants. */
.mobile-nav__head,
.mobile-nav__search,
.mobile-nav__links,
.mobile-nav__children,
.category-nav__row button { display: none; }
.category-nav__all,
.category-nav__row > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 650;
}
.category-nav__row { display: flex; align-items: center; }

@media (max-width: 900px) {
  html.menu-open,
  body.menu-open { overflow: hidden !important; overscroll-behavior: none; }
  .category-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 10010 !important;
    display: flex !important;
    flex-direction: column;
    width: min(88vw, 390px) !important;
    height: 100dvh !important;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: 28px 0 70px rgba(20, 18, 14, .2);
    overflow: hidden !important;
    transform: translate3d(-105%, 0, 0) !important;
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease !important;
  }
  .category-nav.is-open { transform: translate3d(0, 0, 0) !important; visibility: visible; }
  .mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav__head .brand { align-items: flex-start; }
  .mobile-nav__close { display: inline-flex; flex: 0 0 42px; }
  .mobile-nav__search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 12px 16px;
    min-height: 48px;
    padding-left: 12px;
    border: 1px solid var(--line);
    background: #f8f5f0;
  }
  .mobile-nav__search input { width: 100%; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; }
  .mobile-nav__search button { align-self: stretch; border: 0; padding: 0 14px; background: var(--graphite); color: #fff; font-size: 12px; font-weight: 700; }
  .category-nav__inner {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .category-nav__all,
  .category-nav__row > a {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 15px;
  }
  .category-nav__all { width: 100%; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--gold); }
  .category-nav__item { display: block !important; height: auto !important; border-bottom: 1px solid var(--line); }
  .category-nav__row { width: 100%; }
  .category-nav__row button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .category-nav__row button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
  .category-nav__item.is-expanded .category-nav__row button svg { transform: rotate(180deg); }
  .mobile-nav__children { display: grid; max-height: 0; overflow: hidden; transition: max-height .24s ease; }
  .category-nav__item.is-expanded .mobile-nav__children { max-height: 70vh; padding-bottom: 10px; }
  .mobile-nav__children a { min-height: 42px; display: flex; align-items: center; padding: 8px 12px; color: var(--muted); font-size: 14px; }
  .mobile-nav__children a:first-child { color: var(--gold); font-weight: 700; }
  .mobile-nav__links { display: grid; flex: 0 0 auto; padding: 12px 16px; border-top: 1px solid var(--line); background: #fbfaf7; }
  .mobile-nav__links a { padding: 7px 0; color: var(--muted); font-size: 13px; }
  .menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    display: block !important;
    background: rgba(20, 18, 14, .48) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
    backdrop-filter: blur(3px);
  }
  .menu-overlay.is-open { opacity: 1; visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .category-nav, .menu-overlay, .mobile-nav__children { transition: none !important; }
}

.payment-page { padding: clamp(28px, 5vw, 64px) 0; background: linear-gradient(180deg, #fff 0, var(--ivory) 100%); }
.payment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.payment-card, .payment-summary { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.payment-card { overflow: hidden; }
.payment-header { padding: clamp(22px, 4vw, 34px); border-bottom: 1px solid var(--line); }
.payment-header h1 { margin: 8px 0 10px; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 400; }
.payment-header p { max-width: 620px; margin: 0; color: var(--muted); }
.payment-widget { min-height: 300px; padding: clamp(16px, 3vw, 28px); }
.payment-loader { min-height: 240px; background: linear-gradient(90deg, #f4ede2 25%, #fffaf3 42%, #f4ede2 65%); background-size: 400% 100%; animation: payment-loading 1.2s ease infinite; }
.payment-card.is-ready .payment-loader { display: none; }
@keyframes payment-loading { to { background-position: -100% 0; } }
.payment-summary { position: sticky; top: var(--header-offset, 170px); padding: 26px; }
.payment-summary h2 { margin: 7px 0 22px; font-family: var(--serif); font-size: 26px; }
.payment-summary > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; color: var(--muted); }
.payment-summary > div strong { color: var(--graphite); text-align: right; }
.payment-summary__total { margin-top: 8px; border-top: 1px solid var(--line); font-size: 20px; }
.payment-summary p { margin: 18px 0; padding: 14px; background: #f8f1e5; color: #68583f; font-size: 13px; }
.payment-summary > a { color: #8c7046; font-weight: 700; }
.payment-error { padding: 18px; border: 1px solid #e5b8ae; background: #fff2ef; color: var(--danger); font-weight: 700; }
@media (max-width: 760px) {
  .payment-layout { grid-template-columns: 1fr; }
  .payment-summary { position: static; order: -1; padding: 20px; }
  .payment-widget { min-height: 260px; padding-inline: 10px; }
}
@media (max-width: 768px) {
    .footer-grid > div:nth-child(3) {
        margin-top: -170px !important;
    }
}