:root {
  --bg: #0a0b10;
  --bg-soft: #11131b;
  --surface: rgba(255,255,255,0.82);
  --surface-strong: #ffffff;
  --surface-dark: #121522;
  --surface-dark-2: #171b2b;
  --text: #10131a;
  --text-soft: #566070;
  --text-inverse: #f5f7fb;
  --line: rgba(16, 19, 26, 0.08);
  --line-dark: rgba(255,255,255,0.08);
  --accent: #111827;
  --accent-2: #d4af37;
  --accent-3: #7c3aed;
  --danger: #ef4444;
  --success-bg: #ecfdf5;
  --warning-bg: #fffbeb;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-lg: 0 24px 80px rgba(10, 11, 16, 0.16);
  --shadow-md: 0 12px 36px rgba(10, 11, 16, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.10), transparent 20%),
    linear-gradient(180deg, #f7f7f9 0%, #f1f2f7 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

.topline {
  background: #090b12;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topline-inner,
.topline-items,
.topline-contacts,
.header-bar,
.header-actions,
.hero-actions,
.section-head,
.price-row,
.product-actions,
.card-meta-row,
.card-actions-row,
.summary-line,
.summary-total,
.footer-logo-wrap,
.footer-bottom,
.topline-inner,
.nav-links,
.hero-visual-top,
.device-row,
.detail-meta-row,
.cart-actions-col,
.cta-actions,
.checkout-bar {
  display: flex;
  gap: 16px;
  align-items: center;
}
.topline-inner { justify-content: space-between; padding: 10px 0; }
.topline-items, .topline-contacts { flex-wrap: wrap; }
.topline a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 248, 251, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 19, 26, 0.06);
}
.header-bar { justify-content: space-between; padding: 16px 0; }
.logo-block { display: flex; align-items: center; gap: 14px; min-width: fit-content; }
.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827 0%, #2c3550 55%, #7c3aed 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.22);
}
.logo-text-wrap { display: flex; flex-direction: column; gap: 2px; }
.logo-text { font-weight: 900; letter-spacing: 0.08em; font-size: 16px; }
.logo-subtext { color: var(--text-soft); font-size: 12px; }
.search-form { display: flex; gap: 10px; flex: 1; max-width: 520px; }
.search-form input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.qty-form input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 19, 26, 0.10);
  background: rgba(255,255,255,0.85);
  outline: none;
  transition: .2s ease;
}
.search-form input:focus,
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus,
.qty-form input:focus {
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}
.search-form button,
.qty-form button,
.menu-toggle {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.header-actions { font-weight: 700; }
.header-actions a, .nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: .2s ease;
}
.header-actions a:hover, .nav-links a:hover { background: rgba(17,24,39,0.06); }
.cart-link { display: inline-flex; align-items: center; gap: 10px; }
.cart-count {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 13px;
}
.header-nav { padding: 0 0 14px; }
.nav-links { flex-wrap: wrap; gap: 8px; }
.mobile-menu { display: none; border-top: 1px solid rgba(16, 19, 26, 0.06); }
.mobile-menu.open { display: block; }
.mobile-menu-inner { display: grid; gap: 10px; padding: 16px 0 20px; }
.mobile-menu a {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(16,19,26,0.06);
}
.menu-toggle { display: none; height: 50px; }

