/* ============================================================
   СВЕТЛАЯ ТЕМА — по умолчанию
   ============================================================ */
:root {
  --bg-main:    #f7f6f1;
  --bg-card:    #ffffff;
  --bg-card2:   #f0efe9;
  --bg-navbar:  #ffffff;
  --gold:       #a07828;
  --gold-light: #c49030;
  --gold-dark:  #7a5a18;
  --text:       #1a1a2e;
  --text-muted: #5a5a78;
  --text-dim:   #9898b0;
  --border:     rgba(0, 0, 0, 0.10);
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-gold:0 4px 20px rgba(160,120,40,0.20);
  --radius:     14px;
  --radius-sm:  8px;
  --trans:      0.22s ease;

  /* Категорийные градиенты — светлая тема */
  --cat-rel:   linear-gradient(135deg, #f0e6ff 0%, #e8d0b0 100%);
  --cat-wood:  linear-gradient(135deg, #f8edd8 0%, #dfbe8a 100%);
  --cat-amb:   linear-gradient(135deg, #fffae0 0%, #f5cc50 100%);
  --cat-stone: linear-gradient(135deg, #eee8ff 0%, #d0b8f0 100%);
  --cat-coral: linear-gradient(135deg, #fff0f0 0%, #f8a8a8 100%);
  --cat-cryst: linear-gradient(135deg, #e8f2ff 0%, #b0ccf0 100%);
  --cat-metal: linear-gradient(135deg, #f2f2f8 0%, #c8c8dc 100%);
  --cat-anti:  linear-gradient(135deg, #e8fdf2 0%, #98dab8 100%);
  --cat-coll:  linear-gradient(135deg, #fdf4e0 0%, #e0b860 100%);
  --cat-lux:   linear-gradient(135deg, #fffae8 0%, #f0cc50 100%);
}

/* ============================================================
   ТЁМНАЯ ТЕМА
   ============================================================ */
[data-theme="dark"] {
  --bg-main:    #0d0d1a;
  --bg-card:    #161625;
  --bg-card2:   #1e1e30;
  --bg-navbar:  #0a0a16;
  --gold:       #d4a843;
  --gold-light: #e8c063;
  --gold-dark:  #a07828;
  --text:       #e8e8f4;
  --text-muted: #7878a0;
  --text-dim:   #4a4a6a;
  --border:     rgba(212, 168, 67, 0.15);
  --shadow:     0 4px 24px rgba(0,0,0,0.40);
  --shadow-gold:0 4px 20px rgba(212,168,67,0.25);

  /* Категорийные градиенты — тёмная тема */
  --cat-rel:   linear-gradient(135deg, #2d1b4e 0%, #7c4f1a 100%);
  --cat-wood:  linear-gradient(135deg, #1a2e1a 0%, #5c3d1e 100%);
  --cat-amb:   linear-gradient(135deg, #3d2a00 0%, #a06a00 100%);
  --cat-stone: linear-gradient(135deg, #1a1a3d 0%, #3d1a4e 100%);
  --cat-coral: linear-gradient(135deg, #3d1a1a 0%, #8c2a2a 100%);
  --cat-cryst: linear-gradient(135deg, #1a2a3d 0%, #2a3d5c 100%);
  --cat-metal: linear-gradient(135deg, #1e1e2e 0%, #3d3d4e 100%);
  --cat-anti:  linear-gradient(135deg, #1a3d2a 0%, #2a4e3a 100%);
  --cat-coll:  linear-gradient(135deg, #2a1a00 0%, #5c3d00 100%);
  --cat-lux:   linear-gradient(135deg, #0d0d1a 0%, #3d2a00 100%);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { outline: none; }
:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--gold); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar { padding: 12px 0; }

.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { font-size: 1.6rem; color: var(--gold); }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); letter-spacing: 0.02em;
}

/* Поиск */
.search-wrapper { flex: 1; max-width: 480px; }
.search-box { position: relative; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.95rem;
}
.search-input {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  padding: 10px 40px 10px 40px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans), background 0.3s;
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(160,120,40,0.12); }
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem;
}

/* Подсказки поиска */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15), 0 0 0 1px rgba(160,120,40,0.08);
  z-index: 1060;
  overflow: hidden;
  animation: suggFadeIn 0.14s ease;
}
@keyframes suggFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 5px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
}
.suggestion-header--sep {
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.suggestion-clear-all {
  background: none; border: none; padding: 0;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--gold); cursor: pointer;
  transition: color var(--trans);
}
.suggestion-clear-all:hover { color: var(--gold-dark); text-decoration: underline; }

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--trans), border-left-color var(--trans);
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
}
.search-suggestion-item:last-of-type { border-bottom: none; }
.search-suggestion-item:hover {
  background: var(--bg-card2);
  border-left-color: var(--gold);
}

/* Иконка-круг */
.suggestion-icon-wrap {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--trans), background var(--trans);
}
.search-suggestion-item:hover .suggestion-icon-wrap {
  border-color: var(--gold-light);
  background: rgba(160,120,40,0.08);
}
/* История — отдельный цвет круга */
.suggestion-icon-wrap--history {
  background: rgba(160,120,40,0.07);
  border-color: rgba(160,120,40,0.25);
}
.search-suggestion-item:hover .suggestion-icon-wrap--history {
  background: rgba(160,120,40,0.15);
  border-color: var(--gold);
}

.suggestion-icon { color: var(--text-muted); font-size: 0.8rem; }
.search-suggestion-item--history .suggestion-icon { color: var(--gold-dark); }
.search-suggestion-item:hover .suggestion-icon { color: var(--gold); }

.suggestion-text { flex: 1; min-width: 0; }
.suggestion-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-meta {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.suggestion-price {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Кнопка удаления элемента истории */
.suggestion-remove {
  background: none; border: none; padding: 2px 4px;
  font-size: 0.9rem; color: var(--text-dim); cursor: pointer; flex-shrink: 0;
  border-radius: 4px;
  transition: color var(--trans), background var(--trans);
  line-height: 1;
}
.suggestion-remove:hover { color: var(--text); background: var(--border); }

.search-suggestion-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--gold);
  cursor: pointer;
  transition: background var(--trans);
  border-top: 1.5px solid var(--border);
  background: var(--bg-card2);
}
.search-suggestion-all:hover { background: rgba(160,120,40,0.07); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 16px; }

.nav-action-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--trans);
  text-decoration: none;
  cursor: pointer;
}
.nav-action-btn:hover, .nav-action-btn.active {
  background: rgba(160,120,40,0.10);
  border-color: var(--gold);
  color: var(--gold);
}
[data-theme="dark"] .nav-action-btn:hover,
[data-theme="dark"] .nav-action-btn.active {
  background: rgba(212,168,67,0.12);
}

.cart-btn { background: rgba(160,120,40,0.08) !important; border-color: var(--gold-dark) !important; }
[data-theme="dark"] .cart-btn { background: rgba(212,168,67,0.10) !important; }

/* Кнопка темы */
.theme-btn { font-size: 1rem; }

.badge-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
[data-theme="light"] .badge-count { color: #fff; }

.navbar-toggler { background: none; border: 1px solid var(--border); padding: 6px 10px; border-radius: var(--radius-sm); }
.navbar-toggler-icon-custom { color: var(--text); }

/* Category bar */
.category-bar {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  overflow-x: auto;
}
.category-links { display: flex; gap: 4px; white-space: nowrap; padding: 2px 0; }
.cat-link {
  color: var(--text-muted); font-size: 0.82rem;
  padding: 5px 12px; border-radius: 20px;
  transition: all var(--trans); font-weight: 500;
}
.cat-link:hover, .cat-link.active {
  background: rgba(160,120,40,0.12);
  color: var(--gold);
}
.cat-link--quiz {
  color: var(--gold); font-weight: 600;
  background: rgba(160,120,40,0.08);
  border: 1px solid rgba(160,120,40,0.20);
}
[data-theme="dark"] .cat-link--quiz {
  background: rgba(212,168,67,0.08);
  border-color: rgba(212,168,67,0.20);
}
[data-theme="dark"] .cat-link:hover,
[data-theme="dark"] .cat-link.active {
  background: rgba(212,168,67,0.15);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative; min-height: 75vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(160,120,40,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(100,50,200,0.04) 0%, transparent 60%),
    var(--bg-main);
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(212,168,67,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(100,50,200,0.06) 0%, transparent 60%),
    var(--bg-main);
}

.hero-content { position: relative; z-index: 1; padding: 80px 0; text-align: center; }

.hero-badge {
  display: inline-block;
  background: rgba(160,120,40,0.10);
  border: 1px solid rgba(160,120,40,0.30);
  color: var(--gold); padding: 6px 18px; border-radius: 30px;
  font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px;
}
[data-theme="dark"] .hero-badge {
  background: rgba(212,168,67,0.10);
  border-color: rgba(212,168,67,0.30);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text); margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; justify-content: center; }

.hero-stats {
  display: flex; gap: 48px; padding-top: 32px;
  border-top: 1px solid var(--border); max-width: fit-content;
  margin: 0 auto; justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--gold);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  background: var(--gold); color: #fff;
  border: none; border-radius: 30px;
  padding: 12px 28px; font-weight: 600; font-size: 0.9rem;
  transition: all var(--trans); cursor: pointer;
}
[data-theme="dark"] .btn-gold { color: #0d0d1a; }
.btn-gold:hover {
  background: var(--gold-light); color: #fff;
  box-shadow: var(--shadow-gold); transform: translateY(-1px);
}
[data-theme="dark"] .btn-gold:hover { color: #000; }
.btn-gold:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-outline-gold {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 30px;
  padding: 11px 28px; font-weight: 600; font-size: 0.9rem;
  transition: all var(--trans); cursor: pointer;
}
.btn-outline-gold:hover {
  background: rgba(160,120,40,0.10); color: var(--gold-light); transform: translateY(-1px);
}
[data-theme="dark"] .btn-outline-gold:hover { background: rgba(212,168,67,0.10); }

.btn-reset {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; font-size: 0.85rem; cursor: pointer; transition: all var(--trans);
}
.btn-reset:hover { border-color: var(--gold); color: var(--gold); }

/* Icon buttons */
.btn-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all var(--trans); flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }
.btn-icon.active { background: rgba(160,120,40,0.12); border-color: var(--gold); color: var(--gold); }
[data-theme="dark"] .btn-icon.active { background: rgba(212,168,67,0.15); }
.btn-icon:disabled { opacity: 0.3; cursor: not-allowed; }
.fav-btn.active { color: #e74c3c !important; border-color: #e74c3c !important; background: rgba(231,76,60,0.08) !important; }
.btn-icon.lg { width: 46px; height: 46px; font-size: 1.2rem; }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.cat-card {
  display: flex; flex-direction: column; align-items: stretch;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: all var(--trans); text-decoration: none; overflow: hidden; cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); border-color: rgba(160,120,40,0.4); }
[data-theme="dark"] .cat-card:hover { border-color: rgba(212,168,67,0.4); }

/* Зона изображения — сейчас показывает градиент+иконку, потом заменим на фото через background-image */
.cat-card__img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative; width: 100%;
}
.cat-card__icon { font-size: 2rem; position: relative; z-index: 1; }
.cat-card__name {
  display: block; padding: 10px 12px;
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* Цвета категорий */
.cat-card.cat-rel, .product-card__cover.cat-rel, .product-detail__cover.cat-rel, .cart-item__cover.cat-rel { background: var(--cat-rel); }
.cat-card.cat-wood, .product-card__cover.cat-wood, .product-detail__cover.cat-wood, .cart-item__cover.cat-wood { background: var(--cat-wood); }
.cat-card.cat-amb, .product-card__cover.cat-amb, .product-detail__cover.cat-amb, .cart-item__cover.cat-amb { background: var(--cat-amb); }
.cat-card.cat-stone, .product-card__cover.cat-stone, .product-detail__cover.cat-stone, .cart-item__cover.cat-stone { background: var(--cat-stone); }
.cat-card.cat-coral, .product-card__cover.cat-coral, .product-detail__cover.cat-coral, .cart-item__cover.cat-coral { background: var(--cat-coral); }
.cat-card.cat-cryst, .product-card__cover.cat-cryst, .product-detail__cover.cat-cryst, .cart-item__cover.cat-cryst { background: var(--cat-cryst); }
.cat-card.cat-metal, .product-card__cover.cat-metal, .product-detail__cover.cat-metal, .cart-item__cover.cat-metal { background: var(--cat-metal); }
.cat-card.cat-anti, .product-card__cover.cat-anti, .product-detail__cover.cat-anti, .cart-item__cover.cat-anti { background: var(--cat-anti); }
.cat-card.cat-coll, .product-card__cover.cat-coll, .product-detail__cover.cat-coll, .cart-item__cover.cat-coll { background: var(--cat-coll); }
.cat-card.cat-lux, .product-card__cover.cat-lux, .product-detail__cover.cat-lux, .cart-item__cover.cat-lux { background: var(--cat-lux); }
.cat-card.cat-default, .product-card__cover.cat-default { background: var(--bg-card2); }

/* Иконки категорий — светлая тема (тёмные тона на светлом фоне) */
.cat-card.cat-rel   .cat-card__icon { color: #6b28b8; }
.cat-card.cat-wood  .cat-card__icon { color: #7a4a18; }
.cat-card.cat-amb   .cat-card__icon { color: #a87800; }
.cat-card.cat-stone .cat-card__icon { color: #5028a0; }
.cat-card.cat-coral .cat-card__icon { color: #c03040; }
.cat-card.cat-cryst .cat-card__icon { color: #2050a0; }
.cat-card.cat-metal .cat-card__icon { color: #4848a0; }
.cat-card.cat-anti  .cat-card__icon { color: #247850; }
.cat-card.cat-coll  .cat-card__icon { color: #8a5c18; }
.cat-card.cat-lux   .cat-card__icon { color: #8a6a10; }

/* Иконки категорий — тёмная тема (яркие тона на тёмном фоне) */
[data-theme="dark"] .cat-card.cat-rel   .cat-card__icon { color: #d4a843; }
[data-theme="dark"] .cat-card.cat-wood  .cat-card__icon { color: #c8a060; }
[data-theme="dark"] .cat-card.cat-amb   .cat-card__icon { color: #f0a500; }
[data-theme="dark"] .cat-card.cat-stone .cat-card__icon { color: #9c6aff; }
[data-theme="dark"] .cat-card.cat-coral .cat-card__icon { color: #ff6a6a; }
[data-theme="dark"] .cat-card.cat-cryst .cat-card__icon { color: #6ab4ff; }
[data-theme="dark"] .cat-card.cat-metal .cat-card__icon { color: #b0b0c8; }
[data-theme="dark"] .cat-card.cat-anti  .cat-card__icon { color: #4ecb71; }
[data-theme="dark"] .cat-card.cat-coll  .cat-card__icon { color: #c89040; }
[data-theme="dark"] .cat-card.cat-lux   .cat-card__icon { color: #d4a843; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.products-grid--featured { grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: all var(--trans);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(160,120,40,0.2);
  border-color: rgba(160,120,40,0.3);
}
[data-theme="dark"] .product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,168,67,0.2);
  border-color: rgba(212,168,67,0.25);
}

.product-card__cover {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card__overlay {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), transparent);
}
[data-theme="dark"] .product-card__overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.50), transparent);
}
.product-card__category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(0,0,0,0.55); }
[data-theme="dark"] .product-card__category { color: rgba(255,255,255,0.75); }
.product-card__icon-wrap {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.60);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
}
[data-theme="dark"] .product-card__icon-wrap { background: rgba(255,255,255,0.10); }
.product-card__main-icon { font-size: 2rem; color: rgba(0,0,0,0.45); }
[data-theme="dark"] .product-card__main-icon { color: rgba(255,255,255,0.85); }
.product-card__fav-badge { position: absolute; top: 10px; right: 10px; color: #e74c3c; font-size: 0.9rem; }
.product-card__out-badge {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.65); color: rgba(255,255,255,0.7);
  font-size: 0.7rem; padding: 3px 10px; border-radius: 10px;
}

.product-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card__name {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__material { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.product-card__desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card__price { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--gold); }
.product-card__actions { display: flex; gap: 6px; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail__cover {
  border-radius: var(--radius); height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-detail__icon { font-size: 5rem; color: rgba(0,0,0,0.38); }
[data-theme="dark"] .product-detail__icon { color: rgba(255,255,255,0.75); }
.product-detail__cat-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.72); color: var(--gold-dark);
  padding: 5px 14px; border-radius: 20px; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
[data-theme="dark"] .product-detail__cat-badge {
  background: rgba(0,0,0,0.45); color: var(--gold);
}
.product-detail__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700; margin-bottom: 20px; line-height: 1.3;
}
.product-detail__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.meta-item {
  display: inline-flex; align-items: center;
  background: var(--bg-card2); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; color: var(--text-muted);
}
.meta-item.in-stock { color: #2d8a4e; border-color: rgba(45,138,78,0.3); background: rgba(45,138,78,0.07); }
.meta-item.out-stock { color: #c0392b; border-color: rgba(192,57,43,0.3); background: rgba(192,57,43,0.07); }
[data-theme="dark"] .meta-item.in-stock { color: #4ecb71; border-color: rgba(78,203,113,0.3); background: rgba(78,203,113,0.08); }
[data-theme="dark"] .meta-item.out-stock { color: #e74c3c; }
.product-detail__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.product-detail__price-row { margin-bottom: 24px; }
.product-detail__price { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.product-detail__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-add-cart { padding: 12px 28px; }

.quantity-control {
  display: inline-flex; align-items: center;
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: 30px; overflow: hidden;
}
.qty-btn {
  width: 38px; height: 38px; background: none; border: none;
  color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background var(--trans);
}
.qty-btn:hover { background: rgba(160,120,40,0.12); color: var(--gold); }
[data-theme="dark"] .qty-btn:hover { background: rgba(212,168,67,0.15); }
.qty-val { padding: 0 14px; font-weight: 600; min-width: 32px; text-align: center; }

.notification {
  margin-top: 16px; padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; animation: fadeIn 0.3s ease;
}
.notification--success { background: rgba(45,138,78,0.08); border: 1px solid rgba(45,138,78,0.3); color: #2d8a4e; }
.notification--info { background: rgba(160,120,40,0.08); border: 1px solid rgba(160,120,40,0.3); color: var(--gold); }
[data-theme="dark"] .notification--success { background: rgba(78,203,113,0.10); border-color: rgba(78,203,113,0.3); color: #4ecb71; }
[data-theme="dark"] .notification--info { background: rgba(212,168,67,0.10); border-color: rgba(212,168,67,0.3); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 28px; flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav span { color: var(--text); }
.breadcrumb-nav .bi-chevron-right { font-size: 0.7rem; }

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.catalog-header {
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 20px;
}
.catalog-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.catalog-subtitle { color: var(--text-muted); font-size: 0.88rem; }
.catalog-body { padding-top: 28px; padding-bottom: 48px; }

.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  position: sticky; top: 120px;
  box-shadow: var(--shadow);
}
.filter-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.filter-group { margin-bottom: 18px; }
.filter-label { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.filter-input, .filter-select {
  width: 100%;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 8px 12px; font-size: 0.85rem; outline: none; transition: border-color var(--trans);
}
.filter-input:focus, .filter-select:focus { border-color: var(--gold); }
.filter-select option { background: var(--bg-card); color: var(--text); }
.filter-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.88rem; color: var(--text-muted); }
.price-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-field { display: flex; flex-direction: column; gap: 3px; }
.price-field-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.price-field input { -moz-appearance: textfield; }
.price-field input::-webkit-outer-spin-button,
.price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-check input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }

.sort-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.sort-label { font-size: 0.82rem; color: var(--text-muted); }
.sort-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-btn {
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-muted); padding: 5px 14px; border-radius: 20px;
  font-size: 0.8rem; cursor: pointer; transition: all var(--trans);
}
.sort-btn:hover, .sort-btn.active { background: rgba(160,120,40,0.10); border-color: var(--gold); color: var(--gold); }
[data-theme="dark"] .sort-btn:hover,
[data-theme="dark"] .sort-btn.active { background: rgba(212,168,67,0.12); }

/* ============================================================
   CART PAGE
   ============================================================ */
.page-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin-bottom: 28px; }

.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.cart-item__cover {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: rgba(0,0,0,0.45); flex-shrink: 0;
  overflow: hidden; position: relative;
}
.cart-item__photo {
  width: 60px; height: 60px;
  object-fit: cover; object-position: center;
  display: block; flex-shrink: 0;
}
[data-theme="dark"] .cart-item__cover { color: rgba(255,255,255,0.80); }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.cart-item__material { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.cart-item__unit-price { display: block; font-size: 0.78rem; color: var(--text-dim); }
.cart-item__subtotal { font-weight: 700; color: var(--gold); font-size: 1rem; white-space: nowrap; }
.cart-item__remove { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 1rem; padding: 6px; opacity: 0.6; transition: opacity var(--trans); }
.cart-item__remove:hover { opacity: 1; }
[data-theme="dark"] .cart-item__remove { color: #e74c3c; }

.order-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: 120px; box-shadow: var(--shadow);
}
.summary-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; color: var(--text-muted); }
.summary-divider { border-color: var(--border); margin: 12px 0; }
.summary-total { font-size: 1rem; font-weight: 700; color: var(--text); }
.text-success { color: #2d8a4e !important; }
[data-theme="dark"] .text-success { color: #4ecb71 !important; }
.order-success { text-align: center; padding: 16px; color: #2d8a4e; }
[data-theme="dark"] .order-success { color: #4ecb71; }
.order-success i { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ============================================================
   ORDERS PAGE
   ============================================================ */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color var(--trans);
  box-shadow: var(--shadow);
}
.order-card.expanded { border-color: rgba(160,120,40,0.4); }
[data-theme="dark"] .order-card.expanded { border-color: rgba(212,168,67,0.3); }
.order-card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; cursor: pointer; transition: background var(--trans);
}
.order-card__header:hover { background: rgba(160,120,40,0.05); }
[data-theme="dark"] .order-card__header:hover { background: rgba(212,168,67,0.04); }
.order-card__info { display: flex; flex-direction: column; }
.order-id { font-weight: 700; font-size: 0.95rem; }
.order-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.order-card__right { display: flex; align-items: center; gap: 14px; }
.order-total { font-weight: 700; color: var(--gold); }
.expand-icon { color: var(--text-muted); font-size: 0.9rem; }

.order-status { padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-pending  { background: rgba(160,120,40,0.10); color: var(--gold); border: 1px solid rgba(160,120,40,0.3); }
.status-shipped  { background: rgba(50,100,220,0.10); color: #3264dc; border: 1px solid rgba(50,100,220,0.3); }
.status-delivered{ background: rgba(45,138,78,0.10);  color: #2d8a4e;  border: 1px solid rgba(45,138,78,0.3); }
.status-cancelled{ background: rgba(192,57,43,0.10);  color: #c0392b;  border: 1px solid rgba(192,57,43,0.3); }
[data-theme="dark"] .status-pending   { background: rgba(212,168,67,0.10); color: #d4a843; border-color: rgba(212,168,67,0.3); }
[data-theme="dark"] .status-shipped   { background: rgba(100,150,255,0.10); color: #6496ff; border-color: rgba(100,150,255,0.3); }
[data-theme="dark"] .status-delivered { background: rgba(78,203,113,0.10); color: #4ecb71; border-color: rgba(78,203,113,0.3); }
[data-theme="dark"] .status-cancelled { background: rgba(231,76,60,0.10);  color: #e74c3c; border-color: rgba(231,76,60,0.3); }

.order-card__body { padding: 0 20px 20px; }
.order-items-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.order-items-table th { padding: 8px 12px; text-align: left; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.order-items-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.order-items-table tfoot td { border-top: 2px solid var(--border); border-bottom: none; padding-top: 12px; }

/* ============================================================
   RECOMMENDATIONS
   ============================================================ */
.recommendations-section { padding: 0; }
.section-header { margin-bottom: 24px; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.section-subtitle { color: var(--text-muted); font-size: 0.88rem; }
.section-link { font-size: 0.85rem; color: var(--gold); display: inline-block; margin-top: 8px; }
.gold-icon { color: var(--gold); }

.empty-recs { text-align: center; padding: 40px; color: var(--text-muted); }
.empty-recs p { margin-top: 12px; font-size: 0.9rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-pad { padding: 60px 0; }
.section-dark {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   PROMO SECTION
   ============================================================ */
.promo-section { padding: 60px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.promo-card {
  padding: 36px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all var(--trans);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
/* Промо карточки — светлая тема */
.promo-amber  { background: linear-gradient(135deg, #fff8e0 0%, #f5d070 100%); border-color: rgba(160,120,40,0.25); }
.promo-luxury { background: linear-gradient(135deg, #f5f0ff 0%, #ead098 100%); border-color: rgba(160,120,40,0.35); }
.promo-anti   { background: linear-gradient(135deg, #edf8f1 0%, #a8dcb8 100%); border-color: rgba(40,120,80,0.20); }
.promo-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 16px; display: block; }
.promo-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 8px; color: #1a1a2e; }
.promo-card p  { font-size: 0.85rem; color: rgba(26,26,46,0.60); margin-bottom: 20px; }

/* Промо карточки — тёмная тема */
[data-theme="dark"] .promo-amber  { background: linear-gradient(135deg, #3d2800 0%, #6e4400 100%); border-color: rgba(212,168,67,0.20); }
[data-theme="dark"] .promo-luxury { background: linear-gradient(135deg, #1a1a2e 0%, #3d2a00 100%); border-color: rgba(212,168,67,0.30); }
[data-theme="dark"] .promo-anti   { background: linear-gradient(135deg, #1a2e1a 0%, #2a4a2a 100%); border-color: rgba(40,150,80,0.20); }
[data-theme="dark"] .promo-card h3 { color: #fff; }
[data-theme="dark"] .promo-card p  { color: rgba(255,255,255,0.65); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 52px 0 24px; margin-top: auto;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold); margin-bottom: 12px; }
.footer-text { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }
.footer-heading { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--trans); }
.footer-links a:hover { color: var(--gold); }
.footer-divider { border-color: var(--border); margin: 28px 0 16px; }
.footer-copy { font-size: 0.78rem; color: var(--text-dim); text-align: center; }

/* ============================================================
   SKELETONS / LOADING
   ============================================================ */
.loading-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.skeleton-card {
  height: 320px;
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card2) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius); border: 1px solid var(--border);
}

.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 20px; text-align: center; color: var(--text-muted);
}
.empty-state h3 { font-size: 1.3rem; margin: 16px 0 8px; color: var(--text); }
.empty-state p { font-size: 0.9rem; }
.empty-state .bi { color: var(--text-dim); }

/* 404 */
.not-found-container { text-align: center; padding: 80px 20px; }
.not-found-container .display-1 { font-family: 'Playfair Display', serif; font-size: 8rem; color: var(--gold); line-height: 1; }

/* Product link */
.product-link { color: var(--text); font-weight: 600; }
.product-link:hover { color: var(--gold); }

/* ============================================================
   PRODUCT PHOTOS
   ============================================================ */

/* Фото в карточке каталога */
.product-card__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1;
}
.product-card__overlay { z-index: 3; }
.product-card__fav-badge { z-index: 3; }
.product-card__out-badge { z-index: 3; }

/* Фото на странице товара */
.product-detail__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: var(--radius);
  z-index: 1;
}
.product-detail__cat-badge { z-index: 3; }

/* Фото в карточке категории */
.cat-card__photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  position: absolute; inset: 0;
}
.cat-card__img { position: relative; overflow: hidden; }

/* Фото в результате теста */
.quiz-result__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: var(--radius);
  z-index: 1;
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-page { min-height: 80vh; }

/* Intro */
.quiz-intro {
  position: relative; min-height: 80vh;
  display: flex; align-items: center; overflow: hidden;
}
.quiz-intro__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(160,120,40,0.08) 0%, transparent 70%),
    var(--bg-main);
}
[data-theme="dark"] .quiz-intro__bg {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212,168,67,0.10) 0%, transparent 70%),
    var(--bg-main);
}
.quiz-intro__inner {
  position: relative; z-index: 1;
  text-align: center; padding: 80px 0;
}
.quiz-intro__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text); margin: 20px 0 16px;
}
.quiz-intro__text {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 480px; margin: 0 auto 28px; line-height: 1.7;
}
.quiz-intro__features {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.quiz-intro__features span {
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg-card2); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
}

/* Question step */
.quiz-question-page { padding: 48px 0 80px; }

.quiz-progress {
  display: flex; align-items: center; gap: 16px;
  max-width: 600px; margin: 0 auto 36px;
}
.quiz-progress__track {
  flex: 1; height: 6px; background: var(--bg-card2);
  border-radius: 3px; overflow: hidden;
}
.quiz-progress__fill {
  height: 100%; background: var(--gold);
  border-radius: 3px; transition: width 0.4s ease;
}
.quiz-progress__label {
  font-size: 0.82rem; color: var(--text-muted);
  white-space: nowrap; font-weight: 600;
}

.quiz-card {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.quiz-card__num {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); margin-bottom: 12px;
}
.quiz-card__question {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--text);
  line-height: 1.4; margin-bottom: 28px;
}
.quiz-card__options { display: flex; flex-direction: column; gap: 10px; }

.quiz-option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; text-align: left;
  background: var(--bg-card2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--trans);
}
.quiz-option:hover {
  border-color: var(--gold);
  background: rgba(160,120,40,0.06);
}
[data-theme="dark"] .quiz-option:hover { background: rgba(212,168,67,0.08); }
.quiz-option--chosen {
  border-color: var(--gold) !important;
  background: rgba(160,120,40,0.10) !important;
  box-shadow: 0 0 0 3px rgba(160,120,40,0.12);
}
[data-theme="dark"] .quiz-option--chosen {
  background: rgba(212,168,67,0.14) !important;
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
.quiz-option__letter {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0; transition: all var(--trans);
}
.quiz-option--chosen .quiz-option__letter {
  background: var(--gold); border-color: var(--gold); color: #fff;
}
[data-theme="dark"] .quiz-option--chosen .quiz-option__letter { color: #0d0d1a; }
.quiz-option__text {
  font-size: 0.92rem; color: var(--text); line-height: 1.4;
}

.quiz-next-wrap {
  margin-top: 28px; text-align: center;
  animation: fadeIn 0.25s ease;
}

/* Result step */
.quiz-result-page { padding: 60px 0 80px; }
.quiz-result {
  max-width: 560px; margin: 0 auto; text-align: center;
}
.quiz-result__header { margin-bottom: 32px; }
.quiz-result__label {
  display: inline-block;
  background: rgba(160,120,40,0.10); border: 1px solid rgba(160,120,40,0.30);
  color: var(--gold); padding: 6px 18px; border-radius: 30px;
  font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
[data-theme="dark"] .quiz-result__label {
  background: rgba(212,168,67,0.10); border-color: rgba(212,168,67,0.30);
}
.quiz-result__type {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px;
}
.quiz-result__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700; color: var(--text); line-height: 1.25;
}

.quiz-result__cover {
  width: 260px; aspect-ratio: 1/1;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
}
.quiz-result__icon-wrap {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.60); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .quiz-result__icon-wrap { background: rgba(255,255,255,0.12); }
.quiz-result__icon { font-size: 3rem; color: rgba(0,0,0,0.42); }
[data-theme="dark"] .quiz-result__icon { color: rgba(255,255,255,0.85); }

.quiz-result__quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-style: italic; color: var(--text);
  border-left: 3px solid var(--gold); padding-left: 20px;
  text-align: left; margin: 0 0 16px;
}
.quiz-result__why {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
  text-align: left; margin-bottom: 32px;
}
.quiz-result__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* Quiz promo block (Home page) */
.quiz-promo-section { padding: 0 0 60px; }
.quiz-promo-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 48px 52px;
  background: linear-gradient(135deg, var(--bg-card2) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
[data-theme="dark"] .quiz-promo-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #161625 100%);
  border-color: rgba(212,168,67,0.15);
}
.quiz-promo__content { flex: 1; }
.quiz-promo__label {
  display: inline-block;
  background: rgba(160,120,40,0.10); border: 1px solid rgba(160,120,40,0.25);
  color: var(--gold); padding: 4px 14px; border-radius: 20px;
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px;
}
.quiz-promo__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--text);
  margin-bottom: 10px; line-height: 1.3;
}
.quiz-promo__text {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px;
}
.quiz-promo__deco {
  font-size: 5rem; line-height: 1;
  color: var(--gold); opacity: 0.18; flex-shrink: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .products-grid--featured { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .products-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .product-card__icon-wrap { width: 60px; height: 60px; }
  .product-card__main-icon { font-size: 1.5rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 100%; }
  .section-pad { padding: 40px 0; }
  .cart-item { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-outline-gold { margin-left: 0 !important; }
  .product-detail__cover { height: 280px; }
  .product-detail__icon { font-size: 3.5rem; }
}
