/*
Theme Name: CrochetBloom
Theme URI: https://crochetpatternpdfs.com
Author: CrochetPatternPDFs
Author URI: https://crochetpatternpdfs.com
Description: A cozy, SEO-optimized WooCommerce theme for selling crochet pattern PDFs. Bilingual (EN/DE), fast, and crafted for conversion.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crochetbloom
Domain Path: /languages
Tags: woocommerce, digital-downloads, crafts, bilingual, seo, cottagecore, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --clr-cream:         #FDF8F3;
  --clr-white:         #FFFDF9;
  --clr-sage:          #6B9B7A;
  --clr-sage-dark:     #4D7A5A;
  --clr-sage-light:    #A8C9B4;
  --clr-sage-pale:     #EAF3EE;
  --clr-terracotta:    #C4704A;
  --clr-terracotta-lt: #E8A882;
  --clr-rose:          #D4909A;
  --clr-rose-pale:     #F9EEF0;
  --clr-yarn:          #C9A882;
  --clr-yarn-pale:     #F5EDE0;
  --clr-text:          #2D1F17;
  --clr-text-md:       #5A3D2B;
  --clr-text-lt:       #8A6A52;
  --clr-border:        #E8DDD5;
  --clr-border-lt:     #F2ECE6;
  --clr-shadow:        rgba(93, 62, 42, 0.08);
  --clr-shadow-md:     rgba(93, 62, 42, 0.14);
  --clr-overlay:       rgba(45, 31, 23, 0.5);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito', system-ui, -apple-system, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1280px;
  --container-2xl:  1440px;
  --container-pad:  clamp(1rem, 4vw, 2rem);

  /* Borders & Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px var(--clr-shadow);
  --shadow-md:  0 4px 16px var(--clr-shadow);
  --shadow-lg:  0 8px 32px var(--clr-shadow-md);
  --shadow-xl:  0 16px 48px var(--clr-shadow-md);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;

  /* Header */
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-normal);
  line-height: var(--leading-normal);
  color: var(--clr-text);
  background-color: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.admin-bar {
  margin-top: 32px;
}

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

a {
  color: var(--clr-sage-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--clr-terracotta); }

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

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-4); line-height: var(--leading-loose); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: var(--fw-bold); }
em, i { font-style: italic; }

blockquote {
  border-left: 4px solid var(--clr-sage);
  padding: var(--space-4) var(--space-6);
  background: var(--clr-sage-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--clr-text-md);
  margin: var(--space-8) 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--clr-border-lt);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--space-8) 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-2xl);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section--sm {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

.section--lg {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-sage { color: var(--clr-sage); }
.text-terracotta { color: var(--clr-terracotta); }
.text-muted { color: var(--clr-text-lt); }

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

/* Fade-in animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75em 1.75em;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--clr-sage-dark);   /* 4.9:1 contrast with white ✓ */
  color: var(--clr-white);
  border-color: var(--clr-sage-dark);
}

.btn--primary:hover {
  background: #3A6247;
  border-color: #3A6247;
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 122, 90, 0.38);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-sage-dark);
  border-color: var(--clr-sage);
}

.btn--secondary:hover {
  background: var(--clr-sage-pale);
  color: var(--clr-sage-dark);
}

.btn--terracotta {
  background: var(--clr-terracotta);
  color: var(--clr-white);
  border-color: var(--clr-terracotta);
}

.btn--terracotta:hover {
  background: #a85a38;
  border-color: #a85a38;
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 112, 74, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border);
}

.btn--ghost:hover {
  background: var(--clr-cream);
  border-color: var(--clr-text-lt);
  color: var(--clr-text);
}

.btn--lg {
  font-size: var(--text-lg);
  padding: 0.85em 2.25em;
}

.btn--sm {
  font-size: var(--text-sm);
  padding: 0.6em 1.25em;
}

