:root {
  --bg-main: #09090b;
  --bg-card: #141417;
  --bg-hover: #222227;
  --text-main: #f4f4f5;
  --text-muted: #94949e;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --danger: #ef4444;
  --success: #10b981;
  --border: #27272a;
  --radius: 14px;
}

/* Светлая тема */
body.light-theme {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background-color: var(--bg-main);
  z-index: 90;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--bg-hover);
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 42px 10px 16px;
  border-radius: 999px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cart-btn {
  background-color: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.cart-btn:hover {
  background-color: var(--accent-hover);
}

.cart-btn.secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.cart-badge {
  background: #fff;
  color: var(--accent);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 800;
}

/* =======================================================
   СТИЛИ СТРАНИЦЫ КОРЗИНЫ (cart.html)
======================================================= */
.cart-page {
  padding: 40px 20px 80px 20px;
  flex: 1;
}

.cart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.clear-cart-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.clear-cart-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--bg-hover);
  border-radius: 10px;
  padding: 8px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition:  background 0.2s;
}

.qty-btn:hover {
  background: var(--border);
}

.qty-val {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px;
  transition: transform 0.2s;
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

.cart-summary {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.cart-summary h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 800;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.summary-line.total-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.promo-box {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px 0;
}

.promo-box input {
  flex: 1;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
}

.promo-box input:focus {
  border-color: var(--accent);
}

.promo-box button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.promo-box button:hover {
  background: var(--accent-hover);
}

.promo-message {
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 18px;
}

.checkout-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
}

.checkout-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 0 15px var(--accent-glow);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Модальное окно оформления заказа */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.checkout-modal-card {
  max-width: 480px;
  padding: 32px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input, .form-group select {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
}

.form-group input:focus {
  border-color: var(--accent);
}

.checkout-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 20px 0;
}

.checkout-summary-box strong {
  font-size: 1.2rem;
  color: var(--accent);
}

/* =======================================================
   СТИЛИ ДЛЯ КАТАЛОГА И КАРТОЧЕК С ФОТО-СЛАЙДЕРАМИ
======================================================= */
.banner-section { margin: 24px 0 36px 0; }
.slider-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--border);
}
.slider-track { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.95) 10%, rgba(9, 9, 11, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}
.slide-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 10px;
}
.slide-overlay h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 6px; color: #fff; }
.slide-overlay p { color: #d4d4d8; font-size: 1.05rem; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.prev-btn { left: 16px; }
.next-btn { right: 16px; }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.dot.active { background: var(--accent); width: 24px; border-radius: 999px; }

.controls-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.nav-filters { display: flex; gap: 8px; }
.filter-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sort-box { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.9rem; }
.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius);
  outline: none;
}

.main-content { flex: 1; padding-bottom: 60px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-img-box-wrapper {
  position: relative;
  width: 100%;
}
.product-img-box {
  width: 100%;
  height: 230px;
  background-color: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
}
.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

.card-slider-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}
.card-arrow-btn {
  pointer-events: all;
  background: rgba(18, 18, 22, 0.75);
  border: 1px solid var(--border);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.card-arrow-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.card-img-counter {
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--text-main);
  pointer-events: none;
}

