/* ============================================================
   MyShop — Премиум тема
   Кремовый · Слоновая кость · Золото · Шампань
   Typefaces: Cormorant Garamond (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Палитра */
  --cream:       #F7F3EC;
  --cream2:      #EFE9DF;
  --cream3:      #E5DDD0;
  --parchment:   #D9CFC0;
  --gold:        #B8963E;
  --gold2:       #D4AF5A;
  --gold-light:  #F0DFA0;
  --dark:        #1C1814;
  --dark2:       #2E2820;
  --text:        #1C1814;
  --text2:       #6B5E4E;
  --text3:       #A09080;
  --border:      rgba(139,110,80,0.18);
  --border2:     rgba(139,110,80,0.08);
  --success:     #3A7D5A;
  --error:       #A63228;

  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 8px 40px rgba(28,24,20,0.10);
  --shadow-sm:   0 2px 12px rgba(28,24,20,0.07);
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --transition:  0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.01em;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold2); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 22px; letter-spacing: 0.02em;
  color: var(--dark); flex-shrink: 0;
}
.logo-icon { color: var(--gold); font-size: 20px; }
.logo:hover { color: var(--gold); }
.logo-text { transition: color var(--transition); }

.main-nav {
  display: flex; gap: 2px; flex: 1;
}
.main-nav a {
  color: var(--text2); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 6px;
  transition: all var(--transition); white-space: nowrap;
}
.main-nav a:hover { background: var(--cream2); color: var(--dark); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.search-form {
  display: flex; align-items: center;
  background: var(--cream2); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.search-form input {
  background: none; border: none; outline: none;
  color: var(--text); padding: 8px 14px; font-size: 13px;
  width: 180px; font-family: var(--font-body);
}
.search-form input::placeholder { color: var(--text3); }
.search-form button {
  background: none; border: none; cursor: pointer;
  padding: 8px 12px; color: var(--text2); font-size: 17px;
  transition: color var(--transition);
}
.search-form button:hover { color: var(--gold); }

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--cream2); border: 1px solid var(--border);
  color: var(--text); font-size: 17px;
  transition: all var(--transition); position: relative;
}
.btn-icon:hover { background: var(--cream3); border-color: var(--gold); color: var(--gold); }

.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--gold); color: white;
  font-size: 10px; font-weight: 600; line-height: 1;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-family: var(--font-body);
}

/* ── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: 13px 18px; border-radius: var(--radius);
  margin: 16px 0; font-size: 14px;
}
.alert-success { background: rgba(58,125,90,0.08); border: 1px solid rgba(58,125,90,0.25); color: var(--success); }
.alert-error   { background: rgba(166,50,40,0.08); border: 1px solid rgba(166,50,40,0.22); color: var(--error); }
.alert-info    { background: rgba(184,150,62,0.08); border: 1px solid rgba(184,150,62,0.25); color: var(--gold); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; font-family: var(--font-body);
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary  { background: var(--gold); color: white; border-color: var(--gold); }
.btn-primary:hover { background: var(--dark); border-color: var(--dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,150,62,0.25); }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost    { background: transparent; color: var(--text2); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-white    { background: white; color: var(--dark); border-color: white; }
.btn-white:hover { background: var(--cream); }
.btn-lg       { padding: 16px 40px; font-size: 14px; border-radius: 10px; }
.btn-block    { width: 100%; }
.btn-sm       { padding: 7px 16px; font-size: 12px; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px;
  background: url('https://duken.zib-club.ru/shop/public/images/bgg3.png') center center/cover no-repeat;
  
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse 80% 80% at 80% 50%, rgba(184,150,62,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg { display: none; }

.hero-content {
  position: relative;
  display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
  font-family: var(--font-body);
}
.hero-text h1 {
  font-size: clamp(44px, 5.5vw, 72px); font-weight: 300;
  line-height: 1.05; margin-bottom: 22px;
  font-family: var(--font-head);
  color: var(--dark);
}
.hero-text h1 em {
  font-style: italic; color: var(--gold);
  font-weight: 300;
}
.hero-text p { color: var(--text2); font-size: 16px; max-width: 440px; margin-bottom: 36px; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.hero-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.hero-card-2 { margin-left: 32px; }
.hero-card-inner { display: flex; flex-direction: column; gap: 4px; }
.hero-emoji { font-size: 26px; margin-bottom: 10px; }
.hero-card strong { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--dark); }
.hero-card span { color: var(--text2); font-size: 13px; }

/* ── SECTION ─────────────────────────────────────────────── */
.section { padding: 72px 0; }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 36px;
}
.section-header h2 { font-size: 34px; font-weight: 400; }
.see-all { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.see-all:hover { color: var(--gold); }

/* ── CATEGORIES ─────────────────────────────────────────── */
.categories-section {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.category-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition); color: var(--text);
}
.category-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.category-icon { font-size: 28px; flex-shrink: 0; }
.category-info h3 { font-size: 15px; font-family: var(--font-head); font-weight: 600; margin-bottom: 2px; }
.category-info span { font-size: 12px; color: var(--text3); }

