/* ============================================================
   LANGRONY.LV — Design System
   Fashion e-commerce. Mobile-first. Bootstrap 5.3.
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────── */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --color-bg:          #f9f7f4;
  --color-surface:     #ffffff;
  --color-surface-alt: #f2ede4;
  --color-border:      #e4ddd2;
  --color-border-dark: #c8bfb0;

  --color-text:        #1a1714;
  --color-muted:       #7a736a;
  --color-light:       #b0a89e;

  --color-gold:        #bf9d46;
  --color-gold-hover:  #a6862e;
  --color-gold-light:  #f5edd8;

  --color-black:       #1a1714;
  --color-white:       #ffffff;

  --color-success:     #2d7a4f;
  --color-danger:      #c0392b;

  --radius-xs:  2px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(26,23,20,.06);
  --shadow-md:  0 4px 16px rgba(26,23,20,.10);
  --shadow-lg:  0 12px 40px rgba(26,23,20,.14);

  --transition: 220ms ease;

  --header-h: 64px;
  --topbar-h: 40px;
  --container: 1320px;
}

/* ── 2. RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

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

/* ── 3. TYPOGRAPHY ──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── 4. LAYOUT ──────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1400px) { .container { padding: 0 40px; } }

.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section--lg { padding: 96px 0; }

/* ── 5. TOPBAR ──────────────────────────────────────────── */
.site-topbar {
  height: var(--topbar-h);
  background: var(--color-black);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  display: flex;
  align-items: center;
}
.site-topbar a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.site-topbar a:hover { color: var(--color-gold); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-contact { display: flex; gap: 20px; align-items: center; }
.topbar-contact a { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.lang-switcher { display: flex; align-items: center; gap: 8px; }
.lang-switcher a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 4px;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active { color: var(--color-gold); }

.social-links { display: flex; gap: 12px; }
.social-links a { font-size: 14px; opacity: .7; transition: opacity var(--transition); }
.social-links a:hover { opacity: 1; color: var(--color-gold); }

/* ── 6. HEADER ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Ряд 1: лого · поиск · инфо · корзина */
.header-main {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Инфо-блок: продукты · телефон · адрес · email */
.header-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-left: auto;          /* прижимаем инфо вправо после поиска */
}
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  white-space: nowrap;
}
.info-item > i {
  font-size: 18px;
  color: var(--color-gold);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.info-item > div { display: flex; flex-direction: column; line-height: 1.3; }
.info-label {
  font-size: 11px;
  color: var(--color-muted);
}
.info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
a.info-item:hover .info-value { color: var(--color-gold); }

/* Ряд 2: навигация */
.header-nav-wrap {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 0 18px;
  height: 48px;
  line-height: 48px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav > li > a:hover { color: var(--color-gold); }
.main-nav > li > a.active { color: var(--color-gold); }

/* Dropdown */
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 100;
  padding: 8px 0;
}
.main-nav li:hover .dropdown-menu { display: block; }
.main-nav .dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.main-nav .dropdown-menu a:hover {
  background: var(--color-gold-light);
  color: var(--color-gold);
  padding-left: 24px;
}

/* Sub-dropdown */
.main-nav .dropdown-menu li { position: relative; }
.main-nav .dropdown-menu .sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}
.main-nav .dropdown-menu li:hover .sub-dropdown { display: block; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
}
.header-btn:hover { background: var(--color-surface-alt); color: var(--color-gold); }

/* Cart icon with count */
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--color-gold);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: none; background: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search bar in header */
.header-search {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
  max-width: 360px;
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--color-gold); }
.header-search input {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--color-text);
  outline: none;
}
.header-search input::placeholder { color: var(--color-light); }
.header-search button {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none;
  color: var(--color-muted);
  font-size: 14px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.header-search button:hover { color: var(--color-gold); }

/* ── 7. MOBILE DRAWER ───────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-surface);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 0 0 40px;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0;
  background: var(--color-surface);
  z-index: 1;
}
.drawer-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none;
  font-size: 20px;
  color: var(--color-text);
}

.drawer-search {
  margin: 16px 20px;
}
.drawer-search .header-search { max-width: 100%; }

.drawer-nav { padding: 8px 0; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  font-weight: 400;
}
.drawer-nav a:hover { color: var(--color-gold); background: var(--color-gold-light); }
.drawer-nav .drawer-cat-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 20px 20px 8px;
}
.drawer-sub { padding-left: 16px; background: var(--color-bg); }
.drawer-sub a { font-size: 14px; border-bottom-color: transparent; }

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
}
.drawer-langs { display: flex; gap: 12px; flex-wrap: wrap; }
.drawer-langs a {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-muted);
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
}
.drawer-langs a:hover, .drawer-langs a.active {
  color: var(--color-gold); border-color: var(--color-gold);
}

/* Overlay */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ── 8. (HERO/SLIDER перенесён в секцию 25, чтобы не конфликтовать) ── */

/* ── 9. CATEGORY TILES ──────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 576px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

.cat-tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}
.cat-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 60%);
  display: flex; align-items: flex-end;
  padding: 16px 12px;
}
.cat-tile-name {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Плитка без фото товара — премиальный плейсхолдер с золотым акцентом */
.cat-tile--empty {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(191,157,70,.18) 0%, rgba(191,157,70,0) 55%),
    linear-gradient(160deg, #232838 0%, #171b26 100%);
}
.cat-tile--empty .cat-tile-overlay {
  background: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 16px;
}
.cat-tile--empty .cat-tile-overlay::before {
  content: "";
  width: 26px; height: 26px;
  background: var(--color-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 6 9l6 13 6-13z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 6 9l6 13 6-13z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .9;
}
.cat-tile--empty .cat-tile-name {
  font-size: 14px;
  letter-spacing: .08em;
}
.cat-tile--empty::after {
  content: "";
  position: absolute; left: 50%; bottom: 22px;
  width: 28px; height: 2px; margin-left: -14px;
  background: var(--color-gold);
  opacity: .5;
}

/* ── 10. PRODUCT CARD ───────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 576px) { .product-grid { gap: 20px; } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.product-card__media a { display: block; height: 100%; }
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }

.product-card__badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.badge-sale {
  display: inline-block;
  padding: 3px 8px;
  background: var(--color-gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
}
.badge-new {
  background: var(--color-black);
}

.product-card__quick {
  position: absolute; bottom: 0; left: 0; right: 0;
  transform: translateY(100%);
  transition: transform 300ms ease;
  background: rgba(26,23,20,.9);
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.product-card:hover .product-card__quick { transform: translateY(0); }

.product-card__body {
  padding: 14px 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.product-card__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__title a:hover { color: var(--color-gold); }

.product-card__colors {
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
}
.color-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.15);
  display: inline-block;
}
.product-card__sizes {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.4;
}

.product-card__price {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: auto;
}
.price-current {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.price-current.is-sale { color: var(--color-gold); }
.price-original {
  font-size: 12px;
  color: var(--color-muted);
  text-decoration: line-through;
}

.product-card__avail {
  font-size: 11px;
  display: flex; align-items: center; gap: 4px;
  color: var(--color-success);
}

/* ── 11. SECTION HEADERS ────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; gap: 16px;
}
.section-header h2 { margin: 0; }
.section-header-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.section-header-link:hover { color: var(--color-gold); border-color: var(--color-gold); }

/* ── 12. BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  background: var(--color-black);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid var(--color-black);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 100ms;
  text-decoration: none;
}
.btn-primary:hover { background: var(--color-gold); border-color: var(--color-gold); color: white; }
.btn-primary:active { transform: scale(.98); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 28px;
  background: transparent;
  color: var(--color-black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid var(--color-black);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-outline:hover { background: var(--color-black); color: white; }

.btn-gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: white;
}
.btn-gold:hover { background: var(--color-gold-hover); border-color: var(--color-gold-hover); color: white; }

.btn-sm { padding: 8px 18px; font-size: 11px; }
.btn-full { width: 100%; }

/* ── 13. BREADCRUMB ─────────────────────────────────────── */
.breadcrumb-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--color-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb-sep { color: var(--color-border-dark); }
.breadcrumb .current { color: var(--color-text); }

/* ── 14. CATALOG LAYOUT ─────────────────────────────────── */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 992px) {
  .catalog-layout { grid-template-columns: 240px 1fr; }
}

/* Sidebar filters */
.catalog-sidebar {}
.filter-section {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.filter-section:first-child { padding-top: 0; }
.filter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 12px;
}
.filter-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a736a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--color-gold); }