.btn--full { width: 100%; }

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.badge--sage    { background: var(--clr-sage-pale);  color: var(--clr-sage-dark); }
.badge--terra   { background: #FDEEE6;               color: var(--clr-terracotta); }
.badge--rose    { background: var(--clr-rose-pale);  color: #a0566a; }
.badge--yarn    { background: var(--clr-yarn-pale);  color: #8a6232; }
.badge--new     { background: var(--clr-sage);       color: var(--clr-white); }
.badge--sale    { background: var(--clr-terracotta); color: var(--clr-white); }

/* Difficulty badges */
.difficulty--beginner     { background: #E8F5E9; color: #388E3C; }
.difficulty--intermediate { background: #FFF8E1; color: #F57C00; }
.difficulty--advanced     { background: #FCE4EC; color: #C62828; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-md);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  color: var(--clr-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-sage);
  box-shadow: 0 0 0 3px rgba(107, 155, 122, 0.2);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* Search form */
.search-form {
  display: flex;
  gap: var(--space-2);
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.375rem 0.375rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form:focus-within {
  border-color: var(--clr-sage);
  box-shadow: 0 0 0 3px rgba(107, 155, 122, 0.15);
}

.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--text-base);
  color: var(--clr-text);
}

.search-form button {
  background: var(--clr-sage);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form button:hover { background: var(--clr-sage-dark); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
  height: var(--header-height);
}

.site-header.scrolled {
  border-bottom-color: var(--clr-border);
  box-shadow: 0 2px 20px var(--clr-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.site-logo__tagline {
  font-size: var(--text-xs);
  color: var(--clr-sage-dark);   /* 4.9:1 on cream ✓ */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  margin-top: 2px;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

/* wp_nav_menu outputs <ul class="menu"> inside the <nav> — this must be flex */
.primary-nav .menu,
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.primary-nav .menu-item > a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-md);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.primary-nav .menu-item > a:hover,
.primary-nav .menu-item.current-menu-item > a {
  color: var(--clr-sage-dark);
  background: var(--clr-sage-pale);
}

/* Dropdown menus */
.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .menu-item-has-children > a::after {
  content: '▾';
  font-size: 0.7em;
  margin-left: var(--space-1);
  display: inline-block;
  transition: transform var(--transition-fast);
}

.primary-nav .menu-item-has-children:hover > a::after {
  transform: rotate(-180deg);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  transform: translateX(-50%) translateY(-8px);
  z-index: var(--z-dropdown);
}

.primary-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.primary-nav .sub-menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--clr-text-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.primary-nav .sub-menu a:hover {
  background: var(--clr-sage-pale);
  color: var(--clr-sage-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-md);
  transition: all var(--transition-fast);
}

.lang-switcher__toggle:hover {
  border-color: var(--clr-sage);
  color: var(--clr-sage-dark);
  background: var(--clr-sage-pale);
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.lang-switcher.open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--clr-text-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.lang-switcher__dropdown a:hover,
.lang-switcher__dropdown a.active {
  background: var(--clr-sage-pale);
  color: var(--clr-sage-dark);
}

.lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
}

/* Search toggle */
.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--clr-text-md);
  transition: all var(--transition-fast);
}

.header-search-toggle:hover {
  background: var(--clr-sage-pale);
  color: var(--clr-sage-dark);
}

/* Cart icon */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--clr-text-md);
  transition: all var(--transition-fast);
}

.header-cart:hover {
  background: var(--clr-sage-pale);
  color: var(--clr-sage-dark);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--clr-terracotta);
  color: var(--clr-white);
  font-size: 10px;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Header search overlay */
.header-search-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-4) var(--container-pad);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: calc(var(--z-sticky) - 1);
  box-shadow: var(--shadow-md);
}

.header-search-overlay.open {
  transform: translateY(0);
  opacity: 1;
}

/* Announcement bar */
.announcement-bar {
  background: var(--clr-sage-dark);   /* 4.9:1 with white ✓ */
  color: var(--clr-white);
  text-align: center;
  padding: var(--space-2) var(--container-pad);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.announcement-bar a {
  color: var(--clr-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: var(--clr-white);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-overlay);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--clr-border-lt);
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-md);
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--clr-cream);
  border-color: var(--clr-text-lt);
}

