@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --surface-2: #EEEEF0;
  --ink: #111114;
  --ink-soft: #45454C;
  --muted: #77777F;
  --accent: #111114;
  --accent-ink: #FFFFFF;
  --accent-dark: #000000;
  --teal: #111114;
  --gold: #111114;
  --red: #111114;
  --border: #E2E2E6;
  --header-bg: #0B0B0D;
  --header-ink: #FFFFFF;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #0B0B0D;
  --surface: #18181B;
  --surface-2: #222226;
  --ink: #F5F5F6;
  --ink-soft: #C6C6CC;
  --muted: #96969C;
  --accent: #F5F5F6;
  --accent-ink: #111114;
  --accent-dark: #FFFFFF;
  --teal: #F5F5F6;
  --border: #2A2A2E;
  --header-bg: #000000;
  --header-ink: #F5F5F6;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

/* ---------- Custom cursor ---------- */

html, body {
  cursor: url('/images/brand/cursor.png') 5 5, auto;
}

a, button, .btn, .catalog-btn, .cat-chip, .cat-link, .header-link,
.theme-switch, .lang-flag, .product-card [data-add], [data-add],
[data-wish], [data-incr], [data-decr], [data-remove], .remove-btn,
.wishlist-toggle, .payment-option, .scroll-arrow, input[type="submit"],
.footer-social-link, .logo, .search-icon-badge, .pd-thumb, .pd-lightbox-close,
.pd-lightbox-nav {
  cursor: url('/images/brand/cursor.png') 5 5, pointer;
}

input, textarea {
  cursor: text;
}

/* ---------- Scrollbar (завжди темний, як хедер) ---------- */

html { scrollbar-color: #45454A #0B0B0D; scrollbar-width: thin; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0B0B0D; }
::-webkit-scrollbar-thumb {
  background: #3A3A40;
  border-radius: 10px;
  border: 3px solid #0B0B0D;
}
::-webkit-scrollbar-thumb:hover { background: #55555C; }
::-webkit-scrollbar-corner { background: #0B0B0D; }

.scroll-row::-webkit-scrollbar { display: none; height: 0; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  transition: background .2s, color .2s;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 12px 30px -14px rgba(0,0,0,0.6);
}
[data-theme="dark"] .site-header { background: rgba(0, 0, 0, 0.72); }

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.5px;
  color: var(--header-ink);
  flex-shrink: 0;
  transition: opacity .2s;
}
.logo:hover { opacity: 0.82; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.footer-brand .logo-mark { width: 30px; height: 30px; border-radius: 8px; }

.catalog-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--header-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  position: relative;
  transition: background .2s, border-color .2s, transform .15s;
}
.catalog-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.28); }
.catalog-btn:active { transform: scale(.97); }
.catalog-btn > span:last-child { transition: transform .25s; display: inline-block; }
.catalog-btn.open > span:last-child { transform: rotate(180deg); }

.hamburger-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hamburger-icon svg { display: block; width: 16px; height: 16px; }

.catalog-dropdown {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease;
}
.catalog-dropdown-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.35);
  min-width: 220px;
  padding: 8px;
}
.catalog-btn.open .catalog-dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.catalog-btn:hover .catalog-dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.catalog-btn:hover > span:last-child { transform: rotate(180deg); }
.catalog-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s, padding-left .15s;
}
.catalog-dropdown a:hover { background: var(--surface-2); padding-left: 16px; }

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0 14px;
  max-width: 480px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--header-ink);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 8px;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.45); }
.search-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111114;
  border: 1.5px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
[data-theme="dark"] .search-icon-badge { background: #F5F5F6; }
.search-icon-badge svg { width: 13px; height: 13px; display: block; }
.search-icon-badge .si-stroke { stroke: #fff; }
[data-theme="dark"] .search-icon-badge .si-stroke { stroke: #111114; }
.search-bar:focus-within .search-icon-badge { transform: scale(1.08); }
.search-bar .search-icon { color: rgba(255,255,255,0.5); font-size: 15px; transition: color .2s; }
.search-bar:focus-within .search-icon { color: rgba(255,255,255,0.9); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--header-ink);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  position: relative;
  opacity: 0.85;
  transition: opacity .2s, background .2s, transform .15s;
}
.header-link:hover { opacity: 1; background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.header-link:active { transform: translateY(0) scale(.95); }
.header-link .icon { font-size: 18px; transition: transform .2s; }
.header-link:hover .icon { transform: scale(1.12); }

.icon-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--header-ink);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.icon-toggle:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); }
.icon-toggle:active { transform: scale(.9); }
.icon-toggle.spin { animation: spin360 .4s ease; }