/* Catalog toolbar */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.catalog-count { font-size: 13px; color: var(--color-muted); }
.catalog-filters-mobile {
  display: flex; gap: 8px;
}

/* ── 15. CART MINI ──────────────────────────────────────── */
.mini-cart-wrap {
  font-size: 13px;
}
.cart-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-muted);
}
.mini-cart-item {
  display: flex; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.mini-cart-item-img {
  width: 56px; height: 72px;
  object-fit: cover; flex-shrink: 0;
  border-radius: var(--radius-xs);
}
.mini-cart-item-info { flex: 1; }
.mini-cart-item-title { font-size: 12px; font-weight: 500; line-height: 1.4; }
.mini-cart-item-price { font-size: 13px; font-weight: 600; margin-top: 4px; }
.mini-cart-total {
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

/* Cart badge in header (legacy compat) */
#cart { display: contents; }

/* ── 16. FORMS ──────────────────────────────────────────── */
.form-field { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-light);
}

/* ── 17. FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
}

.footer-brand {}
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,.6);
  font-size: 14px;
  transition: border-color var(--transition), color var(--transition);
}
.footer-social a:hover { border-color: var(--color-gold); color: var(--color-gold); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-gold); }

/* Newsletter */
.footer-subscribe { display: flex; gap: 0; margin-top: 8px; }
.footer-subscribe input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
  font-family: var(--font-body);
  font-size: 13px;
  color: white;
}
.footer-subscribe input::placeholder { color: rgba(255,255,255,.35); }
.footer-subscribe input:focus { outline: none; border-color: var(--color-gold); }
.footer-subscribe button {
  padding: 10px 18px;
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.footer-subscribe button:hover { background: var(--color-gold-hover); }

/* Payment logos */
.footer-payments { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.footer-payments img { height: 22px; opacity: .6; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--color-gold); }
.footer-legal { display: flex; gap: 20px; }

/* ── 18. COOKIE BANNER ──────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--color-black);
  color: rgba(255,255,255,.8);
  padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.cookie-banner p { font-size: 13px; margin: 0; }
.cookie-banner a { color: var(--color-gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── 19. TOAST (added to cart) ──────────────────────────── */
.toast-added {
  position: fixed; bottom: 80px; right: 20px;
  z-index: 9998;
  background: var(--color-black);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 300ms, opacity 300ms;
  pointer-events: none;
}
.toast-added.show { transform: translateY(0); opacity: 1; }
.toast-added i { color: var(--color-gold); }

/* ── 20. MISC UTILITIES ─────────────────────────────────── */
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-muted); }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.italic { font-style: italic; }