.product-info { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }
.product-cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  text-decoration: none;
}
.product-title:hover { color: var(--accent); }
.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.product-price { font-size: 1.25rem; font-weight: 800; }
.add-btn {
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.add-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Страница товара (product.html) */
.product-page-container { padding: 40px 20px 80px 20px; }
.breadcrumb-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-back:hover { color: var(--accent); }
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.gallery-container { display: flex; flex-direction: column; gap: 16px; }
.main-image-box {
  width: 100%;
  height: 380px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.main-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumbnails-row { display: flex; gap: 12px; }
.thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--bg-hover);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-item.active { border-color: var(--accent); }
.thumb-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info-column { display: flex; flex-direction: column; }
.detail-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.detail-price { font-size: 2rem; font-weight: 900; color: var(--accent); margin-bottom: 24px; }
.detail-desc-block { margin-bottom: 28px; }
.detail-desc-block h3 { font-size: 1.1rem; margin-bottom: 8px; }
.detail-desc-block p { color: var(--text-muted); line-height: 1.6; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 10px 0; font-size: 0.95rem; }
.specs-table td:first-child { color: var(--text-muted); width: 40%; }
.specs-table td:last-child { font-weight: 600; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 2000;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon {
  background: var(--success);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: auto;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .nav-container { flex-direction: column; align-items: stretch; }
}

/* ===================================================================== */
/* ===== 3.0: НОВЫЕ СТИЛИ (избранное, заказы, успех, похожие) ========== */
/* ===================================================================== */

/* --- Шапка: бейдж избранного --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fav-badge { margin-left: 4px; }

/* --- Сердечко на карточке товара --- */
.product-img-box-wrapper { position: relative; }
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 20, 23, 0.75);
  backdrop-filter: blur(4px);
  color: #7a7a85;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.2s, background 0.2s;
}
.fav-btn:hover {
  transform: scale(1.12);
  color: #fff;
}
.fav-btn.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.16);
}
.light-theme .fav-btn { background: rgba(255, 255, 255, 0.85); color: #94a3b8; }
.light-theme .fav-btn.active { color: #ef4444; background: rgba(239, 68, 68, 0.12); }

/* --- Кнопка «В избранное» на странице товара --- */
.detail-actions-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.fav-detail-btn {
  flex: 0 0 auto;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.fav-detail-btn:hover { color: #ef4444; border-color: #ef4444; }
.fav-detail-btn.active { color: #ef4444; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.08); }

/* --- Похожие товары --- */
.related-section { margin-top: 52px; }

/* --- Поле «Комментарий к заказу» --- */
.form-group textarea {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}
.form-group textarea:focus { border-color: var(--accent); }

/* --- Страница «Мои заказы» --- */
.orders-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.orders-search-box input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 10px;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
}
.orders-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.orders-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.order-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.order-number {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.order-date { color: var(--text-muted); font-size: 0.85rem; }
.order-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-hover);
  border-radius: 10px;
  padding: 10px 14px;
}
.order-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-card);
  flex: 0 0 auto;
}
.order-item-title { flex: 1; font-weight: 600; font-size: 0.92rem; }
.order-item-count { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.order-item-sum { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.order-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.order-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--text-muted);
}
.order-total-row .sum {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

/* --- Страница «Заказ принят» --- */
.success-wrap {
  max-width: 560px;
  margin: 56px auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
}
.success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 42px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-number {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 14px 0 6px;
}
.success-sum {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.success-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 28px;
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Адаптив для новых блоков --- */
@media (max-width: 640px) {
  .detail-actions-row { flex-direction: column; }
  .orders-search-box { flex-direction: column; }
  .order-item { flex-wrap: wrap; }
  .order-item-sum { margin-left: auto; }
  .header-actions { flex-wrap: wrap; }
}

/* BOOST MARKET — refined storefront */
:root {
  --bg-main: #0c1019;
  --bg-card: #141b28;
  --bg-hover: #1c2636;
  --text-main: #f2f5fc;
  --text-muted: #9aa9be;
  --border: #263146;
  --accent: #4c8dff;
  --accent-hover: #3478f6;
  --radius: 20px;
}
body { background-image: radial-gradient(ellipse at 50% 0, rgba(54, 101, 189, .1), transparent 55%); }
body.light-theme { --bg-main: #f4f6fa; --bg-hover: #edf1f7; --text-muted: #596b82; --border: #dce3ee; --accent: #2765d8; --accent-hover: #2055b9; }
.container { width: 100%; max-width: 1320px; padding-left: 32px; padding-right: 32px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
button { font: inherit; cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .45; }
.header { background: color-mix(in srgb, var(--bg-main) 90%, transparent); backdrop-filter: blur(20px); padding: 18px 0; }
.nav-container { gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 1.18rem; letter-spacing: -.7px; }
.logo > .icon { width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: white; background: var(--accent); margin-right: 2px; }
.logo span { letter-spacing: -.7px; }
.header-actions { gap: 8px; flex-shrink: 0; }
.cart-btn, .theme-toggle-btn, .filter-btn, .add-btn, .fav-detail-btn, .clear-cart-btn, .checkout-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border-radius: 12px; }
.cart-btn { border: 1px solid transparent; font-size: .82rem; padding: 10px 14px; white-space: nowrap; }
.theme-toggle-btn { width: 44px; border-radius: 12px; }
.cart-badge { font-size: .68rem; min-width: 20px; text-align: center; }
.language-switch { display: inline-flex; gap: 3px; padding: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.language-switch button { min-width: 34px; min-height: 34px; border: 0; border-radius: 8px; color: var(--text-muted); background: transparent; font-size: .72rem; font-weight: 700; }
.language-switch button.active { background: var(--accent); color: white; box-shadow: 0 2px 8px var(--accent-glow); }
.search-box { min-width: 120px; }
.search-box input { min-height: 44px; border-radius: 12px; font-size: .82rem; }
.search-icon { color: var(--text-muted); }
.intro { padding-top: 44px; padding-bottom: 8px; }
.eyebrow { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.intro h1 { font-size: clamp(1.8rem, 3.3vw, 3rem); max-width: 850px; line-height: 1.15; letter-spacing: -1.5px; }
.intro-note { margin-top: 14px; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.banner-section { margin: 28px 0 48px; }
.slider-wrapper { height: 360px; border-radius: 24px; background: #091122; }
.slide-overlay { padding: 40px 72px 50px; justify-content: center; background: linear-gradient(90deg, rgba(8, 15, 30, .96), rgba(8, 15, 30, .65) 52%, rgba(8, 15, 30, .12)); }
.slide img { object-position: 70% center; }
.slide-tag { border-radius: 7px; font-size: .65rem; letter-spacing: 1px; padding: 7px 10px; }
.slide-overlay h2 { max-width: 600px; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -1px; line-height: 1.13; margin: 10px 0 14px; }
.slide-overlay p { max-width: 440px; font-size: .93rem; line-height: 1.6; }
.slider-arrow { width: 36px; height: 36px; background: rgba(255, 255, 255, .1); border-color: rgba(255,255,255,.18); }
.dot { height: 6px; width: 6px; border: 0; padding: 0; }
.dot.active { width: 24px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.catalog-heading .eyebrow { margin-bottom: 7px; }
.catalog-heading h2 { font-size: 1.7rem; letter-spacing: -.8px; }
.catalog-heading > p { color: var(--text-muted); font-size: .85rem; padding-bottom: 3px; }
.controls-panel { padding-bottom: 24px; border-bottom: 1px solid var(--border); gap: 14px; }
.nav-filters { flex-wrap: wrap; gap: 7px; }
.filter-btn { font-size: .8rem; padding: 9px 13px; }
.filter-btn .icon { width: 16px; height: 16px; }
.sort-box { font-size: .78rem; }
.sort-select { min-height: 44px; border-radius: 12px; font-size: .8rem; max-width: 230px; }
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { min-width: 0; box-shadow: 0 4px 12px rgba(0,0,0,.035); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.12); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.product-img-box { height: 238px; background: #f5f6f8; padding: 26px; }
.product-img-box img { mix-blend-mode: multiply; }
.product-info { padding: 20px; }
.product-cat { font-size: .62rem; letter-spacing: 1.4px; margin-bottom: 10px; }
.product-title { font-size: 1rem; line-height: 1.4; letter-spacing: -.3px; }
.product-desc { font-size: .78rem; line-height: 1.7; }
.product-bottom { flex-wrap: wrap; gap: 12px; }
.product-price { font-size: 1.15rem; letter-spacing: -.5px; white-space: nowrap; }
.add-btn { font-size: .76rem; padding: 9px 12px; background: color-mix(in srgb, var(--accent) 12%, var(--bg-card)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
.add-btn .icon { width: 17px; height: 17px; }
.card-img-counter { color: #fff; font-size: .62rem; }
.fav-btn { background: rgba(255,255,255,.92); color: #657189; border: 1px solid #dce3ee; }
.fav-btn:hover { color: #ed5473; }
.fav-btn.active .icon, .fav-detail-btn.active .icon { fill: currentColor; }
.cart-page, .product-page-container { padding-top: 44px; }
.cart-summary { border-radius: 20px; min-width: 0; }
.promo-box input { min-width: 0; width: 100%; }
.gallery-container, .product-info-column { min-width: 0; }
.cart-item { flex-wrap: wrap; }
.detail-actions-row { flex-direction: row; flex-wrap: wrap; }
.detail-actions-row .checkout-btn { flex: 1 1 180px; }
.fav-detail-btn { flex: 1 1 150px; }
.breadcrumb-back { display: inline-flex; align-items: center; gap: 8px; }
.main-image-box { background: #f5f6f8; }
.main-image-box img { mix-blend-mode: multiply; }
.thumbnails-row { overflow-x: auto; padding-bottom: 8px; }
.thumb-item { flex: 0 0 64px; }
.form-group input, .form-group select, .form-group textarea { min-height: 44px; }
.modal-overlay { overflow-y: auto; padding: 24px; }
.checkout-modal-card { max-height: calc(100dvh - 48px); overflow-y: auto; }
.success-icon > .icon { width: 38px; height: 38px; }
.footer { margin-top: auto; padding: 32px 0; background: var(--bg-card); }
.footer-brand h3 { margin-bottom: 8px; }
.footer-brand p, .copyright, .footer-content > p { font-size: .75rem; color: var(--text-muted); line-height: 1.7; }
.toast { max-width: calc(100vw - 32px); }
.toast-icon > .icon { width: 14px; height: 14px; }
@media (max-width: 1180px) {
  .nav-container { gap: 14px; flex-wrap: wrap; }
  .search-box { max-width: none; flex-basis: 200px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-container { flex-direction: row; align-items: center; }
  .header-actions { margin-left: auto; flex-wrap: wrap; }
  .search-box { order: 3; flex-basis: 100%; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .intro { padding-top: 32px; }
  .intro h1 { letter-spacing: -.8px; }
  .slider-wrapper { height: 310px; }
  .slide-overlay { padding: 30px 54px; }
  .catalog-heading > p { display: none; }
  .product-detail-layout { padding: 24px; gap: 28px; }
  .product-img-box { height: 220px; }
  .footer-content { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header { position: relative; padding: 14px 0; }
  .logo { font-size: 1rem; }
  .header-actions { width: 100%; justify-content: space-between; gap: 5px; }
  .header-actions .cart-btn { padding: 9px 10px; font-size: .73rem; }
  .search-box { order: 0; }
  .intro h1 { font-size: 1.9rem; }
  .intro-note { font-size: .85rem; }
  .banner-section { margin-top: 22px; margin-bottom: 32px; }
  .slider-wrapper { height: 300px; border-radius: 18px; }
  .slide-overlay { padding: 30px 46px; }
  .slide-overlay h2 { font-size: 1.65rem; }
  .slide-overlay p { font-size: .78rem; }
  .prev-btn { left: 7px; }
  .next-btn { right: 7px; }
  .slider-arrow { width: 30px; height: 34px; }
  .nav-filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 3px 2px 8px; }
  .filter-btn { flex-shrink: 0; font-size: .74rem; padding: 8px 10px; }
  .sort-box { width: 100%; justify-content: space-between; }
  .sort-select { max-width: 66%; }
  .products-grid { gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-img-box { height: 170px; padding: 18px; }
  .product-info { padding: 12px; }
  .product-title { font-size: .82rem; }
  .product-desc { font-size: .7rem; line-height: 1.5; }
  .product-price { font-size: 1rem; }
  .product-bottom { gap: 9px; }
  .add-btn { width: 100%; }
  .fav-btn { width: 32px; height: 32px; top: 8px; right: 8px; }
  .fav-btn .icon { width: 17px; height: 17px; }
  .cart-layout { gap: 20px; }
  .cart-item { padding: 14px; gap: 12px; }
  .cart-item-info { min-width: 130px; }
  .cart-item img { width: 58px; height: 58px; }
  .cart-header-row { gap: 12px; align-items: flex-start; }
  .section-title { font-size: 1.5rem; }
  .clear-cart-btn { font-size: .7rem; padding: 8px; }
  .orders-search-box { flex-direction: column; }
  .orders-search-box input { width: 100%; min-width: 0; }
  .order-card { padding: 16px; }
  .order-item { flex-wrap: wrap; }
  .order-meta { overflow-wrap: anywhere; }
  .product-detail-layout { padding: 16px; }
  .main-image-box { height: 270px; }
  .detail-title, .detail-price { font-size: 1.6rem; }
  .specs-table td { font-size: .8rem; overflow-wrap: anywhere; }
  .checkout-modal-card { padding: 28px 20px; }
  .success-actions { flex-wrap: wrap; }
  .toast { right: 16px; bottom: 16px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Product artwork keeps every banner independent of text embedded in images. */
.banner-art { position: absolute; right: 4%; top: 0; width: 43%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; }
.banner-art .art-orbit { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, #3269bd 0%, #18365d 55%, transparent 72%); opacity: .65; }
.banner-art img { position: relative; width: 46%; height: 72%; padding: 18px; object-fit: contain; object-position: center; background: #f2f5fa; border: 1px solid #c6d9f1; border-radius: 24px; transform: rotate(-9deg) translateY(-8px); box-shadow: 0 24px 40px #0005; }
.banner-art img:last-child { transform: rotate(9deg) translateY(15px); }
.slide-overlay { background: linear-gradient(90deg, #091122 0%, #091122eb 38%, #09112230 68%, transparent); }
@media (max-width: 860px) { .banner-art { right: -2%; width: 48%; gap: 8px; } .banner-art img { padding: 12px; } .slide-overlay { background: linear-gradient(90deg, #091122 0%, #091122df 38%, #09112230); } }
@media (max-width: 540px) { .banner-art { right: -10%; width: 76%; opacity: .55; } .banner-art img { height: 65%; padding: 10px; border-radius: 18px; } .slide-overlay { background: linear-gradient(90deg, #091122f5, #091122b0 60%, #09112260); } }

@media (max-width: 540px) {
  .header-actions .action-label, #cartHeaderBtn > span:not(.cart-badge) { display: none; }
  .header-actions .cart-btn { padding-left: 8px; padding-right: 8px; }
  .header-actions a:has(.action-label) { width: 44px; padding: 0; }
  .header-actions .fav-badge { margin-left: 0; }
}

/* Expanded bilingual catalog */
.catalog-extra{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.catalog-extra #resultCount{margin-left:auto;color:var(--text-muted)}.price-note{font-size:12px;color:var(--text-muted);line-height:1.6;margin:12px 0 22px}.card-meta{display:flex;justify-content:space-between;align-items:center;gap:6px}.segment-badge{font-size:10px;border:1px solid var(--border);padding:4px 7px;border-radius:30px}.segment-badge.premium{color:#b69aff}.segment-badge.budget{color:#58bba0}.product-config{font-size:12px;color:var(--text-muted);margin:6px 0}.card-specs{padding:0;list-style:none;font-size:12px;line-height:1.8;color:var(--text-muted);margin:8px 0 16px}.product-sources{font-size:13px;margin:18px 0}.product-sources a{color:var(--accent,#729aff)}.add-btn:disabled,.checkout-btn:disabled{opacity:.5;cursor:default}.product-bottom{flex-wrap:wrap;gap:10px}