@keyframes spin360 { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------- Перемикач мови (прапори) ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 3px;
}
.lang-flag {
  height: 28px;
  padding: 0 11px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.lang-flag:hover { color: rgba(255,255,255,0.85); }
.lang-flag.active {
  color: #fff;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

/* ---------- Перемикач теми (плавний слайдер сонце/місяць) ---------- */

.theme-switch {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, #2A2A46, #14142A);
  padding: 0;
  overflow: hidden;
  transition: background .4s ease, border-color .3s ease;
}
[data-theme="dark"] .theme-switch {
  background: linear-gradient(180deg, #060613, #000000);
}
.theme-switch .ts-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
  transition: opacity .3s ease;
}
.theme-switch .ts-sun { left: 7px; }
.theme-switch .ts-moon { right: 7px; opacity: 0.4; }
[data-theme="dark"] .theme-switch .ts-sun { opacity: 0.3; }
[data-theme="dark"] .theme-switch .ts-moon { opacity: 0.9; }

.theme-switch .ts-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF6D8, #FFD65C 60%, #F5A623);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 0 10px rgba(255, 214, 92, 0.5);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), background .38s ease, box-shadow .38s ease;
}
[data-theme="dark"] .theme-switch .ts-knob {
  transform: translateX(24px);
  background: radial-gradient(circle at 32% 28%, #F5F5FA, #C9C9D6 55%, #9494A8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), 0 0 8px rgba(200, 200, 220, 0.35);
}
.theme-switch:hover .ts-knob { filter: brightness(1.08); }
.theme-switch:active .ts-knob { transform: scale(0.92); }
[data-theme="dark"] .theme-switch:active .ts-knob { transform: translateX(24px) scale(0.92); }

.badge {
  position: absolute;
  top: -4px;
  right: 2px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badgePop .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--header-bg);
  color: #fff;
  padding: 48px 0 56px;
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text { flex: 1; animation: fadeInUp .7s ease both; }
.hero-visual { animation: fadeInUp .7s ease .1s both; }

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

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #C7C7CE;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 520px;
}

.hero p {
  color: #C7C7CE;
  font-size: 16px;
  max-width: 460px;
  margin: 0 0 26px;
  line-height: 1.6;
}

.hero-visual {
  width: 250px;
  height: 190px;
  flex-shrink: 0;
  border-radius: 20px;
  background: #F5F5F6;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  filter: grayscale(1) contrast(1.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .1s, background .15s;
}

.btn:active { transform: scale(.97); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-dark { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .btn-dark { background: #F5F5F6; color: #101014; }
.btn-dark:hover { opacity: 0.88; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Section pill title (як у Chosi) ---------- */

.section-block { padding: 36px 0 8px; }

.section-pill-wrap { display: flex; justify-content: center; margin-bottom: 26px; }
.section-pill {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 10px;
}
[data-theme="dark"] .section-pill { background: #F5F5F6; color: #101014; }

/* ---------- Category chips (сторінка каталогу) ---------- */

.categories { padding: 8px 0 8px; }

.cat-chips { display: flex; gap: 12px; flex-wrap: wrap; }

.cat-chip {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .15s;
}
.cat-chip:hover { border-color: var(--accent); }
.cat-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
[data-theme="dark"] .cat-chip.active { background: #F5F5F6; color: #101014; }

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 18px;
}

/* ---------- Product grid & scroll row ---------- */

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

.scroll-row-wrap { position: relative; }

.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.scroll-row .product-card { flex: 0 0 230px; }

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 5;
}
.scroll-arrow:hover { background: var(--surface-2); }
.scroll-arrow.prev { left: -14px; }
.scroll-arrow.next { right: -14px; }
@media (max-width: 700px) { .scroll-arrow { display: none; } }

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  margin: 8px 0 36px;
}
.brand-strip span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  opacity: 0.6;
  transition: opacity .15s;
}
.brand-strip span:hover { opacity: 1; color: var(--ink); }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.product-card:hover {
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.18);
  transform: translateY(-6px);
  border-color: var(--ink);
}
[data-theme="dark"] .product-card:hover { box-shadow: 0 16px 32px -12px rgba(0,0,0,0.6); }

.product-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-card.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.product-card.reveal.in-view { opacity: 1; transform: translateY(0); }

.product-card .icon-badge { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.product-card:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }

.product-card .wishlist-toggle { transition: transform .2s, background .2s; }
.product-card .wishlist-toggle:hover { transform: scale(1.15); }
.wishlist-toggle.pulse { animation: heartBeat .5s ease; }

@keyframes heartBeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.4); }
  50%  { transform: scale(0.95); }
  75%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.product-card .btn { transition: background .2s, transform .15s, box-shadow .2s; }
