:root {
  /* Warm neutrals (light) */
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-2: #f3ece2;
  --surface-3: #ebe1d2;
  --border: #e3d8c6;
  --border-strong: #d3c4ad;
  --text: #1d1714;
  --text-muted: #6b5e52;
  --text-subtle: #9a8c7d;
  --accent: #7a3b2e;
  --accent-hover: #5e2c22;
  --accent-soft: #f1e4dd;
  --gold: #b08d57;
  --success: #4f6f3f;
  --danger: #b54141;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.04), 0 1px 3px rgba(60, 40, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(60, 40, 20, 0.06), 0 2px 4px rgba(60, 40, 20, 0.04);
  --shadow-lg: 0 12px 32px rgba(60, 40, 20, 0.08), 0 4px 12px rgba(60, 40, 20, 0.05);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --heading-font: 'Fraunces', Georgia, serif;
  --body-font: 'Inter', system-ui, sans-serif;
  --container: 1280px;
  --header-height: 76px;
  --topbar-height: 36px;
}

[data-theme="dark"] {
  --bg: #18130f;
  --surface: #221b16;
  --surface-2: #2c241d;
  --surface-3: #382e26;
  --border: #3a2f26;
  --border-strong: #4a3d31;
  --text: #f5ece0;
  --text-muted: #b4a797;
  --text-subtle: #8a7e70;
  --accent: #d99780;
  --accent-hover: #e8a994;
  --accent-soft: #2e211b;
  --gold: #d4b07c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-neutral="cool"] {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --surface-3: #e4e7ec;
  --border: #dde1e7;
  --border-strong: #c8cdd6;
  --text: #16181c;
  --text-muted: #5b6470;
  --text-subtle: #8a93a0;
}
[data-neutral="cool"][data-theme="dark"] {
  --bg: #0f1317;
  --surface: #181d22;
  --surface-2: #20262d;
  --surface-3: #2a323a;
  --border: #2c333b;
  --border-strong: #3a4350;
  --text: #ecf0f5;
  --text-muted: #a8b2bd;
  --text-subtle: #7a8492;
}

