:root {
  --bg: #f6f5f3;
  --card: #ffffff;
  --text: #1c1b19;
  --muted: #6f6a64;
  --line: #e7e4df;
  --accent: #1c1b19;
  --accent-dark: #000;
  --accent-soft: #3a3835;
  --green: #1c1b19;
  --price: #1c1b19;
  --shadow: 0 10px 30px rgba(28, 27, 25, 0.06);
  --header-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

button, input, select, textarea {
  font: inherit;
}

a { color: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.top-season {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.top-inner {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0 14px;
  align-items: center;
}

.logo {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  width: fit-content;
  grid-column: 1;
  padding: 4px 6px 4px 2px;
}

.logo-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(155deg, #f0b15a 0%, #d4652a 55%, #9a3412 100%);
  box-shadow:
    0 8px 18px rgba(154, 52, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.logo-badge-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.logo-badge .motif { display: none; }
.logo[data-season="winter"] .motif-winter,
.logo[data-season="spring"] .motif-spring,
.logo[data-season="summer"] .motif-summer,
.logo[data-season="autumn"] .motif-autumn { display: block; }

.logo[data-season="winter"] .logo-badge {
  background: linear-gradient(165deg, #5d7c98 0%, #2c4258 58%, #1a2c3d 100%);
  box-shadow: 0 8px 16px rgba(26, 44, 61, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.logo[data-season="spring"] .logo-badge {
  background: linear-gradient(155deg, #ffd0e2 0%, #ef6f9d 100%);
  box-shadow: 0 8px 18px rgba(190, 70, 120, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.logo[data-season="summer"] .logo-badge {
  background: linear-gradient(155deg, #c8f5a8 0%, #3dae5c 48%, #146b38 100%);
  box-shadow: 0 8px 18px rgba(20, 107, 56, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.logo[data-season="autumn"] .logo-badge {
  background: linear-gradient(155deg, #f6c56a 0%, #e07a32 50%, #9a3412 100%);
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 1;
}

.logo-season {
  display: none;
}

.logo-season i,
.top-season i {
  position: absolute;
  display: block;
  pointer-events: none;
}

/* ===== Сезонные темы шапки ===== */
body[data-season="spring"] .top,
.top[data-season="spring"],
body[data-season="summer"] .top,
.top[data-season="summer"],
body[data-season="autumn"] .top,
.top[data-season="autumn"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--line);
}
body[data-season="winter"] {
  background: #f3f6f8;
}
body[data-season="winter"] .top,
.top[data-season="winter"] {
  background:
    linear-gradient(180deg, #e7eef5 0%, #f7f9fb 46%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 1px 0 #d5dee8;
}
body[data-season="winter"] .top-inner { padding-top: 12px; }
body[data-season="winter"] .top-season { opacity: 1; }
.top-season { opacity: 0.42; }

body[data-season] .logo-mark-text { color: var(--text); }
body[data-season] .logo-sub { color: var(--muted); }
body[data-season] .cart-btn:hover { color: var(--text); }

.search-submit,
.search-submit span {
  color: #fff;
}

/* Зима: тонкий иней и редкие снежинки */
.top-frost-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b7c9da 14%, #8fa6bb 50%, #b7c9da 86%, transparent);
  pointer-events: none;
}
.top-snow {
  position: absolute;
  display: block;
  margin-left: -8px;
  color: #5d7890;
  opacity: 0.8;
  pointer-events: none;
  animation: winter-drift 8.5s ease-in-out infinite;
}

/* Гирлянда */
.top-season-wire {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #1f6b3a 8%, #246b3d 92%, transparent);
  opacity: 0.75;
}
.top-bulb {
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor, 0 0 2px #fff;
  animation: season-twinkle 1.35s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.top-bulb.is-rose { color: #ff4d6d; background: #ff4d6d; }
.top-bulb.is-green { color: #3dcc5a; background: #3dcc5a; }
.top-bulb.is-gold { color: #ffc43d; background: #ffc43d; }
.top-bulb.is-ice { color: #4cc9f0; background: #4cc9f0; }
.top-bulb.is-violet { color: #c77dff; background: #c77dff; }
.top-bulb::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 4px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}
.top-bulb::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  width: 2px;
  height: 6px;
  background: #2f9a4e;
  transform: translateX(-50%);
}

/* Листья / цветы в шапке */
.top[data-season="spring"] .top-leaf,
.logo[data-season="spring"] .logo-ornament {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff7fb 0 18%, transparent 19%),
    radial-gradient(circle at 50% 16%, #ff8fab 0 28%, transparent 29%),
    radial-gradient(circle at 82% 38%, #ff8fab 0 28%, transparent 29%),
    radial-gradient(circle at 68% 78%, #ff8fab 0 28%, transparent 29%),
    radial-gradient(circle at 32% 78%, #ff8fab 0 28%, transparent 29%),
    radial-gradient(circle at 18% 38%, #ff8fab 0 28%, transparent 29%);
  animation: season-sway 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}
.top[data-season="spring"] .top-leaf:nth-child(odd),
.logo[data-season="spring"] .logo-ornament:nth-child(odd) {
  background:
    radial-gradient(circle at 50% 50%, #fffdf2 0 18%, transparent 19%),
    radial-gradient(circle at 50% 16%, #b8e63b 0 28%, transparent 29%),
    radial-gradient(circle at 82% 38%, #7ed957 0 28%, transparent 29%),
    radial-gradient(circle at 68% 78%, #b8e63b 0 28%, transparent 29%),
    radial-gradient(circle at 32% 78%, #7ed957 0 28%, transparent 29%),
    radial-gradient(circle at 18% 38%, #b8e63b 0 28%, transparent 29%);
}

.top[data-season="summer"] .top-leaf,
.logo[data-season="summer"] .logo-ornament {
  width: 14px;
  height: 9px;
  border-radius: 70% 8% 70% 8%;
  background: linear-gradient(135deg, #49b45a, #1f6b35);
  box-shadow: inset -2px -1px 0 rgba(255,255,255,0.2);
  transform: rotate(var(--rot, -18deg));
  animation: season-sway 2.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}
.top[data-season="summer"] .top-leaf:nth-child(3n),
.logo[data-season="summer"] .logo-ornament:nth-child(3n) {
  background: linear-gradient(135deg, #7ed957, #2f8f45);
}
.top[data-season="summer"] .top-leaf:nth-child(3n+1),
.logo[data-season="summer"] .logo-ornament:nth-child(3n+1) {
  background: linear-gradient(135deg, #2f8a4a, #145c2d);
}

.top[data-season="autumn"] .top-leaf,
.logo[data-season="autumn"] .logo-ornament {
  width: 13px;
  height: 13px;
  clip-path: polygon(50% 0%, 78% 28%, 100% 42%, 78% 58%, 62% 100%, 50% 78%, 38% 100%, 22% 58%, 0 42%, 22% 28%);
  background: linear-gradient(145deg, #f4a261, #d62828);
  transform: rotate(var(--rot, 12deg));
  animation: season-fall-sway 3.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}
.top[data-season="autumn"] .top-leaf:nth-child(3n),
.logo[data-season="autumn"] .logo-ornament:nth-child(3n) {
  background: linear-gradient(145deg, #e9c46a, #e76f51);
}
.top[data-season="autumn"] .top-leaf:nth-child(3n+1),
.logo[data-season="autumn"] .logo-ornament:nth-child(3n+1) {
  background: linear-gradient(145deg, #bc6c25, #9c2f2f);
}

/* Зимние снежинки у логотипа */
.logo[data-season="winter"] .logo-ornament {
  width: 11px;
  height: 11px;
  background:
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.98) 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, rgba(255, 255, 255, 0.98) 44% 56%, transparent 56%),
    linear-gradient(45deg, transparent 46%, rgba(185, 215, 245, 0.95) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(185, 215, 245, 0.95) 46% 54%, transparent 54%);
  border-radius: 50%;
  filter: drop-shadow(0 1px 1px rgba(90, 130, 180, 0.18));
  animation: season-frost-shine 2.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.88;
}
.logo[data-season="winter"] .logo-ornament:nth-child(3n) {
  width: 8px;
  height: 8px;
  opacity: 0.7;
}
.logo[data-season="winter"] .logo-ornament:nth-child(4n) {
  width: 13px;
  height: 13px;
}

@keyframes season-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes season-frost-shine {
  0%, 100% { opacity: 0.45; transform: scale(0.92) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(18deg); }
}

@keyframes season-sway {
  0%, 100% { transform: rotate(var(--rot, -12deg)) translateY(0); }
  50% { transform: rotate(calc(var(--rot, -12deg) + 10deg)) translateY(-1px); }
}

@keyframes season-fall-sway {
  0%, 100% { transform: rotate(var(--rot, 10deg)) translateY(0); }
  50% { transform: rotate(calc(var(--rot, 10deg) - 12deg)) translateY(1px); }
}

@keyframes season-snowfall {
  0% { transform: translate3d(0, -14px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translate3d(var(--drift, 12px), 96px, 0) rotate(160deg); opacity: 0; }
}

@keyframes winter-drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.62; }
  50% { transform: translate3d(0, 3px, 0); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-season i,
  .top-season i,
  .top-flake,
  .top-snow,
  .top-bulb {
    animation: none !important;
  }
  .top-flake {
    top: 28px;
    opacity: 0.8;
  }
  .top-snow { opacity: 0.55; }
  .top-bulb { opacity: 1; }
}

.logo-mark {
  position: relative;
  display: inline-block;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.048em;
  line-height: 1;
  color: #1a2433;
  transform: translateY(3px);
  opacity: 0;
  animation: logo-mark-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.logo-mark-text {
  display: inline-block;
  color: #1a2433;
}

.logo-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(3px);
  animation: logo-mark-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

@keyframes logo-mark-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-mark-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes logo-mark-gleam {
  0%, 72%, 100% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  78% { opacity: 0.9; }
  88% { transform: translateX(120%) skewX(-18deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark,
  .logo-sub,
  .logo-mark-text,
  .logo-mark-shine {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .logo-mark-text { color: #1a2433; }
}

.search-block {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.store-phone {
  grid-column: 1 / -1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.store-phone svg { flex: 0 0 auto; color: var(--muted); }

.store-phone:hover { color: var(--text); }

.store-legal {
  margin: 0;
  color: #9a948c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.cart-btn {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
}

.cart-btn:hover {
  border-color: #cfcbc4;
  background: #faf9f7;
  color: var(--text);
}

.cart-btn.has-items {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cart-btn.has-items:hover,
body[data-season] .cart-btn.has-items:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.cart-btn-label { display: none; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f91155;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.search {
  display: flex;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 4px 4px 4px 2px;
  background: #f3f2ef;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
}

.search:focus-within {
  background: #fff;
  border-color: #d9d4cc;
  box-shadow: 0 0 0 4px rgba(28, 27, 25, 0.05);
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 40px 0 14px;
  color: var(--text);
  font-size: 16px;
}

.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-results-button,
.search input::-webkit-search-results-decoration {
  display: none;
}

.search input::placeholder {
  color: #8b95a1;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a8694;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.search-clear:hover {
  background: rgba(0, 26, 52, 0.06);
  color: var(--text);
}

.search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 14px;
  padding: 0 16px;
  min-width: 44px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-submit span { display: none; }

.search-submit svg {
  display: block;
}

.search-submit:hover {
  background: var(--accent-dark);
}

.search-submit:active {
  transform: translateY(1px);
}

.wrap {
  width: min(1440px, calc(100% - 20px));
  margin: 0 auto;
  padding: 16px 0 64px;
}

.cats {
  background: transparent;
  border-bottom: 0;
}

.cats.is-hidden { display: none; }

.cats-inner {
  width: min(1440px, calc(100% - 16px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 0 12px;
  overflow: visible;
}

.cats-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 84px;
  min-height: 78px;
  padding: 8px 6px 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.cat-chip:hover {
  background: #fff;
  color: var(--text);
}

.cat-chip.is-active {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04);
}

.cat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #4a463f;
  border: 1px solid var(--line);
}

.cat-chip.is-active .cat-icon {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.cat-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.cat-label {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.toolbar-count {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.toolbar select,
.stock-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
}

.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

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

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  color: var(--text);
}

.card.is-out .card-media img,
.card.is-out .card-fallback {
  opacity: 0.55;
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.card-media img,
.gallery-slide img,
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-fallback,
.gallery-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3ab;
}

.card-fallback svg,
.gallery-fallback svg {
  width: 42%;
  height: 42%;
}

.card-segments {
  display: none;
  position: absolute;
  inset: 6px 6px auto;
  z-index: 2;
  height: 3px;
  gap: 3px;
  pointer-events: none;
}

.card[data-photos]:hover .card-segments {
  display: flex;
}

.card-segments i {
  flex: 1;
  border-radius: 999px;
  background: rgba(0, 26, 52, 0.18);
}

.card-segments i.on {
  background: var(--accent);
}

.card-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.card-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 26, 52, 0.22);
}

.card-dots i.on { background: var(--accent); }

.card-facts,
.gallery-facts {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}

.card-facts-item,
.gallery-facts-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 7px 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 10px rgba(11, 31, 56, 0.1);
  line-height: 1;
  backdrop-filter: blur(8px);
}

.card-facts-item b,
.gallery-facts-item b {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.card-facts-item small,
.gallery-facts-item small {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-facts-item.is-load,
.gallery-facts-item.is-load,
.card-facts-item.is-height,
.gallery-facts-item.is-height {
  background: rgba(255, 255, 255, 0.94);
}

.card-facts-item.is-load b,
.gallery-facts-item.is-load b,
.card-facts-item.is-height b,
.gallery-facts-item.is-height b { color: var(--text); }

.card-facts-item.is-load small,
.gallery-facts-item.is-load small,
.card-facts-item.is-height small,
.gallery-facts-item.is-height small { color: var(--muted); }

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.product-facts-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f5f3;
  border: 1px solid var(--line);
}

.product-facts-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.product-facts-item strong {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.product-facts-item.is-load,
.product-facts-item.is-height {
  background: #f6f5f3;
}

.product-facts-item.is-load strong,
.product-facts-item.is-height strong { color: var(--text); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
}

.card-price,
.product-price,
.cart-line-price,
.checkout-summary-line b {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  width: fit-content;
  color: var(--price);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
}

.price-cur {
  font-size: 0.62em;
  font-weight: 750;
  letter-spacing: 0;
  position: relative;
  top: -0.06em;
}

.price-missing {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
}

.card-price {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card-price:has(.price-missing),
.product-price:has(.price-missing) {
  padding: 0;
  background: none;
}

.card-stock,
.product-stock,
.product-kicker,
.cart-line-oos {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3d7a52;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.card-stock::before,
.product-stock::before,
.product-kicker::before,
.cart-line-oos::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #12a34a;
  box-shadow: 0 0 0 3px rgba(18, 163, 74, 0.16);
}

.card.is-out .card-stock,
.product-stock.is-out {
  border: 0;
  background: transparent;
  color: #8a847c;
  font-weight: 600;
}

.card.is-out .card-stock::before,
.product-stock.is-out::before {
  background: #98a2b3;
  box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.2);
}

.card-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-size {
  margin: 0;
  align-self: flex-start;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: 0;
  text-align: left;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 750;
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-gallery,
.product-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
}

.gallery-stage {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(11, 31, 56, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-arrow-prev { left: 10px; }
.gallery-arrow-next { right: 10px; }

.gallery-arrow:hover { background: #fff; }
.gallery-arrow:active { transform: translateY(-50%) scale(0.96); }

.gallery-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 8px;
  border-radius: 16px;
  background: #fff;
  scrollbar-width: none;
}

.gallery-scroller::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 1;
  scroll-snap-align: center;
  background: #fff;
}

.gallery-main {
  display: none;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumbs button {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
}

.thumbs button.active { border-color: var(--accent); }

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card.is-external .card-stock,
.product-kicker.is-preorder,
.product-stock.is-preorder,
.cart-line-oos {
  border: 0;
  background: transparent;
  color: #b45309;
  font-weight: 600;
}

.card.is-external .card-stock::before,
.product-kicker.is-preorder::before,
.product-stock.is-preorder::before,
.cart-line-oos::before {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.card-supplier,
.product-supplier {
  margin: 0 0 2px;
  color: #6b645b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.product-kicker {
  margin: 0 0 10px;
}

.product-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.product-price {
  margin: 0 0 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 32px;
  font-weight: 700;
}

.product-stock {
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
}

.product-section-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.product-size {
  margin: 0 0 14px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.product-size-label {
  display: inline-block;
  margin-right: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-description {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 16px;
}

.product-description.is-empty {
  color: var(--muted);
}

.related-products {
  margin: 28px 0 8px;
}

.related-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.related-grid {
  margin: 0;
}

.status,
.empty {
  background: #fff;
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 650;
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 18px;
}

.skeleton-grid { display: contents; }

.skeleton {
  height: 280px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff 0%, #e9edf2 45%, #fff 100%);
  background-size: 200% 100%;
  animation: shine 1.2s linear infinite;
}

@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (hover: hover) and (min-width: 900px) {
  .card { transition: border-color 0.16s ease, box-shadow 0.16s ease; }
  .card:hover {
    border-color: #d4cfc8;
    box-shadow: var(--shadow);
  }
}

@media (min-width: 760px) {
  .top-inner {
    width: min(1440px, calc(100% - 40px));
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
  }
  .logo { grid-column: auto; grid-row: auto; }
  .search-block { grid-column: auto; grid-row: auto; }
  .store-phone {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
    font-size: 15px;
  }
  .search {
    min-height: 48px;
  }
  .store-legal { font-size: 12px; }
  .cart-btn {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    padding: 0 16px;
  }
  .cart-btn-label { display: inline; }
  .logo-mark { font-size: 22px; }
  .logo-badge { width: 44px; height: 44px; }
  .search input {
    font-size: 15px;
    padding-left: 16px;
  }
  .search-submit {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }
  .search-submit svg { display: block; }
  .wrap {
    width: min(1440px, calc(100% - 40px));
    padding-top: 18px;
  }
  .cats-inner {
    width: min(1440px, calc(100% - 40px));
    gap: 6px;
    padding: 12px 0 14px;
  }
  .cats-row { gap: 10px; }
  .cat-chip {
    width: 96px;
    min-height: 86px;
  }
  .cat-label { font-size: 12px; }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .card-price { font-size: 18px; }
  .card-body { padding: 14px 14px 16px; }
  .gallery-scroller { display: none; }
  .gallery-main { display: block; }
  .product-gallery { padding: 16px; }
  .product-info { padding: 22px 24px; }
}

@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1100px) {
  .product {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
  }
  .product-gallery {
    position: sticky;
    top: 92px;
  }
  .product-title { font-size: 30px; }
}

.card-body { flex: 1; }

.card-actions {
  margin-top: auto;
  padding-top: 8px;
}

.card-add,
.product-add {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.card-add:not(.qty-stepper):hover,
.product-add:not(.qty-stepper):hover {
  background: #000;
  border-color: #000;
}

.card-add:not(.qty-stepper),
.product-add:not(.qty-stepper) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-cart-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.product-add .add-cart-icon {
  width: 18px;
  height: 18px;
}

.card-add.qty-stepper,
.product-add.qty-stepper {
  background: var(--green);
}

.card-add.qty-stepper:hover,
.product-add.qty-stepper:hover { background: #000; }

.qty-stepper {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.qty-step-btn {
  flex: 0 0 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.product-add.qty-stepper .qty-step-btn {
  flex-basis: 52px;
  font-size: 26px;
}

.qty-step-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

.qty-step-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.qty-step-value {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-add-wrap { margin: 0 0 18px; }
.product-add-wrap .product-add { margin: 0; }

.card-add:disabled,
.product-add:disabled {
  opacity: 0.45;
  cursor: default;
}

.product-colors {
  margin: 0 0 16px;
}

.product-colors-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.product-colors-label strong {
  color: var(--text);
  font-weight: 700;
}

.product-colors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-color-swatch {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f2f4f7 center / cover no-repeat;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 26, 52, 0.08);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-color-swatch:hover {
  transform: translateY(-1px);
  border-color: #cfcbc4;
}

.product-color-swatch.is-active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(28, 27, 25, 0.12);
}

.product-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-option-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.product-option-chip:hover {
  border-color: #cfcbc4;
}

.product-option-chip.is-active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.cart-line-color {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.product-add {
  margin: 0 0 18px;
  min-height: 48px;
  font-size: 16px;
}

.cart-drawer,
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 26, 52, 0.42);
  cursor: pointer;
}

.cart-panel,
.checkout-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 26, 52, 0.18);
}

.checkout-panel {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 24px));
  max-height: min(92vh, 720px);
  border-radius: 18px;
  overflow: hidden;
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.cart-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.cart-panel-body {
  flex: 1;
  overflow: auto;
  padding: 12px 16px 20px;
}

.cart-panel-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-empty {
  padding: 40px 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 650;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-media {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.cart-line-price {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.cart-line-oos {
  margin: 0 0 8px;
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn,
.cart-remove-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cart-qty {
  min-width: 24px;
  text-align: center;
  font-weight: 750;
}

.cart-remove-btn {
  margin-left: auto;
  width: auto;
  padding: 0 8px;
  color: #b42318;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 800;
}

.cart-checkout-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.cart-checkout-btn:hover { background: #000; }
.cart-checkout-btn:disabled { opacity: 0.55; cursor: default; }

.checkout-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}

.checkout-lead {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 16px 18px 18px;
  overflow: auto;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
}

.checkout-summary-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.checkout-summary-photo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.checkout-summary-photo img,
.checkout-summary-photo .card-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkout-summary-line span {
  min-width: 0;
  color: var(--text);
}

.checkout-summary-line b {
  flex: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.checkout-field[hidden] { display: none; }

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: #cfcbc4;
  box-shadow: 0 0 0 4px rgba(28, 27, 25, 0.05);
}

.checkout-field textarea { resize: vertical; min-height: 88px; }

.checkout-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checkout-check:has(input:checked) {
  border-color: var(--text);
  background: #f6f5f3;
}

.checkout-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
}

.checkout-check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.checkout-check-text small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.checkout-pickup {
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f3f7fd;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.checkout-pickup a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.checkout-pickup a:hover { color: var(--accent-dark); }

.checkout-pickup[hidden] { display: none; }

.checkout-delivery-note {
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff6eb;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.checkout-delivery-note[hidden] { display: none; }

.checkout-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.checkout-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4f2;
  color: #b42318;
  font-size: 13px;
  font-weight: 750;
}

.checkout-error[hidden] { display: none; }

.order-success-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 16px;
}

.order-success-modal[hidden] {
  display: none !important;
}

.order-success-modal .cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 26, 52, 0.48);
  cursor: pointer;
}

.order-success-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 26, 52, 0.22);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.order-success-modal.is-open .order-success-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.order-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  color: #12805c;
}

.order-success-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.order-success-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.order-success-number {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent, #005bff);
  letter-spacing: 0.02em;
}

.order-success-text {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.order-success-panel .cart-checkout-btn {
  width: 100%;
}

.catalog-more {
  margin: 18px 0 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.catalog-sentinel {
  width: 100%;
  height: 1px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(420px, calc(100% - 24px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #0b1f38;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}