.product-card .btn:hover { box-shadow: 0 6px 16px -6px rgba(0,0,0,0.3); }

.product-thumb {
  height: 190px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  background: var(--surface-2);
}

.icon-badge {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  filter: grayscale(1);
}
.icon-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--badge-color, #ccc);
  opacity: 0.16;
}
.icon-badge::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.9), transparent 60%), var(--badge-color, #ccc);
  box-shadow: 0 10px 18px -6px var(--badge-color, #ccc);
}
.icon-badge span { position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)); }
[data-theme="dark"] .icon-badge::before { opacity: 0.28; }

.icon-badge.small { width: 56px; height: 56px; font-size: 26px; flex-shrink: 0; }
.icon-badge.small::after { inset: 7px; }

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
}
.product-badge.top { background: var(--ink); color: var(--bg); }
.product-badge.sale { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.product-badge.new { background: var(--muted); color: #fff; }
[data-theme="dark"] .product-badge.new { background: #55555C; color: #fff; }

.gift-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.wishlist-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wishlist-toggle.active { color: var(--accent); }

.product-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.product-thumb.has-photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.product-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0 0 8px; }
.price-tiers { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.price-tiers li { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); background: var(--surface-2); border-radius: 6px; padding: 4px 8px; }
.price-tiers li span:last-child { font-weight: 700; color: var(--ink); }
.summary-thumb { width: 22px; height: 22px; object-fit: cover; border-radius: 5px; vertical-align: middle; margin-right: 2px; }

.product-sku { font-size: 11px; color: var(--muted); margin-bottom: 4px; }

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }

.product-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 8px;
  flex: 1;
}

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