/* ── PRODUCTS GRID ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.badge-sale { background: var(--error); color: white; }
.badge-hot  { background: var(--gold); color: white; }
.badge-lg   { font-size: 13px; padding: 6px 14px; }

.product-image-wrap {
  display: block; overflow: hidden; height: 220px;
  background: var(--cream2);
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.04); }

.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.product-name { font-size: 16px; font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.product-name a { color: var(--dark); }
.product-name a:hover { color: var(--gold); }
.product-desc { font-size: 13px; color: var(--text2); margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 300; }

.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border2); }
.product-price { display: flex; flex-direction: column; }
.price-current { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--dark); }
.price-old { font-size: 12px; color: var(--text3); text-decoration: line-through; }

.btn-add-cart {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--dark); color: white; border: none;
  font-size: 18px; font-weight: 400; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.btn-add-cart:hover { background: var(--gold); transform: scale(1.08); }
.out-of-stock { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── PROMO BANNER ─────────────────────────────────────── */
.promo-banner {
  background: var(--dark);
  padding: 70px 0;
}
.promo-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 0;
}
.promo-text h2 { font-size: 36px; font-weight: 300; color: var(--cream); margin-bottom: 14px; }
.promo-text p { color: rgba(247,243,236,0.6); margin-bottom: 32px; max-width: 440px; font-weight: 300; }
.promo-decor { font-size: 90px; opacity: 0.08; }

/* ── CATALOG PAGE ─────────────────────────────────────── */
.catalog-page { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-top: 44px; padding-bottom: 60px; }

.catalog-sidebar h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.cat-list { list-style: none; }
.cat-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 6px; color: var(--text2);
  font-size: 14px; transition: all var(--transition);
}
.cat-list li a:hover { background: var(--cream2); color: var(--dark); }
.cat-list li a.active { background: rgba(184,150,62,0.1); color: var(--gold); font-weight: 500; }
.cat-list span { font-size: 11px; color: var(--text3); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.catalog-toolbar h1 { font-size: 28px; font-weight: 400; }
.catalog-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }
.catalog-sort select {
  background: white; border: 1px solid var(--border); color: var(--text);
  padding: 7px 12px; border-radius: 6px; font-size: 13px; cursor: pointer;
  font-family: var(--font-body); outline: none;
}

/* ── PRODUCT DETAIL ───────────────────────────────────── */
.product-page { padding: 36px 28px 72px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text3); margin-bottom: 36px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: 0.06em; }
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text2); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 64px; }

.main-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream2); border: 1px solid var(--border); }
.main-image img { width: 100%; height: 460px; object-fit: cover; }

.image-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; transition: border-color var(--transition); }
.thumb:hover { border-color: var(--gold); }

.product-detail-info { display: flex; flex-direction: column; gap: 20px; }
.product-category-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.product-detail-info h1 { font-size: 36px; font-weight: 400; }
.product-short-desc { color: var(--text2); font-weight: 300; font-size: 15px; }

