/**
 * HaakAmigurumi Design System & Core Stylesheet
 * Mobile-First, Performance-Driven, Gutenberg-Ready
 * Version 2.2.0
 */

/* ==========================================================================
   1. CSS Custom Properties / Design System
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --color-cream: #FAF7F2;
  --color-beige: #F1E8DD;
  --color-terracotta: #B9684A;
  --color-terracotta-hover: #9E5338;
  --color-terracotta-light: #F7EDE7;
  --color-brown-dark: #3F332D;
  --color-brown-muted: #75665E;
  --color-brown-light: #A3968F;
  --color-white: #FFFFFF;
  --color-border: rgba(63, 51, 45, 0.12);
  --color-border-subtle: rgba(63, 51, 45, 0.06);

  /* Typography */
  --font-serif: "Playfair Display", "Lora", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-base: var(--font-sans);
  --font-heading: var(--font-serif);

  /* Fluid Font Sizes */
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;       /* 16px - Mobile body copy */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.4375rem;   /* 23px - H3 mobile */
  --text-2xl: 1.75rem;    /* 28px - H2 mobile */
  --text-3xl: 2.125rem;   /* 34px - H1 mobile */
  --text-4xl: 2.625rem;   /* 42px - Hero desktop */

  /* Line Heights */
  --lh-tight: 1.25;
  --lh-snug: 1.375;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* Spacing Scale */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4.5rem;   /* 72px */

  /* Layout Widths */
  --page-padding-mobile: 1.25rem; /* 20px */
  --page-padding-desktop: 2rem;   /* 32px */
  --container-max: 1180px;
  --reading-max: 720px;
  --container-narrow: 840px;

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows - subtle & refined */
  --shadow-subtle: 0 2px 8px rgba(63, 51, 45, 0.04);
  --shadow-card: 0 4px 16px rgba(63, 51, 45, 0.06);
  --shadow-hover: 0 8px 24px rgba(63, 51, 45, 0.09);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Touch Target */
  --touch-target: 44px;
}

/* ==========================================================================
   2. Modern Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: var(--lh-normal);
  color: var(--color-brown-dark);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-cream);
  color: var(--color-brown-dark);
  overflow-x: hidden;
  width: 100%;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* Skip to Content for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--color-brown-dark);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--color-white);
}

/* ==========================================================================
   3. Typography & Headings
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-brown-dark);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
  color: var(--color-brown-dark);
}

small {
  font-size: var(--text-xs);
}

/* ==========================================================================
   4. Layout Containers
   ========================================================================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding-mobile);
  padding-right: var(--page-padding-mobile);
}

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

.container-reading {
  max-width: var(--reading-max);
  margin-left: auto;
  margin-right: auto;
}

.section-spacing {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-spacing-sm {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.bg-beige {
  background-color: var(--color-beige);
}

.bg-white {
  background-color: var(--color-white);
}

.bg-cream {
  background-color: var(--color-cream);
}

/* Section Header */
.section-header {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.section-header--inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .section-header--inline {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-subtitle {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

.section-title {
  margin-bottom: 0;
}

.section-desc {
  font-size: var(--text-md);
  color: var(--color-brown-muted);
  max-width: 640px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-terracotta);
  white-space: nowrap;
}

.view-all-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* ==========================================================================
   5. Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--touch-target);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  border-color: var(--color-terracotta-hover);
  color: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-brown-dark);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-beige);
  color: var(--color-brown-dark);
  border-color: var(--color-brown-muted);
}

.btn-outline-terracotta {
  background-color: transparent;
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.btn-outline-terracotta:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: var(--text-sm);
}

.btn-block {
  width: 100%;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-terracotta);
  background-color: var(--color-terracotta-light);
  border-radius: var(--radius-full);
  width: fit-content;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.category-badge:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

/* ==========================================================================
   6. Header & Navigation (Desktop Dropdown & Off-Canvas)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: box-shadow var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--color-brown-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-title a:hover {
  color: var(--color-terracotta);
}

.site-title-accent {
  color: var(--color-terracotta);
}

.site-logo-icon {
  width: 28px;
  height: 28px;
  fill: var(--color-terracotta);
  flex-shrink: 0;
}

/* Desktop Primary Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block !important;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-md);
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--color-brown-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 0.35rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--color-terracotta);
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: width var(--transition-fast);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after {
  width: 100%;
}

.dropdown-arrow {
  font-size: 0.75rem;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.nav-menu .menu-item-has-children:hover .dropdown-arrow,
.nav-menu .menu-item-has-children:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

/* Desktop Dropdown Submenu */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  min-width: 250px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 120;
}

.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 0.6rem 1.15rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-brown-dark);
  white-space: nowrap;
}

.nav-menu .sub-menu li a::after {
  display: none;
}

.nav-menu .sub-menu li a:hover {
  background-color: var(--color-beige);
  color: var(--color-terracotta);
}

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

.header-search-btn,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-brown-dark);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto;
  position: relative;
  transition: all var(--transition-fast);
}

.header-search-btn:hover,
.mobile-menu-toggle:hover {
  background-color: var(--color-beige);
  color: var(--color-terracotta);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

.header-search-btn svg,
.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

.header-search-btn * {
  pointer-events: none;
}

.mobile-menu-toggle * {
  pointer-events: none;
}

/* Off-Canvas Drawer (Mobile Full / Desktop Secondary) */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(63, 51, 45, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 340px;
  height: 100%;
  background-color: var(--color-cream);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--color-brown-dark);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  pointer-events: none;
}

.mobile-menu-close * {
  pointer-events: none;
}

