: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;
  }
}

/* =========================================================
   COOKIE CONSENT
   ========================================================= */

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 99999;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;

  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;

  border-radius: 22px;
  background: rgba(11, 18, 32, 0.94);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__text {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.cookie-consent__text a {
  color: #f4d96b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-consent__btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;

  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.cookie-consent__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-consent__btn--accept {
  background: linear-gradient(135deg, #d4af37, #fff08a);
  color: #0b1220;
  border: 0;
}

@media (max-width: 860px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;

    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .cookie-consent__text {
    font-size: 12.5px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-consent__btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12.5px;
  }
}

/* =========================================================
   CHECKOUT PERSONAL DATA CONSENT
   ========================================================= */

.checkout-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;

  margin: 18px 0 14px;
  padding: 14px 16px;

  border-radius: 18px;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.08);

  color: #334155;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.checkout-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #d4af37;
}

.checkout-consent a {
  color: #0b1220;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .checkout-consent {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 12.8px;
  }
}

/* =========================================================
   CLIENT CABINET
   ========================================================= */

.client-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f4f5;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.client-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, .14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f3f4f6);
}

.client-login-logo,
.client-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-login-logo {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.client-logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #080b12, #21103c);
  color: #d4af37;
  font-size: 26px;
  font-weight: 950;
  font-family: Georgia, serif;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.client-login-logo strong,
.client-brand strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .12em;
}

.client-login-logo span,
.client-brand span {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.client-login-card {
  width: min(100%, 520px);
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 26px 80px rgba(17,24,39,.12);
}

.client-login-head span,
.client-page-head span,
.client-hero span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #b8860b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.client-login-head h1,
.client-page-head h1,
.client-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 38px;
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.05em;
}

.client-login-head p,
.client-hero p {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.client-login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.client-login-form label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.client-input,
.client-login-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.12);
  background: #f9fafb;
  color: #111827;
  font-size: 16px;
  font-weight: 850;
  outline: none;
  box-sizing: border-box;
}

.client-input:focus,
.client-login-form input:focus {
  border-color: rgba(212,175,55,.7);
  box-shadow: 0 0 0 4px rgba(212,175,55,.16);
}

.client-login-form button,
.client-download-btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #050711;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.client-login-error {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 14px;
  font-weight: 850;
}

.client-login-note {
  margin-top: 18px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.client-login-note a {
  color: #111827;
  font-weight: 950;
}

.client-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.client-sidebar {
  padding: 24px;
  background: #ffffff;
  border-right: 1px solid rgba(17,24,39,.08);
}

.client-brand {
  margin-bottom: 28px;
}

.client-nav {
  display: grid;
  gap: 8px;
}

.client-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.client-nav a:hover {
  background: #f3e8ff;
  color: #6d28d9;
}

.client-main {
  padding: 24px;
}

.client-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(17,24,39,.08);
}

.client-top span {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.client-top strong {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.client-phone {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.client-hero,
.client-card,
.client-stats > div {
  background: #ffffff;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(17,24,39,.04);
}

.client-hero {
  padding: 28px;
  margin-bottom: 18px;
}

.client-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.client-stats > div {
  padding: 22px;
}

.client-stats span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.client-stats strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 34px;
  font-weight: 950;
}

.client-card {
  padding: 20px;
  margin-bottom: 18px;
}

.client-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.client-card-head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.client-card-head a {
  color: #6d28d9;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.client-orders-list {
  display: grid;
  gap: 10px;
}

.client-order-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
  border: 1px solid rgba(17,24,39,.06);
}

.client-orders-list .client-order-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.client-order-row span,
.client-info-grid span,
.client-comment span {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.client-order-row strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.client-order-row b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 950;
}

.client-empty {
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

.client-page-head {
  margin-bottom: 18px;
}

.client-order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

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

.client-info-grid > div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.client-info-grid strong {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

.client-comment {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(251,146,60,.18);
}

.client-comment p {
  margin: 0;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 800;
}

.client-items-table {
  display: grid;
  gap: 0;
}

.client-items-head,
.client-items-row {
  display: grid;
  grid-template-columns: 1fr 100px 130px 130px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.client-items-head {
  color: #6b7280;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.client-items-row strong,
.client-items-row span {
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .client-shell {
    grid-template-columns: 1fr;
  }

  .client-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(17,24,39,.08);
  }

  .client-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-order-row,
  .client-orders-list .client-order-row,
  .client-order-detail-grid,
  .client-stats,
  .client-info-grid,
  .client-items-head,
  .client-items-row {
    grid-template-columns: 1fr;
  }

  .client-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-login-logo {
    position: static;
    transform: none;
    margin-bottom: 22px;
  }

  .client-login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* CLIENT ADMIN */
.client-admin-form {
  display: grid;
  gap: 18px;
}

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

.client-form-grid label,
.client-form-wide label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.client-form-wide {
  margin-top: 14px;
}

.client-form-wide textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.client-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.client-form-actions a,
.client-form-actions button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-form-actions a {
  background: #ffffff;
  color: #111827;
}

.client-form-actions button {
  background: #050711;
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 980px) {
  .client-form-grid {
    grid-template-columns: 1fr;
  }

  .client-form-actions {
    flex-direction: column;
  }

  .client-form-actions a,
  .client-form-actions button {
    width: 100%;
  }
}

.client-backline {
  margin: -6px 0 18px;
}

.client-backline a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  border: 1px solid rgba(17,24,39,.08);
}

.client-nav-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(17,24,39,.10);
}

.client-nav a.client-nav-admin {
  background: #050711;
  color: #ffffff;
}

.client-nav a.client-nav-admin:hover {
  background: linear-gradient(135deg, #050711, #6d28d9);
  color: #ffffff;
}

.client-input[type="file"] {
  padding: 13px 16px;
  height: auto;
  min-height: 52px;
  cursor: pointer;
}

.client-items-create {
  display: grid;
  gap: 12px;
}

.client-item-create-row {
  display: grid;
  grid-template-columns: 1fr 140px 180px;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid rgba(17,24,39,.06);
}

.client-item-create-row label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.client-item-create-row ul.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .client-item-create-row {
    grid-template-columns: 1fr;
  }
}

.client-item-create-row.is-hidden {
  display: none;
}

.client-item-create-row {
  grid-template-columns: 1.2fr 1.4fr 120px 160px 110px;
}

.client-add-item-btn {
  margin-top: 14px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4af37, #fff08a);
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.client-order-total-preview {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f9fafb;
  color: #374151;
  font-size: 15px;
  font-weight: 900;
}

.client-order-total-preview strong {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .client-item-create-row {
    grid-template-columns: 1fr;
  }
}

.client-item-create-row {
  align-items: end;
}

.client-remove-item-btn {
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.client-remove-item-btn:hover {
  background: #fecaca;
}

.client-remove-item-btn[hidden] {
  display: none !important;
}
/* CLIENT ORDERS — Elegant Store style */

.client-orders-card {
  overflow: hidden;
}

.client-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-orders-head p {
  margin: 6px 0 0;
  color: rgba(17, 24, 39, .55);
  font-size: 13px;
  font-weight: 650;
}

.client-orders-count {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .13);
  color: #b45309;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.client-orders-period {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(17, 24, 39, .06);
  border-bottom: 1px solid rgba(17, 24, 39, .06);
  font-size: 13px;
}

.client-orders-period span {
  color: rgba(17, 24, 39, .55);
  font-weight: 750;
}

.client-orders-period strong {
  color: #111827;
  font-weight: 950;
}

.client-orders-table-wrap,
.client-items-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.client-orders-table,
.client-items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.client-orders-table th,
.client-items-table th {
  padding: 14px 20px;
  background: rgba(17, 24, 39, .025);
  color: rgba(17, 24, 39, .56);
  text-align: left;
  font-size: 12px;
  font-weight: 900;
}

.client-orders-table td,
.client-items-table td {
  padding: 18px 20px;
  border-top: 1px solid rgba(17, 24, 39, .06);
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  vertical-align: middle;
}

.client-orders-table tbody tr {
  transition: background .18s ease, transform .18s ease;
}

.client-orders-table tbody tr:hover {
  background: rgba(245, 158, 11, .045);
}

.client-order-view-cell {
  text-align: right;
}

.client-order-view-link {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, .045);
  text-decoration: none;
  font-size: 15px;
}

.client-order-view-link:hover {
  background: rgba(245, 158, 11, .16);
}

.client-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  padding: 4px 20px 16px;
}

.client-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(17, 24, 39, .06);
}

.client-detail-row span {
  color: rgba(17, 24, 39, .56);
  font-size: 13px;
  font-weight: 850;
}

.client-detail-row strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-align: right;
}

.client-info-list {
  padding: 4px 20px 16px;
}

.client-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(17, 24, 39, .06);
}

.client-info-list span {
  color: rgba(17, 24, 39, .56);
  font-size: 13px;
  font-weight: 850;
}

.client-info-list strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-align: right;
}

.client-download-btn {
  display: inline-flex;
  margin: 4px 20px 20px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #2b2115);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .18);
}

.client-muted {
  margin: 4px 20px 20px;
  color: rgba(17, 24, 39, .55);
  font-size: 14px;
  font-weight: 700;
}

.client-comment-box {
  margin: 0 20px 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .18);
}

.client-comment-box span {
  display: block;
  margin-bottom: 8px;
  color: #92400e;
  font-size: 12px;
  font-weight: 950;
}

.client-comment-box p {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.status-created,
.status-confirmed {
  background: rgba(59, 130, 246, .1);
  color: #1d4ed8;
}

.status-supplier_ordered,
.status-in_transit {
  background: rgba(34, 197, 94, .1);
  color: #15803d;
}

.status-arrived,
.status-sent,
.status-completed {
  background: rgba(245, 158, 11, .14);
  color: #b45309;
}

.status-cancelled {
  background: rgba(239, 68, 68, .1);
  color: #b91c1c;
}

@media (max-width: 760px) {
  .client-detail-grid {
    grid-template-columns: 1fr;
  }

  .client-orders-table,
  .client-items-table {
    min-width: 680px;
  }
}

.client-telegram-login-btn {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 16px;
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(34, 158, 217, .24);
}

.client-telegram-login-btn:hover {
  filter: brightness(.96);
}
/* =========================
   ELEGANT STORE LOGIN PAGE
   ========================= */

.es-login-body {
  margin: 0;
  min-height: 100vh;
  background: #070707;
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.es-login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 22px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, .22), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(251, 191, 36, .12), transparent 28%),
    linear-gradient(135deg, #070707 0%, #111111 48%, #070707 100%);
}

.es-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
}

.es-login-bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
}

.es-login-bg-glow-1 {
  width: 320px;
  height: 320px;
  left: 8%;
  top: 14%;
  background: rgba(245, 158, 11, .22);
}

.es-login-bg-glow-2 {
  width: 360px;
  height: 360px;
  right: 5%;
  bottom: 10%;
  background: rgba(251, 191, 36, .12);
}

.es-login-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
}

.es-login-left,
.es-login-card {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.es-login-left {
  min-height: 620px;
  border-radius: 34px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.es-login-left::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .22);
  box-shadow: inset 0 0 70px rgba(245, 158, 11, .08);
}

.es-login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.es-login-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #facc15, #b45309);
  color: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: -.04em;
  box-shadow: 0 18px 42px rgba(245, 158, 11, .24);
}

.es-login-brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.es-login-brand p {
  margin: 4px 0 0;
  color: rgba(248, 250, 252, .58);
  font-size: 13px;
  font-weight: 750;
}

.es-login-hero span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .13);
  color: #facc15;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.es-login-hero h2 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 1000;
}

.es-login-hero p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(248, 250, 252, .66);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 650;
}

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

.es-login-benefits div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
}

.es-login-benefits strong {
  display: block;
  margin-bottom: 10px;
  color: #facc15;
  font-size: 13px;
  font-weight: 1000;
}