.product-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.in-stock  { color: var(--success); font-weight: 500; }
.no-stock  { color: var(--error); }

.detail-price-block { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-current.large { font-size: 34px; font-family: var(--font-head); }

.add-to-cart-block { display: flex; gap: 14px; align-items: center; }
.qty-control { display: flex; align-items: center; background: var(--cream2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { background: none; border: none; color: var(--text); padding: 10px 16px; font-size: 16px; cursor: pointer; transition: background var(--transition); }
.qty-btn:hover { background: var(--cream3); }
#qty-input { width: 50px; background: none; border: none; text-align: center; color: var(--text); font-size: 15px; font-family: var(--font-head); font-weight: 600; outline: none; }

.out-of-stock-block { padding: 14px 20px; background: rgba(166,50,40,0.06); border: 1px solid rgba(166,50,40,0.18); border-radius: var(--radius); color: var(--error); }

.product-description { margin-bottom: 56px; }
.product-description h2 { font-size: 26px; font-weight: 400; margin-bottom: 20px; }
.desc-content { color: var(--text2); line-height: 1.8; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; font-weight: 300; }

.related-products h2 { font-size: 28px; font-weight: 400; margin-bottom: 24px; }

/* ── CART ─────────────────────────────────────────────── */
.cart-page { padding: 44px 28px 80px; }
.cart-page h1 { font-size: 32px; font-weight: 400; margin-bottom: 32px; }

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

.cart-items { display: flex; flex-direction: column; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto;
  align-items: center; gap: 20px; padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; background: var(--cream2); }
.cart-item-name { font-weight: 500; font-size: 15px; margin-bottom: 4px; font-family: var(--font-head); }
.cart-item-price { font-size: 13px; color: var(--text2); }
.cart-item-subtotal { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--dark); white-space: nowrap; }
.cart-remove { color: var(--text3); font-size: 13px; transition: color var(--transition); }
.cart-remove:hover { color: var(--error); }

.qty-input-small {
  width: 60px; background: var(--cream2); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px; text-align: center;
  color: var(--text); font-family: var(--font-head); font-size: 15px; font-weight: 600;
}

.cart-actions { display: flex; gap: 12px; padding: 20px 24px; background: var(--cream); border-top: 1px solid var(--border); }

.cart-summary {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; position: sticky; top: 92px;
}
.cart-summary h3 { font-size: 20px; font-weight: 400; margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { font-size: 17px; padding-top: 16px; }
.summary-total strong { color: var(--dark); font-size: 22px; font-family: var(--font-head); }
.cart-summary .btn { margin-top: 20px; }

/* ── CHECKOUT ─────────────────────────────────────────── */
.checkout-page { padding: 44px 28px 80px; }
.checkout-page h1 { font-size: 32px; font-weight: 400; margin-bottom: 32px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

.form-section { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.form-section h3 { font-size: 17px; font-weight: 500; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 7px; padding: 11px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  transition: border-color var(--transition); outline: none; width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); background: white; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group-check label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; }

.checkout-summary { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 92px; }
.checkout-summary h3 { font-size: 20px; font-weight: 400; margin-bottom: 20px; }
.checkout-item { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.checkout-item-name { color: var(--text2); flex: 1; margin-right: 12px; font-weight: 300; }
.checkout-item-price { font-weight: 500; white-space: nowrap; }
.checkout-total { display: flex; justify-content: space-between; padding: 16px 0 0; font-size: 17px; }
.checkout-total strong:last-child { font-family: var(--font-head); font-size: 22px; }

/* ── SUCCESS ─────────────────────────────────────────── */
.success-page { padding: 80px 28px; display: flex; justify-content: center; }
.success-box { max-width: 480px; width: 100%; text-align: center; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(58,125,90,0.08); border: 1px solid rgba(58,125,90,0.3); color: var(--success); font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-box h1 { font-size: 32px; font-weight: 400; margin-bottom: 12px; }
.success-box p { color: var(--text2); margin-bottom: 8px; font-weight: 300; }
.success-total { font-size: 22px; font-family: var(--font-head); font-weight: 600; color: var(--dark); margin: 24px 0; }
.success-total strong { font-size: 30px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* ── AUTH ─────────────────────────────────────────────── */
.auth-page { padding: 80px 28px; display: flex; justify-content: center; }
.auth-box { width: 100%; max-width: 420px; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; }
.auth-box h1 { text-align: center; font-size: 30px; font-weight: 400; margin-bottom: 32px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text2); }

/* ── PAGINATION ─────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 48px; }
.pagination { display: flex; gap: 6px; list-style: none; }
.pagination li a, .pagination li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 6px; border: 1px solid var(--border);
  color: var(--text2); font-size: 13px;
  transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--gold); color: var(--gold); }
.pagination li.selected span, .pagination li.active a { background: var(--gold); color: white; border-color: var(--gold); }
.pagination li.hidden { display: none; }

/* ── EMPTY STATE ─────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 40px; }
.empty-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.4; }
.empty-state h3 { font-size: 24px; font-weight: 400; margin-bottom: 10px; }
.empty-state p { color: var(--text2); margin-bottom: 28px; font-weight: 300; }

/* ── TOAST ─────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--dark); border: 1px solid rgba(184,150,62,0.3);
  color: var(--cream); padding: 14px 22px; border-radius: 8px;
  font-weight: 400; font-size: 14px;
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s ease; box-shadow: var(--shadow);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer { background: var(--dark); padding: 64px 0 0; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--cream); }
.footer-brand .logo-icon { color: var(--gold); }
.footer-brand p { color: rgba(247,243,236,0.4); font-size: 13px; margin-top: 10px; font-weight: 300; }
.footer-links h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(247,243,236,0.35); margin-bottom: 16px; font-family: var(--font-body); }
.footer-links a { display: block; color: rgba(247,243,236,0.6); font-size: 14px; padding: 4px 0; font-weight: 300; }
.footer-links a:hover { color: var(--gold); }
.footer-contact h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(247,243,236,0.35); margin-bottom: 16px; font-family: var(--font-body); }
.footer-contact p { color: rgba(247,243,236,0.6); font-size: 14px; padding: 4px 0; font-weight: 300; }
.footer-bottom { border-top: 1px solid rgba(247,243,236,0.08); padding: 20px 0; font-size: 12px; color: rgba(247,243,236,0.3); text-align: center; letter-spacing: 0.04em; }

/* ── SEARCH & CATEGORY ─────────────────────────────── */
.search-page { padding: 44px 28px 80px; }
.search-page h1 { font-size: 30px; font-weight: 400; margin-bottom: 8px; }
.search-page p { color: var(--text2); margin-bottom: 32px; font-weight: 300; }
.category-header { background: white; border-bottom: 1px solid var(--border); padding: 44px 0 36px; margin-bottom: 44px; }
.category-header h1 { font-size: 36px; font-weight: 300; margin-bottom: 8px; }
.category-header p { color: var(--text2); font-weight: 300; }

/* ── ЛИЧНЫЙ КАБИНЕТ ─────────────────────────────────────── */
.account-page { padding: 44px 28px 80px; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

.account-sidebar {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: 92px;
}

.account-avatar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.avatar-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: white;
  font-family: var(--font-head); font-weight: 600; font-size: 22px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar-info strong { display: block; font-size: 15px; font-family: var(--font-head); }
.avatar-info span { font-size: 12px; color: var(--text2); }

.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 6px;
  color: var(--text2); font-size: 13px; font-weight: 400;
  transition: all var(--transition); text-transform: none; letter-spacing: 0;
}
.account-nav a:hover { background: var(--cream2); color: var(--dark); }
.account-nav a.active { background: rgba(184,150,62,0.1); color: var(--gold); }

.account-content { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.account-content h2 { font-size: 26px; font-weight: 400; margin-bottom: 24px; }

.account-form .form-group { margin-bottom: 16px; }
.account-form .form-group label { display: block; font-size: 11px; font-weight: 500; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.account-form .form-group input,
.account-form .form-group textarea {
  width: 100%; background: var(--cream); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.account-form .form-group input:focus,
.account-form .form-group textarea:focus { border-color: var(--gold); background: white; }
.account-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: border-color var(--transition); }
.order-card:hover { border-color: var(--gold); }
.order-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.order-card-footer { display: flex; align-items: center; justify-content: space-between; }

/* ── BADGE СТАТУСЫ ─────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-new        { background: rgba(184,150,62,0.12); color: var(--gold); border: 1px solid rgba(184,150,62,0.25); }
.badge-processing { background: rgba(99,102,241,0.08); color: #6366f1; border: 1px solid rgba(99,102,241,0.2); }
.badge-shipped    { background: rgba(14,165,233,0.08); color: #0ea5e9; border: 1px solid rgba(14,165,233,0.2); }
.badge-delivered  { background: rgba(58,125,90,0.08); color: var(--success); border: 1px solid rgba(58,125,90,0.2); }
.badge-cancelled  { background: rgba(166,50,40,0.08); color: var(--error); border: 1px solid rgba(166,50,40,0.2); }
.badge-active     { background: rgba(58,125,90,0.08); color: var(--success); border: 1px solid rgba(58,125,90,0.2); }
.badge-inactive   { background: rgba(166,50,40,0.08); color: var(--error); border: 1px solid rgba(166,50,40,0.2); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .catalog-page { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-form input { width: 120px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-form .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   МОБИЛЬНЫЙ OVERRIDE — финальный, перекрывает всё выше
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; width: 100%; }

  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100vw !important;
  }

  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, calc(50% - 4px)) !important;
    gap: 8px !important;
    max-width: 100% !important;
  }

  .product-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .product-image-wrap {
    height: 110px !important;
    max-width: 100% !important;
  }

  .product-info { padding: 8px !important; }

  .product-name {
    font-size: 11px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .price-current { font-size: 12px !important; }
  .price-old     { font-size: 10px !important; }

  .btn-add-cart {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }
}
/* ── МОБИЛЬНАЯ ШАПКА 2 СТРОКИ ── */
.mobile-header { display: none; }

.mobile-row-1 {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.mobile-row-1 .logo { flex-shrink: 0; font-size: 17px; }
.mobile-row-1 .search-form { flex: 1; }
.mobile-row-1 .search-form input { width: 100%; font-size: 13px; }

.mobile-row-2 {
  display: flex; align-items: center;
  padding: 8px 12px; gap: 10px;
}

@media (max-width: 640px) {
  .desktop-header { display: none !important; }
  .mobile-header  { display: block !important; }
}

@media (max-width: 640px) {
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .product-card {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
@media (max-width: 640px) {
  .catalog-page {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .catalog-main {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .products-grid {
    gap: 6px !important;
  }
  .product-card {
    min-width: 0 !important;
  }
}

/* ── СЛАЙДЕР ГЛАВНОЙ ─────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  height: 220px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: relative;
  overflow: hidden;
}

.slide-1 { background: linear-gradient(135deg, #1C1814 0%, #2E2010 100%); }
.slide-2 { background: linear-gradient(135deg, #0f1a10 0%, #1a2e1a 100%); }
.slide-3 { background: linear-gradient(135deg, #0f1520 0%, #1a2535 100%); }
.slide-4 { background: linear-gradient(135deg, #1a1020 0%, #2a1535 100%); }

.slide::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse at 80% 50%, rgba(184,150,62,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.slide-content { position: relative; z-index: 1; max-width: 600px; }

.slide-badge {
  display: inline-flex; align-items: center;
  background: rgba(184,150,62,0.15);
  border: 1px solid rgba(184,150,62,0.3);
  color: var(--gold2); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 14px; font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.slide-content h2 {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 400;
  color: var(--cream); margin-bottom: 8px;
  line-height: 1.2;
}

.slide-content p {
  color: rgba(247,243,236,0.55);
  font-size: 14px; font-weight: 300;
}

/* Точки */
.slider-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(247,243,236,0.3);
  cursor: pointer; transition: all 0.3s;
}
.dot.active {
  background: var(--gold);
  width: 20px; border-radius: 4px;
}

/* Главная товары */
.home-products { padding-bottom: 60px; }

/* Мобильный слайдер */
@media (max-width: 640px) {
  .hero-slider { height: 180px; }
  .slide { padding: 0 20px; }
  .slide-content h2 { font-size: 18px; margin-bottom: 6px; }
  .slide-content p { font-size: 12px; }
  .slide-badge { font-size: 11px; padding: 4px 10px; margin-bottom: 10px; }
}

/* ── ОТЗЫВЫ ─────────────────────────────────────────────── */
.reviews-section { margin-top: 48px; margin-bottom: 48px; }
.reviews-section h2 { font-size: 26px; font-weight: 400; margin-bottom: 24px; }
.reviews-count { font-size: 16px; color: var(--text2); font-weight: 300; margin-left: 8px; }

/* Рейтинг на странице товара */
.product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rating-stars { display: flex; gap: 2px; }
.star { color: var(--parchment); font-size: 18px; }
.star.filled { color: var(--gold); }
.rating-count { font-size: 13px; color: var(--text2); }
.rating-link { font-size: 13px; color: var(--gold); }

/* Список отзывов */
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.review-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  transition: border-color var(--transition);
}
.review-card:hover { border-color: var(--gold); }

.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: white;
  font-family: var(--font-head); font-weight: 600; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-author strong { display: block; font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--text3); }
.review-stars { display: flex; gap: 2px; }
.review-stars .star { font-size: 16px; color: var(--parchment); }
.review-stars .star.filled { color: var(--gold); }
.review-text { color: var(--text2); font-size: 14px; line-height: 1.7; font-weight: 300; }

.reviews-empty {
  text-align: center; padding: 32px;
  color: var(--text3); font-style: italic;
  background: var(--cream2); border-radius: var(--radius); margin-bottom: 24px;
}

/* Форма отзыва */
.review-form-wrap {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.review-form-wrap h3 { font-size: 20px; font-weight: 400; margin-bottom: 20px; }

.review-form .form-group { margin-bottom: 16px; }
.review-form .form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.review-form input, .review-form textarea {
  width: 100%; background: white; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.review-form input:focus, .review-form textarea:focus { border-color: var(--gold); }
.review-form textarea { resize: vertical; min-height: 100px; }

/* Звёздочки выбора */
.star-picker { display: flex; gap: 6px; margin-bottom: 4px; }
.star-pick {
  font-size: 28px; cursor: pointer;
  color: var(--parchment); transition: color var(--transition), transform var(--transition);
}
.star-pick:hover, .star-pick.active { color: var(--gold); transform: scale(1.15); }

/* Админка — отзывы */
.badge-pending { background: rgba(240,165,0,0.1); color: var(--warning); border: 1px solid rgba(240,165,0,0.25); }


/* ── ГАЛЕРЕЯ ТОВАРА ──────────────────────────────────────── */
.product-gallery { position: relative; }

.gallery-main {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--cream2);
  border: 1px solid var(--border); margin-bottom: 12px;
}
.gallery-main img {
  width: 100%; height: 420px; object-fit: cover;
  display: block; transition: opacity 0.3s;
}

/* Стрелки */
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(247,243,236,0.9); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--dark);
  transition: all var(--transition); z-index: 2;
  user-select: none;
}
.gallery-arrow:hover { background: white; box-shadow: var(--shadow-sm); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-arrow.hidden { display: none; }

/* Счётчик */
.gallery-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(28,24,20,0.6); color: white;
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
  font-family: var(--font-body);
}

/* Миниатюры */
.gallery-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.gallery-thumb {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: 8px; border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition);
  opacity: 0.7;
}
.gallery-thumb:hover { opacity: 1; border-color: var(--gold); }
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }

@media (max-width: 640px) {
  .gallery-main img { height: 260px; }
  .gallery-thumb { width: 52px; height: 52px; }
  .gallery-arrow { width: 32px; height: 32px; font-size: 13px; }
}