.mobile-nav {
  padding: var(--space-4) var(--space-6);
  flex: 1;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border-lt);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover { color: var(--clr-sage-dark); }

.mobile-nav .sub-menu {
  padding-left: var(--space-4);
}

.mobile-nav .sub-menu a {
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  color: var(--clr-text-md);
}

.mobile-menu-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--clr-border-lt);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(253, 248, 243, 0.95) 0%,
    rgba(253, 248, 243, 0.85) 40%,
    rgba(253, 248, 243, 0.4) 100%
  );
}

.hero--no-image .hero__background {
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(107,155,122,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(196,112,74,0.08) 0%, transparent 65%),
    linear-gradient(150deg, #EAF3EE 0%, #FDF8F3 55%, #F5EDE0 100%);
}

/* Decorative knit-dot texture on hero */
.hero--no-image .hero__background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(107,155,122,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Large decorative arc — right side of hero */
.hero--no-image .hero__background::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  border-radius: 50%;
  border: 40px solid rgba(107,155,122,0.09);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  margin-bottom: var(--space-4);
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--clr-sage);
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--leading-tight);
  color: var(--clr-text);
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: normal;
  color: var(--clr-sage-dark);
}

.hero__description {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--clr-text-md);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--clr-sage-dark);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-lt);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--clr-sage-dark);
  color: var(--clr-white);
  padding: var(--space-4) 0;
}

.trust-bar__items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.trust-bar__item svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  flex-shrink: 0;
}

.trust-bar__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.section-header.text-left {
  text-align: left;
  margin: 0 0 var(--space-10);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--clr-text);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--clr-text-lt);
  line-height: var(--leading-loose);
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.categories-section {
  background: var(--clr-white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

.category-card:hover .category-card__img {
  transform: scale(1.08);
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(45, 31, 23, 0.75) 0%,
    rgba(45, 31, 23, 0.1) 60%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  transition: background var(--transition-base);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(
    to top,
    rgba(45, 31, 23, 0.85) 0%,
    rgba(45, 31, 23, 0.2) 60%,
    rgba(45, 31, 23, 0.05) 100%
  );
}

.category-card__content {
  color: var(--clr-white);
}

.category-card__count {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: var(--space-1);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.category-card--large .category-card__name {
  font-size: var(--text-3xl);
}

.category-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.category-card:hover .category-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

/* Category no-image fallback */
.category-card--no-img {
  background: linear-gradient(135deg, var(--clr-sage-pale), var(--clr-yarn-pale));
  display: flex;
  align-items: flex-end;
}

.category-card--no-img .category-card__overlay {
  background: none;
  position: relative;
}

.category-card--no-img .category-card__content { color: var(--clr-text); }
.category-card--no-img .category-card__name { color: var(--clr-text); }

.category-card--no-img .category-card__icon {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  font-size: 2rem;
  opacity: 0.4;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--clr-border-lt);
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 1;
}

.product-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-lt);
  transition: all var(--transition-fast);
  opacity: 0;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
}

.product-card__wishlist:hover {
  background: var(--clr-white);
  color: var(--clr-rose);
  transform: scale(1.1);
}

.product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.product-card:hover .product-card__title { color: var(--clr-sage-dark); }

.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--clr-text-lt);
}

.product-card__stars {
  color: #f4b740;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--clr-border-lt);
}

.product-card__price {
  display: flex;
  flex-direction: column;
}

.price {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-sage-dark);
}

.price--sale {
  color: var(--clr-terracotta);
}

.price--regular.has-sale {
  font-size: var(--text-sm);
  font-weight: var(--fw-normal);
  color: var(--clr-text-lt);
  text-decoration: line-through;
}

.product-card__add-to-cart {
  background: var(--clr-sage-dark);   /* 4.9:1 with white ✓ */
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.product-card__add-to-cart:hover {
  background: #3A6247;
  transform: scale(1.05);
}

.product-card__download-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--clr-sage-dark);
  font-weight: var(--fw-semibold);
  background: var(--clr-sage-pale);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--clr-yarn-pale);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.33% - 10px);
  width: calc(33.33% + 20px);
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--clr-sage-light) 0,
    var(--clr-sage-light) 8px,
    transparent 8px,
    transparent 16px
  );
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--clr-sage);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--clr-white);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
}