.es-login-benefits span {
  color: rgba(248, 250, 252, .78);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.es-login-card {
  border-radius: 34px;
  padding: 42px;
  align-self: center;
}

.es-login-card-top span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .13);
  color: #facc15;
  font-size: 12px;
  font-weight: 1000;
}

.es-login-card-top h3 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 1000;
}

.es-login-card-top p {
  margin: 14px 0 0;
  color: rgba(248, 250, 252, .62);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}

.es-login-form {
  margin-top: 28px;
}

.es-login-form label {
  display: block;
}

.es-login-form label span {
  display: block;
  margin-bottom: 10px;
  color: rgba(248, 250, 252, .74);
  font-size: 13px;
  font-weight: 900;
}

.es-login-form input,
.es-login-form .client-input {
  width: 100%;
  height: 58px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.es-login-form input::placeholder {
  color: rgba(248, 250, 252, .34);
}

.es-login-form input:focus {
  border-color: rgba(250, 204, 21, .62);
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, .11),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.es-login-form button,
.es-telegram-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  font-weight: 1000;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.es-login-form button {
  margin-top: 16px;
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #09090b;
  box-shadow: 0 18px 45px rgba(245, 158, 11, .25);
}

.es-login-form button:hover,
.es-telegram-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.es-login-divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.es-login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .1);
}

.es-login-divider span {
  position: relative;
  z-index: 2;
  padding: 0 12px;
  background: #161410;
  color: rgba(248, 250, 252, .42);
  font-size: 12px;
  font-weight: 900;
}

.es-telegram-btn {
  background: linear-gradient(135deg, #2aabee, #178ac6);
  color: #fff;
  box-shadow: 0 18px 45px rgba(42, 171, 238, .2);
}

.es-telegram-icon {
  margin-right: 9px;
  font-size: 14px;
}

.es-login-help {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
}

.es-login-help strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.es-login-help p {
  margin: 0;
  color: rgba(248, 250, 252, .58);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.es-login-error {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .22);
  color: #fecaca;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .es-login-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .es-login-left {
    min-height: auto;
  }

  .es-login-hero h2 {
    font-size: 44px;
  }

  .es-login-benefits {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .es-login-page {
    padding: 18px;
    align-items: flex-start;
  }

  .es-login-left {
    display: none;
  }

  .es-login-card {
    padding: 28px;
    border-radius: 26px;
  }

  .es-login-card-top h3 {
    font-size: 30px;
  }
}


.es-telegram-login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 42px;
  border-radius: 32px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .11);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
  text-align: center;
}

.es-telegram-login-card .es-login-logo {
  margin: 0 auto 22px;
}

.es-telegram-login-card h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 1000;
}

.es-telegram-login-card p {
  margin: 16px auto 26px;
  max-width: 360px;
  color: rgba(248, 250, 252, .64);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}

.es-telegram-widget-box {
  display: flex;
  justify-content: center;
  margin: 20px 0 26px;
}

.es-login-back-link {
  display: inline-flex;
  color: rgba(248, 250, 252, .62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.es-login-back-link:hover {
  color: #facc15;
}


/* Telegram phone confirmation UX */

.es-phone-confirm-card {
  max-width: 520px;
}

.es-confirm-status-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .22);
  box-shadow: 0 18px 50px rgba(245, 158, 11, .14);
}

.es-confirm-status-icon span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(250, 204, 21, .25);
  border-top-color: #facc15;
  animation: esSpin 1s linear infinite;
}

@keyframes esSpin {
  to {
    transform: rotate(360deg);
  }
}

.es-confirm-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 24px 0;
}

.es-confirm-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}

.es-confirm-steps strong {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, .14);
  color: #facc15;
  font-size: 13px;
  font-weight: 1000;
}

.es-confirm-steps span {
  color: rgba(248, 250, 252, .78);
  font-size: 14px;
  font-weight: 800;
}

.es-secondary-check-btn {
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
}

.es-auto-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .14);
  color: rgba(220, 252, 231, .9);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.es-auto-check-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .1);
}


.es-login-main-telegram-btn {
  margin-top: 28px;
}


/* =========================
   HEADER V2 — desktop + mobile drawer
   ========================= */

.es-desktop-header-v2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 112px;
}

.es-desktop-left {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.es-head-mini-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(9, 9, 11, .045);
  border: 1px solid rgba(9, 9, 11, .075);
  color: #111827;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.es-head-mini-btn span {
  color: #d97706;
  font-weight: 1000;
}

.es-head-mini-btn:hover {
  transform: translateY(-1px);
  background: rgba(245, 158, 11, .10);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

.es-desktop-centered-logo {
  justify-self: center;
  text-align: center;
}

.es-desktop-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.es-header-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  line-height: 1.15;
}

.es-header-phone {
  color: #111827;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.es-header-mail {
  color: rgba(17, 24, 39, .70);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.es-header-time {
  color: rgba(17, 24, 39, .48);
  font-size: 12px;
  font-weight: 750;
}

.site-client-cabinet-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #09090b !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(245, 158, 11, .22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.site-client-cabinet-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 36px rgba(245, 158, 11, .28);
}

.es-desktop-nav-v2 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.es-nav-search {
  width: 100%;
}

.es-nav-cart {
  justify-self: end;
}

/* mobile drawer partner-style */

.es-mobile-drawer-head-v2 {
  padding-bottom: 16px;
}

.es-mobile-drawer-contact {
  display: grid;
  gap: 12px;
  padding: 0 28px 22px;
}

.es-mobile-drawer-phone {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(17, 24, 39, .045);
  border: 1px solid rgba(17, 24, 39, .08);
  color: #111827;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.es-mobile-cabinet-btn {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .16);
  color: #111827;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .06);
}

.es-mobile-drawer-nav {
  padding: 0 24px 24px;
}

.es-mobile-nav-row,
.es-mobile-category-parent {
  min-height: 64px;
  margin-bottom: 12px;
  padding: 0 22px !important;
  border-radius: 20px !important;
  background: #fff !important;
  border: 1px solid rgba(17, 24, 39, .06) !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .045);
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.es-mobile-row-arrow,
.es-mobile-category-right i {
  color: #d6a21d !important;
  font-size: 28px !important;
  font-style: normal;
  font-weight: 950;
}

.es-mobile-cart-count {
  display: flex !important;
  position: absolute;
  min-width: 20px;
  height: 20px;
  right: -5px;
  top: -5px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #09090b;
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(245, 158, 11, .28);
}

.es-mobile-cart-btn {
  position: relative;
}