.hero { padding: 42px 0 24px; }
.premium-hero { padding-top: 52px; }
.hero-grid,
.checkout-layout,
.product-layout,
.catalog-layout,
.footer-grid,
.info-strip-grid,
.brand-banner-grid,
.hero-trust-grid {
  display: grid;
  gap: 24px;
}
.hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.hero-badge,
.section-kicker,
.glass-pill,
.sale-chip,
.mini-muted,
.chip,
.chip-light {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.hero-badge {
  background: linear-gradient(90deg, #111827 0%, #7c3aed 100%);
  color: #fff;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.section-kicker {
  background: rgba(17,24,39,0.06);
  color: #1f2937;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1,
.section-head h2,
.section-head h1,
.section h1 {
  margin: 0;
  letter-spacing: -0.04em;
}
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 0.95; max-width: 760px; }
.hero-subtitle { font-size: 19px; line-height: 1.7; color: #475569; max-width: 700px; margin: 18px 0 0; }
.hero-actions { flex-wrap: wrap; margin: 30px 0; }
.hero-trust-grid { grid-template-columns: repeat(3, 1fr); }
.trust-card,
.premium-box,
.product-card,
.hero-visual-card,
.brand-banner,
.cta-panel,
.content-page-box {
  border: 1px solid rgba(16, 19, 26, 0.06);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
}
.trust-card { padding: 18px; display: grid; gap: 8px; }
.trust-card strong { font-size: 15px; }
.trust-card span { color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.hero-visual-card {
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(17,24,39,0.95), rgba(25,30,46,0.92)),
    radial-gradient(circle at top right, rgba(124,58,237,0.35), transparent 28%);
  color: var(--text-inverse);
  box-shadow: 0 30px 70px rgba(10, 11, 16, 0.34);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-visual-top { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.glass-pill {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-device-stack { display: grid; gap: 16px; }
.device-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.07);
}
.device-large { min-height: 270px; }
.device-glow {
  position: absolute;
  inset: auto -20px -30px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 56%);
  filter: blur(12px);
}
.device-content { position: relative; z-index: 1; max-width: 340px; }
.device-content h3 { margin: 12px 0; font-size: 30px; line-height: 1.05; }
.device-content p, .device-card p { color: rgba(255,255,255,0.72); line-height: 1.6; margin: 0; }
.device-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.device-row { gap: 16px; }
.device-row .device-card { flex: 1; min-height: 170px; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  padding: 15px 22px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #111827 0%, #1f2a44 55%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}
.btn-secondary,
.btn-ghost {
  background: rgba(255,255,255,0.88);
  color: #111827;
  border: 1px solid rgba(16,19,26,0.10);
}
.btn-small { padding: 12px 16px; font-size: 14px; }
.btn-light { background: #fff; color: #111827; }
.wide { width: 100%; }
.simple-link { font-weight: 700; color: #374151; }

.section { padding: 40px 0; }
.section-head { justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.left-aligned-head { justify-content: flex-start; }
.section-head h1, .section-head h2, .section h1 { font-size: clamp(30px, 4vw, 48px); }

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

  align-items: stretch;   /* 🔥 ВАЖНО */
}
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);

  height: 100%;              /* 🔥 ключ */
  min-height: 480px;         /* 🔥 ключ (регулируй 440–520) */
}

.product-image-wrap {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f0f3fa 100%);
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
}
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image { transform: scale(1.03); }
.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #f6f7fb, #e9edf7);
  font-weight: 800;
  color: #475569;
}
.product-placeholder.large,
.detail-image {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: 24px;
}
.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.22);
}
.product-content { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-meta-row { justify-content: space-between; align-items: center; gap: 12px; }
.product-title { font-size: 20px; font-weight: 800; line-height: 1.25; }
.product-description, .muted, .detail-text p, .footer-muted, .mini-muted { color: var(--text-soft); line-height: 1.65; }
.mini-muted { font-size: 13px; }
.price-row { gap: 10px; flex-wrap: wrap; }
.price-row.detail { margin: 20px 0; }
.price { font-size: 26px; font-weight: 900; }
.old-price { color: #94a3b8; text-decoration: line-through; }
.chip {
  background: rgba(17,24,39,0.08);
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}
.chip.small { font-size: 12px; padding: 7px 10px; }
.chip-light { background: #eef2ff; color: #334155; padding: 8px 12px; font-weight: 700; }
.sale-chip {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}
.card-actions-row { justify-content: space-between; align-items: stretch; gap: 10px; margin-top: auto; }
.card-actions-row .btn { flex: 1; }

.brand-banner-grid, .info-strip-grid { grid-template-columns: repeat(2, 1fr); }
.info-strip-grid { grid-template-columns: repeat(3, 1fr); padding-bottom: 8px; }
.brand-banner, .info-strip, .cta-panel, .checkout-form, .order-summary, .catalog-sidebar, .empty-state, .cart-item, .info-box {
  padding: 24px;
}
.dark-banner {
  background: linear-gradient(145deg, #111827 0%, #192133 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.06);
}
.dark-banner p { color: rgba(255,255,255,0.76); }
.light-banner { background: linear-gradient(145deg, #ffffff 0%, #f5f7fb 100%); }
.premium-box { backdrop-filter: blur(10px); }

.catalog-layout { grid-template-columns: 290px 1fr; }
.catalog-sidebar { height: fit-content; position: sticky; top: 126px; }
.sidebar-head h3 { margin: 0; }
.sidebar-link, .sidebar-sublink, .footer-link {
  display: block;
  padding: 12px 0;
  color: #334155;
}
.sidebar-link { font-weight: 700; }
.sidebar-link.active, .sidebar-sublink.active { color: #111827; }
.sidebar-sublink { padding-left: 14px; color: #64748b; }

.product-layout { grid-template-columns: 1fr 1fr; align-items: start; }
.product-panel { padding: 8px 0; }
.detail-meta-row { flex-wrap: wrap; justify-content: flex-start; }
.product-subtitle { font-size: 18px; color: #475569; margin-top: 12px; }
.detail-text { line-height: 1.8; }
.narrow { max-width: 940px; }
.content-page-box { padding: 30px; }

.cart-list { display: grid; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr 160px 170px 120px;
  gap: 18px;
  align-items: center;
}
.qty-form { display: flex; gap: 10px; }
.qty-form input { width: 78px; padding: 11px 12px; }
.cart-price { font-size: 20px; font-weight: 800; }
.cart-actions-col { flex-direction: column; align-items: flex-start; gap: 8px; }
.remove-link { color: #dc2626; font-weight: 700; }
.checkout-bar {
  margin-top: 20px;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
}
.premium-dark {
  background: linear-gradient(145deg, #111827 0%, #1c2540 100%);
  color: #fff;
}
.muted-light { color: rgba(255,255,255,0.70); }

.checkout-layout { grid-template-columns: 1.15fr .85fr; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.checkout-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.checkout-form ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 14px;
}
.order-summary { position: sticky; top: 126px; }
.summary-line, .summary-total {
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16,19,26,0.08);
}
.summary-total { font-size: 20px; font-weight: 900; }
.summary-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(17,24,39,0.05);
  color: #475569;
  line-height: 1.6;
}

.cta-panel { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.cta-panel p { max-width: 700px; }
.cta-actions { flex-wrap: wrap; }
.full-width-card { grid-column: 1 / -1; }

.messages { padding-top: 14px; }
.message { padding: 14px 18px; border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow-md); }
.message.success { background: var(--success-bg); color: #166534; }
.message.warning { background: var(--warning-bg); color: #92400e; }
.empty-state { text-align: center; }
.empty-state.left { text-align: left; }
.mb24 { margin-bottom: 24px; }

.site-footer {
  background: linear-gradient(180deg, #0a0b10 0%, #0f1320 100%);
  color: #fff;
  padding: 54px 0 30px;
  margin-top: 54px;
}
.footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
.footer-logo { font-size: 26px; font-weight: 900; letter-spacing: 0.06em; }
.footer-disclaimer {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}
.footer-link { color: rgba(255,255,255,0.84); }
.footer-bottom {
  justify-content: space-between;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.66);
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid, .checkout-layout, .product-layout, .catalog-layout, .footer-grid, .info-strip-grid, .brand-banner-grid, .hero-trust-grid {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar, .order-summary { position: static; }
  .hero h1 { max-width: none; }
}

@media (max-width: 860px) {
  .desktop-actions, .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-bar { flex-wrap: wrap; }
  .search-form { order: 3; width: 100%; max-width: 100%; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-item, .form-grid { grid-template-columns: 1fr; }
  .cta-panel, .checkout-bar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  .container { width: min(100%, calc(100% - 20px)); }
  .products-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 28px 0; }
  .topline-inner { gap: 8px; }
  .trust-card, .premium-box, .product-card, .hero-visual-card, .brand-banner, .cta-panel, .content-page-box,
  .brand-banner, .info-strip, .checkout-form, .order-summary, .catalog-sidebar, .empty-state, .cart-item, .info-box { padding: 18px; }
  .product-placeholder.large, .detail-image { min-height: 320px; }
}

/* ===== FIX КНОПКИ НЕ ВЛЕЗАЮТ ===== */

.products-grid .product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 ровные кнопки */
  gap: 8px;
}

/* уменьшаем кнопки */
.products-grid .product-actions .btn {
  padding: 10px 12px;
  font-size: 13px;
  min-width: 0; /* КРИТИЧНО */
}

/* убираем растягивание текста */
.products-grid .product-actions .btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== FIX КОРЗИНА (РАБОЧИЙ) ===== */

.cart-item {
  display: grid;
  grid-template-columns: 1fr 120px 200px 120px;
  align-items: center;
  gap: 16px;
}

/* ограничиваем форму */
.cart-item .qty-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* input */
.cart-item .qty-form input {
  width: 60px;
  padding: 8px;
}

/* кнопка */
.cart-item .qty-form button {
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* блок справа */
.cart-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* цена */
.cart-actions-col .cart-price {
  font-weight: 800;
}

/* удалить */
.remove-link {
  color: #ef4444;
  font-size: 13px;
}

/* ===== CATEGORY ACCORDION CLEAN ===== */

.catalog-sidebar {
  background: #0b1220;
  color: #fff;
}

.category-tree {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.category-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
}

.cat-row:hover {
  background: rgba(255,255,255,0.05);
}

.cat-name {
  flex: 1;
  color: #e5edf9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.cat-name:hover {
  color: #ffffff;
}

.cat-count {
  color: #9fb0cc;
  font-size: 13px;
  font-weight: 600;
  min-width: 24px;
  text-align: right;
}

.arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid #9fb0cc;
  border-bottom: 2px solid #9fb0cc;
  transform: rotate(-45deg);
  transition: transform .2s ease;
  flex: 0 0 9px;
}

.arrow-placeholder {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
}

.category-item.open > .cat-row .arrow {
  transform: rotate(45deg);
}

.subcategories {
  display: none;
  list-style: none;
  margin: 2px 0 6px 18px;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.category-item.open > .subcategories {
  display: block;
}

.subcategories .cat-row {
  padding: 10px 8px;
}

.subcategories .cat-name {
  font-size: 14px;
  color: #d5deee;
}

.subcategories .subcategories .cat-name {
  font-size: 13px;
  color: #bcc8dc;
}

/* фикс текста в сайдбаре */
.catalog-sidebar .section-kicker {
  color: #8fa3c7 !important;
}

.catalog-sidebar h3 {
  color: #ffffff !important;
}

.catalog-sidebar .sidebar-link {
  color: #dbe6ff !important;
}

.catalog-sidebar .sidebar-link.active {
  color: #ffffff !important;
}

/* ===== PAGINATION GOLD STYLE ===== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* номера страниц */
.page-number {
    min-width: 42px;
    height: 42px;

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

    border-radius: 12px;
    background: #0a0a0a;
    color: #e5e5e5;

    font-weight: 600;
    text-decoration: none;

    border: 1px solid rgba(255,255,255,0.06);

    transition: all 0.25s ease;
}

/* hover */
.page-number:hover {
    background: #111;
    color: #fff;
    border-color: rgba(255, 215, 0, 0.4);
}

/* АКТИВНАЯ СТРАНИЦА */
.page-number.active {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
    font-weight: 700;

    box-shadow:
        0 0 10px rgba(212, 175, 55, 0.6),
        0 0 20px rgba(255, 215, 0, 0.3);

    border: none;
}

/* кнопки назад/вперёд */
.page-btn {
    height: 42px;
    padding: 0 18px;

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

    border-radius: 12px;

    background: #0a0a0a;
    color: #d4d4d4;

    border: 1px solid rgba(255,255,255,0.08);

    font-weight: 600;
    text-decoration: none;

    transition: all 0.25s ease;
}

/* hover */
.page-btn:hover {
    background: #111;
    color: #fff;
    border-color: rgba(255, 215, 0, 0.4);
}

/* кнопка "Вперёд" — золотая */
.page-btn.gold {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
    border: none;
}

.page-btn.gold:hover {
    box-shadow:
        0 0 12px rgba(212,175,55,0.7),
        0 0 20px rgba(255,215,0,0.4);
}

/* троеточие */
.dots {
    color: #666;
    padding: 0 6px;
    font-weight: bold;
}

/* ===== CATEGORY CLEAN DARK ===== */

.catalog-sidebar {
  background: #0b1220;
  color: #fff;
}

.category-item {
  margin-bottom: 4px;
}

/* строка */
.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

/* hover */
.cat-row:hover {
  background: rgba(255,255,255,0.06);
}

/* текст */
.cat-name {
  flex: 1;
  color: #e5edf9;
  font-size: 15px;
  font-weight: 500;
}

/* счетчик */
.cat-count {
  color: #8fa3c7;
  font-size: 13px;
  font-weight: 600;
}

/* стрелка */
.arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #9fb0cc;
  border-bottom: 2px solid #9fb0cc;
  transform: rotate(-45deg);
  transition: 0.2s;
}

.arrow-placeholder {
  width: 8px;
}

/* открытие */
.category-item.open > .cat-row .arrow {
  transform: rotate(45deg);
}

/* подкатегории */
.subcategories {
  display: none;
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.category-item.open > .subcategories {
  display: block;
}

/* вложенные */
.subcategories .cat-name {
  font-size: 14px;
  color: #cbd5f5;
}

/* активная категория */
.cat-row.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: #fff;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.promo-note {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.9;
}

.save-info {
    font-size: 12px;
    color: #16a34a;
    margin-top: 4px;
}

.product-card,
.premium-card,
.product-image-wrap {
    overflow: visible;
}

.product-image-wrap {
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    background: linear-gradient(135deg, #ff3b3b, #e00000);
    color: #fff;
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.25);
}

.promo-badge-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
}

.promo-badge {
    background: #0b1220;
    color: #f8d66d;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.promo-tooltip {
    position: absolute;
    top: 38px;
    right: 0;
    width: 245px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #0b1220;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.18s ease;
    pointer-events: none;
}

.promo-tooltip strong {
    color: #f8d66d;
}

.promo-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #0b1220;
    transform: rotate(45deg);
}

.promo-badge-wrap:hover .promo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.save-info {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #16a34a;
}

/* =========================================================
   FINAL PRODUCT CARD ALIGNMENT FIX
   Аккуратно добавлено в конец файла, чтобы ничего не вырезать.
   Решает проблему: из-за длинных названий кнопки в карточках съезжали.
   ========================================================= */

.products-grid {
  align-items: stretch;
}

.products-grid .product-card,
.products-grid .premium-card {
  height: 100%;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.products-grid .product-image-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.products-grid .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Фиксируем высоту зоны названия, чтобы цена и кнопки были на одном уровне */
.products-grid .product-title {
  display: block;
  min-height: 96px;
  line-height: 1.25;
}

/* Если описания нет — оно не должно ломать сетку */
.products-grid .product-description {
  min-height: 0;
  margin: 0;
}

/* Цена уходит вниз, но остается выше экономии и кнопок */
.products-grid .price-row {
  margin-top: auto;
}

/* Экономия занимает стабильное место */
.products-grid .save-info {
  min-height: 20px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #16a34a;
}

/* Кнопки всегда внизу карточки */
.products-grid .product-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.products-grid .product-actions .btn {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Бейджи поверх картинки */
.products-grid .discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  background: linear-gradient(135deg, #ff3b3b, #e00000);
  color: #fff;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.25);
}

.products-grid .promo-badge-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
}

.products-grid .promo-badge {
  background: #0b1220;
  color: #f8d66d;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.products-grid .promo-tooltip {
  position: absolute;
  top: 38px;
  right: 0;
  width: 245px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #0b1220;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s ease;
  pointer-events: none;
}

.products-grid .promo-tooltip strong {
  color: #f8d66d;
}

.products-grid .promo-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #0b1220;
  transform: rotate(45deg);
}

.products-grid .promo-badge-wrap:hover .promo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Мобильная адаптация карточек */
@media (max-width: 1100px) {
  .products-grid .product-card,
  .products-grid .premium-card {
    min-height: 590px;
  }

  .products-grid .product-title {
    min-height: 90px;
  }
}

@media (max-width: 560px) {
  .products-grid .product-card,
  .products-grid .premium-card {
    min-height: auto;
  }

  .products-grid .product-title {
    min-height: auto;
  }

  .products-grid .price-row {
    margin-top: 16px;
  }

  .products-grid .product-actions {
    margin-top: 14px;
  }
}



/* =========================================================
   ELEGANT STORE HOME UPGRADE
   Главная страница в премиальном стиле: iPhone 17, Samsung,
   блоки преимуществ, процесс заказа и текстовый блок.
   Добавлено аккуратно в конец файла, старые стили не вырезаны.
   ========================================================= */

.es-hero {
  padding: 58px 0 34px;
}

.es-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.es-hero-copy h1 {
  margin: 14px 0 0;
  max-width: 760px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.es-hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.es-hero-points div {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(16,19,26,0.06);
  box-shadow: var(--shadow-md);
}

.es-hero-points strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #10131a;
}

.es-hero-points span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.es-hero-showcase {
  padding: 24px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.42), transparent 34%),
    radial-gradient(circle at bottom left, rgba(212,175,55,0.18), transparent 30%),
    linear-gradient(145deg, #0b1220 0%, #182033 100%);
  box-shadow: 0 34px 90px rgba(10,11,16,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}

.es-phone-card {
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.08);
}

.es-phone-card-main {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.es-phone-card-main::before {
  content: "17";
  position: absolute;
  right: 18px;
  top: -26px;
  font-size: 180px;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255,255,255,0.055);
}

.es-phone-card h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.es-phone-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 430px;
  color: rgba(255,255,255,0.74);
  line-height: 1.65;
}

.es-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.es-mini-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.08);
}

.es-mini-card span {
  display: block;
  color: rgba(255,255,255,0.56);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.es-mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.es-action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.es-action-card {
  display: block;
  min-height: 160px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(16,19,26,0.06);
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
}

.es-action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.es-action-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0b1220;
  color: #f8d66d;
  font-weight: 900;
  font-size: 12px;
}

.es-action-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.es-action-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.es-section-lead {
  max-width: 820px;
  margin: 14px 0 0;
}

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

.es-benefit-card {
  padding: 24px;
  min-height: 220px;
  border-radius: 30px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(16,19,26,0.06);
  box-shadow: var(--shadow-md);
}

.es-benefit-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 900;
}

.es-benefit-card h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.es-benefit-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.es-process-panel,
.es-text-panel {
  padding: 32px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,247,251,0.86));
  border: 1px solid rgba(16,19,26,0.06);
  box-shadow: var(--shadow-md);
}

.es-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.es-step {
  min-height: 160px;
  padding: 18px;
  border-radius: 24px;
  background: #0b1220;
  color: #fff;
}

.es-step b {
  display: block;
  color: #f8d66d;
  font-size: 13px;
  margin-bottom: 12px;
}

.es-step span {
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  font-size: 14px;
}

.es-text-panel {
  max-width: 940px;
}

.es-text-panel h2 {
  margin: 8px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.es-text-panel p {
  color: #475569;
  line-height: 1.75;
  font-size: 17px;
}

.es-final-cta .cta-panel {
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.16), transparent 28%),
    linear-gradient(145deg, #0b1220 0%, #182033 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
}

.es-final-cta .cta-panel p {
  color: rgba(255,255,255,0.72);
}

.es-final-cta .section-kicker {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.es-info-page .es-info-hero {
  padding: 30px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.14), transparent 30%),
    rgba(255,255,255,0.88);
}

.es-info-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.es-info-hero p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.es-info-content {
  margin-bottom: 20px;
}

.es-info-cta {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .es-hero-grid,
  .es-action-cards,
  .es-benefits-grid,
  .es-steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .es-hero-copy h1 {
    font-size: 54px;
  }
}

@media (max-width: 720px) {
  .es-hero {
    padding-top: 34px;
  }

  .es-hero-grid,
  .es-action-cards,
  .es-benefits-grid,
  .es-steps-grid,
  .es-hero-points,
  .es-mini-grid {
    grid-template-columns: 1fr;
  }

  .es-hero-copy h1 {
    font-size: 42px;
  }

  .es-hero-showcase,
  .es-process-panel,
  .es-text-panel {
    padding: 22px;
    border-radius: 28px;
  }
}

/* =========================================================
   ELEGANT STORE — PREMIUM TOPLINE
   ========================================================= */

.elegant-topline {
  background:
    radial-gradient(circle at 18% 50%, rgba(124, 58, 237, 0.22), transparent 24%),
    radial-gradient(circle at 82% 50%, rgba(212, 175, 55, 0.18), transparent 22%),
    linear-gradient(90deg, #070910 0%, #101522 50%, #070910 100%);
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.elegant-topline-inner {
  min-height: 44px;
  padding: 8px 0;
  justify-content: space-between;
}

.topline-brand-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.topline-premium-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #fff2a8);
  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.9),
    0 0 22px rgba(124, 58, 237, 0.35);
}

.topline-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.elegant-topline-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-contact-link,
.top-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  font-weight: 800;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.top-contact-link:hover,
.top-social-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.top-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
}