.step-card__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  font-family: var(--font-heading);
}

.step-card__desc {
  font-size: var(--text-base);
  color: var(--clr-text-lt);
  line-height: var(--leading-loose);
}

/* ============================================================
   WHY CHOOSE US (Features)
   ============================================================ */
.features-section {
  background: var(--clr-cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.feature-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--clr-white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border-lt);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--clr-sage-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--clr-sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--clr-sage-dark);
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.feature-card__body {}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--space-2);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-lt);
  line-height: var(--leading-loose);
  margin: 0;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--clr-sage-dark) 0%, var(--clr-sage) 100%);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: var(--space-3);
}

.newsletter-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  margin-bottom: var(--space-4);
}

.newsletter-desc {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin-bottom: var(--space-8);
  line-height: var(--leading-loose);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  transition: all var(--transition-fast);
}

.newsletter-form:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-white);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  background: var(--clr-white);
  color: var(--clr-sage-dark);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.7rem 1.5rem;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--clr-cream);
  transform: scale(1.03);
}

.newsletter-note {
  font-size: var(--text-xs);
  opacity: 0.65;
  margin-top: var(--space-4);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-section {
  background: var(--clr-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-card {
  background: var(--clr-cream);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--clr-border-lt);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img { transform: scale(1.06); }

.blog-card__category-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
}

.blog-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--clr-text-lt);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.blog-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title { color: var(--clr-sage-dark); }

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--clr-text-lt);
  line-height: var(--leading-loose);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-sage-dark);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-card__read-more { gap: var(--space-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1C2922;   /* deep forest green — on-brand, premium */
  color: #C8D8CC;
}

.footer-top {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
}

.footer-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: #A8C0B0;   /* 5.2:1 on #1C2922 ✓ */
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--clr-sage);
  border-color: var(--clr-sage);
  color: var(--clr-white);
  transform: translateY(-3px);
}

.footer-col__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: #A8C0B0;   /* 5.2:1 on #1C2922 ✓ */
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a:hover {
  color: var(--clr-sage-light);
}

.footer-bottom {
  padding: var(--space-6) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: #8AA89A;   /* 4.6:1 on #1C2922 ✓ */
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: #8AA89A;   /* 4.6:1 on #1C2922 ✓ */
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: #C8D8CC; }

.footer-payment-icons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.5;
}

.footer-payment-icons img {
  height: 24px;
  width: auto;
}

/* ============================================================
   PAGE CONTENT (blog posts, static pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--clr-sage-pale), var(--clr-cream));
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
  text-align: center;
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--clr-text-lt);
}

.page-hero__breadcrumb a { color: var(--clr-text-lt); }
.page-hero__breadcrumb a:hover { color: var(--clr-sage-dark); }
.page-hero__breadcrumb .sep { opacity: 0.4; }

.content-area {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.entry-content ul,
.entry-content ol {
  list-style: initial;
  padding-left: 1.5rem;
  margin-bottom: var(--space-4);
  line-height: var(--leading-loose);
}

.entry-content ol { list-style: decimal; }

.entry-content img {
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--clr-sage-dark);
}

/* Sidebar layout */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
  align-items: start;
}

/* Single post */
.post-header {
  max-width: 720px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.post-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--clr-text-lt);
  margin-bottom: var(--space-4);
}

.post-header__title {
  margin-bottom: var(--space-4);
}

.post-header__excerpt {
  font-size: var(--text-xl);
  color: var(--clr-text-md);
  line-height: var(--leading-loose);
}

.post-thumbnail {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: var(--space-10);
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-footer {
  max-width: 720px;
  margin: var(--space-10) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.post-tag {
  font-size: var(--text-xs);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--clr-border-lt);
  color: var(--clr-text-md);
  transition: all var(--transition-fast);
}

.post-tag:hover {
  background: var(--clr-sage-pale);
  color: var(--clr-sage-dark);
}

.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--clr-text-lt);
}