/* hide old desktop elements on mobile if needed */
@media (max-width: 900px) {
  .es-desktop-header-v2,
  .es-desktop-nav-v2,
  .topline {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .es-mobile-header,
  .es-mobile-drawer,
  .es-mobile-drawer-overlay,
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .es-desktop-left {
    gap: 6px;
  }

  .es-head-mini-btn strong {
    display: none;
  }

  .es-head-mini-btn {
    width: 38px;
    justify-content: center;
    padding: 0;
  }
}


/* =========================
   HEADER V2 FINAL POLISH
   ========================= */

/* ПК: делаем шапку компактнее и ровнее */
@media (min-width: 901px) {
  .site-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(17, 24, 39, .06);
  }

  .es-desktop-header-v2 {
    min-height: 86px !important;
    padding-top: 12px;
    padding-bottom: 8px;
    gap: 18px;
  }

  .es-desktop-centered-logo {
    transform: translateY(-1px);
  }

  .es-desktop-centered-logo .luxury-logo-monogram {
    width: 58px;
    height: 58px;
  }

  .es-desktop-centered-logo .luxury-logo-title {
    font-size: 24px;
    letter-spacing: .18em;
  }

  .es-desktop-centered-logo .luxury-logo-subtitle {
    font-size: 11px;
    letter-spacing: .17em;
  }

  .es-head-mini-btn {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .es-desktop-right {
    gap: 12px;
  }

  .es-header-phone {
    font-size: 15px;
  }

  .es-header-mail {
    font-size: 12px;
  }

  .es-header-time {
    font-size: 11px;
  }

  .site-client-cabinet-btn {
    min-height: 42px;
    padding: 0 20px;
    font-size: 13px;
    border-radius: 18px;
  }

  .es-desktop-nav-v2 {
    padding-top: 8px;
    padding-bottom: 14px;
  }

  .es-nav-search input {
    min-height: 54px;
  }

  .es-nav-search button {
    min-height: 54px;
    padding: 0 38px;
  }

  .es-nav-cart {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 18px;
  }
}

/* Мобилка: меню чуть компактнее и аккуратнее */
@media (max-width: 900px) {
  .es-mobile-drawer {
    width: min(86vw, 430px) !important;
    max-width: 430px !important;
    border-radius: 0 26px 26px 0;
  }

  .es-mobile-drawer-head-v2 {
    padding: 24px 24px 14px !important;
  }

  .es-mobile-drawer-logo {
    gap: 12px;
  }

  .es-mobile-drawer-logo-mark {
    width: 56px !important;
    height: 56px !important;
  }

  .es-mobile-drawer-logo strong {
    font-size: 18px;
    letter-spacing: .13em;
  }

  .es-mobile-drawer-logo small {
    font-size: 13px;
  }

  .es-mobile-drawer-contact {
    padding: 0 24px 18px !important;
    gap: 10px;
  }

  .es-mobile-drawer-phone {
    min-height: 46px;
    border-radius: 15px;
    font-size: 16px;
  }

  .es-mobile-cabinet-btn {
    min-height: 50px;
    border-radius: 15px;
    font-size: 16px;
  }

  .es-mobile-drawer-nav {
    padding: 0 22px 26px !important;
  }

  .es-mobile-nav-row,
  .es-mobile-category-parent {
    min-height: 58px !important;
    margin-bottom: 10px !important;
    border-radius: 18px !important;
    padding: 0 20px !important;
    font-size: 17px !important;
  }

  .es-mobile-row-arrow,
  .es-mobile-category-right i {
    font-size: 24px !important;
  }

  .es-mobile-cart-count {
    min-width: 21px;
    height: 21px;
    right: -3px;
    top: -4px;
    font-size: 11px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 420px) {
  .es-mobile-drawer {
    width: 88vw !important;
  }

  .es-mobile-drawer-head-v2 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .es-mobile-drawer-contact,
  .es-mobile-drawer-nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .es-mobile-nav-row,
  .es-mobile-category-parent {
    min-height: 56px !important;
    font-size: 16px !important;
  }
}


/* =========================
   HEADER PARTNER STYLE + MOBILE COUNTS
   ========================= */

/* ПК: шапка ближе к партнёрам */
@media (min-width: 901px) {
  .es-desktop-header-v2 {
    min-height: 74px !important;
    padding-top: 8px !important;
    padding-bottom: 6px !important;
  }

  .es-partner-left {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .es-partner-nav-link {
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
  }

  .es-partner-nav-link:hover {
    color: #d97706;
  }

  .es-partner-socials {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .es-partner-socials a {
    width: 25px;
    height: 25px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, .045);
    color: #111827;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
  }

  .es-partner-socials a:hover {
    background: rgba(245, 158, 11, .14);
  }

  .es-desktop-centered-logo .luxury-logo-monogram {
    width: 54px !important;
    height: 54px !important;
  }

  .es-desktop-centered-logo .luxury-logo-title {
    font-size: 21px !important;
    letter-spacing: .22em !important;
  }

  .es-header-contact-card {
    padding-right: 14px;
    border-right: 1px solid rgba(17, 24, 39, .14);
  }

  .site-client-cabinet-btn {
    min-height: 38px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111827 !important;
    border: 1px solid rgba(17, 24, 39, .72);
    box-shadow: none !important;
  }

  .site-client-cabinet-btn:hover {
    background: #111827 !important;
    color: #fff !important;
    transform: none !important;
  }
}

/* Мобилка: компактнее карточки */
@media (max-width: 900px) {
  .es-mobile-drawer {
    width: min(84vw, 400px) !important;
  }

  .es-mobile-drawer-head-v2 {
    padding: 20px 22px 12px !important;
  }

  .es-mobile-drawer-logo-mark {
    width: 52px !important;
    height: 52px !important;
  }

  .es-mobile-drawer-logo strong {
    font-size: 17px !important;
    line-height: 1.05;
  }

  .es-mobile-drawer-logo small {
    font-size: 12px !important;
  }

  .es-mobile-drawer-contact {
    padding: 0 22px 16px !important;
    gap: 8px !important;
  }

  .es-mobile-drawer-phone,
  .es-mobile-cabinet-btn {
    min-height: 44px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
  }

  .es-mobile-drawer-nav {
    padding: 0 20px 24px !important;
  }

  .es-mobile-nav-row,
  .es-mobile-category-parent {
    min-height: 52px !important;
    margin-bottom: 8px !important;
    border-radius: 16px !important;
    padding: 0 18px !important;
    font-size: 16px !important;
  }

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

  .es-mobile-category-right b,
  .es-mobile-subcategories a em {
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, .14);
    color: #b45309;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
  }

  .es-mobile-subcategories a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  .es-mobile-subcategory-deep-link {
    margin-left: 14px;
  }

  .es-mobile-row-arrow,
  .es-mobile-category-right i {
    font-size: 22px !important;
  }
}


/* Hide old black topline on desktop */
@media (min-width: 901px) {
  .topline,
  .elegant-topline {
    display: none !important;
  }

  .site-header {
    padding-top: 0 !important;
  }

  .es-desktop-header-v2 {
    min-height: 66px !important;
    padding-top: 10px !important;
    padding-bottom: 4px !important;
  }

  .es-desktop-nav-v2 {
    padding-top: 6px !important;
    padding-bottom: 12px !important;
  }
}


/* Mobile drawer compact final */
@media (max-width: 900px) {
  .es-mobile-drawer {
    width: min(82vw, 390px) !important;
  }

  .es-mobile-drawer-head-v2 {
    padding: 18px 20px 10px !important;
  }

  .es-mobile-drawer-logo-mark {
    width: 48px !important;
    height: 48px !important;
  }

  .es-mobile-drawer-logo strong {
    font-size: 16px !important;
    letter-spacing: .12em !important;
  }

  .es-mobile-drawer-logo small {
    font-size: 11px !important;
  }

  .es-mobile-drawer-contact {
    padding: 0 20px 14px !important;
    gap: 8px !important;
  }

  .es-mobile-drawer-phone,
  .es-mobile-cabinet-btn {
    min-height: 40px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  .es-mobile-drawer-nav {
    padding: 0 18px 22px !important;
  }

  .es-mobile-nav-row,
  .es-mobile-category-parent {
    min-height: 48px !important;
    margin-bottom: 8px !important;
    border-radius: 15px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
  }

  .es-mobile-subcategories a {
    min-height: 40px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .es-mobile-category-right b,
  .es-mobile-subcategories a em {
    min-width: 24px !important;
    height: 20px !important;
    font-size: 11px !important;
  }
}


/* =========================
   LOGO + SOCIAL ICON FIX
   ========================= */

.luxury-logo-monogram,
.es-mobile-drawer-logo-mark,
.es-desktop-centered-logo .luxury-logo-monogram {
  overflow: visible !important;
  flex-shrink: 0;
}

@media (min-width: 901px) {
  .es-desktop-centered-logo {
    gap: 15px !important;
  }

  .es-desktop-centered-logo .luxury-logo-monogram {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
  }

  .es-desktop-centered-logo .luxury-logo-title {
    font-size: 24px !important;
    letter-spacing: .22em !important;
  }

  .es-desktop-centered-logo .luxury-logo-subtitle {
    font-size: 12px !important;
    letter-spacing: .18em !important;
  }

  .es-partner-socials a {
    width: 27px !important;
    height: 27px !important;
    overflow: hidden;
  }

  .es-partner-socials svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
  }

  .es-social-telegram {
    background: rgba(34, 158, 217, .14) !important;
    color: #229ed9 !important;
  }

  .es-social-email {
    background: rgba(17, 24, 39, .06) !important;
    color: #111827 !important;
  }

  .es-partner-socials .avito-mini-logo {
    transform: scale(.72);
  }
}

@media (max-width: 900px) {
  .es-mobile-drawer-logo-mark {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }

  .es-mobile-drawer-logo {
    gap: 14px !important;
  }

  .es-mobile-drawer-logo strong {
    font-size: 18px !important;
    letter-spacing: .14em !important;
  }

  .es-mobile-drawer-logo small {
    font-size: 12px !important;
  }

  .es-mobile-drawer-head-v2 {
    padding-top: 20px !important;
  }
}

/* Более аккуратные бейджи счётчиков */
.es-mobile-category-right b,
.es-mobile-subcategories a em {
  background: rgba(245, 158, 11, .16) !important;
  color: #92400e !important;
}


/* Level 4 mobile subcategories */
@media (max-width: 900px) {
  .es-mobile-subcategory-level-4 {
    margin-left: 28px !important;
    opacity: .92;
  }

  .es-mobile-subcategory-level-4 span {
    font-size: 12.5px !important;
    color: rgba(17, 24, 39, .72) !important;
  }

  .es-mobile-subcategory-level-4 em {
    min-width: 22px !important;
    height: 19px !important;
    font-size: 10.5px !important;
  }
}


/* Mobile nested catalog levels */
@media (max-width: 900px) {
  .es-mobile-category-child-toggle {
    margin-left: 10px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    opacity: .96;
  }

  .es-mobile-level-3-toggle {
    margin-left: 20px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  .es-mobile-subcategories-level-3 {
    margin-left: 10px !important;
    padding-left: 8px !important;
  }

  .es-mobile-subcategories-level-4 {
    margin-left: 20px !important;
    padding-left: 8px !important;
  }

  .es-mobile-level-3-link {
    margin-left: 18px !important;
  }

  .es-mobile-level-4-link {
    margin-left: 30px !important;
    min-height: 38px !important;
    font-size: 12px !important;
    opacity: .9;
  }

  .es-mobile-category-right b,
  .es-mobile-subcategories a em {
    min-width: 24px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: rgba(245, 158, 11, .16) !important;
    color: #92400e !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    font-style: normal !important;
  }
}


/* Nested mobile catalog open/close fix */
@media (max-width: 900px) {
  .es-mobile-subcategories[data-es-subcatalog-panel] {
    display: none;
  }

  .es-mobile-subcategories[data-es-subcatalog-panel].is-open {
    display: block;
  }

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

  .es-mobile-category-right i,
  .es-mobile-row-arrow {
    transition: transform .18s ease;
  }
}


/* Stable mobile accordion state */
@media (max-width: 900px) {
  .es-mobile-subcategories[data-es-subcatalog-panel] {
    display: none !important;
  }

  .es-mobile-subcategories[data-es-subcatalog-panel].is-open {
    display: block !important;
  }

  [data-es-subcatalog-toggle].is-open .es-mobile-category-right i {
    transform: rotate(90deg);
  }

  [data-es-subcatalog-toggle] .es-mobile-category-right i {
    transition: transform .18s ease;
  }
}


/* Mobile drawer schedule */
.es-mobile-drawer-time {
  margin-top: -4px;
  margin-bottom: 2px;
  text-align: center;
  color: rgba(17, 24, 39, .56);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
}


/* CLIENT CABINET SUPPLIER-LIKE MOBILE START */

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
    background: #f4f4f6 !important;
  }

  body.client-body,
  .client-body {
    background: #f4f4f6 !important;
    color: #101827 !important;
  }

  .client-page,
  .client-app,
  .client-layout,
  .client-shell,
  .client-main,
  .client-content,
  .client-container,
  .client-dashboard,
  .client-orders-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .client-main,
  .client-content,
  .client-container {
    padding: 18px 14px 30px !important;
  }

  /* Верх как у партнёров: меню / логотип / выход */
  .client-header,
  .client-topbar,
  .client-mobile-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    min-height: 84px !important;
    width: 100% !important;
    padding: 12px 16px !important;
    display: grid !important;
    grid-template-columns: 52px 1fr 52px !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(16, 24, 39, .08) !important;
    box-sizing: border-box !important;
  }

  .client-header::before,
  .client-topbar::before,
  .client-mobile-header::before {
    content: "☰" !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: #101827 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
  }

  .client-header::after,
  .client-topbar::after,
  .client-mobile-header::after {
    content: "↪" !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    color: #101827 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
  }

  .client-brand,
  .client-logo-row {
    grid-column: 2 !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .client-brand img,
  .client-logo,
  .client-logo-row img {
    width: 92px !important;
    height: 56px !important;
    min-width: 92px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .client-brand h1,
  .client-brand-title,
  .client-logo-text,
  .client-brand small,
  .client-brand-subtitle {
    display: none !important;
  }

  /* Навигация скрываем в компактный вид, чтобы не ломала экран */
  .client-nav,
  .client-menu,
  .client-tabs {
    display: none !important;
  }

  /* Общие карточки */
  .client-card,
  .client-profile-card,
  .client-welcome-card,
  .client-stat-card,
  .client-orders-card,
  .client-section-card,
  .client-info-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 24, 39, .075) !important;
    border-radius: 22px !important;
    padding: 22px 18px !important;
    margin: 0 0 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(16, 24, 39, .04) !important;
  }

  .client-card h1,
  .client-hero-title,
  .client-welcome-title {
    font-size: 34px !important;
    line-height: .98 !important;
    letter-spacing: -.045em !important;
    color: #101827 !important;
    margin: 8px 0 14px !important;
    font-weight: 950 !important;
  }

  .client-card h2,
  .client-section-title,
  .client-orders-title {
    font-size: 23px !important;
    line-height: 1.08 !important;
    color: #101827 !important;
    margin: 0 0 14px !important;
    font-weight: 950 !important;
  }

  .client-card p,
  .client-description,
  .client-muted {
    font-size: 15px !important;
    line-height: 1.45 !important;
    color: #7d8494 !important;
    font-weight: 700 !important;
  }

  .client-eyebrow,
  .client-label {
    color: #9a741a !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
  }

  .client-pill,
  .client-phone-pill,
  .client-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    background: #f1f1f5 !important;
    color: #101827 !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  .client-grid,
  .client-dashboard-grid,
  .client-stats-grid,
  .client-summary-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  /* Главный фикс: таблица как у партнёров, НЕ вертикальные карточки */
  .client-table-wrap,
  .client-orders-table-wrap,
  .client-orders-table-container,
  .client-card:has(table),
  .client-section-card:has(table),
  .client-orders-card:has(table) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .client-orders-table,
  .client-table,
  table {
    display: table !important;
    width: 100% !important;
    min-width: 640px !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
  }

  .client-orders-table thead,
  .client-table thead,
  table thead {
    display: table-header-group !important;
  }

  .client-orders-table tbody,
  .client-table tbody,
  table tbody {
    display: table-row-group !important;
  }

  .client-orders-table tr,
  .client-table tr,
  table tr {
    display: table-row !important;
    width: auto !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .client-orders-table th,
  .client-orders-table td,
  .client-table th,
  .client-table td,
  table th,
  table td {
    display: table-cell !important;
    width: auto !important;
    padding: 16px 14px !important;
    border-bottom: 1px solid rgba(16, 24, 39, .075) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .client-orders-table th,
  .client-table th,
  table th {
    background: #f7f7fa !important;
    color: #858c9b !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
  }

  .client-orders-table td,
  .client-table td,
  table td {
    color: #101827 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  .client-orders-table td::before,
  .client-table td::before,
  table td::before {
    content: none !important;
    display: none !important;
  }

  /* На телефоне показываем как у партнёров: ключевые колонки */
  .client-orders-table th:nth-child(1),
  .client-orders-table td:nth-child(1),
  .client-table th:nth-child(1),
  .client-table td:nth-child(1) {
    display: none !important;
  }

  .client-orders-table th:nth-child(3),
  .client-orders-table td:nth-child(3),
  .client-table th:nth-child(3),
  .client-table td:nth-child(3) {
    display: none !important;
  }

  .client-orders-table th:nth-child(6),
  .client-orders-table td:nth-child(6),
  .client-table th:nth-child(6),
  .client-table td:nth-child(6) {
    display: none !important;
  }

  .client-orders-table,
  .client-table {
    min-width: 430px !important;
  }

  .client-status,
  .client-status-badge,
  .status,
  .status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .client-orders-table a,
  .client-table a {
    color: #4b5563 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
  }

  /* Заголовок блока заказов */
  .client-orders-header,
  .client-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    flex-wrap: nowrap !important;
  }

  .client-orders-header h1,
  .client-orders-header h2,
  .client-section-header h1,
  .client-section-header h2 {
    margin: 0 !important;
    font-size: 23px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    color: #101827 !important;
  }

  .client-count-badge,
  .client-orders-count,
  .client-section-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    background: rgba(121, 60, 220, .10) !important;
    color: #773ad1 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 430px) {
  .client-main,
  .client-content,
  .client-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .client-header,
  .client-topbar,
  .client-mobile-header {
    min-height: 78px !important;
    grid-template-columns: 48px 1fr 48px !important;
  }

  .client-brand img,
  .client-logo,
  .client-logo-row img {
    width: 86px !important;
    height: 52px !important;
    min-width: 86px !important;
  }

  .client-card,
  .client-profile-card,
  .client-welcome-card,
  .client-stat-card,
  .client-orders-card,
  .client-section-card,
  .client-info-card {
    padding: 20px 16px !important;
    border-radius: 22px !important;
  }

  .client-orders-table,
  .client-table {
    min-width: 405px !important;
  }

  .client-orders-table th,
  .client-orders-table td,
  .client-table th,
  .client-table td {
    padding: 14px 11px !important;
    font-size: 14px !important;
  }
}

/* CLIENT CABINET SUPPLIER-LIKE MOBILE END */


/* CLIENT CABINET CLEAN MOBILE START */

.client-body {
  margin: 0;
  background: #f4f4f6;
  color: #101827;
}

.client-app-shell {
  min-height: 100vh;
  background: #f4f4f6;
}

.client-main-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
}

.client-mobile-topbar,
.client-mobile-drawer,
.client-mobile-overlay {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background: #f4f4f6 !important;
  }

  html.client-menu-open,
  html.client-menu-open body {
    overflow: hidden !important;
  }

  .client-app-shell,
  .client-main-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .client-main-content {
    padding: 18px 14px 32px !important;
  }

  /* Шапка как у партнёров */
  .client-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 84px;
    display: grid !important;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid rgba(16, 24, 39, .08);
    box-sizing: border-box;
  }

  .client-mobile-topbar-btn {
    width: 52px;
    height: 52px;
    border: 0;
    background: transparent;
    color: #101827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
  }

  .client-mobile-logout {
    justify-self: end;
    font-size: 34px;
  }

  .client-mobile-topbar-logo {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #101827;
    min-width: 0;
  }

  .client-mobile-logo-mark {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #2d2340, #0b0713 68%);
    color: #d9a51b;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -.06em;
    box-shadow: 0 10px 24px rgba(16, 24, 39, .13);
  }

  .client-mobile-logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .client-mobile-logo-text strong {
    color: #101827;
    font-size: 17px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: .16em;
  }

  .client-mobile-logo-text small {
    margin-top: 3px;
    color: #7d8494;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
  }

  /* Drawer */
  .client-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: block !important;
    background: rgba(0, 0, 0, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .client-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .client-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 210;
    width: min(78vw, 410px);
    display: flex !important;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0 22px 22px 0;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .18);
    transform: translateX(-104%);
    transition: transform .22s ease;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .client-mobile-drawer.is-open {
    transform: translateX(0);
  }

  .client-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(16, 24, 39, .07);
  }

  .client-mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .client-mobile-drawer-logo {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #2d2340, #0b0713 68%);
    color: #d9a51b;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -.06em;
  }

  .client-mobile-drawer-brand strong {
    display: block;
    color: #101827;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 900;
    max-width: 210px;
  }

  .client-mobile-drawer-brand span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
  }

  .client-mobile-drawer-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 0;
    border-radius: 999px;
    background: #f4f4f6;
    color: #101827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .client-mobile-drawer-nav {
    padding: 12px 0;
  }

  .client-mobile-drawer-nav a {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    color: #101827;
    text-decoration: none;
    font-size: 16px;
    font-weight: 850;
    border-left: 4px solid transparent;
  }

  .client-mobile-drawer-nav a:hover,
  .client-mobile-drawer-nav a:active {
    background: rgba(121, 60, 220, .08);
    border-left-color: #7c3aed;
    color: #5b21b6;
  }

  .client-menu-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d8494;
    font-size: 20px;
  }

  .client-mobile-drawer-separator {
    height: 1px;
    margin: 12px 18px;
    background: rgba(16, 24, 39, .08);
  }

  .client-mobile-drawer-bottom {
    margin-top: auto;
    padding: 18px;
    color: #6b7280;
  }

  .client-mobile-drawer-bottom strong {
    display: block;
    color: #101827;
    font-size: 13px;
    letter-spacing: .14em;
  }

  .client-mobile-drawer-bottom span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
  }

  /* Основной контент */
  .client-card,
  .client-profile-card,
  .client-welcome-card,
  .client-stat-card,
  .client-orders-card,
  .client-section-card,
  .client-info-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 24, 39, .075) !important;
    border-radius: 22px !important;
    padding: 22px 18px !important;
    margin: 0 0 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(16, 24, 39, .04) !important;
  }

  .client-card h1,
  .client-hero-title,
  .client-welcome-title {
    font-size: 34px !important;
    line-height: .98 !important;
    letter-spacing: -.045em !important;
    color: #101827 !important;
    margin: 8px 0 14px !important;
    font-weight: 950 !important;
  }

  .client-card h2,
  .client-section-title,
  .client-orders-title {
    font-size: 23px !important;
    line-height: 1.08 !important;
    color: #101827 !important;
    margin: 0 0 14px !important;
    font-weight: 950 !important;
  }

  .client-card p,
  .client-description,
  .client-muted {
    font-size: 15px !important;
    line-height: 1.45 !important;
    color: #7d8494 !important;
    font-weight: 700 !important;
  }

  .client-eyebrow,
  .client-label {
    color: #9a741a !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
  }

  .client-pill,
  .client-phone-pill,
  .client-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    background: #f1f1f5 !important;
    color: #101827 !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  .client-grid,
  .client-dashboard-grid,
  .client-stats-grid,
  .client-summary-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Главное: таблицы влезают без горизонтального скролла */
  .client-table-wrap,
  .client-orders-table-wrap,
  .client-orders-table-container,
  .client-card:has(table),
  .client-section-card:has(table),
  .client-orders-card:has(table) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .client-orders-table,
  .client-table,
  table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .client-orders-table th,
  .client-orders-table td,
  .client-table th,
  .client-table td,
  table th,
  table td {
    padding: 13px 8px !important;
    border-bottom: 1px solid rgba(16, 24, 39, .075) !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .client-orders-table th,
  .client-table th,
  table th {
    background: #f7f7fa !important;
    color: #858c9b !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: .03em !important;
  }

  .client-orders-table td,
  .client-table td,
  table td {
    color: #101827 !important;
    font-size: 14px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
  }

  .client-orders-table td::before,
  .client-table td::before,
  table td::before {
    content: none !important;
    display: none !important;
  }

  /* Скрываем лишние колонки на мобилке, как у партнёров */
  .client-orders-table th:nth-child(1),
  .client-orders-table td:nth-child(1),
  .client-table th:nth-child(1),
  .client-table td:nth-child(1) {
    display: none !important;
  }

  .client-orders-table th:nth-child(3),
  .client-orders-table td:nth-child(3),
  .client-table th:nth-child(3),
  .client-table td:nth-child(3) {
    display: none !important;
  }

  .client-orders-table th:nth-child(6),
  .client-orders-table td:nth-child(6),
  .client-table th:nth-child(6),
  .client-table td:nth-child(6) {
    display: none !important;
  }

  .client-status,
  .client-status-badge,
  .status,
  .status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .client-orders-table a,
  .client-table a {
    color: #4b5563 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 430px) {
  .client-main-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .client-mobile-drawer {
    width: min(82vw, 390px);
  }

  .client-mobile-logo-text strong {
    font-size: 15px;
    letter-spacing: .13em;
  }

  .client-mobile-logo-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .client-card,
  .client-profile-card,
  .client-welcome-card,
  .client-stat-card,
  .client-orders-card,
  .client-section-card,
  .client-info-card {
    padding: 20px 16px !important;
  }

  .client-orders-table th,
  .client-orders-table td,
  .client-table th,
  .client-table td,
  table th,
  table td {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 12.5px !important;
  }
}

/* CLIENT CABINET CLEAN MOBILE END */


/* ELEGANT CLIENT FINAL UI START */

.es-client-body-final {
  margin: 0;
  background: #f3f3f5;
  color: #111827;
}

.es-client-layout-final {
  min-height: 100vh;
  background: #f3f3f5;
}

.es-client-shell-final {
  min-width: 0;
}

.es-client-desktop-topbar-final {
  height: 78px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  padding: 0 34px;
  background: #ffffff;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  box-sizing: border-box;
}

.es-client-topbar-title {
  justify-self: center;
  color: #111827;
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: .01em;
}

.es-client-logout-icon {
  justify-self: end;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  text-decoration: none;
  border-radius: 14px;
}

.es-client-logout-icon svg,
.client-mobile-logout svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.es-client-sidebar-final {
  position: fixed;
  top: 78px;
  left: 0;
  bottom: 0;
  width: 292px;
  padding: 24px;
  box-sizing: border-box;
  background: #f3f3f5;
  overflow-y: auto;
}

.es-client-sidebar-person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  margin-bottom: 20px;
}

