/* ===========================
   TOKENS
   =========================== */
:root {
  --cream: #F7F4EF;
  --ink: #1A1410;
  --warm-mid: #6B5B4E;
  --accent: #C4883A;
  --accent-light: #E8D5B7;
  --white: #FFFFFF;
  --border: #E0D8CF;
  --card-bg: #FDFAF7;
  --red: #B94040;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(26,20,16,0.08);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===========================
   COOKIE BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  font-size: 13px;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--accent-light); text-decoration: underline; }
.cookie-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  white-space: nowrap;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-dot { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm-mid);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--ink); }

.header-actions { margin-left: auto; }

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  box-shadow: var(--shadow);
  max-height: 80vh;
  overflow-y: auto;
}
.search-overlay[hidden] { display: none; }

.search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
#searchInput {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
}
#searchInput:focus { border-color: var(--accent); }

.search-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--warm-mid);
  padding: 4px 8px;
}

.search-results {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
}
.sr-msg { color: var(--warm-mid); padding: 12px 0; font-size: 14px; }
.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.sr-item:hover { color: var(--accent); }
.sr-item img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--border);
}
.sr-info { display: flex; flex-direction: column; gap: 2px; }
.sr-brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--warm-mid); }
.sr-title { font-size: 14px; font-weight: 500; }
.sr-price { font-size: 13px; color: var(--accent); }
.sr-price s { color: var(--warm-mid); font-weight: 400; margin-left: 6px; }

/* ===========================
   MAIN CONTENT
   =========================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HERO / PAGE HEADER
   =========================== */
.page-header {
  padding: 48px 24px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--warm-mid);
  margin-top: 8px;
  font-size: 15px;
  max-width: 560px;
}

/* ===========================
   BANNER
   =========================== */
.promo-banner {
  background: var(--ink);
  color: var(--white);
  margin: 0 24px 32px;
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: calc(1280px - 48px);
  margin-left: auto;
  margin-right: auto;
}
.banner-text h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.banner-text p { font-size: 14px; color: var(--accent-light); margin-top: 4px; }
.banner-cta {
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.banner-cta:hover { opacity: 0.85; }

/* ===========================
   FILTERS BAR
   =========================== */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 24px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.filter-count { font-size: 13px; color: var(--warm-mid); margin-right: auto; }

/* ===========================
   PRODUCT GRID
   =========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  padding: 0 24px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--border);
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .card-image-wrap img { transform: scale(1.04); }

.badge-discount {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-mid);
  font-weight: 500;
}
.card-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.spec-chip {
  font-size: 11px;
  background: var(--accent-light);
  color: var(--warm-mid);
  padding: 2px 8px;
  border-radius: 20px;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
.price-current {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}
.price-old {
  font-size: 13px;
  color: var(--warm-mid);
  text-decoration: line-through;
}

.card-cta {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-top: 12px;
  transition: background 0.2s;
}
.card-cta:hover { background: var(--accent); }

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 24px 48px;
}
.page-link {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  transition: all 0.15s;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ===========================
   NEWSLETTER
   =========================== */
.newsletter-section {
  background: var(--accent-light);
  padding: 48px 24px;
  text-align: center;
}
.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}
.newsletter-section p {
  color: var(--warm-mid);
  margin-bottom: 24px;
  font-size: 15px;
}

/* ===========================
   HOMEPAGE HERO
   =========================== */
.hero {
  padding: 80px 24px 64px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-text p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--warm-mid);
  max-width: 420px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--warm-mid);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===========================
   CATEGORY CARDS (homepage)
   =========================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 24px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s;
}
.cat-card:hover { box-shadow: var(--shadow); }
.cat-label {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}
.cat-count { font-size: 13px; color: var(--warm-mid); }
.cat-arrow { font-size: 20px; color: var(--accent); margin-top: auto; }

/* ===========================
   SECTION TITLE
   =========================== */
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  padding: 0 24px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ===========================
   LEGAL PAGES
   =========================== */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.legal-page p, .legal-page li { color: var(--warm-mid); line-height: 1.8; }
.legal-page ul { padding-left: 20px; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-tagline { font-size: 13px; color: var(--warm-mid); margin-top: 6px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.footer-nav a { font-size: 14px; color: var(--warm-mid); transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { display: flex; flex-direction: column; gap: 6px; }
.footer-legal a { font-size: 13px; color: var(--warm-mid); text-decoration: underline; }
.footer-disclaimer {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--warm-mid);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 32px;
  }
  .hero-stats { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .page-header { padding: 32px 16px 20px; }
  .product-grid { padding: 0 16px 32px; }
}