.top-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.phone-icon {
  color: #f8d66d;
}

.mail-icon {
  color: #d7ddff;
}

.telegram-icon {
  color: #38bdf8;
}

.telegram-link {
  background: rgba(14, 165, 233, 0.10);
}

.telegram-link:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18);
}

.avito-link {
  background: rgba(255, 255, 255, 0.06);
}

.avito-link:hover {
  border-color: rgba(34, 197, 94, 0.45);
}

.avito-mini-logo {
  position: relative;
  width: 20px;
  height: 18px;
  display: inline-block;
  flex: 0 0 20px;
}

.avito-mini-logo i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.avito-mini-logo i:nth-child(1) {
  width: 9px;
  height: 9px;
  left: 0;
  bottom: 1px;
  background: #04d976;
}

.avito-mini-logo i:nth-child(2) {
  width: 7px;
  height: 7px;
  left: 8px;
  top: 0;
  background: #9657ff;
}

.avito-mini-logo i:nth-child(3) {
  width: 10px;
  height: 10px;
  right: 0;
  top: 2px;
  background: #00aaff;
}

.avito-mini-logo i:nth-child(4) {
  width: 8px;
  height: 8px;
  left: 9px;
  bottom: 0;
  background: #ff4053;
}

/* Мобильная адаптация верхней шапки */
@media (max-width: 900px) {
  .elegant-topline-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topline-brand-note {
    white-space: normal;
    flex-wrap: wrap;
    gap: 8px;
  }

  .elegant-topline-contacts {
    justify-content: flex-start;
  }

  .top-contact-link,
  .top-social-link {
    font-size: 12px;
    padding: 6px 9px;
  }
}

@media (max-width: 560px) {
  .topline-brand-note {
    font-size: 12px;
  }

  .top-contact-link span:last-child,
  .top-social-link span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* =========================================================
   ELEGANT STORE — LUXURY CODE LOGO
   ========================================================= */

.luxury-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: fit-content;
  color: inherit;
  text-decoration: none;
}

.luxury-logo-monogram {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 230, 160, 0.20), transparent 28%),
    linear-gradient(145deg, #08080b 0%, #12111a 45%, #251b35 100%);
  box-shadow:
    0 18px 42px rgba(17, 24, 39, 0.22),
    inset 0 0 0 1px rgba(212, 175, 55, 0.22);
  overflow: hidden;
}

.luxury-logo-monogram::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 38%),
    radial-gradient(circle at 72% 82%, rgba(124, 58, 237, 0.35), transparent 34%);
  pointer-events: none;
}

.luxury-logo-monogram::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(255, 232, 170, 0.95) 0%,
    rgba(212, 175, 55, 0.15) 18%,
    transparent 34%,
    transparent 66%,
    rgba(212, 175, 55, 0.18) 82%,
    rgba(255, 232, 170, 0.65) 100%
  );
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.luxury-letter {
  position: absolute;
  z-index: 3;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(
    180deg,
    #fff4c2 0%,
    #e7c46f 35%,
    #b8862f 68%,
    #fff1b0 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(255,255,255,0.08),
    0 8px 18px rgba(0,0,0,0.45);
}

.luxury-e {
  left: 14px;
  top: 9px;
  font-size: 45px;
  transform: scaleX(0.94);
}

.luxury-s {
  right: 12px;
  top: 19px;
  font-size: 47px;
  transform: scaleX(0.96);
}

.luxury-swoosh {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 18px;
  border-bottom: 3px solid rgba(226, 184, 87, 0.92);
  border-radius: 0 0 80px 80px;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35));
}

