:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --ink: #171717;
  --muted: #777777;
  --line: #E5E2DD;
  --gold: #B08D3F;
  --gold-dark: #94742E;
  --gold-soft: #F1E8D5;
  --danger: #C0392B;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(23, 23, 23, .08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; font-size: inherit; cursor: pointer; background: none; border: none; color: inherit; }

input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

label { font-size: 14px; font-weight: 500; color: var(--muted); display: block; margin-bottom: 6px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, color .2s, transform .1s, border-color .2s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn-block { width: 100%; }

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

.muted { color: var(--muted); }
.small { font-size: 14px; }
.error-text { color: var(--danger); font-size: 14px; margin-top: 4px; }

.field { margin-bottom: 16px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  margin: 0 auto;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 40px auto;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty .empty-title { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }
.empty.notfound .empty-title { font-size: 72px; line-height: 1; color: var(--gold-dark); }
.empty.notfound .notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.empty.notfound .notfound-actions .btn { margin-top: 0; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; }

/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 24px;
  background: #f5f5f0;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex: 1; }
.topbar-left { justify-content: flex-start; }
.topbar-right { justify-content: flex-end; }
.topbar-center { flex: 1; display: flex; justify-content: center; }
.topbar-sep { color: var(--line); }
.topbar a { color: var(--muted); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--gold-dark); }
.topbar-icons { display: flex; gap: 4px; }
.topbar-icons a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
}
.topbar-icons a:hover { background: rgba(0,0,0,.04); }
.topbar-search {
  position: relative;
  max-width: 280px;
  width: 100%;
}
.topbar-search input {
  width: 100%;
  height: 26px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .2s;
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus { border-color: var(--gold); }
.topbar-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 2px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.topbar-search button:hover { color: var(--gold-dark); }
.topbar .badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar .badge.hidden { display: none; }
.topbar-login { white-space: nowrap; }

/* ===== Main Header ===== */
.header-main {
  background: var(--surface);
  border-top: 1px solid var(--gold);
  padding: 24px 0 0;
  text-align: center;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--gold-dark); }
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
  padding-bottom: 14px;
}
.desktop-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.desktop-nav a:hover { color: var(--gold-dark); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  transition: color .2s;
}
.icon-btn:hover { color: var(--gold-dark); }
.icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn .badge.hidden { display: none; }
.menu-toggle { display: none; }

/* ===== Mobile menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 150;
  padding: 80px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-menu-close { position: absolute; top: 16px; right: 16px; }
.mobile-menu .header-search { max-width: none; margin-bottom: 16px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  max-height: 600px;
  overflow: hidden;
  background: #111;
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  color: #fff;
}
.hero-overlay h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-overlay p {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 24px;
  opacity: .9;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.btn-hero {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s;
  width: fit-content;
}
.btn-hero:hover { background: var(--gold-dark); }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.hero-nav:hover { background: rgba(255,255,255,.3); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all .2s;
}
.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

/* ===== Section ===== */
.section { padding: 48px 24px; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title-row h2 { margin: 0; }
.section-title-row a { color: var(--gold-dark); font-weight: 600; font-size: 15px; }
.section-title-row a:hover { text-decoration: underline; }

/* ===== Product grid & card ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.product-card .pc-link { display: block; }
.product-card .pc-media { aspect-ratio: 1; overflow: hidden; background: var(--gold-soft); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .pc-media img { transform: scale(1.04); }
.product-card .pc-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .pc-name { font-family: var(--font-display); font-size: 17px; }
.product-card .pc-name:hover { color: var(--gold-dark); }
.product-card .pc-category { color: var(--muted); font-size: 13px; }
.product-card .pc-price { font-weight: 600; font-size: 16px; margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-card .pc-price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 14px; }
.product-card .pc-price .discount { background: var(--gold-soft); color: var(--gold-dark); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.product-card .pc-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.product-card .pc-actions .btn { flex: 1; padding: 10px 16px; font-size: 14px; }
.product-card .fav-btn { position: absolute; top: 10px; right: 10px; background: var(--surface); border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); color: var(--ink); z-index: 2; }
.product-card .fav-btn:hover { color: var(--danger); }
.product-card .fav-btn.active { color: var(--danger); }
.product-card .fav-btn .badge-heart::before { content: ''; }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--line) 25%, #EFEDE8 37%, var(--line) 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== Stars ===== */
.stars { display: inline-flex; color: var(--gold); font-size: 15px; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.stars-sm { font-size: 13px; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding: 20px 24px 0; max-width: 1280px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs .sep { margin: 0 8px; }

/* ===== Catalog layout ===== */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 24px; max-width: 1280px; margin: 0 auto; align-items: start; }
.catalog-main h1 { margin-bottom: 8px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 24px; flex-wrap: wrap; }
.catalog-toolbar .count { color: var(--muted); font-size: 14px; }
.sort-select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: var(--gold-dark); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.chip button { font-size: 15px; line-height: 1; }
.chip button:hover { color: var(--danger); }
.filter-btn { display: none; }

/* ===== Filters ===== */
.filters { position: sticky; top: 92px; align-self: start; }
.filters .f-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group h4 { font-size: 15px; margin-bottom: 12px; }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-options label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; margin: 0; font-weight: 400; }
.filter-options input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }
.filter-options .opt-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input { width: 100%; padding: 8px 10px; }
.filters-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; background: var(--surface); }
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--gold); color: var(--gold-dark); }
.page-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.page-btn:disabled { opacity: .4; cursor: default; }

