/* ============================================================
   BON PLAN AUTO — Main Stylesheet
   Version: 1.0.0
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & RESET
   ============================================================ */

:root {
  color-scheme: light only;

  /* Palette */
  --cream:      #f9f6f1;
  --white:      #ffffff;
  --ink:        #1a1a18;
  --ink-light:  #4a4a47;
  --ink-faint:  #9a9a95;
  --accent:     #c8392b;
  --accent-bg:  #fdf2f0;
  --gold:       #b8923a;
  --border:     #e2ddd6;
  --nav-bg:     #1a1a18;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Libre Franklin', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container:  1200px;
  --radius:     6px;
  --radius-lg:  12px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(26,26,24,.08);
  --shadow-md:  0 4px 16px rgba(26,26,24,.10);
  --shadow-lg:  0 8px 32px rgba(26,26,24,.12);
  --shadow-hover: 0 12px 40px rgba(26,26,24,.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

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


/* ============================================================
   2. UTILITY CLASSES
   ============================================================ */

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

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}

.main-column {
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-more {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity .2s;
}
.section-more:hover { opacity: .75; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--accent);
  color: var(--white) !important;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #a82c21;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5625rem 1.25rem;
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* Tag badge */
.tag-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  transition: background .2s;
}
.tag-badge:hover { background: #f5d5d1; }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-2xl);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-light);
  background: var(--white);
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

/* No results */
.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}
.no-results__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}
.no-results__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}
.no-results__desc {
  color: var(--ink-light);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}
.no-results__actions {
  margin-bottom: var(--space-2xl);
}
.no-results__cats h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .45s ease both;
}


/* ============================================================
   3. HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1;
}

.logo-dot {
  color: var(--accent);
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 0 var(--space-sm) 0 var(--space-md);
  transition: border-color .2s, background .2s;
}
.header-search:focus-within {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

.header-search__input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 0.875rem;
  outline: none;
  padding: 0.5rem 0;
}
.header-search__input::placeholder {
  color: rgba(255,255,255,.4);
}

.header-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  padding: var(--space-xs);
  transition: color .2s;
}
.header-search__btn:hover { color: var(--white); }

/* Boutique button */
.btn-boutique {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.btn-boutique:hover { background: #a82c21; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary Nav */
.primary-nav {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.06);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.primary-nav__list li a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,.75);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 1rem;
  height: 44px;
  transition: color .2s, background .2s;
}
.primary-nav__list li a:hover,
.primary-nav__list li.current a {
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.primary-nav__list li.current a {
  color: var(--accent);
}


/* ============================================================
   4. FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  margin-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: var(--space-md);
}
.footer-logo span { color: var(--accent); }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--space-lg);
}

.footer-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  transition: opacity .2s;
}
.footer-shop-link:hover { opacity: .75; }

.footer-col__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--space-lg) 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--white); }


/* ============================================================
   5. SIDEBAR
   ============================================================ */

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-single .sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar-widget:last-child { margin-bottom: 0; }

.widget-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.widget-desc {
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-email {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem var(--space-md);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.newsletter-email:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,57,43,.12);
}

.newsletter-submit {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem;
  border-radius: var(--radius);
  transition: background .2s;
}
.newsletter-submit:hover { background: #a82c21; }

.newsletter-feedback {
  font-size: 0.8125rem;
  min-height: 1.25em;
}
.newsletter-feedback.success { color: #2d7a2d; }
.newsletter-feedback.error   { color: var(--accent); }

/* Boutique widget */
.boutique-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.boutique-tag {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.625rem;
  color: var(--ink-light);
  transition: all .2s;
}
.boutique-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-boutique-full {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem;
  border-radius: var(--radius);
  transition: background .2s;
}
.btn-boutique-full:hover { background: var(--accent); }

/* Categories widget */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.categories-list li a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--ink-light);
  transition: background .15s, color .15s;
}
.categories-list li a:hover,
.categories-list li.active a {
  background: var(--accent-bg);
  color: var(--accent);
}
.cat-icon { font-size: 1rem; }
.cat-name { flex: 1; }
.cat-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
  background: var(--cream);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
}

/* Popular widget */
.popular-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .2s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { opacity: .75; }

.popular-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.popular-item:first-child .popular-rank { background: var(--accent); color: var(--white); }

.popular-body { flex: 1; min-width: 0; }
.popular-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popular-meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* CTA boutique sidebar (sticky) */
.widget-cta-boutique--sticky {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.cta-boutique-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cta-boutique-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
}

.cta-boutique-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.cta-boutique-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