.divider { border: none; border-top: 1px solid var(--color-border); margin: 32px 0; }

.skeleton {
  background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── 21. RESPONSIVE OVERRIDES ───────────────────────────── */
@media (max-width: 991.98px) {
  .header-info, .header-nav-wrap { display: none; }
  .nav-toggle { display: flex; }
  .header-main {
    gap: 12px;
    justify-content: space-between;
  }
  .site-logo { margin-right: auto; }
  .topbar-contact { display: none; }

  .section { padding: 40px 0; }
  .section--lg { padding: 56px 0; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  :root { --topbar-h: 36px; --header-h: 56px; }
  .container { padding: 0 16px; }
  .product-grid { gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .cookie-banner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn-primary { flex: 1; }
}

/* ── 22. LEGACY COMPAT (keeps old PHP includes working) ─── */
/* Скрываем старый HTML-контейнер SNS */
#sns_wrapper { all: unset; display: block; }
.blink { animation: blink-sale 1.2s step-start infinite; }
@keyframes blink-sale {
  50% { opacity: .5; }
}

/* jQuery UI autocomplete */
.ui-autocomplete {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  font-size: 13px;
  z-index: 9999;
}
.ui-menu-item-wrapper {
  padding: 8px 14px;
  cursor: pointer;
  color: var(--color-text);
}
.ui-menu-item-wrapper:hover,
.ui-menu-item-wrapper.ui-state-active {
  background: var(--color-gold-light);
  color: var(--color-text);
}

/* Dialog (add to cart confirmation) */
.ui-dialog {
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-body) !important;
}
.ui-dialog-titlebar {
  background: var(--color-black) !important;
  color: white !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  border: none !important;
}
.ui-dialog-buttonset .ui-button {
  background: var(--color-black) !important;
  border: 2px solid var(--color-black) !important;
  color: white !important;
  border-radius: var(--radius-xs) !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  transition: background var(--transition) !important;
}
.ui-dialog-buttonset .ui-button:hover {
  background: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
}

/* ── 23. PRODUCT DETAIL ─────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 64px;
}
@media (min-width: 768px) {
  .detail-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (min-width: 1200px) {
  .detail-layout { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* Gallery */
.detail-gallery {}
.detail-main-img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}
.detail-main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.detail-main-img:hover img { transform: scale(1.03); }

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumb {
  flex-shrink: 0;
  width: 72px; height: 90px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--color-surface-alt);
}
.detail-thumb.active { border-color: var(--color-gold); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.detail-info {}
.detail-info h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}
.detail-code {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--color-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-price-current {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.detail-price-current.is-sale { color: var(--color-gold); }
.detail-price-original {
  font-size: 1.1rem;
  color: var(--color-light);
  text-decoration: line-through;
}
.detail-price-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--color-gold);
  color: white;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: .04em;
}