/* Visibility toggling for Mobile drawer contents */
@media (min-width: 1024px) {
  .nav-mobile-full {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .nav-mobile-full {
    display: block !important;
  }
}

/* Mobile Full Navigation */
.mobile-nav-list,
.desktop-secondary-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.mobile-nav-list a,
.desktop-secondary-nav-list a,
.mobile-sub-menu a,
.mobile-menu-footer a {
  display: block;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-brown-dark);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-list a:hover,
.desktop-secondary-nav-list a:hover,
.mobile-sub-menu a:hover {
  color: var(--color-terracotta);
  background-color: var(--color-beige);
}

.mobile-menu-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-link-wrapper a {
  flex-grow: 1;
}

.mobile-submenu-toggle {
  width: var(--touch-target);
  height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-brown-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mobile-submenu-toggle svg {
  transition: transform var(--transition-fast);
}

.mobile-menu-item-has-children.is-submenu-open .mobile-submenu-toggle svg {
  transform: rotate(180deg);
}

/* Collapsible Mobile Submenu */
.mobile-sub-menu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-beige);
  margin-left: 0.5rem;
}

.mobile-menu-item-has-children.is-submenu-open .mobile-sub-menu {
  max-height: 280px;
  opacity: 1;
  margin-top: var(--space-2xs);
  margin-bottom: var(--space-xs);
}

.mobile-sub-menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-brown-muted);
  padding: 0.45rem 0.5rem;
}

.mobile-nav-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-sm) 0;
}

.mobile-nav-secondary a {
  font-size: var(--text-sm);
  color: var(--color-brown-muted);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Header Integrated Search Bar & Overlay
   ========================================================================== */
.header-search-bar {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 16px rgba(63, 51, 45, 0.08);
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              visibility 0.28s ease,
              padding 0.28s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.header-search-bar.is-open {
  display: block;
  max-height: 200px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.header-search-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-form {
  width: 100%;
  max-width: 680px;
}

.header-search-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 8px 4px 14px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-search-input-group:focus-within {
  border-color: var(--color-terracotta);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(185, 104, 74, 0.15);
}

.header-search-prefix-icon {
  color: var(--color-brown-muted);
  flex-shrink: 0;
}

.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.25rem;
  font-size: var(--text-base);
  color: var(--color-brown-dark);
  outline: none;
  width: 100%;
}

.header-search-input::placeholder {
  color: var(--color-brown-light);
  font-size: 0.9375rem;
}

.header-search-submit {
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  min-height: 36px;
  flex-shrink: 0;
}

.header-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--color-brown-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.header-search-close:hover,
.header-search-close:focus-visible {
  background-color: var(--color-beige);
  color: var(--color-brown-dark);
}

.header-search-close * {
  pointer-events: none;
}

@media (max-width: 540px) {
  .header-search-input-group {
    padding: 3px 6px 3px 10px;
    gap: 4px;
  }
  .header-search-input {
    font-size: 0.875rem;
    padding: 0.4rem 0.15rem;
  }
  .header-search-input::placeholder {
    font-size: 0.8125rem;
  }
  .header-search-submit {
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
  }
  .header-search-close {
    width: 32px;
    height: 32px;
  }
}

/* Standalone Search Form Component (search.php, 404.php, etc.) */
.search-form-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.search-form-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form-group:focus-within {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(185, 104, 74, 0.15);
}

.search-form-group .search-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.25rem;
  font-size: var(--text-base);
  color: var(--color-brown-dark);
  outline: none;
  width: 100%;
}

.search-form-group .search-submit {
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}

/* ==========================================================================
   7. Homepage Components
   ========================================================================== */
.hero-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-beige) 100%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.hero-content {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
  color: var(--color-brown-dark);
}

.hero-text {
  font-size: var(--text-md);
  color: var(--color-brown-muted);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* Pillar Discovery Cards (4 Pillars) */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

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

.pillar-card:hover::before {
  background-color: var(--color-terracotta);
}

.pillar-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.pillar-card:hover .pillar-icon-wrapper {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.pillar-icon-wrapper svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.pillar-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xs);
  color: var(--color-brown-dark);
}

.pillar-desc {
  font-size: var(--text-sm);
  color: var(--color-brown-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-sm);
}

.pillar-link-text {
  margin-top: auto;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Leren Haken Spotlight on Homepage */
.leren-haken-spotlight {
  background-color: var(--color-beige);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .leren-haken-spotlight {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2xl);
  }

  .leren-haken-spotlight-content {
    max-width: 55%;
  }
}

.leren-haken-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  list-style: none;
}

.leren-haken-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-brown-dark);
}

.leren-haken-features svg {
  width: 18px;
  height: 18px;
  fill: var(--color-terracotta);
  flex-shrink: 0;
}

.leren-haken-spotlight-visual {
  width: 100%;
}

@media (min-width: 768px) {
  .leren-haken-spotlight-visual {
    max-width: 42%;
    flex-shrink: 0;
  }
}

.featured-lesson-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.featured-lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-terracotta);
}

.featured-lesson-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-beige);
  overflow: hidden;
}

.featured-lesson-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
  display: block;
}

.featured-lesson-card:hover .featured-lesson-thumb {
  transform: scale(1.03);
}

.featured-lesson-icon-banner {
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-lesson-icon-banner svg {
  stroke: var(--color-terracotta);
}

.featured-lesson-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.featured-lesson-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-terracotta);
  margin-bottom: 2px;
}

.featured-lesson-title {
  font-size: 1.2rem;
  line-height: var(--lh-tight);
  color: var(--color-brown-dark);
  margin-bottom: 0.25rem;
}

.featured-lesson-desc {
  font-size: var(--text-sm);
  color: var(--color-brown-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
}

.featured-lesson-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.featured-lesson-link:hover {
  color: var(--color-terracotta-hover);
  transform: translateX(3px);
}

/* Compact Over HaakAmigurumi Strip */
.border-top-subtle {
  border-top: 1px solid var(--color-border-subtle);
}

.about-compact-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
}

@media (min-width: 768px) {
  .about-compact-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-2xl);
  }

  .about-compact-text {
    max-width: 720px;
  }

  .about-compact-action {
    flex-shrink: 0;
  }
}