.price-now { font-size: 17px; font-weight: 800; color: var(--accent); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

.out-of-stock {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

/* ---------- Cart / Wishlist page ---------- */

.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 36px 0 26px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  padding-bottom: 60px;
}

.cart-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cart-item-tier {
  display: inline-block;
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
}
.cart-item-price { color: var(--muted); font-size: 14px; }

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qty-control button { width: 32px; height: 32px; border: none; background: var(--surface-2); color: var(--ink); font-size: 16px; font-weight: 700; }
.qty-control span { width: 32px; text-align: center; font-weight: 600; font-size: 14px; }

.remove-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-left: 12px;
}
.remove-btn:hover { color: var(--accent); }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.summary-card h3 { font-family: var(--font-display); margin: 0 0 18px; font-size: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin: 16px 0 20px; padding-top: 16px; border-top: 1px solid var(--border); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .emoji { font-size: 48px; margin-bottom: 16px; }

/* ---------- Checkout ---------- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  padding-bottom: 60px;
}

.checkout-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s;
}
.payment-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.field-note { font-size: 12px; color: var(--muted); margin-top: 20px; line-height: 1.5; }

.form-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 14px;
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--header-bg);
  color: #C7C7CE;
  padding: 44px 0 28px;
  margin-top: 44px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-tagline { color: #96969C; font-size: 13px; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 14px;
  margin: 0 0 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #C7C7CE; font-size: 13px; }
.footer-col a:hover { color: var(--accent); }

.footer-payment { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.footer-payment span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #C7C7CE;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 18px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 9px 14px;
  border-radius: 999px;
  color: #E7E7EA;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .2s;
}
.footer-social-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  color: #fff;
}
.footer-social-link .fs-icon { font-size: 16px; line-height: 1; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px;
}
.footer-legal-links a { color: #B7B7BC; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 12px;
  color: #86868C;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #86868C; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* ---------- Product detail page ---------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 44px;
  padding: 22px 0 20px;
  align-items: start;
}
.pd-media {
  position: relative;
  background: var(--surface-2);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-media[data-zoomable] { cursor: zoom-in; }
.pd-photo { width: 100%; height: 100%; object-fit: cover; }
.pd-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(17,17,20,0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--surface-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--ink); }
.pd-thumb:hover { border-color: var(--muted); }

.pd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px;
}
.pd-lightbox.open { display: flex; }
.pd-lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.pd-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.pd-lightbox-close:hover { background: rgba(255,255,255,0.22); }
.pd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.pd-lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.pd-lightbox-nav.prev { left: 24px; }
.pd-lightbox-nav.next { right: 24px; }
.pd-icon {
  width: 45%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: color-mix(in srgb, var(--badge-color) 18%, var(--surface-2));
}
.pd-media .product-badge { position: absolute; top: 16px; left: 16px; }

.pd-info { display: flex; flex-direction: column; }
.pd-title { font-size: 27px; font-weight: 800; margin: 6px 0 10px; line-height: 1.25; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 12px; }
.pd-price-row .price-now { font-size: 26px; }
.pd-price-row .price-old { font-size: 16px; }
.pd-desc { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 6px 0 22px; }
.pd-info .price-tiers { max-width: 320px; margin-bottom: 20px; }
.pd-info .price-tiers li { font-size: 13px; padding: 7px 10px; }

.pd-tiers-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 4px 0 10px; }
.pd-tiers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; max-width: 380px; }
.pd-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  transition: border-color .18s, background .18s;
}
.pd-tier-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.pd-tier-price { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.pd-tier.active { border-color: var(--ink); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.pd-tier.active .pd-tier-price { color: var(--accent); }
.pd-tier:hover { border-color: var(--muted); }

.pd-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pd-actions .btn { flex: 1; }
.pd-buy-now {
  display: block;
  text-align: center;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.pd-buy-now:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .pd-media { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- Legal pages ---------- */

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 60px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated {
  display: inline-block;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 26px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
[data-theme="dark"] .toast { background: #F5F5F6; color: #101014; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Order success ---------- */

.success-box {
  max-width: 520px;
  margin: 80px auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
}
.success-box .emoji { font-size: 56px; margin-bottom: 18px; }
.success-box h2 { font-family: var(--font-display); margin-bottom: 10px; }
.success-box p { color: var(--ink-soft); margin-bottom: 26px; line-height: 1.6; }

/* ==========================================================
   Responsive — телефон / планшет / ноутбук / ПК
   ========================================================== */

/* ---------- Ноутбук / менші десктопи (1024–1279px) ---------- */
@media (max-width: 1279px) {
  .container { max-width: 100%; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Планшет альбомна / малий ноутбук (900–1023px) ---------- */
@media (max-width: 1023px) {
  .search-bar { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
}

/* ---------- Планшет портретна (768–899px) ---------- */
@media (max-width: 899px) {
  .site-header .container { gap: 12px; }
  .search-bar { display: none; }
  .catalog-btn span:nth-child(2) { display: none; }
  .hero .container { flex-direction: column; text-align: center; gap: 24px; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { width: 190px; height: 150px; font-size: 64px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .header-link span.label { display: none; }
  .header-link { padding: 6px 8px; }
}

/* ---------- Великий телефон / маленький планшет (600–767px) ---------- */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .site-header .container { height: 64px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 30px; height: 30px; font-size: 14px; }
  .catalog-btn { padding: 8px 10px; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .section-title { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Телефон (≤599px) ---------- */
@media (max-width: 599px) {
  .container { padding: 0 14px; }
  .site-header .container { gap: 8px; }
  .lang-switch { padding: 2px; }
  .lang-flag { height: 26px; padding: 0 8px; font-size: 11px; }
  .theme-switch { width: 48px; height: 28px; }
  .theme-switch .ts-knob { width: 22px; height: 22px; }
  [data-theme="dark"] .theme-switch .ts-knob { transform: translateX(20px); }
  .header-actions { gap: 4px; }
  .header-link { padding: 4px 6px; }

  .hero-visual { display: none; }
  .hero h1 { font-size: 22px; }
  .hero-eyebrow { font-size: 11px; }
  .btn { padding: 12px 20px; font-size: 14px; }

  .categories { padding: 0 0 4px; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 auto; white-space: nowrap; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 12px; }
  .product-thumb { height: 150px; }
  .icon-badge { width: 56px; height: 56px; font-size: 26px; }
  .product-name { font-size: 13px; }
  .price-now { font-size: 15px; }

  .page-title { font-size: 22px; margin: 24px 0 18px; }

  .cart-item { flex-wrap: wrap; padding: 14px; gap: 10px; }
  .cart-item-info { flex: 1 1 100%; order: 1; }
  .cart-item-thumb { order: 0; }
  .qty-control { order: 2; }
  .remove-btn { order: 3; margin-left: auto; }

  .checkout-form { padding: 18px; }
  .summary-card { padding: 16px; }

  .success-box { margin: 40px auto; padding: 32px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- Дуже маленький телефон (≤380px) ---------- */
@media (max-width: 380px) {
  .logo-text { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 3px; }
}