.detail-avail {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 28px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}
.detail-avail.in-stock { color: var(--color-success); }
.detail-avail.on-order { color: var(--color-muted); }

.detail-short {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 28px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* Size selector */
.variant-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 10px;
}
.size-options {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.size-btn {
  min-width: 52px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.size-btn:hover { border-color: var(--color-black); }
.size-btn.selected {
  border-color: var(--color-black);
  background: var(--color-black);
  color: white;
}

/* Color selector */
.color-options {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px;
}
.color-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.color-btn:hover { transform: scale(1.1); }
.color-btn.selected {
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-black);
}

/* Qty + Add to cart */
.detail-buy {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px;
}
.qty-box {
  display: flex; align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.qty-box button {
  width: 40px; height: 48px;
  border: none; background: var(--color-bg);
  font-size: 18px; cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
}
.qty-box button:hover { background: var(--color-surface-alt); }
.qty-box input {
  width: 52px; height: 48px;
  border: none; border-left: 1.5px solid var(--color-border); border-right: 1.5px solid var(--color-border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  color: var(--color-text);
  background: white;
}
.qty-box input:focus { outline: none; }

.btn-addcart {
  flex: 1;
  height: 48px;
  background: var(--color-black);
  color: white;
  border: 2px solid var(--color-black);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 100ms;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-addcart:hover { background: var(--color-gold); border-color: var(--color-gold); }
.btn-addcart:active { transform: scale(.98); }

/* Features strip */
.detail-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  text-align: center;
}
.detail-feature {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.detail-feature i { font-size: 20px; color: var(--color-gold); }
.detail-feature span { font-size: 11px; color: var(--color-muted); line-height: 1.3; }

/* Description accordion */
.detail-accordion {
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
}
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-trigger {
  width: 100%;
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-text);
  text-align: left;
}
.accordion-icon {
  font-size: 10px;
  color: var(--color-muted);
  transition: transform var(--transition);
}
.accordion-trigger.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted);
}
.accordion-body.open { display: block; }

/* Related products */
.related-section {
  background: var(--color-surface);
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
}

/* ── 24. CART & CHECKOUT ─────────────────────────────────── */

/* ─ Cart layout ─ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 0 64px;
}
@media (min-width: 992px) {
  .cart-layout { grid-template-columns: 1fr 360px; gap: 40px; }
}

/* ─ Cart items ─ */
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 575px) {
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-actions { grid-column: 1/-1; }
}