[data-neutral="rose"] {
  --bg: #fbf6f5;
  --surface: #ffffff;
  --surface-2: #f6e9e6;
  --surface-3: #efdcd7;
  --border: #ead4cd;
  --border-strong: #d8b9b0;
  --text: #1d1414;
  --text-muted: #6a544f;
  --text-subtle: #9d847e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

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

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

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
[data-theme="dark"] .btn-primary {
  color: #18130f;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Pill / Tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
}
.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-gold {
  background: color-mix(in oklab, var(--gold) 18%, transparent);
  color: var(--gold);
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.card-soft {
  border: none;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Inputs */
.input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border 0.15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-accent { color: var(--accent); }

/* Section */
.section {
  padding: 56px 0;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
}
.section-title h2 {
  font-size: 30px;
  line-height: 1.1;
}
.section-title .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title .link {
  color: var(--text-muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.section-title .link:hover { color: var(--accent); }

/* Top bar */
.topbar {
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}
[data-theme="dark"] .topbar {
  background: var(--surface-3);
  color: var(--text);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar a:hover { opacity: 0.8; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .brand-mark { color: #18130f; }
.brand-name {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand-name em {
  font-style: italic;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text);
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
[data-theme="dark"] .icon-btn .badge { color: #18130f; }

/* Search */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin-left: 12px;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
}
.search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  transition: all 0.15s ease;
}
.search-wrap input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--surface-2);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-content {
  padding: 0 64px;
  max-width: 640px;
  margin-left: auto;
  width: 100%;
}
.hero-content .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-content h1 {
  font-size: 58px;
  line-height: 1.02;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-content p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 28px 0;
  max-width: 460px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-image {
  height: 100%;
  position: relative;
  background: var(--surface-3);
  overflow: hidden;
}
.hero-image .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-3) 0,
      var(--surface-3) 24px,
      var(--surface-2) 24px,
      var(--surface-2) 48px
    );
}
.hero-image .placeholder span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-subtle);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px dashed var(--border-strong);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 64px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dots button {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background 0.2s ease, width 0.2s ease;
}
.hero-dots button.active {
  background: var(--accent);
  width: 48px;
}

.hero-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 24px;
}
.hero-arrows button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}
.hero-arrows button:hover {
  background: var(--surface);
  border-color: var(--accent);
}

/* Brands strip */
.brands-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.brands-strip-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.brand-logo {
  display: grid;
  place-items: center;
  height: 48px;
  font-family: var(--heading-font);
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  border-right: 1px solid var(--border);
  transition: color 0.2s ease;
}
.brand-logo:last-child { border-right: none; }
.brand-logo:hover { color: var(--accent); }
.brand-logo.bold { font-style: normal; font-weight: 600; letter-spacing: 0.18em; font-size: 14px; text-transform: uppercase; }

/* Brand cards */
.brand-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.brand-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.brand-card:hover { transform: translateY(-4px); }
.brand-card .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-3) 0,
      var(--surface-3) 18px,
      var(--surface-2) 18px,
      var(--surface-2) 36px
    );
}
.brand-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 12, 8, 0.7) 100%);
}
.brand-card .label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  color: #fff;
}
.brand-card .label .name {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-card .label .count {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Catalog */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

/* Filters sidebar */
.filters {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding-right: 8px;
}
.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 {
  font-family: var(--body-font);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.filter-item:hover { color: var(--text); }
.filter-item input { margin-right: 10px; accent-color: var(--accent); }
.filter-item .count { color: var(--text-subtle); font-size: 12px; }
.filter-item-row { display: flex; align-items: center; }

.range-slider {
  margin: 14px 0 4px;
}
.range-track {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  position: relative;
  margin: 18px 4px 14px;
}
.range-track .filled {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.range-track .handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Catalog toolbar */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog-toolbar .results {
  font-size: 14px;
  color: var(--text-muted);
}
.catalog-toolbar .results strong {
  color: var(--text);
  font-weight: 600;
}
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sort-select {
  padding: 8px 32px 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5e52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card.style-soft {
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}
.product-card.style-soft:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card.style-bordered {
  border: 1px solid var(--border);
  box-shadow: none;
}
.product-card.style-bordered:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.product-card.style-flat {
  background: transparent;
  border: none;
  border-radius: 0;
}
.product-card.style-flat .product-image {
  border-radius: var(--radius);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}
.product-image .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-2) 0,
      var(--surface-2) 14px,
      var(--surface-3) 14px,
      var(--surface-3) 28px
    );
  display: grid;
  place-items: center;
}
.product-image .placeholder-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-subtle);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px dashed var(--border-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-image .badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-image .badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.product-image .badge-discount {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .product-image .badge-discount { color: #18130f; }
.product-image .badge-new {
  background: var(--gold);
  color: #fff;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: all 0.15s ease;
  z-index: 2;
}
.fav-btn:hover { color: var(--accent); }
.fav-btn.active { color: var(--accent); }
.fav-btn.active svg { fill: currentColor; }

.product-info {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-info .brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.product-info h3 {
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}
.product-info .meta {
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  gap: 10px;
}
.product-info .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.product-info .rating .stars { color: var(--gold); display: inline-flex; }
.product-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
.product-info .price {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.product-info .price-old {
  font-size: 13px;
  color: var(--text-subtle);
  text-decoration: line-through;
}
.product-info .stock {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.product-info .stock.low { color: var(--danger); }

.product-actions {
  padding: 0 16px 16px;
}
.add-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
}
.add-btn:hover {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .add-btn:hover { color: #18130f; }

/* Promo banner */
.promo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  min-height: 280px;
}
.promo-banner-content {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-banner-content .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.promo-banner-content h2 {
  font-size: 40px;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.promo-banner-content h2 em {
  font-style: italic;
  color: var(--accent);
}
.promo-banner-content p {
  color: var(--text-muted);
  margin: 0 0 24px 0;
  font-size: 15px;
  max-width: 380px;
}
.promo-banner-image {
  background: var(--surface-3);
  position: relative;
}
.promo-banner-image .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-3) 0,
      var(--surface-3) 24px,
      var(--surface-2) 24px,
      var(--surface-2) 48px
    );
  display: grid;
  place-items: center;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  margin: 14px 0 20px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--text);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: var(--text-subtle);
}
.payment-methods {
  display: flex;
  gap: 8px;
}
.payment-methods .pay {
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Cart drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 4, 0.45);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: var(--bg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 {
  font-size: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.drawer-header h3 small {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.drawer-close:hover { background: var(--surface-2); color: var(--text); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}
.cart-empty svg {
  margin: 0 auto 16px;
  color: var(--text-subtle);
}
.cart-empty h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.cart-item-image .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-2) 0,
      var(--surface-2) 10px,
      var(--surface-3) 10px,
      var(--surface-3) 20px
    );
}
.cart-item-info .brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 2px;
}
.cart-item-info h5 {
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.35;
}
.cart-item-info .price {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.qty-stepper button:hover { color: var(--accent); background: var(--surface-2); }
.qty-stepper span {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.cart-item-remove {
  font-size: 12px;
  color: var(--text-subtle);
  transition: color 0.15s ease;
}
.cart-item-remove:hover { color: var(--danger); }

.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px 24px;
  background: var(--surface);
}
.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.totals-row.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.totals-row.total .price {
  font-family: var(--heading-font);
  font-size: 24px;
  color: var(--accent);
}
.checkout-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: #25d366;
  color: white;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  transition: all 0.2s ease;
}
.checkout-btn:hover { background: #1fb455; }

/* Product page */
.product-page {
  padding-top: 32px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-subtle); }
.breadcrumb .current { color: var(--text); }

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
}
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.thumb.active { border-color: var(--accent); }
.thumb .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0, var(--surface-2) 8px, var(--surface-3) 8px, var(--surface-3) 16px);
}
.main-image {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.main-image .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0, var(--surface-2) 24px, var(--surface-3) 24px, var(--surface-3) 48px);
  display: grid;
  place-items: center;
}