.cta-boutique-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem var(--space-md);
  border-radius: var(--radius);
  margin-top: var(--space-xs);
  transition: background .2s;
}
.cta-boutique-btn:hover { background: #a82c21; }

.cta-boutique-all {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.cta-boutique-all:hover { color: var(--white); }

.no-popular {
  font-size: 0.875rem;
  color: var(--ink-faint);
}


/* ============================================================
   6. ARTICLE CARDS
   ============================================================ */

/* Card */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .article-card__thumb img { transform: scale(1.04); }

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e3dc, #d0c8bc);
}

.badge-stock {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  background: rgba(26,26,24,.85);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.article-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.article-card__title a { color: var(--ink); transition: color .2s; }
.article-card__title a:hover { color: var(--accent); }

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.article-card__meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.btn-shop-small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent) !important;
  background: var(--accent-bg);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-shop-small:hover { background: #f5d5d1; }

/* Featured card */
.article-card--featured .article-card__body {
  padding: var(--space-lg);
}
.article-card--featured .article-card__title {
  font-size: 1.375rem;
}
.article-card--featured .article-card__excerpt {
  -webkit-line-clamp: 3;
}

/* Article row */
.article-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  transition: transform .2s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { transform: translateX(4px); }

.article-row__thumb {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-row:hover .article-row__thumb img { transform: scale(1.05); }

.article-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.article-row__title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.article-row__title a { color: var(--ink); transition: color .2s; }
.article-row__title a:hover { color: var(--accent); }

.article-row__meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: var(--ink-faint);
}


/* ============================================================
   7. HOME PAGE
   ============================================================ */

/* Hero */
.hero-section {
  background: var(--ink);
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-2xl);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-inner.hero-inner--has-image {
  grid-template-columns: 1fr 1fr;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.hero-title a { color: inherit; transition: opacity .2s; }
.hero-title a:hover { opacity: .85; }

.hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.8125rem;
  color: rgba(255,255,255,.45);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-xs);
}

/* Articles section */
.articles-section {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.articles-grid__featured {
  grid-column: 1;
}

.articles-grid__secondary {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* CTA Banner */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cta-banner__text { flex: 1; }

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-banner__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.cta-banner__btn:hover {
  background: #a82c21;
  transform: translateY(-1px);
}

/* Articles list */
.articles-list {
  margin-top: var(--space-md);
}


/* ============================================================
   8. ARCHIVE PAGE
   ============================================================ */

/* Archive hero */
.archive-hero {
  background: var(--ink);
  padding: var(--space-2xl) 0;
  margin-bottom: 0;
}

.archive-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.archive-hero__icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.archive-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.archive-hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.archive-hero__count {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(184,146,58,.12);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
}

/* Filters */
.archive-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 108px;
  z-index: 50;
}

.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.75rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar { display: none; }

.filter-tags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: nowrap;
}

.filter-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-light);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  white-space: nowrap;
  transition: all .2s;
}
.filter-tag.active,
.filter-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.sort-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: all .2s;
}
.sort-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}
.sort-btn:hover { color: var(--ink); }

/* Archive grid */
.archive-content {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.archive-grid__item {
  transition: opacity .3s;
}
.archive-grid__item.hidden {
  display: none;
}

/* Other categories */
.other-categories {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}
.other-categories .section-title {
  margin-bottom: var(--space-lg);
}

.other-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.other-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.other-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.other-cat-icon { font-size: 1.75rem; }
.other-cat-name { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
.other-cat-count { font-size: 0.75rem; color: var(--ink-faint); }


/* ============================================================
   9. SINGLE ARTICLE
   ============================================================ */

/* Reading progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.breadcrumb a { color: var(--ink-faint); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb span:last-child { color: var(--ink-light); }

/* Article header */
.article-single {
  max-width: 720px;
}

.article-header {
  margin-bottom: var(--space-xl);
}

.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.article-chapo {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ink-light);
  font-weight: 500;
}
.article-author img {
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

/* Article cover */
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}
.article-cover img {
  width: 100%;
  height: auto;
}

/* CTA box */
.article-cta-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--accent-bg);
  border: 1.5px solid #f5c0ba;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.article-cta-box--bottom {
  margin-top: var(--space-2xl);
  margin-bottom: 0;
}

.article-cta-box__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.article-cta-box__text {
  flex: 1;
  min-width: 0;
}
.article-cta-box__text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.article-cta-box__text span {
  font-size: 0.875rem;
  color: var(--ink-light);
}