.cart-item-img {
  width: 76px; height: 100px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--color-surface-alt);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--color-text);
}
.cart-item-title a:hover { color: var(--color-gold); }
.cart-item-variant {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.cart-item-avail {
  font-size: 11px;
  color: var(--color-success);
  display: flex; align-items: center; gap: 4px;
}

.cart-item-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.cart-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.cart-item-price.is-sale { color: var(--color-gold); }

.cart-item-qty {
  display: flex; align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.cart-item-qty button {
  width: 32px; height: 32px;
  border: none; background: var(--color-bg);
  font-size: 16px; cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty button:hover { background: var(--color-surface-alt); }
.cart-item-qty input {
  width: 40px; height: 32px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px; font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-text);
  background: white;
}
.cart-item-qty input:focus { outline: none; }

.cart-remove {
  background: none; border: none;
  color: var(--color-light);
  font-size: 14px; cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.cart-remove:hover { color: var(--color-danger); }

/* ─ Cart empty ─ */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-muted);
}
.cart-empty i { font-size: 48px; opacity: .25; display: block; margin-bottom: 20px; }
.cart-empty h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }

/* ─ Cart sidebar ─ */
.cart-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cart-sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; margin-bottom: 12px;
  color: var(--color-muted);
}
.cart-summary-row.total {
  font-size: 18px; font-weight: 700;
  color: var(--color-text);
  margin-top: 16px; padding-top: 16px;
  border-top: 2px solid var(--color-border);
  margin-bottom: 20px;
}
.cart-summary-row.discount { color: var(--color-success); }

/* Promo code */
.promo-box {
  display: flex; gap: 0;
  margin-bottom: 20px;
}
.promo-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border); border-right: none;
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-bg);
}
.promo-box input:focus { outline: none; border-color: var(--color-gold); }
.promo-box button {
  padding: 10px 16px;
  background: var(--color-black);
  color: white;
  border: 1px solid var(--color-black);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.promo-box button:hover { background: var(--color-gold); border-color: var(--color-gold); }

/* Applied promo */
.promo-applied {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-text);
  margin-bottom: 16px;
}
.promo-applied button {
  background: none; border: none;
  color: var(--color-muted); cursor: pointer;
  font-size: 14px;
}

/* ─ Checkout layout ─ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 0 64px;
}
@media (min-width: 992px) {
  .checkout-layout { grid-template-columns: 1fr 380px; gap: 48px; }
}

/* Steps */
.checkout-steps {
  display: flex; gap: 0;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--color-border);
}
.checkout-step {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-light);
  position: relative;
}
.checkout-step.active { color: var(--color-gold); }
.checkout-step.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--color-gold);
}
.checkout-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 11px;
  margin-bottom: 4px;
}
.checkout-step.done .checkout-step-num { background: var(--color-success); border-color: var(--color-success); color: white; }

/* Section blocks */
.checkout-section {
  margin-bottom: 32px;
}
.checkout-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 10px;
}
.checkout-section-title i { color: var(--color-gold); }

/* Payment method tiles */
.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.payment-option {
  position: relative;
}
.payment-option input[type=radio] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.payment-option label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  min-height: 80px;
}
.payment-option label i { font-size: 22px; color: var(--color-light); }
.payment-option input:checked + label {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
  color: var(--color-text);
}
.payment-option input:checked + label i { color: var(--color-gold); }
.payment-option label:hover { border-color: var(--color-gold-hover); }

/* Delivery options */
.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-option {
  position: relative;
}
.delivery-option input[type=radio] { position: absolute; opacity: 0; }
.delivery-option label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: 14px;
}
.delivery-option label span.price {
  font-weight: 600;
  color: var(--color-text);
}
.delivery-option input:checked + label {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}
.delivery-loading {
  padding: 20px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
}

/* Terms checkboxes */
.terms-check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.terms-check.error { border-color: var(--color-danger); background: #fff5f5; }
.terms-check input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--color-gold);
  margin-top: 2px;
}
.terms-check label { font-size: 13px; color: var(--color-muted); cursor: pointer; }
.terms-check label a { color: var(--color-gold); text-decoration: underline; }