.swoosh-left {
  left: 10px;
  bottom: 18px;
  transform: rotate(-18deg);
}

.swoosh-right {
  right: 8px;
  bottom: 16px;
  transform: rotate(18deg);
}

.luxury-dot {
  position: absolute;
  z-index: 4;
  bottom: 15px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff1b0, #b8862f);
  box-shadow:
    0 0 8px rgba(212, 175, 55, 0.65),
    0 4px 8px rgba(0,0,0,0.4);
}

.luxury-logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.luxury-logo-title {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #111827;
  text-transform: uppercase;
  white-space: nowrap;
}

.luxury-logo-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 134, 47, 0.85),
    rgba(212, 175, 55, 0.95),
    rgba(184, 134, 47, 0.85),
    transparent
  );
}

.luxury-logo-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

/* Тёмный футер — чтобы логотип там тоже смотрелся */
.site-footer .luxury-logo-title,
.site-footer .footer-logo {
  color: #ffffff;
}

/* Адаптация */
@media (max-width: 720px) {
  .luxury-logo {
    gap: 12px;
  }

  .luxury-logo-monogram {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 18px;
  }

  .luxury-logo-monogram::before,
  .luxury-logo-monogram::after {
    border-radius: 17px;
  }

  .luxury-e {
    left: 11px;
    top: 7px;
    font-size: 35px;
  }

  .luxury-s {
    right: 9px;
    top: 15px;
    font-size: 36px;
  }

  .luxury-swoosh {
    width: 27px;
    height: 14px;
    border-bottom-width: 2px;
  }

  .swoosh-left {
    left: 8px;
    bottom: 14px;
  }

  .swoosh-right {
    right: 7px;
    bottom: 13px;
  }

  .luxury-dot {
    width: 6px;
    height: 6px;
    bottom: 12px;
  }

  .luxury-logo-title {
    font-size: 17px;
    letter-spacing: 0.13em;
  }

  .luxury-logo-subtitle {
    font-size: 11px;
  }
}

@media (max-width: 460px) {
  .luxury-logo-text {
    display: none;
  }
}

/* =========================================================
   ELEGANT STORE — CATALOG OPEN BUTTON
   ========================================================= */

.catalog-open-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;

  padding: 13px 20px !important;
  border-radius: 999px !important;

  background:
    radial-gradient(circle at 20% 20%, rgba(255, 235, 170, 0.35), transparent 28%),
    linear-gradient(135deg, #0b1220 0%, #151b2b 45%, #7c3aed 100%);

  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 15px;
  letter-spacing: 0.01em;

  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    0 14px 32px rgba(17, 24, 39, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.catalog-open-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow:
    0 18px 42px rgba(17, 24, 39, 0.24),
    0 0 24px rgba(124, 58, 237, 0.22);
}

.catalog-open-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;

  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #fff1a8);
  color: #10131a;

  font-size: 13px;
  font-weight: 900;
  line-height: 1;

  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

/* =========================================================
   ELEGANT STORE — PREMIUM HEADER SEARCH / ACTIONS
   ========================================================= */

.header-bar {
  gap: 26px;
}

/* Поисковая форма */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 720px;
  padding: 6px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.88));
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255,255,255,0.75);
}

.search-form::before {
  content: "⌕";
  position: absolute;
  left: 23px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-size: 21px;
  font-weight: 900;
  z-index: 2;
  pointer-events: none;
}

.search-form input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 50px;
  border: 0;
  outline: none;
  border-radius: 18px;
  background: transparent;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search-form input::placeholder {
  color: rgba(15, 23, 42, 0.46);
  font-weight: 600;
}

.search-form:focus-within {
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.11),
    0 0 0 4px rgba(212, 175, 55, 0.10),
    inset 0 0 0 1px rgba(255,255,255,0.9);
}

/* Кнопка поиска */
.search-form button {
  height: 56px;
  min-width: 126px;
  padding: 0 26px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 240, 185, 0.28), transparent 30%),
    linear-gradient(135deg, #080b13 0%, #111827 48%, #211432 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.20),
    inset 0 0 0 1px rgba(212, 175, 55, 0.20);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.search-form button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.25),
    0 0 24px rgba(124, 58, 237, 0.18),
    inset 0 0 0 1px rgba(212, 175, 55, 0.38);
}

/* Правые кнопки: Каталог / Корзина */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.45));
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.header-actions a:first-child::before {
  content: "▦";
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background:
    linear-gradient(135deg, #d4af37, #fff1a8);
  color: #111827;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.22);
}

.header-actions a:hover {
  transform: translateY(-2px);
  color: #0b1220;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.18);
}

/* Корзина */
.cart-link {
  position: relative;
  padding-right: 18px !important;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 239, 180, 0.30), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #121827 55%, #25153a 100%) !important;
  color: #ffffff !important;
  border-color: rgba(212, 175, 55, 0.28) !important;
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}

.cart-link::before {
  content: "🛒";
  font-size: 17px;
  filter: grayscale(1) brightness(2);
}

.cart-count {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #d4af37, #fff1a8);
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.08),
    0 10px 22px rgba(212, 175, 55, 0.24);
}

/* Адаптация */
@media (max-width: 1100px) {
  .header-bar {
    gap: 16px;
  }

  .search-form {
    max-width: none;
  }

  .header-actions a {
    padding: 0 18px;
  }
}

@media (max-width: 900px) {
  .search-form {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .desktop-actions {
    display: none;
  }
}

@media (max-width: 560px) {
  .search-form {
    gap: 8px;
    padding: 5px;
    border-radius: 20px;
  }

  .search-form input {
    height: 50px;
    font-size: 15px;
    padding-left: 44px;
  }

  .search-form::before {
    left: 18px;
  }

  .search-form button {
    height: 50px;
    min-width: 92px;
    padding: 0 16px;
    font-size: 14px;
  }
}

/* =========================================================
   ELEGANT STORE — GOLD CATALOG SIDEBAR + PRICE FILTER
   ========================================================= */

.catalog-sidebar {
  position: sticky;
  top: 138px;
  height: fit-content;
  padding: 28px !important;
  border-radius: 34px !important;

  background:
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.16), transparent 30%),
    radial-gradient(circle at 100% 30%, rgba(124, 58, 237, 0.16), transparent 32%),
    linear-gradient(145deg, #070b14 0%, #0b1220 52%, #111827 100%) !important;

  border: 1px solid rgba(212, 175, 55, 0.18) !important;
  box-shadow:
    0 28px 70px rgba(8, 12, 22, 0.22),
    inset 0 0 0 1px rgba(255,255,255,0.035) !important;

  color: #fff !important;
  overflow: hidden;
}

.catalog-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 28%),
    radial-gradient(circle at 70% 85%, rgba(212, 175, 55, 0.09), transparent 28%);
}

.catalog-sidebar > * {
  position: relative;
  z-index: 1;
}

.catalog-gold-head {
  margin-bottom: 22px;
}

.catalog-gold-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(212, 175, 55, 0.12);
  color: #f8d66d;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  border: 1px solid rgba(212, 175, 55, 0.22);
}

.catalog-gold-head h3 {
  margin: 0;
  color: #ffffff !important;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.catalog-gold-head p {
  margin: 10px 0 0;
  color: #9fb0cc;
  font-size: 14px;
  line-height: 1.45;
}

.price-filter-box {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;

  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.price-filter-title {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.price-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.price-filter-grid label {
  display: grid;
  gap: 7px;
}

.price-filter-grid label span {
  color: #9fb0cc;
  font-size: 12px;
  font-weight: 800;
}

.price-filter-grid input {
  width: 100%;
  min-width: 0;
  padding: 12px 10px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);

  background: rgba(3, 7, 18, 0.72);
  color: #ffffff;

  outline: none;
  font-weight: 800;
}

.price-filter-grid input::placeholder {
  color: rgba(159, 176, 204, 0.55);
}

.price-filter-grid input:focus {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.10);
}

.price-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.price-filter-actions button,
.price-filter-actions a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 0;

  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.price-filter-actions button {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 242, 168, 0.55), transparent 28%),
    linear-gradient(135deg, #b8862f, #d4af37 55%, #fff1a8);

  color: #111827;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.20);
}

.price-filter-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.28);
}

.price-filter-actions a {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
}

.price-filter-actions a:hover {
  background: rgba(255,255,255,0.12);
}

/* Красивее строки категорий */
.category-tree {
  margin-top: 10px !important;
}

.cat-row {
  padding: 13px 12px !important;
  border-radius: 16px !important;
}

.cat-row:hover {
  background: rgba(212, 175, 55, 0.08) !important;
}

.cat-row.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(124,58,237,0.12)) !important;
  border: 1px solid rgba(212,175,55,0.18);
}

.cat-name {
  color: #f4f7ff !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.cat-count {
  min-width: 32px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  color: #f8d66d !important;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.16);

  font-size: 12px !important;
  font-weight: 900 !important;
}

.arrow {
  border-right-color: #d4af37 !important;
  border-bottom-color: #d4af37 !important;
  opacity: 0.95;
}

.arrow-placeholder {
  opacity: 0;
}

.subcategories {
  border-left: 1px solid rgba(212, 175, 55, 0.16) !important;
  margin-left: 20px !important;
}

.subcategories .cat-name {
  color: #cbd5e1 !important;
  font-size: 14px !important;
}