.about-compact-title {
  font-size: 1.35rem;
  margin-top: 0.25rem;
  margin-bottom: var(--space-xs);
  color: var(--color-brown-dark);
  line-height: var(--lh-tight);
}

@media (min-width: 600px) {
  .about-compact-title {
    font-size: 1.55rem;
  }
}

.about-compact-desc {
  font-size: 0.9375rem;
  color: var(--color-brown-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: 0;
}

/* ==========================================================================
   8. Leren Haken Redesigned Discovery Grid (template-leren-haken.php)
   ========================================================================== */
.leren-haken-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .leren-haken-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.leren-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.leren-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-terracotta);
}

.leren-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-beige);
}

.leren-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .leren-card:hover .leren-card-image {
    transform: scale(1.03);
  }
}

.leren-card-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leren-card-fallback-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-brown-dark);
}

.leren-card-fallback-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leren-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.leren-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.leren-card-title a {
  color: var(--color-brown-dark);
}

.leren-card-title a:hover {
  color: var(--color-terracotta);
}

.leren-card-desc {
  font-size: var(--text-sm);
  color: var(--color-brown-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-lg);
}

.leren-card-footer {
  margin-top: auto;
}

/* ==========================================================================
   9. Post & Pattern Card Grid System & Hover Movement
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-grid--4col {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .post-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   9. Post Cards & Editorial Article Layout
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl) var(--space-lg);
  }
}

.post-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(63, 51, 45, 0.12);
  border-color: rgba(185, 104, 74, 0.3);
}

.post-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.post-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--color-beige);
  overflow: hidden;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .post-card:hover .post-card-thumb {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card:hover,
  .post-card-thumb,
  .post-card:hover .post-card-thumb {
    transform: none !important;
    transition: none !important;
  }
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-cream) 100%);
  color: var(--color-terracotta);
  opacity: 0.8;
}

.post-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background-color: var(--color-brown-dark);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.post-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.post-card-title a {
  color: var(--color-brown-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.post-card-title a:hover,
.post-card:hover .post-card-title a {
  color: var(--color-terracotta);
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-brown-muted);
  line-height: 1.55;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt p {
  margin: 0;
}

.post-card-footer {
  margin-top: auto;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border-subtle);
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-card-link:hover {
  color: var(--color-terracotta-hover);
}

.post-card-link svg {
  transition: transform var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .post-card:hover .post-card-link svg {
    transform: translateX(4px);
  }
}

/* Featured Post Top Banner Card */
.featured-post-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-2xl);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.featured-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(63, 51, 45, 0.12);
}

.featured-post-inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 860px) {
  .featured-post-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }
}

.featured-post-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.featured-post-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--color-beige);
  overflow: hidden;
  height: 100%;
}

.featured-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .featured-post-card:hover .featured-post-thumb {
    transform: scale(1.03);
  }
}

.featured-ribbon-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.featured-post-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .featured-post-body {
    padding: var(--space-2xl);
  }
}

.featured-post-meta {
  margin-bottom: var(--space-xs);
}

.featured-post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-sm);
}

.featured-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-post-title a:hover,
.featured-post-card:hover .featured-post-title a {
  color: var(--color-terracotta);
}

.featured-post-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-brown-muted);
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-featured-read {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   10. Blog Category Chips & Toolbar
   ========================================================================== */
.blog-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--color-brown-dark);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-tight);
}

.blog-hero-desc {
  max-width: 650px;
  margin: 0 auto;
  font-size: var(--text-md);
  color: var(--color-brown-muted);
  line-height: var(--lh-relaxed);
}

.blog-nav-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
}

@media (min-width: 860px) {
  .blog-nav-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.blog-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

@media (min-width: 860px) {
  .blog-category-chips {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-brown-dark);
  background-color: var(--color-cream);
  border: 1.5px solid var(--color-border-subtle);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.category-chip:hover {
  background-color: var(--color-beige);
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.category-chip.is-active {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(185, 104, 74, 0.25);
}

.blog-sort-form {
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .blog-sort-form {
    width: 100%;
    justify-content: flex-end;
  }
}

.blog-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-prefix {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brown-muted);
}

.blog-sort-select {
  min-height: 38px;
  padding: 0.45rem 2.2rem 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-cream);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brown-dark);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2375665E'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem;
}

.blog-sort-select:focus {
  background-color: var(--color-white);
  border-color: var(--color-terracotta);
}

/* Single Article Social Share Bar */
.social-share-wrapper {
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.social-share-wrapper--compact {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.social-share-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brown-muted);
}

.social-share-label svg {
  color: var(--color-terracotta);
}

.social-share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-brown-dark);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  outline: none;
}

.social-share-btn:hover,
.social-share-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--color-white);
}

.share-btn-pinterest:hover,
.share-btn-pinterest:focus-visible {
  background-color: #BD081C;
  border-color: #BD081C;
}

.share-btn-facebook:hover,
.share-btn-facebook:focus-visible {
  background-color: #1877F2;
  border-color: #1877F2;
}

.share-btn-instagram:hover,
.share-btn-instagram:focus-visible {
  background-color: #E4405F;
  border-color: #E4405F;
}

.share-btn-x:hover,
.share-btn-x:focus-visible {
  background-color: #000000;
  border-color: #000000;
}

.share-btn-copy:hover,
.share-btn-copy:focus-visible {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

/* Toast Feedback Notification */
.ha-share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--color-brown-dark);
  color: var(--color-white);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ha-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   11. Single Article / Pattern Page
   ========================================================================== */
.single-article-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.single-article-title {
  font-size: var(--text-3xl);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-xs);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .single-article-title {
    font-size: 2.5rem;
  }
}

.single-article-meta {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.article-views-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-brown-muted);
  line-height: 1.4;
  transition: all var(--transition-fast);
}