/* Checkout order summary */
.checkout-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.checkout-summary-header {
  background: var(--color-black);
  color: white;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checkout-summary-items { padding: 12px 20px; }
.checkout-summary-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-item-img {
  width: 48px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  background: var(--color-surface-alt);
}
.checkout-summary-item-title { flex: 1; font-size: 12px; line-height: 1.4; }
.checkout-summary-item-price { font-weight: 600; font-size: 13px; }
.checkout-summary-totals {
  padding: 16px 20px;
  border-top: 2px solid var(--color-border);
  background: var(--color-bg);
}

/* ── 25. HERO SLIDER ─────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  user-select: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  aspect-ratio: 8 / 3;     /* баннеры 2000×750 / 800×300 — показываем целиком */
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dots nav */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active {
  background: var(--color-gold);
  transform: scale(1.3);
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

@media (max-width: 575px) {
  .slider-arrow { display: none; }
  .hero-slide img { height: 220px; }
}

/* ── 26. LEGAL / CONTENT PAGES ───────────────────────────── */
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  font-family: var(--font-display);
  margin: 32px 0 14px;
  color: var(--color-text);
  line-height: 1.3;
}
.legal-content h1 { font-size: 1.6rem; }
.legal-content h2 { font-size: 1.35rem; }
.legal-content h3 { font-size: 1.1rem; }
.legal-content h2:first-child,
.legal-content h1:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 16px; color: var(--color-muted); }
.legal-content ul,
.legal-content ol { margin: 0 0 16px; padding-left: 22px; color: var(--color-muted); }
.legal-content li { list-style: inherit; margin-bottom: 8px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { color: var(--color-gold); text-decoration: underline; }
.legal-content a:hover { color: var(--color-gold-hover); }
.legal-content strong, .legal-content b { color: var(--color-text); font-weight: 600; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.legal-content table td,
.legal-content table th { border: 1px solid var(--color-border); padding: 10px 12px; font-size: 14px; }
.legal-content table th { background: var(--color-bg); font-weight: 600; text-align: left; }
.legal-content img { border-radius: 4px; margin: 12px 0; }
.legal-content iframe { max-width: 100%; border-radius: 4px; margin: 12px 0; }
.legal-doc-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 12px 20px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--color-text); text-decoration: none;
  transition: border-color var(--transition);
}
.legal-doc-link:hover { border-color: var(--color-gold); color: var(--color-gold); }
.legal-doc-link i { color: var(--color-gold); font-size: 16px; }

/* ── 27. PAGINATION ──────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.page-link {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  font-variant-numeric: tabular-nums;
}
.page-link:hover { border-color: var(--color-black); color: var(--color-text); }
.page-link.active {
  background: var(--color-black);
  border-color: var(--color-black);
  color: white;
}
.page-arrow { color: var(--color-muted); }
.page-arrow i { font-size: 11px; }
.page-gap {
  padding: 0 4px;
  color: var(--color-light);
  font-size: 13px;
}

/* ── Демо-баннер «сайт в разработке» (вкл/выкл в админке) ───────── */
.dev-banner {
  position: relative; z-index: 1200;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(90deg, #c0140f 0%, #e11d12 50%, #c0140f 100%);
  color: #ffffff; font-size: 16px; font-weight: 700; line-height: 1.4;
  letter-spacing: .01em;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.25);
  animation: devPulse 2.4s ease-in-out infinite;
}
@keyframes devPulse {
  0%,100% { background-position: 0% 50%; }
  50%     { filter: brightness(1.12); }
}
.dev-banner__icon { font-size: 22px; flex-shrink: 0; }
.dev-banner__text { text-align: center; }
.dev-banner__close {
  flex-shrink: 0; margin-left: 8px;
  background: #ffffff; color: #c0140f; border: 0;
  border-radius: 5px; padding: 8px 20px; font-weight: 800; font-size: 14px; cursor: pointer;
  transition: opacity var(--transition);
}
.dev-banner__close:hover { opacity: .85; }
@media (max-width: 600px) {
  .dev-banner { font-size: 14px; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
  .dev-banner__text { text-align: left; flex: 1; }
}