@media (max-width: 1100px) {
  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .catalog-sidebar {
    padding: 22px !important;
    border-radius: 28px !important;
  }

  .price-filter-grid,
  .price-filter-actions {
    grid-template-columns: 1fr;
  }

  .catalog-gold-head h3 {
    font-size: 26px;
  }
}

/* =========================================================
   ELEGANT STORE — SIDEBAR OWN SCROLL
   ========================================================= */

.catalog-sidebar {
  max-height: calc(100vh - 170px);
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.55) rgba(255, 255, 255, 0.06);
}

.catalog-sidebar::-webkit-scrollbar {
  width: 8px;
}

.catalog-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #7c3aed);
  border-radius: 999px;
}

.catalog-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff1a8, #d4af37);
}

/* =========================================================
   ELEGANT STORE — THANKS PAGE
   ========================================================= */

.thanks-hero {
  padding: 56px 0 80px;
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 58, 237, 0.09), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(212, 175, 55, 0.10), transparent 28%),
    linear-gradient(180deg, #f8f7fb 0%, #ffffff 100%);
}

.thanks-container {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.thanks-card,
.thanks-summary {
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.07);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.thanks-card {
  padding: 34px;
}

.thanks-summary {
  position: sticky;
  top: 130px;
  padding: 28px;
}

.thanks-status {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
}

.thanks-status-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 241, 168, 0.75), transparent 34%),
    linear-gradient(135deg, #0b1220, #211432);
  color: #f8d66d;
  font-size: 34px;
  font-weight: 950;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(212, 175, 55, 0.28);
}

.thanks-status h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #0b1220;
}

.thanks-status p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 650;
}

.thanks-alert {
  margin: 30px 0;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.20);
  color: #166534;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 750;
}

.thanks-timer-box {
  margin-bottom: 34px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.12), transparent 30%),
    linear-gradient(145deg, #070b14, #0b1220);
  color: #ffffff;
}

.thanks-timer-title {
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 800;
}

.thanks-timer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.thanks-timer div {
  min-width: 116px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
}

.thanks-timer strong {
  display: block;
  color: #f8d66d;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.thanks-timer span {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.thanks-steps {
  display: grid;
  gap: 18px;
}

.thanks-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.thanks-step-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #fff1a8);
  color: #111827;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.24);
}

.thanks-step-content h3 {
  margin: 0 0 10px;
  color: #0b1220;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.thanks-step-content p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 650;
}

.thanks-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.thanks-copy-row input {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #0b1220;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.thanks-copy-row button,
.thanks-telegram-btn,
.thanks-primary-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 242, 168, 0.28), transparent 30%),
    linear-gradient(135deg, #0b1220, #211432);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(212, 175, 55, 0.20);
}

.thanks-copy-row button:hover,
.thanks-telegram-btn:hover,
.thanks-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(212, 175, 55, 0.36);
}

.copy-message {
  margin-top: 10px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: 0.18s ease;
}

.copy-message.show {
  opacity: 1;
  transform: translateY(0);
}

.thanks-summary-head h2 {
  margin: 10px 0 20px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #0b1220;
}

.thanks-order-code {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.thanks-order-code span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.thanks-order-code strong {
  display: block;
  color: #0b1220;
  font-size: 15px;
  word-break: break-all;
}

.thanks-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.thanks-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.thanks-item strong {
  display: block;
  color: #0b1220;
  font-size: 15px;
  line-height: 1.35;
}

.thanks-item span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.thanks-item b {
  color: #0b1220;
  font-size: 16px;
  white-space: nowrap;
}

.thanks-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
  padding-top: 22px;
  border-top: 2px solid rgba(15, 23, 42, 0.10);
}

.thanks-total span {
  color: #0b1220;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.thanks-total strong {
  color: #0b1220;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.thanks-address {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(124, 58, 237, 0.07));
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.thanks-address h3 {
  margin: 0 0 8px;
  color: #0b1220;
  font-size: 18px;
}

.thanks-address p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
  font-weight: 700;
}

.thanks-address-line {
  margin-top: 8px !important;
  color: #0b1220 !important;
}

.thanks-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.thanks-secondary-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 18px;
  background: #ffffff;
  color: #0b1220;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.thanks-empty {
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 1020px) {
  .thanks-container {
    grid-template-columns: 1fr;
  }

  .thanks-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .thanks-hero {
    padding: 32px 0 56px;
  }

  .thanks-card,
  .thanks-summary {
    padding: 22px;
    border-radius: 28px;
  }

  .thanks-status {
    grid-template-columns: 1fr;
  }

  .thanks-status h1 {
    font-size: 38px;
  }

  .thanks-copy-row,
  .thanks-actions {
    grid-template-columns: 1fr;
  }

  .thanks-step {
    grid-template-columns: 1fr;
  }

  .thanks-timer div {
    min-width: 88px;
    flex: 1;
  }

  .thanks-timer strong {
    font-size: 28px;
  }

  .thanks-total strong {
    font-size: 32px;
  }
}

/* =========================================================
   ELEGANT STORE — PREPAY NOTE ON THANKS PAGE
   ========================================================= */

.thanks-prepay-note {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  margin: 0 0 30px;
  padding: 22px;
  border-radius: 26px;

  background:
    radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(11, 18, 32, 0.98), rgba(33, 20, 50, 0.96));

  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.04);

  color: #ffffff;
}

.thanks-prepay-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;

  background:
    radial-gradient(circle at 25% 20%, rgba(255, 241, 168, 0.7), transparent 34%),
    linear-gradient(135deg, #b8862f, #d4af37 55%, #fff1a8);

  color: #111827;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25);
}

.thanks-prepay-note h3 {
  margin: 0 0 10px;
  color: #f8d66d;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.thanks-prepay-note p {
  margin: 0;
  color: #dbe4f0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
}