.article-views-count .views-eye-icon {
  font-size: 0.875rem;
  line-height: 1;
}

.article-views-count.is-popular {
  background-color: rgba(224, 90, 43, 0.08);
  border-color: rgba(224, 90, 43, 0.3);
  color: var(--color-brown-dark);
  font-weight: 700;
}

.article-views-count .views-fire-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  animation: firePulse 2.5s ease-in-out infinite;
}

.article-views-count .views-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-left: 2px;
}

@keyframes firePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.single-featured-image-wrapper {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-subtle);
}

.single-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.entry-content {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--color-brown-dark);
}

.entry-content p {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .entry-content p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }
}

@media (max-width: 767px) {
  .entry-content p {
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
  }
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content ul,
.entry-content ol,
.entry-content li,
.entry-content blockquote,
.entry-content figcaption,
.entry-content table,
.entry-content .wp-block-button,
.entry-content .crochet-callout {
  text-align: left !important;
  text-justify: auto !important;
}

.entry-content h2 {
  font-size: 1.625rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.entry-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content h4 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-terracotta);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background-color: var(--color-beige);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-brown-dark);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content figure {
  margin: var(--space-xl) 0;
}

.entry-content figcaption {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  text-align: center;
  margin-top: var(--space-xs);
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: var(--text-sm);
}

.entry-content th,
.entry-content td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background-color: var(--color-beige);
  font-weight: 600;
}

.entry-content hr {
  border: 0;
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-2xl) 0;
}

.crochet-callout {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-terracotta);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-subtle);
}

.crochet-callout-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crochet-callout-title svg {
  width: 20px;
  height: 20px;
  fill: var(--color-terracotta);
}

.crochet-callout ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.post-navigation {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 680px) {
  .post-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .post-nav-card--next:first-child {
    grid-column: 2;
  }
}

.post-nav-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.125rem;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease;
  min-height: 84px;
  position: relative;
  outline: none;
}

.post-nav-card:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

.post-nav-card:hover,
.post-nav-card:focus-visible {
  transform: translateY(-2.5px);
  border-color: var(--color-terracotta);
  box-shadow: 0 6px 18px rgba(117, 74, 55, 0.12);
  background-color: var(--color-cream);
}

.post-nav-card--prev {
  text-align: left;
}

.post-nav-card--next {
  text-align: right;
  justify-content: flex-end;
}

.post-nav-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 680px) {
  .post-nav-thumb {
    width: 68px;
    height: 68px;
  }
}

.post-nav-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.post-nav-card:hover .post-nav-thumb-img,
.post-nav-card:focus-visible .post-nav-thumb-img {
  transform: scale(1.06);
}

.post-nav-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-cream);
  color: var(--color-terracotta);
  opacity: 0.75;
}

.post-nav-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.post-nav-card--prev .post-nav-content {
  align-items: flex-start;
  text-align: left;
}

.post-nav-card--next .post-nav-content {
  align-items: flex-end;
  text-align: right;
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brown-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.post-nav-card:hover .post-nav-label,
.post-nav-card:focus-visible .post-nav-label {
  color: var(--color-terracotta);
}

.post-nav-arrow {
  color: var(--color-terracotta);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.post-nav-card--prev:hover .post-nav-arrow--prev,
.post-nav-card--prev:focus-visible .post-nav-arrow--prev {
  transform: translateX(-4px);
}

.post-nav-card--next:hover .post-nav-arrow--next,
.post-nav-card--next:focus-visible .post-nav-arrow--next {
  transform: translateX(4px);
}

.post-nav-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brown-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  transition: color 0.2s ease;
}

.post-nav-card:hover .post-nav-title,
.post-nav-card:focus-visible .post-nav-title {
  color: var(--color-terracotta);
}

@media (prefers-reduced-motion: reduce) {
  .post-nav-card,
  .post-nav-thumb-img,
  .post-nav-arrow {
    transition: none !important;
    transform: none !important;
  }
}

.related-posts-section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   12. Newsletter Signup Component
   ========================================================================== */
.newsletter-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-terracotta) 0%, var(--color-beige) 100%);
}

.newsletter-inner {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-sm);
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.newsletter-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.newsletter-desc {
  font-size: var(--text-sm);
  color: var(--color-brown-muted);
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

@media (min-width: 500px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex-grow: 1;
  min-height: var(--touch-target);
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-cream);
  color: var(--color-brown-dark);
}

.newsletter-input:focus {
  border-color: var(--color-terracotta);
  background-color: var(--color-white);
}

.newsletter-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-brown-light);
  margin-top: var(--space-xs);
}

.newsletter-box--in-article {
  margin: var(--space-2xl) 0;
  background-color: var(--color-beige);
}

/* ==========================================================================
   13. Shop Landing Page, Digital Products & Affiliate Showcase
   ========================================================================== */
.shop-hero-section {
  padding: var(--space-2xl) 0 var(--space-xl);
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border-subtle);
  text-align: center;
}

.shop-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  background-color: var(--color-terracotta-light);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
}

.shop-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  color: var(--color-brown-dark);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-xs);
}

.shop-lead {
  max-width: 680px;
  margin: 0 auto var(--space-xs);
  font-size: var(--text-md);
  color: var(--color-brown-muted);
  line-height: var(--lh-relaxed);
}

.shop-sublead {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-brown-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

/* Digital Products Section (Section A - Our Products) */
.digital-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 580px) {
  .digital-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 992px) {
  .digital-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.digital-product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.digital-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(185, 104, 74, 0.35);
}

.digital-product-card--featured {
  border-color: var(--color-terracotta);
  position: relative;
}

.digital-product-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-terracotta);
  z-index: 3;
}

.digital-product-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 3D Interactive Visual / Image Area */
.digital-product-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #F8F2ED;
  overflow: hidden;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.digital-product-thumb-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.digital-product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.digital-product-card:hover .digital-product-thumb {
  transform: scale(1.035);
}