.product-info-detail .brand-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-info-detail h1 {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.product-info-detail .rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.product-info-detail .price-block {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.product-info-detail .price-block .price {
  font-family: var(--heading-font);
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.product-info-detail .price-block .price-old {
  font-size: 16px;
  color: var(--text-subtle);
  text-decoration: line-through;
}
.product-info-detail .price-block .discount-pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.product-info-detail .description {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.product-info-detail .options {
  margin-bottom: 24px;
}
.product-info-detail .options h4 {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text);
}
.size-pills {
  display: flex;
  gap: 8px;
}
.size-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.size-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.size-pill:hover:not(.active) { border-color: var(--text-muted); }

.product-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.product-actions-row .qty-stepper-lg {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.product-actions-row .qty-stepper-lg button {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.product-actions-row .qty-stepper-lg button:hover { color: var(--accent); }
.product-actions-row .qty-stepper-lg span {
  width: 36px;
  text-align: center;
  font-weight: 600;
}

.product-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.meta-row svg { color: var(--accent); flex-shrink: 0; }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tab {
  padding: 14px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: color 0.15s ease;
  border: none;
  background: none;
  margin-right: 24px;
}
.tab.active { color: var(--text); }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Reviews */
.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.review-score-big {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 28px;
}
.review-score-big .num {
  font-family: var(--heading-font);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.review-score-big .stars {
  color: var(--gold);
  margin: 8px 0;
}
.review-score-big .count {
  font-size: 13px;
  color: var(--text-muted);
}
.review-distribution {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.review-bar {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.review-bar .track {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.review-bar .fill {
  height: 100%;
  background: var(--gold);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
}
.review-author .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.review-date {
  font-size: 12px;
  color: var(--text-subtle);
}
.review-stars {
  color: var(--gold);
  margin-bottom: 6px;
}
.review-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 2px;
}
.theme-toggle button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.theme-toggle button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-banner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .brands-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .brand-cards { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero-content h1 { font-size: 38px; }
  .hero-content { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .reviews-summary { grid-template-columns: 1fr; }
  .review-score-big { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 20px; }
}