.thanks-prepay-note p + p {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .thanks-prepay-note {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .thanks-prepay-icon {
    width: 52px;
    height: 52px;
  }

  .thanks-prepay-note h3 {
    font-size: 20px;
  }

  .thanks-prepay-note p {
    font-size: 14px;
  }
}

/* =========================================================
   ELEGANT STORE — ACCURATE MOBILE VERSION
   Без поломки карточек и дублей кнопок
   ========================================================= */

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background:
      radial-gradient(circle at 12% 0%, rgba(124, 58, 237, 0.10), transparent 28%),
      radial-gradient(circle at 92% 8%, rgba(212, 175, 55, 0.11), transparent 28%),
      linear-gradient(180deg, #f7f6fb 0%, #f1eef7 100%);
  }

  .container {
    width: min(100%, calc(100% - 28px));
  }

  /* ===== Верхняя плашка ===== */

  .elegant-topline,
  .topline {
    position: relative;
    z-index: 40;
    background:
      radial-gradient(circle at 14% 20%, rgba(124, 58, 237, 0.22), transparent 34%),
      radial-gradient(circle at 88% 18%, rgba(212, 175, 55, 0.15), transparent 32%),
      linear-gradient(135deg, #060911 0%, #0b1220 58%, #15101d 100%) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  }

  .elegant-topline-inner,
  .topline-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 0;
  }

  .topline-brand-note {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
  }

  .topline-premium-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff1a8, #d4af37);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.7);
  }

  .topline-divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.22);
  }

  .elegant-topline-contacts,
  .topline-contacts {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-contact-link,
  .top-social-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    background:
      radial-gradient(circle at 22% 18%, rgba(212, 175, 55, 0.16), transparent 32%),
      rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .top-contact-link[href^="mailto"] {
    max-width: 100%;
  }

  .top-contact-link[href^="mailto"] span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .phone-icon {
    color: #f8d66d;
  }

  .mail-icon {
    color: #dbeafe;
  }

  .telegram-icon {
    color: #38bdf8;
  }

  .avito-mini-logo {
    width: 22px;
    height: 22px;
    position: relative;
    display: inline-block;
    flex: 0 0 22px;
  }

  .avito-mini-logo i {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .avito-mini-logo i:nth-child(1) {
    left: 1px;
    top: 7px;
    background: #00d15f;
  }

  .avito-mini-logo i:nth-child(2) {
    left: 7px;
    top: 1px;
    background: #8b5cf6;
  }

  .avito-mini-logo i:nth-child(3) {
    right: 1px;
    top: 5px;
    background: #0ea5e9;
  }

  .avito-mini-logo i:nth-child(4) {
    right: 4px;
    bottom: 1px;
    background: #ff4f6d;
  }

  /* ===== Шапка ===== */

  .site-header {
    position: relative !important;
    top: auto !important;
    z-index: 35;
    background: rgba(248, 248, 252, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  }

  .header-bar {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo menu"
      "search search";
    align-items: center;
    gap: 16px;
    padding: 18px 0 16px;
  }

  .luxury-logo {
    grid-area: logo;
    min-width: 0;
  }

  .luxury-logo-text {
    display: none;
  }

  .luxury-logo-monogram {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 22px;
  }

  .menu-toggle {
    grid-area: menu;
    justify-self: end;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 106px;
    height: 60px;
    padding: 0 24px;
    border: 0;
    border-radius: 22px;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    cursor: pointer;
    background:
      radial-gradient(circle at 20% 18%, rgba(212, 175, 55, 0.20), transparent 34%),
      linear-gradient(135deg, #0b1220 0%, #111827 58%, #24143a 100%);
    box-shadow:
      0 16px 34px rgba(15, 23, 42, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .desktop-actions,
  .desktop-nav {
    display: none !important;
  }

  .search-form {
    grid-area: search;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 7px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
      0 18px 44px rgba(15, 23, 42, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
  }

  .search-form::before {
    content: "⌕";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 22px;
    font-weight: 900;
    z-index: 2;
  }

  .search-form input {
    min-width: 0;
    height: 56px;
    padding: 0 12px 0 45px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-form button {
    height: 56px;
    min-width: 94px;
    padding: 0 18px;
    border-radius: 21px;
    font-size: 16px;
    font-weight: 950;
    color: #fff;
    background:
      radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.22), transparent 34%),
      linear-gradient(135deg, #111827, #0f172a 55%, #25143a);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  }

  /* ===== Мобильное меню ===== */

  .mobile-menu {
    display: none;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background:
      radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.12), transparent 30%),
      rgba(248, 248, 252, 0.98);
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 0 18px;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #111827;
    font-size: 15px;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  }

  .mobile-menu a::after {
    content: "›";
    color: #d4af37;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
  }

  /* ===== Главный экран ===== */

  .es-hero {
    padding: 38px 0 24px;
  }

  .es-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .es-hero-copy {
    text-align: left;
  }

  .hero-badge {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 0.10em;
  }

  .es-hero-copy h1 {
    max-width: 100%;
    margin-top: 16px;
    font-size: clamp(43px, 12vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.065em;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 26px 0 0;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 58px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
  }

  .es-hero-points {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .es-hero-points div {
    min-height: 92px;
    padding: 22px 24px;
    border-radius: 24px;
  }

  .es-hero-points strong {
    font-size: 25px;
    line-height: 1.05;
  }

  .es-hero-points span {
    margin-top: 6px;
    font-size: 15px;
  }

  .es-hero-showcase {
    padding: 18px;
    border-radius: 30px;
  }

  .es-phone-card-main {
    min-height: 230px;
    padding: 22px;
  }

  .es-phone-card-main::before {
    right: 8px;
    top: -18px;
    font-size: 138px;
  }

  .es-phone-card h3 {
    font-size: 29px;
  }

  .es-mini-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .es-mini-card {
    padding: 14px;
    border-radius: 18px;
  }

  .es-mini-card strong {
    font-size: 13px;
  }

  /* ===== Карточки-ссылки под hero ===== */

  .es-action-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 10px;
  }

  .es-action-card {
    min-height: 132px;
    padding: 20px;
    border-radius: 24px;
  }

  .es-action-card h3 {
    margin-top: 14px;
    font-size: 22px;
  }

  .es-action-card p {
    font-size: 15px;
  }

  /* ===== Заголовки секций ===== */

  .section {
    padding: 34px 0;
  }

  .section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 22px;
    text-align: left;
  }

  .section-head h2,
  .section h1 {
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  .simple-link {
    width: fit-content;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    color: #fff;
    background: #050505;
    font-size: 15px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  }

  /* ===== Товары: НЕ ломаем карточки, только аккуратная мобилка ===== */

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 12px;
    align-items: stretch;
  }

  .products-grid .product-card,
  .products-grid .premium-card {
    min-height: 0 !important;
    height: auto;
    border-radius: 22px;
    overflow: visible;
  }

  .products-grid .product-image-wrap {
    aspect-ratio: 1 / 1.06;
    border-radius: 22px 22px 0 0;
    overflow: visible;
  }

  .products-grid .product-image {
    object-fit: contain;
    padding: 8px;
  }

  .products-grid .product-content {
    padding: 13px;
    gap: 9px;
  }

  .products-grid .card-meta-row {
    gap: 6px;
  }

  .products-grid .chip.small {
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.05;
  }

  .products-grid .mini-muted {
    font-size: 10px;
    line-height: 1.15;
  }

  .products-grid .product-title {
    min-height: 66px !important;
    font-size: 14px;
    line-height: 1.22;
    font-weight: 900;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .products-grid .product-description {
    display: none;
  }

  .products-grid .price-row {
    margin-top: auto !important;
    gap: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid .price {
    font-size: 20px;
    line-height: 1;
  }

  .products-grid .old-price {
    font-size: 13px;
  }

  .products-grid .save-info {
    min-height: 16px;
    font-size: 11px;
    line-height: 1.2;
  }

  .products-grid .discount-badge {
    top: 8px;
    left: 8px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .products-grid .promo-badge-wrap {
    top: 8px;
    right: 8px;
  }

  .products-grid .promo-badge {
    padding: 6px 8px;
    font-size: 10px;
  }

  .products-grid .promo-tooltip {
    width: 210px;
    right: -8px;
    font-size: 11px;
  }

  .products-grid .product-actions {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 10px;
  }

  .products-grid .product-actions .btn {
    min-height: 38px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12px;
  }

  /* ===== Блоки преимуществ/процесса ===== */

  .es-benefits-grid,
  .es-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .es-benefit-card {
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
  }

  .es-process-panel,
  .es-text-panel {
    padding: 24px;
    border-radius: 28px;
  }

  .es-step {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .es-text-panel h2 {
    font-size: 32px;
  }

  .es-final-cta .cta-panel,
  .cta-panel {
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 28px;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ===== Футер ===== */

  .site-footer {
    margin-top: 36px;
    padding: 42px 0 28px;
    border-radius: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .footer-logo-wrap {
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }

  .footer-logo-wrap .logo-mark {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    font-size: 24px;
  }

  .footer-logo {
    font-size: 24px;
  }

  .footer-disclaimer {
    text-align: left;
    border-radius: 20px;
  }

  .footer-link {
    padding: 10px 0;
    font-size: 17px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
    gap: 10px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .products-grid {
    gap: 16px 10px;
  }

  .products-grid .product-content {
    padding: 11px;
  }

  .products-grid .product-title {
    font-size: 13px;
  }

  .products-grid .price {
    font-size: 18px;
  }

  .search-form button {
    min-width: 84px;
    padding: 0 13px;
    font-size: 14px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ELEGANT STORE — SAFE MOBILE HEADER / DRAWER
   Только уникальные классы .es-mobile-*
   ПК и карточки товаров не трогаем
   ========================================================= */

.es-mobile-header,
.es-mobile-search-panel,
.es-mobile-drawer,
.es-mobile-drawer-overlay {
  display: none;
}

@media (max-width: 860px) {
  body.es-mobile-layer-open {
    overflow: hidden;
  }

  /* На мобиле скрываем старую desktop-структуру шапки */
  .site-header .header-bar,
  .site-header .header-nav,
  .site-header .mobile-menu {
    display: none !important;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(16, 19, 26, 0.08);
  }

  .es-mobile-header {
    display: block;
    background:
      radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.13), transparent 30%),
      radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.10), transparent 34%),
      rgba(255, 255, 255, 0.94);
  }

  .es-mobile-header-inner {
    width: min(100%, calc(100% - 32px));
    min-height: 86px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 72px 1fr 112px;
    align-items: center;
    gap: 12px;
  }

  .es-mobile-logo {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .es-mobile-logo-mark {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 21px;
  }

  .es-mobile-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .es-mobile-icon-btn {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b1220;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .es-mobile-icon-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
  }

  .es-burger-lines {
    width: 38px;
    display: grid;
    gap: 7px;
  }

  .es-burger-lines span {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #0b1220;
  }

  .es-mobile-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #fff1a8);
    color: #0b1220;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.35);
  }

  /* Поиск на мобиле */
  .es-mobile-search-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 120;
    display: block;
    padding: 14px 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(16, 19, 26, 0.08);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
  }

  .es-mobile-search-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .es-mobile-search-inner {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 10px;
    align-items: center;
  }

  .es-mobile-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 6px;
    border-radius: 24px;
    background: #f7f7fb;
    border: 1px solid rgba(16, 19, 26, 0.08);
  }

  .es-mobile-search-form input {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
  }

  .es-mobile-search-form button {
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #24143a);
    color: #fff;
    font-weight: 900;
  }

  .es-mobile-search-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: #111827;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }

  /* Overlay */
  .es-mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    background: rgba(3, 7, 18, 0.56);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
  }

  .es-mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Меню */
  .es-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    width: min(86vw, 390px);
    height: 100dvh;
    padding: 22px 18px 28px;
    background:
      radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.12), transparent 32%),
      linear-gradient(180deg, #ffffff 0%, #f8f8fc 100%);
    box-shadow: 28px 0 70px rgba(15, 23, 42, 0.24);
    border-right: 1px solid rgba(16, 19, 26, 0.08);
    transform: translateX(-105%);
    opacity: 0;
    visibility: hidden;
    transition: 0.26s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .es-mobile-drawer.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .es-mobile-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }

  .es-mobile-drawer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .es-mobile-drawer-logo-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 20px;
  }

  .es-mobile-drawer-logo strong {
    display: block;
    color: #111827;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0.08em;
  }

  .es-mobile-drawer-logo small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
  }

  .es-mobile-drawer-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: #111827;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
  }

  .es-mobile-drawer-nav {
    display: grid;
    gap: 8px;
    padding-bottom: 20px;
  }

  .es-mobile-nav-row,
  .es-mobile-category-main,
  .es-mobile-category-parent,
  .es-mobile-subcategories a {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 18px;
    color: #111827;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(16, 19, 26, 0.075);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 850;
    text-align: left;
  }

  button.es-mobile-nav-row {
    cursor: pointer;
  }

  .es-mobile-row-arrow {
    color: #d4af37;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    transition: transform 0.18s ease;
  }

  .es-mobile-catalog-toggle.is-open .es-mobile-row-arrow {
    transform: rotate(90deg);
  }

  .es-mobile-catalog-panel {
    display: none;
    padding: 4px 0 8px;
  }

  .es-mobile-catalog-panel.is-open {
    display: grid;
    gap: 8px;
  }

  .es-mobile-category-main {
    color: #fff;
    background:
      radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.20), transparent 32%),
      linear-gradient(135deg, #0b1220, #24143a);
  }

  .es-mobile-category-group {
    display: grid;
    gap: 6px;
  }

  .es-mobile-category-parent small,
  .es-mobile-subcategories small {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
  }

  .es-mobile-subcategories {
    display: grid;
    gap: 6px;
    margin-left: 14px;
    padding-left: 12px;
    border-left: 1px solid rgba(17, 24, 39, 0.10);
  }

  .es-mobile-subcategories a {
    min-height: 48px;
    padding: 12px 12px;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    background: rgba(255, 255, 255, 0.62);
  }

  .es-mobile-subcategories-deep {
    margin-left: 10px;
  }

  .es-mobile-subcategories-deep a {
    font-size: 13px;
    color: #475569;
  }

  /* Чтобы на мобиле карточки снова не становились огромными */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .products-grid .product-card,
  .products-grid .premium-card {
    min-height: auto;
    height: auto;
  }

  .products-grid .product-title {
    min-height: auto;
    font-size: 15px;
    line-height: 1.25;
  }

  .products-grid .product-content {
    padding: 14px;
  }

  .products-grid .price {
    font-size: 22px;
  }

  .products-grid .old-price {
    font-size: 13px;
  }

  .products-grid .product-actions .btn {
    font-size: 12px;
    padding: 10px 8px;
  }
}

@media (max-width: 520px) {
  .es-mobile-header-inner {
    width: min(100%, calc(100% - 28px));
    grid-template-columns: 58px 1fr 104px;
    min-height: 82px;
  }

  .es-mobile-logo-mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .es-mobile-actions {
    gap: 8px;
  }

  .es-mobile-icon-btn {
    width: 46px;
    height: 46px;
  }

  .es-mobile-icon-btn svg {
    width: 32px;
    height: 32px;
  }

  .es-burger-lines {
    width: 34px;
    gap: 6px;
  }

  .es-burger-lines span {
    height: 4px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ELEGANT STORE — MOBILE HEADER / DRAWER FIX v2
   ========================================================= */

@media (max-width: 860px) {
  html.es-mobile-no-scroll,
  body.es-mobile-layer-open {
    overflow: hidden !important;
    height: 100dvh !important;
    touch-action: none;
  }

  .site-header .header-bar,
  .site-header .header-nav,
  .site-header .mobile-menu {
    display: none !important;
  }

  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  .es-mobile-header {
    display: block !important;
    position: relative;
    z-index: 95;
    background: #fff;
  }

  .es-mobile-visual-head {
    position: relative;
    min-height: 132px;
    padding: 16px 16px 14px;
    overflow: hidden;
    background:
      radial-gradient(circle at 20% 18%, rgba(212, 175, 55, 0.28), transparent 23%),
      radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.22), transparent 28%),
      linear-gradient(135deg, #070910 0%, #111827 48%, #211331 100%);
  }

  .es-mobile-visual-head::before {
    content: "ES";
    position: absolute;
    right: 22px;
    top: 0;
    font-family: Georgia, serif;
    font-size: 98px;
    line-height: 1;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.11);
    letter-spacing: -0.09em;
    pointer-events: none;
  }

  .es-mobile-visual-head::after {
    content: "";
    position: absolute;
    left: -42px;
    bottom: -52px;
    width: 220px;
    height: 120px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 50%;
    transform: rotate(-11deg);
    pointer-events: none;
  }

  .es-mobile-visual-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.22;
    pointer-events: none;
  }

  .es-mobile-header-controls {
    position: relative;
    z-index: 2;
    min-height: 64px;
    display: grid;
    grid-template-columns: 64px 1fr 116px;
    align-items: center;
    gap: 10px;
  }

  .es-mobile-logo {
    justify-self: center;
  }

  .es-mobile-logo-mark {
    width: 64px !important;
    height: 64px !important;
    flex-basis: 64px !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24) !important;
  }

  .es-mobile-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .es-mobile-icon-btn {
    position: relative;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
  }

  .es-mobile-icon-btn svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
  }

  .es-burger-lines {
    width: 30px;
    display: grid;
    gap: 6px;
  }

  .es-burger-lines span {
    height: 3px;
    border-radius: 999px;
    background: currentColor;
  }

  .es-mobile-brand-text {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    color: #fff;
  }

  .es-mobile-brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.14em;
  }

  .es-mobile-brand-text span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,0.70);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .es-mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #fff1a8);
    color: #0b1220;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 950;
  }