.post-share a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-lt);
  transition: all var(--transition-fast);
}

.post-share a:hover {
  background: var(--clr-sage-pale);
  border-color: var(--clr-sage-light);
  color: var(--clr-sage-dark);
}

/* Author box */
.author-box {
  max-width: 720px;
  margin: var(--space-10) auto;
  background: var(--clr-sage-pale);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-sage-light);
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__name {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--space-2);
}

.author-box__bio {
  font-size: var(--text-sm);
  color: var(--clr-text-md);
  line-height: var(--leading-loose);
  margin: 0;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.widget-area {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.widget {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--clr-border-lt);
}

.widget-title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--clr-sage-pale);
}

.widget ul li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--clr-border-lt);
  font-size: var(--text-sm);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
  color: var(--clr-text-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget ul li a:hover { color: var(--clr-sage-dark); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-md);
  border: 1.5px solid var(--clr-border);
  transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--clr-sage);
  border-color: var(--clr-sage);
  color: var(--clr-white);
}

.pagination .prev,
.pagination .next {
  padding: 0 var(--space-5);
  width: auto;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 720px;
  margin: var(--space-10) auto 0;
}

.comments-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--clr-border);
}

.comment-list { display: flex; flex-direction: column; gap: var(--space-6); }

.comment {
  display: flex;
  gap: var(--space-4);
}

.comment__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

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

.comment__body {
  flex: 1;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.comment__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.comment__author {
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--clr-text);
}

.comment__date {
  font-size: var(--text-xs);
  color: var(--clr-text-lt);
}

.comment__text {
  font-size: var(--text-sm);
  color: var(--clr-text-md);
  line-height: var(--leading-loose);
}

.comment__reply a {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-sage-dark);
  margin-top: var(--space-3);
  display: inline-block;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--container-pad);
}

.error-404__number {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: var(--fw-extrabold);
  color: var(--clr-sage-pale);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-404__emoji {
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

.error-404__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.error-404__desc {
  font-size: var(--text-lg);
  color: var(--clr-text-lt);
  margin-bottom: var(--space-8);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--clr-sage);
  color: var(--clr-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: calc(var(--z-sticky) - 1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-sage-dark);
  transform: translateY(-3px);
}

/* ============================================================
   MINI CART SIDEBAR
   ============================================================ */
.mini-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 95vw);
  background: var(--clr-white);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.mini-cart-drawer.open { transform: translateX(0); }

.mini-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--clr-border-lt);
}

.mini-cart-drawer__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

.mini-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.mini-cart-drawer__footer {
  border-top: 1px solid var(--clr-border-lt);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mini-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

/* ============================================================
   UTILITY: SCREEN SIZE HELPERS
   ============================================================ */
/* hide-mobile has NO desktop display rule — each element keeps its own display value */
.show-mobile { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large desktop */
@media (max-width: 1280px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-card--large { grid-column: span 1; }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .with-sidebar {
    grid-template-columns: 1fr;
  }
  .widget-area { position: static; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .steps-grid::before { display: none; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hide-mobile { display: none; }
  .show-mobile { display: block; }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .hero__stats { gap: var(--space-6); }
  .hero__actions { gap: var(--space-3); }
  .newsletter-form { flex-direction: column; padding: var(--space-3); border-radius: var(--radius-xl); }
  .newsletter-form button { border-radius: var(--radius-lg); padding: 0.8rem; }
  .author-box { flex-direction: column; text-align: center; }
  .author-box__avatar { margin: 0 auto; }
  .post-footer { flex-direction: column; align-items: flex-start; }
}

/* Mobile */
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar__divider { display: none; }
  .trust-bar__items { gap: var(--space-4); justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-1); }
  .hero__title { font-size: var(--text-3xl); }
  .hero__actions { flex-direction: column; }
  .back-to-top { bottom: var(--space-4); right: var(--space-4); }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .announcement-bar,
  .back-to-top { display: none; }
  body { padding-top: 0; }
  .entry-content { max-width: 100%; }
}