.es-client-sidebar-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, #2d2340, #0b0713 68%);
  color: #d9a51b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -.06em;
  box-shadow: 0 14px 30px rgba(17, 24, 39, .10);
}

.es-client-sidebar-name strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.es-client-sidebar-name span {
  display: block;
  margin-top: 5px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.es-client-sidebar-nav {
  padding: 18px 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .045);
  border: 1px solid rgba(17, 24, 39, .06);
}

.es-client-sidebar-nav a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  padding: 0 18px;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  border-left: 4px solid transparent;
}

.es-client-sidebar-nav a:hover {
  color: #6d28d9;
  background: rgba(109, 40, 217, .08);
  border-left-color: #7c3aed;
}

.es-client-sidebar-nav a span {
  color: #7b8190;
  font-size: 20px;
}

.es-client-sidebar-core {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 244px;
  padding: 18px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  color: #111827;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .045);
}

.es-client-sidebar-core strong {
  display: block;
  font-size: 13px;
  letter-spacing: .12em;
}

.es-client-sidebar-core span {
  display: block;
  margin-top: 10px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.es-client-main-final {
  margin-left: 292px;
  padding: 28px 36px 60px;
  box-sizing: border-box;
  max-width: 1320px;
}

.es-client-help-page {
  max-width: 980px;
}

.es-client-page-head {
  margin-bottom: 18px;
}

.es-client-page-head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #9a741a;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.es-client-page-head h1 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 950;
}

.es-client-help-card,
.es-client-faq-block {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, .07);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .04);
}

.es-client-help-card h2,
.es-client-help-card h3,
.es-client-faq-block h2,
.es-client-faq-block h3 {
  margin: 0 0 12px;
  color: #111827;
  font-weight: 950;
}

.es-client-help-card p,
.es-client-faq-block p,
.es-client-help-list {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
}

.es-client-help-list {
  margin: 0 0 18px;
  padding-left: 22px;
}

.es-client-help-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.es-client-help-actions a {
  min-height: 44px;
  padding: 0 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7c3aed;
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
}

.es-client-help-actions a.dark {
  background: #09090b;
}

.es-client-faq-item {
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, .07);
  overflow: hidden;
  background: #ffffff;
}

.es-client-faq-item summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  list-style: none;
}

.es-client-faq-item summary::-webkit-details-marker {
  display: none;
}