@media (max-width: 860px) {
  .es-mobile-visual-head {
    padding-bottom: 78px !important;
  }

  .es-mobile-quick-links {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    -webkit-overflow-scrolling: touch;
  }

  .es-mobile-quick-links::-webkit-scrollbar {
    display: none;
  }

  .es-mobile-quick-links a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  }

  .es-mobile-quick-links a:nth-child(1),
  .es-mobile-quick-links a:nth-child(2) {
    background: linear-gradient(135deg, rgba(11,18,32,0.82), rgba(36,20,58,0.88)) !important;
  }
}

  /* Drawer поверх сайта */
  .es-mobile-drawer-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 500 !important;
    display: block !important;
    background: rgba(3, 7, 18, 0.58) !important;
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    touch-action: none;
  }

  .es-mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .es-mobile-drawer {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 510 !important;
    width: min(86vw, 390px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 16px 22px !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.11), transparent 30%),
      linear-gradient(180deg, #ffffff 0%, #f8f7fc 100%) !important;
    box-shadow: 32px 0 80px rgba(15, 23, 42, 0.32) !important;
    transform: translateX(-105%);
    opacity: 0;
    visibility: hidden;
    transition: 0.24s ease;
    overflow: hidden !important;
    touch-action: pan-y;
  }

  .es-mobile-drawer.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .es-mobile-drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .es-mobile-drawer-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
  }

  .es-mobile-drawer-logo-mark {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
    border-radius: 19px !important;
  }

  .es-mobile-drawer-logo strong {
    display: block;
    color: #0b1220;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0.08em;
  }

  .es-mobile-drawer-logo small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
  }

  .es-mobile-drawer-close {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f4;
    color: #0b1220;
    font-size: 34px;
    line-height: 1;
  }

  .es-mobile-drawer-nav {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 9px;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 24px;
  }

  .es-mobile-nav-row,
  .es-mobile-category-main,
  .es-mobile-category-parent,
  .es-mobile-subcategories a {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 19px;
    color: #0b1220;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
    font-size: 16px;
    line-height: 1.15;
    font-weight: 950;
    text-align: left;
    text-decoration: none;
  }

  button.es-mobile-nav-row,
  button.es-mobile-category-parent {
    cursor: pointer;
  }

  .es-mobile-row-arrow,
  .es-mobile-category-right i {
    color: #d4af37;
    font-size: 24px;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
    transition: transform 0.18s ease;
  }

  .es-mobile-catalog-toggle.is-open .es-mobile-row-arrow,
  .es-mobile-category-group.is-open .es-mobile-category-right i {
    transform: rotate(90deg);
  }

  .es-mobile-catalog-panel {
    display: none;
    gap: 8px;
    padding: 2px 0 8px;
  }

  .es-mobile-catalog-panel.is-open {
    display: grid;
  }

  .es-mobile-category-main {
    color: #fff;
    background:
      radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.20), transparent 32%),
      linear-gradient(135deg, #0b1220, #24143a);
  }

  .es-mobile-category-group {
    display: grid;
    gap: 7px;
  }

  .es-mobile-category-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .es-mobile-category-right small,
  .es-mobile-subcategories small {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.13);
    color: #9a7114;
    font-size: 12px;
    font-weight: 950;
  }

  .es-mobile-subcategories {
    display: none;
    gap: 7px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(15, 23, 42, 0.10);
  }

  .es-mobile-subcategories.is-open {
    display: grid;
  }

  .es-mobile-subcategories a {
    min-height: 50px;
    padding: 12px 13px;
    border-radius: 16px;
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 850;
  }

  .es-mobile-subcategory-deep-link {
    margin-left: 10px;
    color: #64748b !important;
    font-size: 13px !important;
  }

  /* Поиск */
  .es-mobile-search-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 520 !important;
    display: block !important;
    padding: 14px;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 20px 50px rgba(15,23,42,0.18);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
  }

  .es-mobile-search-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .es-mobile-search-inner {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 10px;
    align-items: center;
  }

  .es-mobile-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 6px;
    border-radius: 24px;
    background: #f7f7fb;
    border: 1px solid rgba(15,23,42,0.08);
  }

  .es-mobile-search-form input {
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 12px;
    color: #0b1220;
    font-size: 15px;
    font-weight: 800;
  }

  .es-mobile-search-form button {
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0b1220, #24143a);
    font-weight: 950;
  }

  .es-mobile-search-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f4;
    color: #0b1220;
    font-size: 32px;
    line-height: 1;
  }
}