.digital-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background: linear-gradient(135deg, #F9F4EE 0%, #EFE5DB 100%);
  color: var(--color-terracotta);
}

.placeholder-graphic {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(185, 104, 74, 0.12);
}

.placeholder-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brown-muted);
}

.digital-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.digital-product-badge--featured {
  background-color: var(--color-brown-dark);
}

/* Card Body */
.digital-product-body {
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.digital-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: var(--lh-snug);
  margin-bottom: 6px;
  color: var(--color-brown-dark);
}

.digital-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.digital-product-title a:hover,
.digital-product-card:hover .digital-product-title a {
  color: var(--color-terracotta);
}

.digital-product-desc {
  font-size: 0.84rem;
  color: var(--color-brown-muted);
  line-height: 1.48;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.digital-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-subtle);
}

.digital-product-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.digital-product-price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brown-dark);
}

.digital-product-price-old {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--color-brown-light);
}

.btn-shop-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-shop-cta:hover,
.btn-shop-cta:focus-visible {
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(185, 104, 74, 0.3);
}

.btn-shop-cta .cta-arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

.btn-shop-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* SECTION B: Recommended Crochet Tools (Affiliate Showcase Slider) */
.affiliate-slider-container {
  position: relative;
  margin-top: var(--space-xl);
}

.affiliate-showcase-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.affiliate-showcase-wrapper:active,
.affiliate-showcase-wrapper.is-dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

.affiliate-showcase-wrapper.is-dragging * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.affiliate-showcase-wrapper::-webkit-scrollbar {
  display: none;
}