/* ===== Product page ===== */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px; max-width: 1280px; margin: 0 auto; }
.product-gallery .main-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--gold-soft); }
.product-gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery .thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.product-gallery .thumb.active { border-color: var(--gold); }
.product-info h1 { margin-bottom: 12px; }
.product-info .rating { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.product-info .price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.product-info .price { font-size: 28px; font-weight: 700; }
.product-info .price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.product-info .meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.product-info .attrs { margin: 24px 0; }
.product-info .attrs .attr-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.product-info .attrs .attr-row dt { color: var(--muted); }
.product-info .attrs .attr-row dd { font-weight: 500; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; font-size: 18px; }
.qty button:hover { background: var(--gold-soft); }
.qty input { width: 48px; text-align: center; border: none; padding: 0; height: 44px; }
.product-description { margin-top: 40px; }
.related-section, .viewed-section { padding: 40px 24px; max-width: 1280px; margin: 0 auto; }
.tab-active { border-bottom: 2px solid var(--gold); color: var(--gold-dark); }

/* ===== Cart ===== */
.cart-page { max-width: 1280px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--gold-soft); }
.cart-item .ci-name { font-family: var(--font-display); font-size: 17px; }
.cart-item .ci-price { color: var(--gold-dark); font-weight: 600; margin-top: 4px; }
.cart-item .ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item .ci-total { font-weight: 600; }
.cart-item .ci-remove { color: var(--muted); font-size: 13px; }
.cart-item .ci-remove:hover { color: var(--danger); }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.cart-summary .cs-row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary .cs-total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cart-summary .cs-note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.promo-row { display: flex; gap: 8px; margin: 12px 0; }
.promo-row input { flex: 1; }
.checkout-form { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.bonus-toggle { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.bonus-toggle input { width: 18px; height: 18px; accent-color: var(--gold); }

/* ===== Auth ===== */
.auth-page { padding: 40px 24px; }
.auth-page h1 { text-align: center; margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-switch a { color: var(--gold-dark); font-weight: 600; }
.password-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== Account ===== */
.account-page { max-width: 1280px; margin: 0 auto; padding: 24px; }
.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.account-tabs button { padding: 12px 16px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.account-tabs button:hover { color: var(--ink); }
.account-tabs button.active { color: var(--gold-dark); border-bottom-color: var(--gold); }
.account-panel h2 { margin-bottom: 16px; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.address-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.address-card .ac-title { font-weight: 600; margin-bottom: 4px; }
.address-card .ac-actions { display: flex; gap: 10px; margin-top: 12px; font-size: 13px; }
.address-card .ac-actions a:hover { color: var(--gold-dark); }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.order-card .oc-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.order-card .oc-status { font-weight: 600; }
.order-card .oc-status[data-status="pending"] { color: var(--gold-dark); }
.order-card .oc-status[data-status="paid"] { color: #2E7D32; }
.order-card .oc-status[data-status="cancelled"] { color: var(--danger); }
.order-card .oc-meta { color: var(--muted); font-size: 14px; }
.order-items { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 14px; }
.order-items li { display: flex; justify-content: space-between; padding: 4px 0; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #CFCBC4; padding: 48px 24px 24px; margin-top: 48px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--font-display); color: #fff; margin-bottom: 12px; font-size: 16px; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-logo { font-family: var(--font-display); font-size: 24px; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer .footer-requisites { font-size: 12px; opacity: .7; }
.footer-bottom { max-width: 1280px; margin: 32px auto 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 13px; color: #8F8B85; }

/* ===== Toast ===== */
#toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); animation: toastIn .25s ease; max-width: 320px; }
.toast.success { background: #2E7D32; }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(23,23,23,.5); z-index: 250; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius); max-width: 480px; width: 100%; padding: 28px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.modal-close:hover { background: var(--gold-soft); color: var(--ink); }
.modal h2 { margin-bottom: 16px; }

/* ===== Drawer (mobile filters) ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(23,23,23,.5); z-index: 240; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 360px); background: var(--surface); z-index: 245; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

/* ===== Views / sections ===== */
.view-header { padding: 32px 24px 0; max-width: 1280px; margin: 0 auto; }
.view-header h1 { margin-bottom: 8px; }
.about-content { padding: 8px 24px 0; }
.about-section { margin-bottom: 28px; }
.about-section h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.about-section p { color: #4A4742; line-height: 1.6; max-width: 760px; }
.about-lead { color: var(--muted); font-size: 17px; margin-top: 4px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; background: var(--surface); z-index: 245; top: auto; overflow-y: auto; padding: 20px; }
  .filters.open { display: block; }
  .filter-btn { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
  .desktop-nav { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cart-page { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero { height: 45vh; min-height: 260px; }
  .hero-overlay { padding: 30px 20px; }
  .hero-overlay h1 { font-size: 26px; }
  .hero-overlay p { font-size: 15px; }
  .hero-nav { width: 36px; height: 36px; }
  .product-page { grid-template-columns: 1fr; gap: 24px; }
  .topbar-left .topbar-phone { display: none; }
  .topbar-sep { display: none; }
  .topbar-center { display: none; }
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 12px; letter-spacing: 1px; }
  .logo { font-size: 22px; letter-spacing: 6px; }
  .icon-btn span.lbl { display: none; }
  .icon-btn { padding: 8px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .catalog { padding: 16px; }
  .section { padding: 32px 16px; }
  .product-page { padding: 16px; }
  .view-header { padding: 24px 16px 0; }
}
@media (max-width: 480px) {
  .product-grid { gap: 12px; }
  .pc-actions .btn { font-size: 13px; padding: 10px 10px; }
  .product-card .pc-body { padding: 12px; }
  .product-card .pc-name { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.pc-name, .ci-name, .logo, .product-info h1, .empty-title { word-wrap: break-word; }

.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  margin: 14px 0;
  color: var(--muted);
}
.consent-field input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; }
.consent-field a { color: var(--gold-dark); font-weight: 600; }
.legal .about-section h2 { font-size: 18px; margin-bottom: 8px; }
.legal .about-section p { line-height: 1.7; }

#consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
}
.consent-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.consent-banner-inner p { margin: 0; font-size: 14px; line-height: 1.5; }
.consent-banner-inner a { color: var(--gold-soft); text-decoration: underline; }
.consent-banner-actions { display: flex; gap: 10px; flex: 0 0 auto; }
#consent-banner .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
#consent-banner .btn-outline:hover { color: #fff; border-color: var(--gold-soft); }

#cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookie-banner-inner a { color: var(--gold-dark); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* Отзывы товара */
.reviews-section { margin-top: 40px; }
.reviews-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.reviews-head h2 { margin: 0; }
.reviews-head #rev-open-form { margin-left: auto; }
.review-item { border-top: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-line { margin: 4px 0; font-size: 14px; color: var(--ink); }
.review-text { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
#rev-more { margin-top: 12px; }
.review-form { display: grid; gap: 12px; max-width: 520px; margin: 16px 0; }
.review-form h3 { margin: 0; }
.review-form input,
.review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #d9d9d9; padding: 0; }
.star-input button.on { color: var(--gold); }

/* Строка категорий под шапкой */
#site-categories {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

/* Блог */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin: 24px 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(23,23,23,.12);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body h2 {
  font-size: 18px;
  margin: 8px 0;
  line-height: 1.3;
}
.blog-card-body p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
  margin: 0;
}
.blog-card-body time {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.blog-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold-dark);
  background: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 4px;
}
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}
.blog-post-header {
  margin-bottom: 24px;
}
.blog-post-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0 12px;
}
.blog-post-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.blog-post-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.blog-post-body {
  font-size: 17px;
  line-height: 1.7;
}
.blog-post-body h2,
.blog-post-body h3 {
  margin: 24px 0 12px;
}
.blog-post-body p {
  margin: 0 0 16px;
}
.blog-post-body img {
  border-radius: 8px;
  margin: 16px 0;
}
.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.blog-post-body li {
  margin-bottom: 6px;
}
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
