:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --border: #E5E2DC;
  --border-strong: #D1CCC2;
  --text: #18181B;
  --text-muted: #52525B;
  --accent: #9A6B2F;
  --accent-soft: #F5EFE6;
  --cta-bg: #111111;
  --cta-hover: #2E2E33;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 10px 28px rgba(24, 24, 27, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Top Affiliate Disclosure */
.disclosure-bar {
  background-color: #18181B;
  color: #E4E4E7;
  font-size: 0.78rem;
  padding: 9px 0;
  text-align: center;
}

.disclosure-bar a {
  color: #E5C28E;
  text-decoration: underline;
  margin-left: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 36px;
  height: 24px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active {
  font-weight: 600;
  position: relative;
}

/* Hero */
.hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* Controls Bar */
.catalog-section {
  padding: 36px 0 64px;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-btn.active {
  background-color: var(--text);
  border-color: var(--text);
  color: #FFFFFF;
}

.search-wrap {
  flex: 1 1 240px;
  max-width: 300px;
}

.search-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--accent);
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #F6F4EF 0%, #ECE8DF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-visual svg {
  width: 84px;
  height: 84px;
  opacity: 0.88;
}

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.tier-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.card-review {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-specs {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-specs li {
  font-size: 0.83rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.card-specs li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  position: absolute;
  left: 0;
  top: 8px;
}

.style-tip {
  background-color: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 9px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.style-tip strong {
  color: var(--text);
}

.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--cta-bg);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.card-cta:hover {
  background-color: var(--cta-hover);
}

.card-cta span {
  font-size: 1rem;
  line-height: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-secondary {
  appearance: none;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Editorial Guide Section */
.editorial-section {
  padding: 64px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.guide-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-number {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.guide-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Content Pages (About & Privacy) */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 620px;
}

.prose-section {
  padding: 42px 0 72px;
}

.prose-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  max-width: 820px;
}

.prose-card h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--text);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.prose-card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.prose-card a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.highlight-box {
  background-color: var(--accent-soft);
  border: 1px solid #E5D4BA;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.highlight-box p {
  color: var(--text);
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 44px 0 36px;
  background-color: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal p {
  margin-bottom: 10px;
}

.copyright {
  color: var(--text);
  font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    padding: 12px 20px;
    gap: 10px;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .search-wrap {
    max-width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}