.affiliate-showcase-grid {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

.affiliate-item-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 220px;
  max-width: 250px;
  scroll-snap-align: start;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

@media (min-width: 1200px) {
  .affiliate-item-card {
    flex: 0 0 calc((100% - (16px * 4)) / 5);
    max-width: none;
  }
}

.affiliate-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Obsolete Slider Buttons Hidden */
.affiliate-slider-btn {
  display: none !important;
}

@media (max-width: 480px) {
  .affiliate-item-card {
    flex: 0 0 195px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-showcase-wrapper {
    scroll-behavior: auto;
  }
  .affiliate-slider-btn {
    transition: none;
  }
}

/* Pastel visual tone backgrounds */
.affiliate-item-card--tone-0 .affiliate-item-thumb-wrapper { background-color: #FAF4ED; }
.affiliate-item-card--tone-1 .affiliate-item-thumb-wrapper { background-color: #F4EDE4; }
.affiliate-item-card--tone-2 .affiliate-item-thumb-wrapper { background-color: #F8ECE7; }
.affiliate-item-card--tone-3 .affiliate-item-thumb-wrapper { background-color: #F5EAE6; }
.affiliate-item-card--tone-4 .affiliate-item-thumb-wrapper { background-color: #F9EBF0; }

.affiliate-item-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliate-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.affiliate-item-card:hover .affiliate-item-thumb {
  transform: scale(1.03);
}

.affiliate-item-placeholder {
  color: var(--color-terracotta);
  opacity: 0.6;
}

.affiliate-item-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-brown-dark);
  color: var(--color-white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.affiliate-item-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.affiliate-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--color-brown-dark);
}

.affiliate-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.affiliate-item-title a:hover,
.affiliate-item-card:hover .affiliate-item-title a {
  color: var(--color-terracotta);
}

.affiliate-item-desc {
  font-size: 0.78rem;
  line-height: 1.42;
  color: var(--color-brown-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.affiliate-item-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--color-border-subtle);
}

.affiliate-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--color-cream);
  border: 1.5px solid var(--color-border);
  color: var(--color-brown-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.affiliate-item-btn:hover,
.affiliate-item-btn:focus-visible {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  background-color: var(--color-white);
}

.affiliate-item-btn .aff-arrow {
  transition: transform var(--transition-fast);
}

.affiliate-item-btn:hover .aff-arrow {
  transform: translateX(3px);
}

/* Affiliate Disclosure Box */
.affiliate-disclosure-box {
  margin-top: var(--space-2xl);
  padding: 0.85rem 1.25rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--color-brown-muted);
}

.affiliate-disclosure-box svg {
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.affiliate-disclosure-text {
  margin-bottom: 0;
  line-height: 1.45;
}

.affiliate-disclosure-link {
  color: var(--color-terracotta);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.affiliate-disclosure-link:hover {
  text-decoration: underline;
}

/* Shop Help Section */
.shop-help-card {
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-beige);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.shop-help-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.shop-help-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2xs);
}

.shop-help-desc {
  font-size: 0.9rem;
  color: var(--color-brown-muted);
  max-width: 540px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
}

/* Shop Trust Section */
.shop-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .shop-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.shop-trust-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.shop-trust-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-sm);
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-trust-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2xs);
}

.shop-trust-desc {
  font-size: 0.8125rem;
  color: var(--color-brown-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

/* ==========================================================================
   14. Search, 404 & Empty States
   ========================================================================== */
.search-form-wrapper {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.search-form {
  display: flex;
  width: 100%;
  position: relative;
}

.search-field {
  width: 100%;
  min-height: var(--touch-target);
  padding: 0.65rem 3rem 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  font-size: var(--text-base);
}

.search-submit {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 38px;
  border: none;
  background: transparent;
  color: var(--color-terracotta);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.search-submit:hover {
  background-color: var(--color-terracotta-light);
}

.search-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
  color: var(--color-brown-light);
}

.empty-state-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.empty-state-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.empty-state-text {
  font-size: var(--text-md);
  color: var(--color-brown-muted);
  margin-bottom: var(--space-lg);
}

.error-404-container {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-number {
  font-size: 5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

/* Pagination */
.pagination-wrapper {
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target);
  height: var(--touch-target);
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-brown-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.page-numbers.current {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
}

.page-numbers:hover:not(.current) {
  background-color: var(--color-beige);
  color: var(--color-terracotta);
}

/* ==========================================================================
   15. Comments Section & Custom Callback
   ========================================================================== */
.comments-area {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

.comment-list {
  list-style: none;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.comment-list .children {
  list-style: none;
  padding-left: var(--space-md);
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-left: 2px solid var(--color-beige);
}

.comment-body {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.comment-meta {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
}

.comment-author-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-brown-dark);
}

.comment-content {
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  color: var(--color-brown-dark);
}

.comment-reply-link {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-terracotta);
  margin-top: var(--space-xs);
}

.comment-reply-link:hover {
  text-decoration: underline;
}

.comment-form {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.comment-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-cream);
  margin-bottom: var(--space-md);
}

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

/* ==========================================================================
   16. Ad Space Containers (Layout-Safe)
   ========================================================================== */
.ad-slot-container {
  width: 100%;
  margin: var(--space-xl) auto;
  text-align: center;
}

.ad-slot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background-color: transparent;
}

.ad-slot-container:empty {
  display: none;
}

/* ==========================================================================
   17. Footer & Dedicated Mobile Layout
   ========================================================================== */
.site-footer {
  background-color: var(--color-brown-dark);
  color: #ECE5DE;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-top: auto;
}

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

@media (min-width: 768px) {
  .site-footer {
    padding-top: var(--space-3xl);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    text-align: left;
  }

  .footer-col-brand p {
    max-width: 320px;
  }

  .footer-menu {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer-col-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col-brand .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col-brand p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-menu {
    align-items: center;
  }

  .footer-bottom {
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.footer-col-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.footer-col-brand .footer-logo span {
  color: var(--color-terracotta);
}

.footer-col-brand p {
  font-size: var(--text-sm);
  color: #C8BCB4;
  line-height: var(--lh-normal);
}

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

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-menu a,
.footer-cookie-btn {
  color: #C8BCB4;
  font-size: var(--text-sm);
  display: inline-block;
  padding: 0.25rem 0.5rem;
  min-height: 36px;
  line-height: 28px;
  transition: color var(--transition-fast);
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: inherit;
}

.footer-menu a:hover,
.footer-cookie-btn:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #A3968F;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-cookie-link {
  background: transparent;
  border: none;
  color: #C8BCB4;
  font-size: var(--text-xs);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
  font-family: inherit;
}

.footer-cookie-link:hover {
  color: var(--color-white);
}

.footer-bottom a {
  color: #C8BCB4;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   18. Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-full);
  background-color: var(--color-brown-dark);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(63, 51, 45, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.back-to-top.is-visible {
  opacity: 0.92;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  opacity: 1;
  background-color: var(--color-terracotta);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 104, 74, 0.35);
  outline: none;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  pointer-events: none;
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   19. Gutenberg Core Block Support
   ========================================================================== */
.wp-block-image {
  margin: var(--space-lg) 0;
}

.wp-block-image img {
  border-radius: var(--radius-md);
}

.wp-block-image.alignwide {
  max-width: 100%;
}

.wp-block-gallery {
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.wp-block-gallery .wp-block-image img {
  border-radius: var(--radius-md);
}

.wp-block-quote {
  border-left: 4px solid var(--color-terracotta);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-beige);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
}

.wp-block-button__link {
  background-color: var(--color-terracotta);
  color: var(--color-white) !important;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.wp-block-button__link:hover {
  background-color: var(--color-terracotta-hover);
}

.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid var(--color-terracotta) !important;
  color: var(--color-terracotta) !important;
}

.is-style-outline .wp-block-button__link:hover {
  background-color: var(--color-terracotta) !important;
  color: var(--color-white) !important;
}

.wp-block-table {
  overflow-x: auto;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2xl) auto;
}

/* Accessibility & Helper Utilities */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.text-center { text-align: center; }
.text-terracotta { color: var(--color-terracotta); }
.text-muted { color: var(--color-brown-muted); }

/* ==========================================================================
   20. Shop Storefront & Digital Products Layout
   ========================================================================== */
.shop-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.shop-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-brown-dark);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-tight);
}

.shop-hero-desc {
  max-width: 650px;
  margin: 0 auto;
  font-size: var(--text-md);
  color: var(--color-brown-muted);
  line-height: var(--lh-relaxed);
}

/* 4-Product Responsive Grid */
.shop-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .shop-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl) var(--space-md);
  }
}

/* Product Card & 3D Tilt */
.product-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 14px 30px rgba(63, 51, 45, 0.1);
  border-color: rgba(185, 104, 74, 0.3);
}

.product-card--featured {
  border: 2px solid var(--color-terracotta);
  box-shadow: 0 6px 20px rgba(185, 104, 74, 0.12);
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* 4:5 Portrait Image Ratio */
.product-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-beige);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card-thumb {
    transform: scale(1.03);
  }
}

/* Placeholder for Products Without Image */
.product-card-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #F1E8DD 0%, #E9DDD0 100%);
  color: var(--color-terracotta);
}

.product-card-thumb-placeholder svg {
  opacity: 0.85;
}

.product-card-thumb-placeholder .placeholder-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brown-muted);
}

/* Badge Overlay */
.product-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background-color: var(--color-brown-dark);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card-badge--featured {
  background-color: var(--color-terracotta);
}

/* Card Body */
.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2xs);
}

.product-card-desc {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.product-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  color: var(--color-brown-muted);
}

.product-feat-item svg {
  color: var(--color-terracotta);
  flex-shrink: 0;
}

/* Card Footer & Pricing */
.product-card-footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-terracotta);
}

.product-price-old {
  font-size: 0.875rem;
  color: var(--color-brown-light);
  text-decoration: line-through;
}

.btn-gumroad {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-gumroad:hover {
  background-color: var(--color-terracotta-hover);
  color: var(--color-white);
}

/* Trust / Guarantee Section */
.shop-trust-section {
  border-top: 1px solid var(--color-border-subtle);
}

.shop-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .shop-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.shop-trust-card {
  background-color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

.shop-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.shop-trust-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2xs);
}