.article-cta-box__btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.article-cta-box__btn:hover { background: #a82c21; }

/* Article content */
.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-light);
  margin-bottom: var(--space-xl);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-xl) 0 var(--space-sm);
}
.article-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-sm);
}
.article-content p { margin-bottom: var(--space-md); }
.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.375rem; }
.article-content strong { color: var(--ink); font-weight: 600; }
.article-content em { font-style: italic; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { opacity: .75; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--ink-light);
}
.article-content img {
  border-radius: var(--radius);
  margin: var(--space-xl) 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--space-xl) 0;
}
.article-content th,
.article-content td {
  padding: 0.625rem var(--space-md);
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--cream);
  font-weight: 600;
  color: var(--ink);
}
.article-content code {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: .875em;
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.article-tags__label {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.article-tag {
  font-size: 0.8125rem;
  color: var(--ink-light);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  transition: all .2s;
}
.article-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Share buttons */
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.article-share__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.article-share__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  transition: all .2s;
  border: 1.5px solid transparent;
}

.share-btn--facebook {
  background: #1877f2;
  color: var(--white);
}
.share-btn--facebook:hover { background: #1461c9; }

.share-btn--twitter {
  background: #1da1f2;
  color: var(--white);
}
.share-btn--twitter:hover { background: #1a8cd8; }

.share-btn--whatsapp {
  background: #25d366;
  color: var(--white);
}
.share-btn--whatsapp:hover { background: #1fb354; }

.share-btn--copy {
  background: var(--white);
  color: var(--ink-light);
  border-color: var(--border);
  font-family: var(--font-sans);
}
.share-btn--copy:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.share-btn--copy.copied {
  background: #2d7a2d;
  color: var(--white);
  border-color: transparent;
}

/* Related articles */
.related-articles {
  background: var(--cream);
  padding: var(--space-2xl) 0 var(--space-3xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}
.related-articles .section-title {
  margin-bottom: var(--space-xl);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}


/* ============================================================
   10. SEARCH PAGE
   ============================================================ */

.search-hero {
  background: var(--ink);
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-xl);
}

.search-hero__form { margin-bottom: var(--space-md); }

.search-hero__field {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  max-width: 600px;
  transition: border-color .2s, box-shadow .2s;
}
.search-hero__field:focus-within {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
}

.search-hero__field svg { color: var(--ink-faint); flex-shrink: 0; }

.search-hero__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
}

.search-hero__btn {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: background .2s;
}
.search-hero__btn:hover { background: #a82c21; }

.search-hero__count {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.6);
}
.search-hero__count strong { color: var(--white); }
.search-hero__count em { font-style: italic; color: var(--gold); }

.search-results {
  padding: 0 0 var(--space-3xl);
}


/* ============================================================
   11. STATIC PAGE
   ============================================================ */

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

.page-header { margin-bottom: var(--space-xl); }

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.page-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.page-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-light);
}


/* ============================================================
   12. DARK MODE OVERRIDE — Force light colors
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only;
    --cream:     #f9f6f1;
    --white:     #ffffff;
    --ink:       #1a1a18;
    --ink-light: #4a4a47;
    --ink-faint: #9a9a95;
    --accent:    #c8392b;
    --accent-bg: #fdf2f0;
    --gold:      #b8923a;
    --border:    #e2ddd6;
    --nav-bg:    #1a1a18;
  }
  body {
    background-color: #f9f6f1;
    color: #1a1a18;
  }
  .site-header,
  .primary-nav,
  .hero-section,
  .archive-hero,
  .search-hero,
  .site-footer {
    background: #1a1a18;
  }
}


/* ============================================================
   13. RESPONSIVE — 900px
   ============================================================ */

@media (max-width: 900px) {
  .container { padding: 0 var(--space-lg); }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .header-search { max-width: 220px; }

  .hero-inner.hero-inner--has-image {
    grid-template-columns: 1fr;
  }
  .hero-image { order: -1; }

  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid__featured { grid-column: 1; }
  .articles-grid__secondary { grid-column: 1; flex-direction: row; flex-wrap: wrap; }
  .articles-grid__secondary .article-card { flex: 1 1 240px; }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }

  .article-single { max-width: none; }
}


/* ============================================================
   14. RESPONSIVE — 600px (mobile)
   ============================================================ */

@media (max-width: 600px) {
  .container { padding: 0 var(--space-md); }

  /* Header */
  .header-inner { height: 56px; }
  .header-search { display: none; }
  .btn-boutique { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,.06);
    z-index: 99;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list {
    flex-direction: column;
    height: auto;
    padding: var(--space-sm) 0;
  }
  .primary-nav__list li a { height: 44px; }

  .site-header { position: sticky; top: 0; }

  /* Hero */
  .hero-section { padding: var(--space-lg) 0; }
  .hero-title { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }

  /* Articles */
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid__secondary { flex-direction: column; }
  .archive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .other-categories__grid { grid-template-columns: repeat(2, 1fr); }

  /* Archive filters */
  .archive-filters { top: 56px; }
  .filters-bar { flex-wrap: nowrap; }
  .sort-bar { flex-shrink: 0; }

  /* Article */
  .article-cta-box { flex-direction: column; text-align: center; }
  .article-cta-box__btn { width: 100%; justify-content: center; }
  .article-share { flex-direction: column; }
  .article-share__btns { justify-content: center; }

  /* CTA banner */
  .cta-banner { padding: var(--space-lg); }
  .cta-banner__btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