.es-client-faq-item summary::after {
  content: "⌄";
  margin-left: auto;
  color: #6b7280;
  font-size: 18px;
}

.es-client-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.es-client-faq-item p {
  padding: 0 16px 16px;
  margin: 0;
}

/* Tables: partner-like on mobile, normal on desktop */
@media (min-width: 901px) {
  .client-mobile-topbar,
  .client-mobile-drawer,
  .client-mobile-overlay {
    display: none !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
    background: #f3f3f5 !important;
  }

  .es-client-desktop-topbar-final,
  .es-client-sidebar-final {
    display: none !important;
  }

  .es-client-main-final {
    margin-left: 0 !important;
    padding: 22px 16px 40px !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .client-mobile-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    width: 100% !important;
    min-height: 84px !important;
    display: grid !important;
    grid-template-columns: 52px 1fr 52px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(17, 24, 39, .08) !important;
    box-sizing: border-box !important;
  }

  .client-mobile-topbar-btn {
    width: 52px !important;
    height: 52px !important;
    border: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 29px !important;
    text-decoration: none !important;
  }

  .client-mobile-topbar-logo {
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #111827 !important;
    text-decoration: none !important;
  }

  .client-mobile-logo-mark {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 18px !important;
    background: radial-gradient(circle at 30% 20%, #2d2340, #0b0713 68%) !important;
    color: #d9a51b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 25px !important;
    font-weight: 950 !important;
  }

  .client-mobile-logo-text strong {
    display: block !important;
    color: #111827 !important;
    font-size: 17px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: .15em !important;
  }

  .client-mobile-logo-text small {
    display: block !important;
    margin-top: 3px !important;
    color: #7b8190 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .client-mobile-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 200 !important;
    display: block !important;
    background: rgba(0, 0, 0, .38) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .client-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .client-mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 210 !important;
    width: min(78vw, 410px) !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 0 22px 22px 0 !important;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .18) !important;
    transform: translateX(-104%);
    transition: transform .22s ease;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .client-mobile-drawer.is-open {
    transform: translateX(0);
  }

  .client-mobile-drawer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 22px 18px 18px !important;
    border-bottom: 1px solid rgba(17, 24, 39, .07) !important;
  }

  .client-mobile-drawer-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .client-mobile-drawer-logo {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 18px !important;
    background: radial-gradient(circle at 30% 20%, #2d2340, #0b0713 68%) !important;
    color: #d9a51b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 25px !important;
    font-weight: 950 !important;
  }

  .client-mobile-drawer-nav a {
    display: grid !important;
    grid-template-columns: 48px 1fr !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 0 18px !important;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    border-left: 4px solid transparent !important;
  }

  .client-mobile-drawer-nav a:hover,
  .client-mobile-drawer-nav a:active {
    background: rgba(124, 58, 237, .08) !important;
    border-left-color: #7c3aed !important;
    color: #5b21b6 !important;
  }

  .client-menu-icon {
    color: #7b8190 !important;
    font-size: 20px !important;
  }

  .client-mobile-drawer-close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f4f4f6 !important;
    color: #111827 !important;
    font-size: 28px !important;
  }

  .es-client-page-head h1 {
    font-size: 38px !important;
    line-height: .98 !important;
    letter-spacing: -.045em !important;
  }

  .es-client-help-card,
  .es-client-faq-block,
  .client-card,
  .client-profile-card,
  .client-orders-card,
  .client-section-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  /* Orders table: one-line compact rows */
  .client-table-wrap,
  .client-orders-table-wrap,
  .client-orders-table-container,
  .client-card:has(table),
  .client-section-card:has(table),
  .client-orders-card:has(table) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .client-orders-table,
  .client-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .client-orders-table th,
  .client-orders-table td,
  .client-table th,
  .client-table td {
    padding: 13px 7px !important;
    border-bottom: 1px solid rgba(17, 24, 39, .075) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .client-orders-table th,
  .client-table th {
    background: #f7f7fa !important;
    color: #858c9b !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: .03em !important;
  }

  .client-orders-table td,
  .client-table td {
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
  }

  .client-orders-table td::before,
  .client-table td::before {
    display: none !important;
    content: none !important;
  }

  .client-orders-table th:nth-child(1),
  .client-orders-table td:nth-child(1),
  .client-table th:nth-child(1),
  .client-table td:nth-child(1),
  .client-orders-table th:nth-child(3),
  .client-orders-table td:nth-child(3),
  .client-table th:nth-child(3),
  .client-table td:nth-child(3),
  .client-orders-table th:nth-child(6),
  .client-orders-table td:nth-child(6),
  .client-table th:nth-child(6),
  .client-table td:nth-child(6) {
    display: none !important;
  }

  .client-orders-table th:nth-child(2),
  .client-orders-table td:nth-child(2),
  .client-table th:nth-child(2),
  .client-table td:nth-child(2) {
    width: 24% !important;
  }

  .client-orders-table th:nth-child(4),
  .client-orders-table td:nth-child(4),
  .client-table th:nth-child(4),
  .client-table td:nth-child(4) {
    width: 37% !important;
  }

  .client-orders-table th:nth-child(5),
  .client-orders-table td:nth-child(5),
  .client-table th:nth-child(5),
  .client-table td:nth-child(5) {
    width: 18% !important;
    text-align: center !important;
  }

  .client-orders-table th:nth-child(7),
  .client-orders-table td:nth-child(7),
  .client-table th:nth-child(7),
  .client-table td:nth-child(7) {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: right !important;
    padding-right: 3px !important;
  }

  .client-orders-table td:nth-child(7) a,
  .client-table td:nth-child(7) a {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #f4f4f6 !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    font-size: 0 !important;
  }

  .client-orders-table td:nth-child(7) a::before,
  .client-table td:nth-child(7) a::before {
    content: "👁" !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 430px) {
  .es-client-main-final {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .client-orders-table th,
  .client-orders-table td,
  .client-table th,
  .client-table td {
    padding-left: 5px !important;
    padding-right: 5px !important;
    font-size: 13px !important;
  }
}

/* ELEGANT CLIENT FINAL UI END */


/* Client final corrections */

.es-client-topbar-person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.es-client-topbar-logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 17px;
  background: radial-gradient(circle at 30% 20%, #2d2340, #0b0713 68%);
  color: #d9a51b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.06em;
}

.es-client-topbar-person-text strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
}

.es-client-topbar-person-text span {
  display: block;
  margin-top: 4px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 750;
}

.es-client-help-compact .es-client-page-head {
  margin-bottom: 14px;
}

.es-client-help-compact .es-client-page-head h1 {
  font-size: 28px;
}

.es-client-help-compact .es-client-help-card,
.es-client-help-compact .es-client-faq-block {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.es-client-help-compact .es-client-help-card h2,
.es-client-help-compact .es-client-help-card h3,
.es-client-help-compact .es-client-faq-block h2,
.es-client-help-compact .es-client-faq-block h3 {
  margin-bottom: 8px;
}

.es-client-help-compact .es-client-help-card p,
.es-client-help-compact .es-client-faq-block p,
.es-client-help-compact .es-client-help-list {
  font-size: 14px;
  line-height: 1.45;
}

.es-client-ref-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.es-client-ref-stats div {
  padding: 18px;
  border-radius: 16px;
  background: #f7f7fa;
}

.es-client-ref-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 950;
  color: #111827;
}

.es-client-ref-stats span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.es-client-empty-state {
  padding: 18px;
  border-radius: 16px;
  background: #f7f7fa;
  color: #6b7280;
  font-size: 14px;
  font-weight: 750;
}

.es-admin-order-page {
  max-width: 1180px;
}

.es-admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.es-admin-edit-card {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 10px 26px rgba(17,24,39,.04);
}

.es-admin-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.es-admin-edit-head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.es-admin-edit-head button,
.es-admin-edit-form button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.es-admin-info-list {
  display: grid;
  gap: 10px;
}

.es-admin-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17,24,39,.06);
}

.es-admin-info-list span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}

.es-admin-info-list strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.es-admin-edit-form {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(17,24,39,.08);
}

.es-admin-edit-form.is-open {
  display: grid;
  gap: 12px;
}

.es-admin-edit-form label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 850;
}

.es-admin-edit-form input,
.es-admin-edit-form select,
.es-admin-edit-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 750;
  box-sizing: border-box;
}

.es-admin-edit-form textarea {
  min-height: 90px;
  padding-top: 12px;
}

.es-admin-items-card {
  overflow-x: auto;
}

.es-admin-items-view table {
  width: 100%;
  border-collapse: collapse;
}

.es-admin-items-view th,
.es-admin-items-view td {
  padding: 12px;
  border-bottom: 1px solid rgba(17,24,39,.07);
  text-align: left;
  font-size: 14px;
}

.es-admin-items-edit-grid {
  display: grid;
  gap: 10px;
}

.es-admin-item-row {
  display: grid;
  grid-template-columns: 1fr 120px 150px;
  gap: 10px;
}

@media (max-width: 900px) {
  .es-admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .es-admin-item-row {
    grid-template-columns: 1fr;
  }

  .es-client-ref-stats {
    grid-template-columns: 1fr;
  }
}


/* Bonus/referral + logo polish */

.es-client-topbar-logo,
.client-mobile-logo-mark,
.client-mobile-drawer-logo,
.es-client-sidebar-logo {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .16), transparent 28%),
    radial-gradient(circle at 65% 80%, rgba(217, 165, 27, .25), transparent 25%),
    linear-gradient(145deg, #1b1326, #07050d 70%) !important;
  color: #d9a51b !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 14px 30px rgba(17, 24, 39, .14) !important;
  font-family: Georgia, serif !important;
}

.es-client-ref-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.es-client-ref-table {
  width: 100%;
  border-collapse: collapse;
}

.es-client-ref-table th,
.es-client-ref-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(17,24,39,.07);
  text-align: left;
  font-size: 13px;
}

.es-client-ref-table th {
  background: #f7f7fa;
  color: #6b7280;
  font-weight: 950;
}

.es-client-ref-table td {
  color: #111827;
  font-weight: 750;
}

@media (max-width: 900px) {
  .es-client-ref-table {
    min-width: 760px;
  }
}


/* Admin order item editor */

.es-admin-item-row.is-hidden {
  display: none !important;
}

.es-admin-items-form.is-open {
  display: grid;
}

.es-admin-items-form .es-admin-items-edit-grid {
  display: grid;
  gap: 12px;
}

.es-admin-item-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 90px 130px 90px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 14px;
  background: #fafafa;
}

.es-admin-item-row label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.es-admin-item-row select,
.es-admin-item-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 750;
  box-sizing: border-box;
}

.es-admin-add-item,
.es-admin-remove-item {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.es-admin-add-item {
  justify-self: start;
  background: #f4e8ff;
  color: #6d28d9;
}

.es-admin-remove-item {
  background: #fee2e2;
  color: #991b1b;
}

.es-admin-remove-item[hidden],
.es-admin-add-item[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .es-admin-item-row {
    grid-template-columns: 1fr;
  }
}


/* Bonus admin select polish */
.es-admin-edit-form select#bonus-order-select {
  max-width: 100%;
  font-size: 13px;
}

.es-client-ref-table td:nth-child(7) {
  max-width: 320px;
}


/* Delivery/referral mobile polish */
.es-admin-track-toggle {
  margin-top: 14px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #f4e8ff;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.es-client-delivery-card h2 {
  margin-top: 0;
}

.es-client-delivery-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17,24,39,.07);
}