.shop-trust-desc {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   21. Contact Page Layout & Form Styles
   ========================================================================== */
.contact-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.contact-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--color-brown-dark);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-tight);
}

.contact-hero-intro {
  max-width: 680px;
  margin: 0 auto var(--space-xs);
  font-size: var(--text-md);
  color: var(--color-brown-dark);
  line-height: var(--lh-relaxed);
  font-weight: 500;
}

.contact-hero-subtext {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-base);
  color: var(--color-brown-muted);
  line-height: var(--lh-normal);
}

/* Contact 2-Column Responsive Layout */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
}

@media (min-width: 960px) {
  .contact-layout-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: var(--space-2xl);
  }
}

/* Left Column: Info & Topics Card */
.contact-info-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.contact-info-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-md);
  line-height: var(--lh-snug);
}

.contact-topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.contact-topics-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-brown-dark);
  line-height: 1.45;
}

.contact-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-note-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.contact-note-icon {
  color: var(--color-terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-note-text {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Left Column: Social Media Card */
.contact-social-card {
  margin-top: var(--space-lg);
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.contact-social-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2xs);
}

.contact-social-text {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.social-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-brown-dark);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.social-icon-btn:hover,
.social-icon-btn:focus-visible {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
  box-shadow: 0 6px 16px rgba(185, 104, 74, 0.25);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .social-icon-btn:hover {
    transform: translateY(-3px);
  }
}

/* Right Column: Contact Form Card */
.contact-form-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .contact-form-card {
    padding: var(--space-2xl);
  }
}

/* Form Grid & Controls */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-group {
  margin-bottom: var(--space-md);
}

.contact-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brown-dark);
  margin-bottom: 6px;
}

.required-indicator {
  color: var(--color-terracotta);
  font-weight: 700;
  margin-left: 2px;
}

.contact-form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--color-brown-dark);
  background-color: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.contact-form-control::placeholder {
  color: var(--color-brown-light);
}

.contact-form-control:focus {
  background-color: var(--color-white);
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(185, 104, 74, 0.15);
}

.contact-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2375665E'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

/* Privacy Consent Checkbox */
.contact-privacy-group {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.contact-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.45;
  cursor: pointer;
}

.contact-checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-terracotta);
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-link {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.privacy-link:hover {
  color: var(--color-terracotta-hover);
}

/* Submit Action Button */
.contact-form-actions {
  margin-top: var(--space-sm);
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(185, 104, 74, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (min-width: 640px) {
  .btn-contact-submit {
    width: auto;
    min-width: 220px;
  }
}

.btn-contact-submit:hover,
.btn-contact-submit:focus-visible {
  background-color: var(--color-terracotta-hover);
  box-shadow: 0 6px 18px rgba(185, 104, 74, 0.35);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-contact-submit:hover {
    transform: translateY(-2px);
  }
}

/* Alert Notices */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.contact-alert--success {
  background-color: #F0F7F2;
  border: 1px solid #C3E6CB;
  color: #155724;
}

.contact-alert--success .alert-icon {
  color: #28a745;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-alert--error {
  background-color: #FDF2F2;
  border: 1px solid #F5C6CB;
  color: #721C24;
}

.contact-alert--error .alert-icon {
  color: #DC3545;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.alert-text {
  font-size: var(--text-xs);
  margin-bottom: 0;
  line-height: 1.45;
}

.alert-list {
  margin: 4px 0 0 var(--space-md);
  padding: 0;
  font-size: var(--text-xs);
  line-height: 1.45;
}

/* ==========================================================================
   22. Over Ons (About) Page Styles
   ========================================================================== */
.about-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.about-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-brown-dark);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-tight);
}

.about-hero-intro-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.about-hero-intro {
  font-size: var(--text-md);
  color: var(--color-brown-dark);
  line-height: var(--lh-relaxed);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.about-hero-subtext {
  font-size: var(--text-base);
  color: var(--color-brown-muted);
  line-height: var(--lh-relaxed);
}

/* Values Grid */
.about-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-value-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.about-value-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2xs);
}

.about-value-desc {
  font-size: var(--text-sm);
  color: var(--color-brown-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* 4 Worlds Grid */
.about-worlds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .about-worlds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-worlds-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about-world-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.about-world-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(185, 104, 74, 0.25);
}

.about-world-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-terracotta);
  background-color: var(--color-terracotta-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.about-world-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-snug);
}

.about-world-desc {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex: 1;
}

.about-world-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-terracotta);
  text-decoration: none;
  margin-top: auto;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.about-world-link:hover {
  color: var(--color-terracotta-hover);
}

.about-world-link:hover svg {
  transform: translateX(3px);
}

/* About CTA Block */
.about-cta-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
}

.about-cta-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-brown-dark);
  margin-bottom: var(--space-xs);
}

.about-cta-desc {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-size: var(--text-md);
  color: var(--color-brown-muted);
}

.about-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   23. Affiliate Recommended Tools Styles
   ========================================================================== */
.shop-affiliate-section {
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.shop-affiliate-track {
  width: 100%;
}

.shop-affiliate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .shop-affiliate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .shop-affiliate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .shop-affiliate-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
  }
}

/* Affiliate Card */
.affiliate-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  height: 100%;
}

.affiliate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(185, 104, 74, 0.3);
}

.affiliate-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: var(--color-beige);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliate-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .affiliate-card:hover .affiliate-card-thumb {
    transform: scale(1.03);
  }
}

.affiliate-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F1E8DD 0%, #E9DDD0 100%);
  color: var(--color-terracotta);
  opacity: 0.8;
}