@media (max-width: 860px) {
  .elegant-topline,
  .topline,
  .top-strip,
  .premium-topline {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .catalog-sidebar,
  .sidebar,
  .catalog-layout aside,
  .catalog-page aside,
  .category-sidebar,
  .filters-sidebar {
    display: none !important;
  }

  .catalog-layout,
  .catalog-page {
    display: block !important;
  }

  .catalog-content,
  .products-content {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* MOBILE HEADER QUICK LINKS FIX */
@media (max-width: 860px) {
  .es-mobile-visual-head {
    min-height: auto !important;
    padding: 18px 14px 14px !important;
  }

  .es-mobile-header-controls {
    margin-bottom: 14px !important;
  }

  .es-mobile-brand-text {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
  }

  .es-mobile-quick-links {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 5 !important;

    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 2px !important;

    background: transparent !important;
    border: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .es-mobile-quick-links::-webkit-scrollbar {
    display: none !important;
  }

  .es-mobile-quick-links a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    min-height: 38px !important;
    max-height: 38px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 14px !important;
    border-radius: 999px !important;

    color: #fff !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(12px);

    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    text-decoration: none !important;
  }

  .es-mobile-quick-links a:nth-child(1),
  .es-mobile-quick-links a:nth-child(2) {
    background: linear-gradient(135deg, rgba(11,18,32,0.92), rgba(36,20,58,0.95)) !important;
  }
}

/* MOBILE DRAWER CATEGORY VISUAL FIX */
@media (max-width: 860px) {
  .es-mobile-catalog-panel {
    margin-top: -2px !important;
    padding: 4px 0 10px 12px !important;
    border-left: 1px solid rgba(212, 175, 55, 0.22) !important;
    gap: 7px !important;
  }

  .es-mobile-category-group {
    gap: 5px !important;
  }

  .es-mobile-category-parent {
    min-height: 46px !important;
    padding: 11px 13px !important;
    border-radius: 15px !important;

    background: rgba(255, 255, 255, 0.68) !important;
    border: 1px solid rgba(15, 23, 42, 0.055) !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.035) !important;

    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
  }

  .es-mobile-category-parent span:first-child {
    opacity: 0.92 !important;
  }

  .es-mobile-category-right i {
    font-size: 19px !important;
    color: #c9a227 !important;
  }

  .es-mobile-subcategories {
    margin-left: 10px !important;
    padding-left: 10px !important;
    gap: 5px !important;
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .es-mobile-subcategories a {
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;

    background: rgba(255, 255, 255, 0.52) !important;
    border: 1px solid rgba(15, 23, 42, 0.045) !important;
    box-shadow: none !important;

    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
  }

  .es-mobile-subcategory-deep-link {
    margin-left: 8px !important;
    color: #7c8798 !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    background: rgba(255, 255, 255, 0.40) !important;
  }

  .es-mobile-nav-row {
    min-height: 56px !important;
  }

  .es-mobile-catalog-toggle {
    margin-bottom: 2px !important;
  }
}

/* MOBILE CART FIX */
@media (max-width: 860px) {
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block !important;
    width: 100% !important;
  }

  .cart-table thead {
    display: none !important;
  }

  .cart-table tr,
  .cart-item,
  .cart-row {
    position: relative !important;
    padding: 20px !important;
    margin-bottom: 14px !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  }

  .cart-table td {
    padding: 6px 0 !important;
    border: 0 !important;
  }

  .cart-table td:last-child {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .cart-table input[type="number"],
  .cart-table input.qty-input,
  .cart-table .quantity-input {
    width: 82px !important;
    max-width: 82px !important;
    height: 48px !important;
    text-align: center !important;
  }

  .cart-table button,
  .cart-table .btn,
  .cart-table a.btn,
  .cart-table input[type="submit"] {
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  .cart-table .remove-btn,
  .cart-table .delete-btn,
  .cart-table a[href*="remove"],
  .cart-table button[name*="remove"],
  .cart-table button[name*="delete"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid rgba(190, 18, 60, 0.16) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  .cart-summary,
  .cart-total,
  .cart-actions {
    width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* MOBILE CART ITEM FINAL FIX */
@media (max-width: 860px) {
  .cart-page .cart-item,
  .cart-page .cart-row,
  .cart-page form,
  .cart-items form,
  .cart-list form {
    max-width: 100% !important;
  }

  .cart-page table,
  .cart-page tbody,
  .cart-page tr,
  .cart-page td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cart-page thead {
    display: none !important;
  }

  .cart-page tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 22px !important;
    margin-bottom: 18px !important;
    border-radius: 30px !important;
    background: #fff !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
    overflow: visible !important;
  }

  .cart-page td {
    padding: 0 !important;
    border: 0 !important;
  }

  .cart-page td:nth-child(1) {
    font-size: 22px !important;
    line-height: 1.16 !important;
    font-weight: 950 !important;
    color: #0b1220 !important;
  }

  .cart-page td:nth-child(2) {
    font-size: 24px !important;
    font-weight: 950 !important;
    color: #0b1220 !important;
  }

  .cart-page td:nth-child(3),
  .cart-page td:nth-child(4),
  .cart-page td:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .cart-page input[type="number"] {
    width: 74px !important;
    height: 46px !important;
    flex: 0 0 74px !important;
    text-align: center !important;
    border-radius: 18px !important;
  }

  .cart-page button,
  .cart-page .btn,
  .cart-page a.btn,
  .cart-page input[type="submit"] {
    min-height: 46px !important;
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .cart-page a[href*="remove"],
  .cart-page a[href*="delete"],
  .cart-page button[name*="remove"],
  .cart-page button[name*="delete"],
  .cart-page .remove,
  .cart-page .remove-btn,
  .cart-page .delete-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid rgba(190, 18, 60, 0.16) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
  }

  .cart-page .cart-summary,
  .cart-page .cart-total,
  .cart-page .cart-actions {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* MOBILE PRODUCT PROMO CLICK FIX */
@media (max-width: 860px) {
  .promo-badge,
  .promo-chip,
  .promo-code,
  .product-promo,
  .discount-info,
  .saving-badge,
  .economy-badge,
  [data-promo-tooltip] {
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .promo-badge::after,
  .promo-chip::after,
  .promo-code::after,
  .product-promo::after,
  .discount-info::after,
  .saving-badge::after,
  .economy-badge::after,
  [data-promo-tooltip]::after {
    content: "Промокод уже учтён в цене товара. Экономия показана относительно обычной рыночной цены.";
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(260px, 78vw);
    padding: 12px 14px;
    border-radius: 16px;
    background: #0b1220;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 750;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: 0.18s ease;
    z-index: 50;
  }

  .promo-badge.is-open::after,
  .promo-chip.is-open::after,
  .promo-code.is-open::after,
  .product-promo.is-open::after,
  .discount-info.is-open::after,
  .saving-badge.is-open::after,
  .economy-badge.is-open::after,
  [data-promo-tooltip].is-open::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* FIX: убираем лишнюю псевдо-всплывашку промокода */
@media (max-width: 860px) {
  .promo-badge::after,
  .promo-chip::after,
  .promo-code::after,
  .product-promo::after,
  .discount-info::after,
  .saving-badge::after,
  .economy-badge::after,
  [data-promo-tooltip]::after {
    content: none !important;
    display: none !important;
  }
}

/* FIX: нормальное отображение всплывашки промокода на мобильной */
@media (max-width: 860px) {
  .promo-tooltip,
  .promo-popover,
  .promo-badge-tooltip,
  .discount-tooltip,
  .product-promo-tooltip {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    top: auto !important;
    bottom: 92px !important;

    width: auto !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;

    z-index: 9999 !important;
    border-radius: 18px !important;
    padding: 14px 16px !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal !important;

    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28) !important;
  }

  .promo-badge,
  .promo-chip,
  .promo-code,
  .product-promo,
  .discount-info,
  .saving-badge,
  .economy-badge,
  [data-promo-tooltip] {
    position: relative !important;
    z-index: 20 !important;
    touch-action: manipulation !important;
  }
}

/* =========================================================
   ELEGANT STORE — MOBILE CART FINAL FIX
   ПК-версию не трогаем
   ========================================================= */

@media (max-width: 860px) {
  .cart-page {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .cart-page .section-head {
    margin-bottom: 22px !important;
  }

  .cart-page .cart-list {
    display: grid !important;
    gap: 18px !important;
  }

  .cart-page .cart-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;

    width: 100% !important;
    max-width: 100% !important;
    padding: 24px !important;
    overflow: visible !important;

    border-radius: 30px !important;
    background: #fff !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
  }

  .cart-page .cart-product-info {
    min-width: 0 !important;
  }

  .cart-page .cart-product-info h3 {
    margin: 0 !important;
    color: #0b1220 !important;
    font-size: 24px !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
  }

  .cart-page .cart-product-info .muted {
    margin-top: 8px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #64748b !important;
  }

  .cart-page .cart-unit-price {
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    color: #0b1220 !important;
  }

  .cart-page .qty-form,
  .cart-page .cart-update-form {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 82px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .cart-page .qty-form input[type="number"],
  .cart-page .cart-update-form input[type="number"] {
    width: 82px !important;
    min-width: 82px !important;
    height: 48px !important;

    border-radius: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    background: #fff !important;

    color: #0b1220 !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 850 !important;
  }

  .cart-page .qty-form button,
  .cart-page .cart-update-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 16px !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0b1220, #24143a) !important;
    color: #fff !important;

    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }

  .cart-page .cart-actions-col {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .cart-page .cart-line-total,
  .cart-page .cart-actions-col .strong {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    padding: 16px 18px !important;
    border-radius: 22px !important;
    background: #f7f7fb !important;

    color: #0b1220 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }

  .cart-page .cart-line-total::before,
  .cart-page .cart-actions-col .strong::before {
    content: "Сумма";
    color: #64748b;
    font-size: 14px;
    font-weight: 850;
  }

  .cart-page .remove-link,
  .cart-page .cart-remove-btn {
    width: 100% !important;
    min-height: 48px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 18px !important;
    border-radius: 999px !important;

    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid rgba(190, 18, 60, 0.18) !important;

    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .cart-page .checkout-bar {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 22px !important;
    padding: 24px !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;

    border-radius: 30px !important;
  }

  .cart-page .checkout-bar .btn {
    width: 100% !important;
    min-height: 56px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .cart-page .empty-state {
    padding: 26px !important;
    border-radius: 30px !important;
  }
}