.es-client-delivery-row span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.es-client-delivery-row strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.es-client-delivery-note {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.es-client-back-link {
  display: inline-flex;
  margin-top: 12px;
  color: #6d28d9;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .es-client-ref-table-compact {
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .es-client-ref-table-compact th,
  .es-client-ref-table-compact td {
    padding: 13px 7px !important;
    font-size: 12px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .es-client-ref-table-compact th:nth-child(1),
  .es-client-ref-table-compact td:nth-child(1) {
    width: 26% !important;
  }

  .es-client-ref-table-compact th:nth-child(2),
  .es-client-ref-table-compact td:nth-child(2) {
    width: 25% !important;
  }

  .es-client-ref-table-compact th:nth-child(3),
  .es-client-ref-table-compact td:nth-child(3) {
    width: 25% !important;
  }

  .es-client-ref-table-compact th:nth-child(4),
  .es-client-ref-table-compact td:nth-child(4) {
    width: 42px !important;
    text-align: right !important;
  }

  .es-ref-view-link {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #f4f4f6 !important;
    text-decoration: none !important;
    font-size: 15px !important;
  }
}

/* FINAL FIX: client orders list and order detail items */

/* Мои заказы — убираем горизонтальный скролл и артефакты */
.es-client-orders-card,
.es-client-orders-card *,
.es-client-orders-table,
.es-client-orders-table * {
  box-sizing: border-box;
}

.es-client-orders-card {
  overflow: hidden !important;
}

.es-client-orders-table-wrap,
.es-client-orders-wrap,
.es-client-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.es-client-orders-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.es-client-orders-table th,
.es-client-orders-table td {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  vertical-align: middle !important;
}

/* Desktop: нормальные ширины колонок в "Мои заказы" */
@media (min-width: 901px) {
  .es-client-orders-table th:nth-child(1),
  .es-client-orders-table td:nth-child(1) {
    width: 15% !important;
  }

  .es-client-orders-table th:nth-child(2),
  .es-client-orders-table td:nth-child(2) {
    width: 17% !important;
  }

  .es-client-orders-table th:nth-child(3),
  .es-client-orders-table td:nth-child(3) {
    width: 16% !important;
  }

  .es-client-orders-table th:nth-child(4),
  .es-client-orders-table td:nth-child(4) {
    width: 14% !important;
  }

  .es-client-orders-table th:nth-child(5),
  .es-client-orders-table td:nth-child(5) {
    width: 14% !important;
  }

  .es-client-orders-table th:nth-child(6),
  .es-client-orders-table td:nth-child(6) {
    width: 13% !important;
  }

  .es-client-orders-table th:nth-child(7),
  .es-client-orders-table td:nth-child(7) {
    width: 52px !important;
    text-align: center !important;
  }
}

/* Mobile: как раньше — кратко, без скролла */
@media (max-width: 900px) {
  .es-client-orders-table {
    table-layout: fixed !important;
  }

  .es-client-orders-table th:nth-child(1),
  .es-client-orders-table td:nth-child(1),
  .es-client-orders-table th:nth-child(3),
  .es-client-orders-table td:nth-child(3),
  .es-client-orders-table th:nth-child(6),
  .es-client-orders-table td:nth-child(6) {
    display: none !important;
  }

  .es-client-orders-table th:nth-child(2),
  .es-client-orders-table td:nth-child(2) {
    width: 28% !important;
  }

  .es-client-orders-table th:nth-child(4),
  .es-client-orders-table td:nth-child(4) {
    width: 34% !important;
  }

  .es-client-orders-table th:nth-child(5),
  .es-client-orders-table td:nth-child(5) {
    width: 22% !important;
  }

  .es-client-orders-table th:nth-child(7),
  .es-client-orders-table td:nth-child(7) {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    text-align: center !important;
  }
}

/* Глазок — без зеленых/битых артефактов */
.es-client-orders-table a,
.es-client-order-view,
.es-client-view-link {
  text-decoration: none !important;
}

.es-client-orders-table td:last-child a,
.es-client-order-view,
.es-client-view-link {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #f4f4f6 !important;
  color: #111827 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.es-client-orders-table td:last-child a::before,
.es-client-order-view::before,
.es-client-view-link::before {
  content: "👁" !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

/* Открытый заказ клиента — растягиваем только блок "Состав заказа" */
.es-client-order-items-card,
.client-order-items-card,
.client-card-order-items {
  width: 100% !important;
}

.es-client-order-items-card table,
.client-order-items-card table,
.client-card-order-items table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.es-client-order-items-card th,
.es-client-order-items-card td,
.client-order-items-card th,
.client-order-items-card td,
.client-card-order-items th,
.client-card-order-items td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(17,24,39,.07) !important;
}

.es-client-order-items-card th:nth-child(1),
.es-client-order-items-card td:nth-child(1),
.client-order-items-card th:nth-child(1),
.client-order-items-card td:nth-child(1),
.client-card-order-items th:nth-child(1),
.client-card-order-items td:nth-child(1) {
  width: 60% !important;
  text-align: left !important;
}

.es-client-order-items-card th:nth-child(2),
.es-client-order-items-card td:nth-child(2),
.client-order-items-card th:nth-child(2),
.client-order-items-card td:nth-child(2),
.client-card-order-items th:nth-child(2),
.client-card-order-items td:nth-child(2) {
  width: 15% !important;
  text-align: center !important;
}

.es-client-order-items-card th:nth-child(3),
.es-client-order-items-card td:nth-child(3),
.client-order-items-card th:nth-child(3),
.client-order-items-card td:nth-child(3),
.client-card-order-items th:nth-child(3),
.client-card-order-items td:nth-child(3) {
  width: 25% !important;
  text-align: right !important;
}


/* FINAL: opened client order items full width */
.es-client-order-items-card {
  width: 100% !important;
}

.es-client-order-items-card .client-items-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.es-client-order-items-card .client-items-table {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.es-client-order-items-card .client-items-table th,
.es-client-order-items-card .client-items-table td {
  padding: 15px 18px !important;
  border-bottom: 1px solid rgba(17,24,39,.07) !important;
  vertical-align: middle !important;
}

.es-client-order-items-card .client-items-table th:nth-child(1),
.es-client-order-items-card .client-items-table td:nth-child(1) {
  width: 65% !important;
  text-align: left !important;
}

.es-client-order-items-card .client-items-table th:nth-child(2),
.es-client-order-items-card .client-items-table td:nth-child(2) {
  width: 15% !important;
  text-align: center !important;
}

.es-client-order-items-card .client-items-table th:nth-child(3),
.es-client-order-items-card .client-items-table td:nth-child(3) {
  width: 20% !important;
  text-align: right !important;
}

@media (max-width: 700px) {
  .es-client-order-items-card .client-items-table th,
  .es-client-order-items-card .client-items-table td {
    padding: 12px 8px !important;
    font-size: 12px !important;
  }

  .es-client-order-items-card .client-items-table th:nth-child(1),
  .es-client-order-items-card .client-items-table td:nth-child(1) {
    width: 56% !important;
  }

  .es-client-order-items-card .client-items-table th:nth-child(2),
  .es-client-order-items-card .client-items-table td:nth-child(2) {
    width: 17% !important;
  }

  .es-client-order-items-card .client-items-table th:nth-child(3),
  .es-client-order-items-card .client-items-table td:nth-child(3) {
    width: 27% !important;
  }
}


/* FINAL: client orders list no horizontal scroll */
.client-orders-card,
.client-orders-card *,
.client-orders-table,
.client-orders-table *,
.es-client-orders-table,
.es-client-orders-table * {
  box-sizing: border-box !important;
}

.client-orders-card,
.client-orders-table-wrap,
.client-orders-wrap,
.es-client-orders-table-wrap,
.es-client-orders-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.client-orders-table,
.es-client-orders-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.client-orders-table th,
.client-orders-table td,
.es-client-orders-table th,
.es-client-orders-table td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* remove broken old eye/status artifacts */
.client-orders-table td:last-child a,
.es-client-orders-table td:last-child a {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #f4f4f6 !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.client-orders-table td:last-child a::before,
.es-client-orders-table td:last-child a::before {
  content: "👁" !important;
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

/* desktop orders table */
@media (min-width: 901px) {
  .client-orders-table th:nth-child(1),
  .client-orders-table td:nth-child(1),
  .es-client-orders-table th:nth-child(1),
  .es-client-orders-table td:nth-child(1) {
    width: 14% !important;
  }

  .client-orders-table th:nth-child(2),
  .client-orders-table td:nth-child(2),
  .es-client-orders-table th:nth-child(2),
  .es-client-orders-table td:nth-child(2) {
    width: 15% !important;
  }

  .client-orders-table th:nth-child(3),
  .client-orders-table td:nth-child(3),
  .es-client-orders-table th:nth-child(3),
  .es-client-orders-table td:nth-child(3) {
    width: 15% !important;
  }

  .client-orders-table th:nth-child(4),
  .client-orders-table td:nth-child(4),
  .es-client-orders-table th:nth-child(4),
  .es-client-orders-table td:nth-child(4) {
    width: 15% !important;
  }

  .client-orders-table th:nth-child(5),
  .client-orders-table td:nth-child(5),
  .es-client-orders-table th:nth-child(5),
  .es-client-orders-table td:nth-child(5) {
    width: 12% !important;
  }

  .client-orders-table th:nth-child(6),
  .client-orders-table td:nth-child(6),
  .es-client-orders-table th:nth-child(6),
  .es-client-orders-table td:nth-child(6) {
    width: 14% !important;
  }

  .client-orders-table th:nth-child(7),
  .client-orders-table td:nth-child(7),
  .es-client-orders-table th:nth-child(7),
  .es-client-orders-table td:nth-child(7) {
    width: 48px !important;
    text-align: center !important;
  }
}

/* mobile orders table compact */
@media (max-width: 900px) {
  .client-orders-table th:nth-child(1),
  .client-orders-table td:nth-child(1),
  .client-orders-table th:nth-child(3),
  .client-orders-table td:nth-child(3),
  .client-orders-table th:nth-child(6),
  .client-orders-table td:nth-child(6),
  .es-client-orders-table th:nth-child(1),
  .es-client-orders-table td:nth-child(1),
  .es-client-orders-table th:nth-child(3),
  .es-client-orders-table td:nth-child(3),
  .es-client-orders-table th:nth-child(6),
  .es-client-orders-table td:nth-child(6) {
    display: none !important;
  }

  .client-orders-table th:nth-child(2),
  .client-orders-table td:nth-child(2),
  .es-client-orders-table th:nth-child(2),
  .es-client-orders-table td:nth-child(2) {
    width: 30% !important;
  }

  .client-orders-table th:nth-child(4),
  .client-orders-table td:nth-child(4),
  .es-client-orders-table th:nth-child(4),
  .es-client-orders-table td:nth-child(4) {
    width: 34% !important;
  }

  .client-orders-table th:nth-child(5),
  .client-orders-table td:nth-child(5),
  .es-client-orders-table th:nth-child(5),
  .es-client-orders-table td:nth-child(5) {
    width: 22% !important;
  }

  .client-orders-table th:nth-child(7),
  .client-orders-table td:nth-child(7),
  .es-client-orders-table th:nth-child(7),
  .es-client-orders-table td:nth-child(7) {
    width: 42px !important;
    text-align: center !important;
  }
}


/* FINAL HARD FIX: opened order items must use full card width */
.client-card.es-client-order-items-card {
  width: 100% !important;
}

.client-card.es-client-order-items-card .client-card-head {
  width: 100% !important;
}

.client-card.es-client-order-items-card .client-items-table-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.client-card.es-client-order-items-card .client-items-table {
  display: table !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  table-layout: fixed !important;
}

.client-card.es-client-order-items-card .client-items-table thead,
.client-card.es-client-order-items-card .client-items-table tbody {
  width: 100% !important;
}

.client-card.es-client-order-items-card .client-items-table tr {
  width: 100% !important;
}

.client-card.es-client-order-items-card .client-items-table th,
.client-card.es-client-order-items-card .client-items-table td {
  box-sizing: border-box !important;
}

.client-card.es-client-order-items-card .client-items-table th:nth-child(1),
.client-card.es-client-order-items-card .client-items-table td:nth-child(1) {
  width: 70% !important;
}

.client-card.es-client-order-items-card .client-items-table th:nth-child(2),
.client-card.es-client-order-items-card .client-items-table td:nth-child(2) {
  width: 12% !important;
  text-align: center !important;
}

.client-card.es-client-order-items-card .client-items-table th:nth-child(3),
.client-card.es-client-order-items-card .client-items-table td:nth-child(3) {
  width: 18% !important;
  text-align: right !important;
}


/* Admin danger zone */
.es-admin-danger-zone {
  margin-top: 22px;
  border: 1px solid rgba(185, 28, 28, .16) !important;
  background: #fffafa !important;
}

.es-admin-danger-zone h2 {
  color: #991b1b !important;
}

.es-admin-danger-zone p {
  max-width: 720px;
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.es-admin-delete-order-btn {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #991b1b;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.es-admin-delete-order-btn:hover {
  background: #7f1d1d;
}


/* =========================================================
   COMPACT CATALOG GRID — 5 desktop / 2 mobile
   ========================================================= */

/* Все сетки товаров делаем компактнее */
.products-grid,
.catalog-grid,
.product-grid,
.home-products-grid,
.js-products-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

/* Карточка товара */
.product-card,
.catalog-product-card,
.home-product-card,
.es-product-card {
  width: 100% !important;
  min-width: 0 !important;
  padding: 14px 12px 16px !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

/* Картинка товара — одинаковая высота, центрирование */
.product-card img,
.catalog-product-card img,
.home-product-card img,
.es-product-card img,
.product-card__image img,
.product-image img,
.product-img img {
  width: 100% !important;
  height: 190px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto 12px !important;
}

/* Обёртки картинок тоже фиксируем */
.product-card__image,
.product-image,
.product-img,
.product-card-image,
.catalog-product-image {
  width: 100% !important;
  height: 190px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: 0 auto 12px !important;
}

/* Название товара — компактно, но читаемо */
.product-card h3,
.product-card-title,
.product-title,
.catalog-product-title,
.es-product-title {
  min-height: 44px !important;
  margin: 0 0 10px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  text-align: center !important;
  color: #111827 !important;
}

/* Цена */
.product-price,
.price,
.catalog-product-price,
.es-product-price {
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

/* Старая цена */
.product-old-price,
.old-price,
.catalog-product-old-price,
.es-product-old-price {
  font-size: 12px !important;
}

/* Кнопки */
.product-card .btn,
.product-card button,
.product-card a.button,
.catalog-product-card .btn,
.es-product-card .btn {
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
}

/* Цветовые кружки — компактно */
.product-colors,
.color-dots,
.catalog-colors,
.es-product-colors {
  display: flex !important;
  justify-content: center !important;
  gap: 9px !important;
  margin: 8px 0 12px !important;
}

.product-colors span,
.color-dots span,
.catalog-colors span,
.es-product-colors span,
.product-color-dot,
.color-dot {
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
}

/* Планшет */
@media (max-width: 1200px) {
  .products-grid,
  .catalog-grid,
  .product-grid,
  .home-products-grid,
  .js-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

/* Мобильная версия — строго 2 товара в ряд */
@media (max-width: 700px) {
  .products-grid,
  .catalog-grid,
  .product-grid,
  .home-products-grid,
  .js-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }

  .product-card,
  .catalog-product-card,
  .home-product-card,
  .es-product-card {
    padding: 12px 10px 14px !important;
  }

  .product-card img,
  .catalog-product-card img,
  .home-product-card img,
  .es-product-card img,
  .product-card__image img,
  .product-image img,
  .product-img img {
    height: 155px !important;
    margin-bottom: 10px !important;
  }

  .product-card__image,
  .product-image,
  .product-img,
  .product-card-image,
  .catalog-product-image {
    height: 155px !important;
    margin-bottom: 10px !important;
  }

  .product-card h3,
  .product-card-title,
  .product-title,
  .catalog-product-title,
  .es-product-title {
    min-height: 58px !important;
    font-size: 15px !important;
    line-height: 1.28 !important;
  }

  .product-price,
  .price,
  .catalog-product-price,
  .es-product-price {
    font-size: 20px !important;
  }
}


/* =========================================================
   DAY PRODUCTS ON SITE
   ========================================================= */

.es-day-products-section {
  margin: 38px 0 52px;
}

.es-day-products-head {
  margin-bottom: 22px;
}

.es-day-products-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #b8862b;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.es-day-products-head h2 {
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 950;
}

.product-card.is-day-product,
.catalog-product-card.is-day-product,
.home-product-card.is-day-product,
.es-product-card.is-day-product {
  position: relative !important;
  border: 2px solid #d6a93b !important;
  box-shadow: 0 16px 38px rgba(214, 169, 59, .20) !important;
}

.product-card.is-day-product::before,
.catalog-product-card.is-day-product::before,
.home-product-card.is-day-product::before,
.es-product-card.is-day-product::before {
  content: "Товар дня";
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe08a, #c8952f);
  color: #111827;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow: 0 8px 22px rgba(214, 169, 59, .28);
}

@media (max-width: 700px) {
  .es-day-products-section {
    margin: 28px 0 38px;
  }

  .es-day-products-head h2 {
    font-size: 26px;
  }

  .product-card.is-day-product::before,
  .catalog-product-card.is-day-product::before,
  .home-product-card.is-day-product::before,
  .es-product-card.is-day-product::before {
    left: 9px;
    top: 9px;
    padding: 6px 9px;
    font-size: 11px;
  }
}


/* =========================================================
   DJANGO ADMIN CUSTOM PAGES — FORCE LIGHT UI
   ========================================================= */

body:has(.es-admin-page),
#container:has(.es-admin-page),
#content:has(.es-admin-page),
#content-main:has(.es-admin-page) {
  background: #f4f5f8 !important;
  color: #111827 !important;
}

.es-admin-page,
.es-admin-page * {
  color-scheme: light !important;
}

.es-admin-page {
  background: #f4f5f8 !important;
  color: #111827 !important;
  padding: 28px !important;
  border-radius: 0 !important;
}

.es-admin-page h1,
.es-admin-page h2,
.es-admin-page h3,
.es-admin-page p,
.es-admin-page label,
.es-admin-page td,
.es-admin-page th,
.es-admin-page span,
.es-admin-page div {
  color: inherit;
}

.es-admin-page .es-admin-title h1,
.es-admin-page .es-admin-card h2,
.es-admin-page .es-admin-table-title h2 {
  color: #111827 !important;
}

.es-admin-page .es-admin-title span {
  color: #b8862b !important;
}

.es-admin-page .es-admin-card,
.es-admin-page .es-admin-table-card {
  background: #ffffff !important;
  color: #111827 !important;
}

.es-admin-page .es-admin-card {
  border: 1px solid rgba(214, 169, 59, .42) !important;
  background: linear-gradient(135deg, #fff8e8, #ffffff) !important;
}

.es-admin-page .es-admin-table {
  background: #ffffff !important;
  color: #111827 !important;
}

.es-admin-page .es-admin-table th {
  background: #0b1220 !important;
  color: #f5c451 !important;
}

.es-admin-page .es-admin-table td {
  background: #ffffff !important;
  color: #111827 !important;
}

.es-admin-page .es-admin-select,
.es-admin-page .es-admin-input,
.es-admin-page .es-admin-price-input {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid rgba(17,24,39,.16) !important;
}

.es-admin-page .es-admin-select option {
  background: #ffffff !important;
  color: #111827 !important;
}

.es-admin-page .es-admin-btn {
  background: #0b1220 !important;
  color: #f5c451 !important;
}

.es-admin-page .es-admin-btn-danger {
  background: #991b1b !important;
  color: #ffffff !important;
}

.es-admin-page .es-admin-btn-light {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.es-admin-page .es-admin-back {
  background: #0b1220 !important;
  color: #f5c451 !important;
}


/* =========================================================
   ELEGANT STORE — DAY PRODUCTS SECTION
   компактно как у поставщика, но в золотом стиле
   ========================================================= */

.es-day-products-main {
  margin: 34px 0 46px !important;
  padding: 0 !important;
}

.es-day-products-main .container {
  max-width: 1240px !important;
  margin: 0 auto !important;
}

.es-day-products-head {
  margin: 0 0 20px !important;
}

.es-day-products-head span {
  display: inline-flex !important;
  margin-bottom: 8px !important;
  color: #b8862b !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.es-day-products-head h2 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 34px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
}

.es-day-products-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.es-day-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  padding: 14px 12px 16px !important;
  border: 2px solid #d6a93b !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) !important;
  box-shadow: 0 16px 34px rgba(214, 169, 59, .18) !important;
  overflow: hidden !important;
}

.es-day-card::before {
  content: "Товар дня" !important;
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 4 !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffe08a, #c8952f) !important;
  color: #111827 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  box-shadow: 0 8px 18px rgba(214,169,59,.25) !important;
}

.es-day-card-image {
  width: 100% !important;
  height: 172px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 10px auto 12px !important;
  text-decoration: none !important;
}

.es-day-card-image img {
  width: 100% !important;
  height: 172px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
}

.es-day-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  align-items: center !important;
  text-align: center !important;
}

.es-day-card h3 {
  min-height: 58px !important;
  margin: 0 0 10px !important;
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
}

.es-day-card-price {
  margin-top: auto !important;
  color: #0f7a3b !important;
  font-size: 21px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
}

.es-day-card-old-price {
  min-height: 18px !important;
  margin: 6px 0 10px !important;
  color: #8b8f99 !important;
  font-size: 12px !important;
  text-decoration: line-through !important;
}

.es-day-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 7px !important;
  background: #050505 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

@media (max-width: 1200px) {
  .es-day-products-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 700px) {
  .es-day-products-main {
    margin: 28px 0 38px !important;
  }

  .es-day-products-head h2 {
    font-size: 28px !important;
  }

  .es-day-products-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
  }

  .es-day-card {
    padding: 12px 10px 14px !important;
  }

  .es-day-card-image,
  .es-day-card-image img {
    height: 150px !important;
  }

  .es-day-card h3 {
    min-height: 62px !important;
    font-size: 15px !important;
  }

  .es-day-card-price {
    font-size: 20px !important;
  }
}


/* =========================================================
   FINAL DAY PRODUCT BADGE EVERYWHERE
   ========================================================= */

.product-card.is-day-product,
.catalog-product-card.is-day-product,
.home-product-card.is-day-product,
.es-product-card.is-day-product,
[class*="product-card"].is-day-product {
  position: relative !important;
  border: 2px solid #d6a93b !important;
  box-shadow: 0 16px 38px rgba(214, 169, 59, .22) !important;
  overflow: hidden !important;
}

.product-card.is-day-product::before,
.catalog-product-card.is-day-product::before,
.home-product-card.is-day-product::before,
.es-product-card.is-day-product::before,
[class*="product-card"].is-day-product::before {
  content: "Товар дня" !important;
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 20 !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffe08a, #c8952f) !important;
  color: #111827 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  box-shadow: 0 8px 18px rgba(214,169,59,.28) !important;
}


/* =========================================================
   FINAL: товар дня в каталоге и карточке товара
   ========================================================= */

.product-card.is-day-product,
.product-card.premium-card.is-day-product {
  position: relative !important;
  border: 2px solid #d6a93b !important;
  box-shadow: 0 16px 38px rgba(214, 169, 59, .24) !important;
  overflow: hidden !important;
}

.product-card.is-day-product::before,
.product-card.premium-card.is-day-product::before {
  content: "Товар дня" !important;
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 30 !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffe08a, #c8952f) !important;
  color: #111827 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  box-shadow: 0 8px 18px rgba(214,169,59,.28) !important;
}

.product-card.is-day-product .price,
.product-card.premium-card.is-day-product .price {
  color: #0f7a3b !important;
  font-weight: 950 !important;
}

.es-product-detail-day-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin: 0 0 12px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffe08a, #c8952f) !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 10px 24px rgba(214,169,59,.25) !important;
}

.es-product-detail-day-note {
  max-width: 520px !important;
  margin: -4px 0 16px !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(214,169,59,.45) !important;
  border-radius: 14px !important;
  background: #fff8e8 !important;
  color: #7c5a12 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}


/* =========================================================
   CATALOG PAGE ONLY — 3 desktop / 2 mobile
   Главную страницу не трогаем
   ========================================================= */

@media (min-width: 901px) {
  .es-catalog-page .products-grid,
  .es-catalog-page .catalog-grid,
  .es-catalog-page .product-grid,
  .es-catalog-page .js-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
  }

  .es-catalog-page .product-card .product-image,
  .es-catalog-page .product-card .product-card__image,
  .es-catalog-page .product-card .product-img,
  .es-catalog-page .product-card-image {
    height: 240px !important;
  }

  .es-catalog-page .product-card img {
    height: 240px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 900px) {
  .es-catalog-page .products-grid,
  .es-catalog-page .catalog-grid,
  .es-catalog-page .product-grid,
  .es-catalog-page .js-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }
}


/* =========================================================
   CART PRICE STACK — old price / current price / benefit
   ========================================================= */

.cart-price-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

.cart-old-price {
  color: #9ca3af !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px !important;
}

.cart-current-price {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.cart-day-price-label {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffe08a, #c8952f) !important;
  color: #111827 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.cart-benefit {
  color: #15803d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}


/* =========================================================
   CHECKOUT FIX — restored layout/classes
   ========================================================= */

.checkout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

.checkout-form {
  padding: 32px !important;
  border-radius: 34px !important;
  background: #ffffff !important;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .08) !important;
  border: 1px solid rgba(17, 24, 39, .06) !important;
}

.checkout-form .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 28px !important;
}

.checkout-form .form-grid .full {
  grid-column: 1 / -1 !important;
}

.checkout-form label {
  display: block !important;
  margin: 0 0 8px !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100% !important;
  min-height: 50px !important;
  border: 1px solid rgba(17, 24, 39, .14) !important;
  border-radius: 15px !important;
  background: #f9fafb !important;
  color: #111827 !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.checkout-form textarea {
  min-height: 112px !important;
  resize: vertical !important;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: #d6a93b !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(214, 169, 59, .14) !important;
}

.checkout-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 22px 0 !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.checkout-consent input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin-top: 2px !important;
  flex: 0 0 18px !important;
}

.checkout-consent a {
  color: #7c4dff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.checkout-form .btn.wide,
.checkout-form button[type="submit"] {
  width: 100% !important;
  min-height: 64px !important;
  border-radius: 20px !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

.order-summary {
  position: sticky !important;
  top: 24px !important;
  padding: 28px !important;
  border-radius: 30px !important;
  background: #ffffff !important;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .08) !important;
  border: 1px solid rgba(17, 24, 39, .06) !important;
}

.order-summary h3 {
  margin: 0 0 20px !important;
  color: #111827 !important;
  font-size: 24px !important;
  font-weight: 950 !important;
}

.summary-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(17, 24, 39, .08) !important;
  color: #111827 !important;
}

.summary-line span {
  min-width: 0 !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.summary-line strong {
  white-space: nowrap !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.summary-total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  margin-top: 18px !important;
  padding-top: 20px !important;
  color: #111827 !important;
}

.summary-total span {
  color: #6b7280 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.summary-total strong {
  color: #111827 !important;
  font-size: 26px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.info-box.premium-box {
  border-radius: 999px !important;
  padding: 20px 28px !important;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid rgba(17, 24, 39, .06) !important;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .06) !important;
}

.info-box.premium-box strong {
  font-weight: 950 !important;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr !important;
  }

  .order-summary {
    position: static !important;
  }

  .checkout-form {
    padding: 22px !important;
    border-radius: 26px !important;
  }

  .checkout-form .form-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   CART / CHECKOUT BENEFIT LAYOUT FINAL
   ========================================================= */

.cart-unit-price {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.cart-unit-price .cart-old-price {
  color: #9ca3af !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.7px !important;
  white-space: nowrap !important;
}

.cart-line-total-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: right !important;
}

.cart-line-total-stack .cart-current-price {
  color: #111827 !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.cart-benefit-right {
  color: #15803d !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.cart-total-benefit {
  margin-top: 6px !important;
  color: #86efac !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.checkout-total-benefit {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  margin-top: 8px !important;
  padding-top: 10px !important;
  color: #15803d !important;
}

.checkout-total-benefit span {
  color: #15803d !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.checkout-total-benefit strong {
  color: #15803d !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}


/* Hide per-item benefit in cart, keep only total benefit */
.cart-benefit-right {
  display: none !important;
}


/* =========================================================
   FOOTER HELP LINKS RESTORE
   ========================================================= */

.footer-links,
.footer-nav,
.footer-menu,
.footer-help,
.footer-column ul,
.footer-col ul,
.site-footer ul,
footer ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.footer-links a,
.footer-nav a,
.footer-menu a,
.footer-help a,
.footer-column a,
.footer-col a,
.site-footer a,
footer a {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .footer-links,
  .footer-nav,
  .footer-menu,
  .footer-help,
  .footer-column ul,
  .footer-col ul,
  .site-footer ul,
  footer ul {
    display: flex !important;
    flex-direction: column !important;
  }
}


/* =========================================================
   PRODUCT COLOR VARIANTS
   ========================================================= */

.product-color-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 12px 0 10px !important;
}

.product-color-dot {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  border: 2px solid rgba(17, 24, 39, .18) !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .10) !important;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.product-color-dot:hover {
  transform: translateY(-2px) !important;
  border-color: #111827 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18) !important;
}


/* =========================================================
   PRODUCT COLOR VARIANTS FINAL
   ========================================================= */

.product-color-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  margin: 12px 0 14px !important;
}

.product-color-dot {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  border: 2px solid rgba(17, 24, 39, .22) !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .10) !important;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.product-color-dot:hover {
  transform: translateY(-2px) !important;
  border-color: #111827 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18) !important;
}

.product-color-dot.active {
  border: 3px solid #111827 !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 8px 18px rgba(15,23,42,.20) !important;
}


/* =========================================================
   PRODUCT COLOR VARIANTS FIX
   ========================================================= */

.product-color-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  margin: 12px 0 14px !important;
  min-height: 28px !important;
}

.product-color-dot {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  border: 2px solid rgba(17, 24, 39, .22) !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .10) !important;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.product-color-dot:hover {
  transform: translateY(-2px) !important;
  border-color: #111827 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18) !important;
}

.product-color-dot.active {
  border: 3px solid #111827 !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 8px 18px rgba(15,23,42,.20) !important;
}


/* =========================================================
   Product color switch buttons
   ========================================================= */

.product-color-dot {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.product-color-dot:focus {
  outline: none !important;
}

.product-color-dot:focus-visible {
  outline: 3px solid rgba(245, 196, 81, .65) !important;
  outline-offset: 3px !important;
}


/* =========================================================
   Compact round color dots final
   ========================================================= */

.product-color-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 10px 0 14px !important;
  min-height: 22px !important;
}

.product-color-dot {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  aspect-ratio: 1 / 1 !important;

  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;

  display: inline-block !important;
  appearance: none !important;
  -webkit-appearance: none !important;

  border: 1.5px solid rgba(17, 24, 39, .22) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  line-height: 1 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.product-color-dot:hover {
  transform: scale(1.08) !important;
  border-color: #111827 !important;
  box-shadow: none !important;
}

.product-color-dot.active {
  border: 2px solid #111827 !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px rgba(17, 24, 39, .16) !important;
}

.product-color-dot:focus {
  outline: none !important;
}

.product-color-dot:focus-visible {
  outline: 2px solid rgba(245, 196, 81, .75) !important;
  outline-offset: 3px !important;
}

@media (max-width: 768px) {
  .product-color-dots {
    gap: 7px !important;
    margin: 8px 0 12px !important;
    min-height: 20px !important;
  }

  .product-color-dot {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
  }
}


/* =========================================================
   FORCE COMPACT ROUND COLOR DOTS — FINAL OVERRIDE
   ========================================================= */

.product-card .product-color-dots,
.premium-card .product-color-dots,
.product-content .product-color-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 10px auto 16px !important;
  padding: 0 !important;
  min-height: 20px !important;
  width: 100% !important;
}

.product-card button.product-color-dot,
.product-card .product-color-dot,
.premium-card button.product-color-dot,
.premium-card .product-color-dot,
.product-content button.product-color-dot,
.product-content .product-color-dot {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;

  border-radius: 9999px !important;
  aspect-ratio: 1 / 1 !important;

  display: block !important;
  flex: 0 0 18px !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1.5px solid rgba(17, 24, 39, .22) !important;
  outline: none !important;
  box-shadow: none !important;

  line-height: 0 !important;
  font-size: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

.product-card button.product-color-dot.active,
.product-card .product-color-dot.active,
.premium-card button.product-color-dot.active,
.premium-card .product-color-dot.active {
  border: 2px solid #111827 !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(17,24,39,.18) !important;
}

.product-card button.product-color-dot:hover,
.product-card .product-color-dot:hover,
.premium-card button.product-color-dot:hover,
.premium-card .product-color-dot:hover {
  transform: scale(1.08) !important;
  border-color: #111827 !important;
}

@media (max-width: 768px) {
  .product-card .product-color-dots,
  .premium-card .product-color-dots,
  .product-content .product-color-dots {
    gap: 7px !important;
    margin: 8px auto 14px !important;
    min-height: 18px !important;
  }

  .product-card button.product-color-dot,
  .product-card .product-color-dot,
  .premium-card button.product-color-dot,
  .premium-card .product-color-dot,
  .product-content button.product-color-dot,
  .product-content .product-color-dot {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-basis: 16px !important;
  }
}


/* =========================================================
   Day products color switch fixes
   ========================================================= */

.es-day-card h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.es-day-card .product-color-dots {
  margin: 8px auto 12px !important;
}

.es-day-card .save-info {
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #16a34a !important;
  margin-top: 4px !important;
}


/* =========================================================
   Day product badge/border everywhere
   ========================================================= */

.product-card.is-day-product,
.premium-card.is-day-product,
.es-day-card.is-day-product {
  position: relative !important;
  border: 2px solid rgba(245, 196, 81, .95) !important;
  box-shadow:
    0 0 0 1px rgba(245, 196, 81, .22),
    0 18px 46px rgba(245, 196, 81, .16),
    0 18px 46px rgba(15, 23, 42, .08) !important;
}

.product-card.is-day-product::before,
.premium-card.is-day-product::before,
.es-day-card.is-day-product::before {
  content: "Товар дня" !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 8 !important;

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

  min-height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;

  background: linear-gradient(135deg, #f5c451, #b8862b) !important;
  color: #111827 !important;

  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;

  box-shadow: 0 8px 20px rgba(245, 196, 81, .35) !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .product-card.is-day-product::before,
  .premium-card.is-day-product::before,
  .es-day-card.is-day-product::before {
    top: 9px !important;
    left: 9px !important;
    min-height: 23px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }
}


/* =========================================================
   DAY PRODUCT BORDER/BADGE FINAL
   ========================================================= */

.product-card.is-day-product,
.premium-card.is-day-product,
.es-day-card.is-day-product {
  position: relative !important;
  border: 2px solid rgba(245, 196, 81, .95) !important;
  box-shadow:
    0 0 0 1px rgba(245, 196, 81, .22),
    0 18px 46px rgba(245, 196, 81, .16),
    0 18px 46px rgba(15, 23, 42, .08) !important;
}

.product-card.is-day-product::before,
.premium-card.is-day-product::before,
.es-day-card.is-day-product::before {
  content: "Товар дня" !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 20 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f5c451, #b8862b) !important;
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 20px rgba(245, 196, 81, .35) !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .product-card.is-day-product::before,
  .premium-card.is-day-product::before,
  .es-day-card.is-day-product::before {
    top: 9px !important;
    left: 9px !important;
    min-height: 23px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }
}


/* =========================================================
   FOOTER HELP LINKS — ONE LINK PER ROW
   ========================================================= */

.site-footer .footer-help-block {
  min-width: 0 !important;
}

.site-footer .footer-help-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.site-footer .footer-help-links .footer-link {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  color: rgba(255,255,255,0.84) !important;
  text-decoration: none !important;
}

@media (max-width: 1100px) {
  .site-footer .footer-help-links {
    align-items: center !important;
  }
}