.affiliate-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--color-brown-dark);
  color: var(--color-white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.affiliate-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.affiliate-card-retailer {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  margin-bottom: 3px;
}

.affiliate-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brown-dark);
  line-height: 1.3;
  margin-bottom: var(--space-2xs);
}

.affiliate-card-desc {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.45;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.affiliate-card-footer {
  margin-top: auto;
  padding-top: var(--space-xs);
}

.affiliate-card-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  background-color: var(--color-beige);
  color: var(--color-brown-dark);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.affiliate-card-btn:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.affiliate-card-btn svg {
  transition: transform var(--transition-fast);
}

.affiliate-card-btn:hover svg {
  transform: translateX(3px);
}

/* Affiliate Disclosure */
.affiliate-disclosure-box {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.affiliate-disclosure-box svg {
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.affiliate-disclosure-text {
  font-size: 0.8125rem;
  color: var(--color-brown-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.affiliate-disclosure-link {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  margin-left: 4px;
}

.affiliate-disclosure-link:hover {
  color: var(--color-terracotta-hover);
}

/* ==========================================================================
   24. First-Party Cookie Consent System Styles
   ========================================================================== */
.cookie-consent-wrapper {
  position: relative;
  z-index: 99999;
}

/* Floating Bottom Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 24px rgba(63, 51, 45, 0.12);
  padding: var(--space-md) 0;
  z-index: 99999;
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: stretch;
}

@media (min-width: 860px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
  }
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  flex: 1;
}

.cookie-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-terracotta-light);
  color: var(--color-terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: 2px;
}

.cookie-banner-desc {
  font-size: 0.845rem;
  color: var(--color-brown-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.cookie-policy-link {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  margin-left: 3px;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .cookie-banner-actions .btn-cookie-manage {
    grid-column: 1 / -1;
  }
}

.btn-cookie-accept-all,
.btn-cookie-reject-all,
.btn-cookie-manage,
.btn-cookie-save-selection {
  font-size: 0.8125rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cookie-reject-all {
  background-color: var(--color-beige);
  color: var(--color-brown-dark);
  border: 1px solid var(--color-border);
}

.btn-cookie-reject-all:hover {
  background-color: #E6DCDE;
}

.btn-cookie-manage {
  background-color: transparent;
  color: var(--color-brown-dark);
  border: 1.5px solid var(--color-border);
}

.btn-cookie-manage:hover {
  background-color: var(--color-beige);
  border-color: var(--color-brown-muted);
}

/* Detailed Preferences Modal Backdrop */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(63, 51, 45, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.cookie-modal {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  animation: popModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

@keyframes popModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.cookie-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-brown-dark);
  margin-bottom: 0;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--color-brown-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cookie-modal-close:hover {
  background-color: var(--color-beige);
  color: var(--color-brown-dark);
}

.cookie-modal-body {
  padding: var(--space-lg) var(--space-xl);
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-intro {
  font-size: var(--text-xs);
  color: var(--color-brown-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.cookie-categories-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cookie-category-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 4px;
}

.cookie-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: 0;
  cursor: pointer;
}

.cookie-badge--always-on {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: var(--color-beige);
  color: var(--color-brown-muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.cookie-category-desc {
  font-size: 0.8125rem;
  color: var(--color-brown-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.cookie-toggle-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-terracotta);
  cursor: pointer;
}

.cookie-toggle-wrap input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xs);
  flex-wrap: wrap;
  background-color: #FAFAFA;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

@media (max-width: 640px) {
  .cookie-modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .cookie-modal-footer button {
    width: 100%;
  }
}


/* ==========================================================================
   26. 5-Star Visitor Article/Pattern Quality Rating
   ========================================================================== */
.star-rating-panel {
  background-color: var(--color-cream);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  margin: var(--space-2xl) 0 var(--space-xl);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.star-rating-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-terracotta), #F5A623);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.star-rating-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.star-rating-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  display: inline-block;
}

.star-rating-heading {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--color-brown-dark);
  margin-bottom: 0.25rem;
  line-height: var(--lh-tight);
}

@media (min-width: 600px) {
  .star-rating-heading {
    font-size: 1.625rem;
  }
}

.star-rating-subtext {
  font-size: 0.875rem;
  color: var(--color-brown-muted);
  line-height: 1.45;
  margin-bottom: var(--space-sm);
  max-width: 440px;
}

.star-rating-stars-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: var(--space-xs) 0 var(--space-sm);
}

.star-rating-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #D6CBC1;
  border-radius: var(--radius-md);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-rating-btn .star-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: transform 0.18s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

@media (min-width: 600px) {
  .star-rating-btn .star-icon {
    width: 36px;
    height: 36px;
  }
}

.star-rating-btn:hover,
.star-rating-btn:focus-visible {
  transform: scale(1.2);
}

.star-rating-btn.is-active,
.star-rating-btn.is-hovered {
  color: #F5A623;
}

.star-rating-btn.is-active .star-icon {
  filter: drop-shadow(0 2px 4px rgba(245, 166, 35, 0.35));
}

.star-rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-xs);
}

.star-summary-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.star-summary-visual {
  color: #F5A623;
  font-size: 1.25rem;
  letter-spacing: 2px;
  line-height: 1;
}

.star-summary-visual .star-symbol.is-empty {
  color: #D6CBC1;
}

.star-summary-visual .star-symbol.is-half {
  position: relative;
  color: #F5A623;
}

.star-summary-avg {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brown-dark);
}

.star-summary-count {
  font-size: 0.8125rem;
  color: var(--color-brown-muted);
  margin-bottom: 0;
}

.star-summary-empty {
  font-size: 0.875rem;
  color: var(--color-brown-muted);
}

.star-summary-empty .star-empty-title {
  font-weight: 600;
  color: var(--color-brown-dark);
  margin-bottom: 2px;
}

.star-summary-empty .star-empty-sub {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.star-rating-feedback {
  margin-top: var(--space-sm);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: difficultyFadeIn 0.3s ease;
}



