/* ========================================================================
   Bob's News & Books - Unified Design System
   Professional e-commerce styling with responsive 3/2/1 product grid
======================================================================== */

/* ========================================
   CSS Variables - Design Tokens
   ======================================== */
:root {
  /* Brand Colors */
  --color-primary: #c53030;
  --color-primary-hover: #9b2c2c;
  --color-primary-light: rgba(197, 48, 48, 0.1);
  --color-primary-dark: #b71c1c;
  
  /* Shop Colors */
  --shop-primary: #d32f2f;
  --shop-primary-dark: #b71c1c;
  --shop-primary-light: #fef2f2;
  --shop-accent: #a91c3d;
  --shop-text: #1f1b1a;
  --shop-muted: #6d6361;
  --shop-border: #eadfdd;
  --shop-surface: #fffdf9;
  --shop-surface-alt: #fff7f2;
  --shop-surface-muted: #f7f2ef;

  /* Neutral Colors */
  --color-black: #1a202c;
  --color-white: #ffffff;
  --color-gray-50: #f7fafc;
  --color-gray-100: #edf2f7;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e0;
  --color-gray-400: #a0aec0;
  --color-gray-500: #718096;
  --color-gray-600: #4a5568;
  --color-gray-700: #2d3748;
  --color-gray-800: #1a202c;
  --color-gray-900: #171923;

  /* Semantic Colors */
  --color-success: #38a169;
  --color-success-light: rgba(56, 161, 105, 0.1);
  --color-warning: #ed8936;
  --color-warning-light: rgba(237, 137, 54, 0.1);
  --color-error: #e53e3e;
  --color-error-light: rgba(229, 62, 62, 0.1);
  --color-info: #3182ce;
  --color-info-light: rgba(49, 130, 206, 0.1);

  /* Text Colors */
  --color-text-primary: var(--color-black);
  --color-text-secondary: var(--color-gray-700);
  --color-text-muted: var(--color-gray-500);
  --color-text-inverse: var(--color-white);

  /* Surface Colors */
  --color-surface: var(--color-white);
  --color-surface-alt: var(--color-gray-50);
  --color-border: var(--color-gray-200);
  --color-border-light: var(--color-gray-100);
  --color-border-dark: var(--color-gray-300);


  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.25rem;
  --space-2xl: 1.5rem;
  --space-3xl: 2rem;
  --space-4xl: 2.5rem;
  --space-5xl: 3rem;
  --space-6xl: 4rem;
  --space-8xl: 5rem;
  --space-10xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shop-shadow: 0 18px 40px rgba(30, 15, 15, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Z-Index */
  --z-dropdown: 1000;
  --z-modal: 2000;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body scroll lock for mobile navigation */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Prevent any page scroll when navigation is open */
html.nav-open {
  overflow: hidden;
}

/* Ensure no horizontal scrollbars */
html, body {
  overflow-x: hidden;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.shop-page {
  background: var(--shop-surface);
  color: var(--shop-text);
  --filter-surface: var(--shop-surface);
  --filter-border: var(--shop-border);
  --filter-shadow: var(--shop-shadow);
  --filter-primary: var(--shop-primary);
  --filter-primary-dark: var(--shop-primary-dark);
  --filter-muted: var(--shop-muted);
  --filter-chip-bg: rgba(211, 47, 47, 0.12);
  --filter-radius: 1.5rem;
}

/* ========================================
   Layout System
   ======================================== */
.container,
.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 540px) {
  .shop-container {
    padding: 0 1rem;
  }
}

/* ========================================
   Unified Container System
   ======================================== */
.c-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.c-section {
  padding: 4rem 0;
}

.c-section--hero {
  padding: 4rem 0 3rem;
}

.c-section--compact {
  padding: 2.5rem 0;
}

@media (max-width: 768px) {
  .c-container {
    padding: 0 1rem;
  }
  
  .c-section {
    padding: 3rem 0;
  }
  
  .c-section--hero {
    padding: 3rem 0 2rem;
  }
  
  .c-section--compact {
    padding: 2rem 0;
  }
}


/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ========================================
   Header & Navigation
   ======================================== */
.c-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.c-site-header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-md) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4xl);
}

@media (min-width: 1024px) {
  .c-site-header-inner {
    padding: var(--space-md) 2rem;
    gap: var(--space-6xl);
  }
}

@media (min-width: 1280px) {
  .c-site-header-inner {
    padding: var(--space-md) 2.5rem;
    gap: var(--space-8xl);
  }
}

@media (min-width: 1440px) {
  .c-site-header-inner {
    padding: var(--space-md) 3rem;
    gap: var(--space-10xl);
  }
}

.c-site-header-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
  text-decoration: none;
}

.c-site-header-brand__accent {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-primary);
}

.c-site-header-brand__primary {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.c-site-header-desktop-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.c-site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Icon Buttons for Account & Cart */
.c-site-header-actions__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  min-width: 44px;
  position: relative;
}

.c-site-header-actions__icon-btn:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
}

.c-site-header-actions__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.c-site-header-actions__icon--account {
  font-size: 1.1rem;
}

.c-site-header-actions__icon--cart {
  font-size: 1.1rem;
}

/* Legacy styles for compatibility */
.c-site-header-actions__link {
  color: var(--color-text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-base);
}

.c-site-header-actions__link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.c-site-header-actions__cart {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.c-site-header-actions__cart:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.c-site-header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  min-width: 44px;
}

.c-site-header-toggle:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
}

.c-site-header-toggle__icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition-base);
}

.c-site-header-toggle__icon::before,
.c-site-header-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: all var(--transition-base);
}

.c-site-header-toggle__icon::before {
  top: -6px;
}

.c-site-header-toggle__icon::after {
  bottom: -6px;
}

/* Active state for hamburger (when mobile nav is open) */
.c-site-header-toggle[aria-expanded="true"] .c-site-header-toggle__icon {
  background: transparent;
}

.c-site-header-toggle[aria-expanded="true"] .c-site-header-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.c-site-header-toggle[aria-expanded="true"] .c-site-header-toggle__icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.c-site-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--space-2xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1280px) {
  .c-site-nav__list {
    gap: var(--space-3xl);
  }
}

.c-site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.c-site-nav__link:hover,
.c-site-nav__link.is-active {
  color: var(--color-primary);
  text-decoration: none;
}

.c-site-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
}

/* Mobile Navigation */
.c-site-header-mobile {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(22rem, 85vw);
  max-width: 360px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  z-index: 950;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Ensure no overflow */
  max-height: 100vh;
  height: 100vh;
}

.c-site-header-mobile__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

.c-site-header-mobile__close:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.c-site-header-mobile__close-icon {
  line-height: 1;
  font-weight: 300;
}

.c-mini-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.4rem;
  color: var(--color-text-secondary);
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.c-mini-close:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.c-mini-close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.c-mini-close:active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.c-site-header-mobile[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.c-site-header-mobile__inner {
  padding: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  min-height: 100%;
}

.c-site-header-mobile__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: auto;
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border-light);
}

.c-site-header-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  min-height: 48px;
}

.c-site-header-nav__link:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.c-site-header-nav__link--cta {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  gap: var(--space-sm);
}

.c-site-header-nav__link--cta:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.c-site-nav__list--stacked {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.c-site-nav__link--stacked {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  min-height: 48px;
}

.c-site-nav__link--stacked:hover,
.c-site-nav__link--stacked.is-active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.c-site-header-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.c-site-header-backdrop[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 991px) {
  .c-site-header-actions__link,
  .c-site-header-actions__cart {
    display: none;
  }
  
  .c-site-header-mobile {
    display: block;
  }
  
  /* Hamburger is now positioned at very left by HTML structure */
}

@media (min-width: 992px) {
  .c-site-header-desktop-nav {
    display: flex;
  }
  
  .c-site-header-toggle {
    display: none;
  }
  
  .c-site-header-mobile,
  .c-site-header-backdrop {
    display: none !important;
  }
}

/* Mini Account Dropdown */
.c-mini-account {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: block;
}

.c-mini-account.is-active {
  right: 0;
}

.c-mini-account__body {
  padding: var(--space-2xl);
}

.c-mini-account__user {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-2xl);
}

.c-mini-account__avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.c-mini-account__info {
  flex: 1;
}

.c-mini-account__name {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.c-mini-account__email {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.c-mini-account__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.c-mini-account__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  min-height: 48px;
  box-shadow: var(--shadow-sm);
  gap: 0.4rem;
  cursor: pointer;
}

.c-mini-account__link:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.c-mini-account__link--button {
  appearance: none;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  width: 100%;
  padding: 0.75rem 1rem;
}


.c-mini-account__link--button:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}


/* ========================================
   Legacy Navigation System (for backward compatibility)
   ======================================== */

/* Legacy Header */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-primary);
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0;
  text-decoration: none;
  flex: 1;
}

header .header-icons {
  display: none;
  align-items: center;
  gap: 1rem;
}

header .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

header .icon:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* Legacy Overlay Navigation */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: min(22rem, 85vw);
  max-width: 360px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  z-index: 950;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.nav-overlay.is-open::after {
  opacity: 1;
  visibility: visible;
}

.nav-overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.nav-overlay .closebtn:hover {
  color: var(--color-primary);
}

.nav-top {
  text-align: left;
  padding: 3rem 2rem 2rem;
}

.nav-logo {
  max-width: 200px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.nav-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  flex: 1;
  width: 100%;
}

.nav-overlay .nav-tab {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  width: 100%;
}

.nav-overlay .nav-tab:hover {
  color: var(--color-primary-dark);
  background: rgba(211, 47, 47, 0.12);
}

.nav-bottom {
  padding: 2rem 2rem 3rem;
  text-align: left;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.nav-bottom p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.nav-bottom a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-bottom a:hover {
  text-decoration: underline;
}

.social-links {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
  width: 100%;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-full);
  background: rgba(211, 47, 47, 0.12);
  color: var(--color-primary-dark);
  text-decoration: none;
  line-height: 1;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-links svg,
.social-links i {
  width: 18px;
  height: 18px;
  font-size: 1.1rem;
  display: inline-block;
  text-align: center;
}

@media (max-width: 640px) {
  .social-links {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border-light);
}

.desktop-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.desktop-nav .nav-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
}

.desktop-nav .nav-tab {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.desktop-nav .nav-tab:hover,
.desktop-nav .nav-tab.is-active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  text-decoration: none;
}

/* Mini Cart */
.mini-cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mini-cart.is-open {
  right: 0;
}

.mini-cart h3 {
  padding: 1.5rem;
  margin: 0;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
}

.mini-cart .cart-items {
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.mini-cart .cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
}

.mini-cart .cart-summary {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
  font-weight: 600;
  text-align: right;
}

.mini-cart .cart-actions {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-cart .c-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
}

.mini-cart .c-button:hover {
  background: var(--color-primary-hover);
}

/* Mini Account */
.mini-account {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mini-account.is-open {
  right: 0;
}

.mini-account h3 {
  padding: 1.5rem;
  margin: 0;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
}

.mini-account p {
  padding: 1rem 1.5rem;
  margin: 0;
}

.mini-account a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.mini-account a:hover {
  text-decoration: underline;
}

.mini-account .logout-form {
  padding: 0 1.5rem 1.5rem;
}

.mini-account .c-button-link {
  background: none;
  border: none;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}

.mini-account .c-button-link:hover {
  text-decoration: underline;
}

/* Badge */
.c-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1;
}

/* Mini Cart (Modern) */
.c-mini-cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.c-mini-cart.is-open {
  right: 0;
}

.c-mini-cart__body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.c-mini-cart__items {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.c-mini-cart__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.c-mini-cart__thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.c-mini-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-mini-cart__item-details {
  flex: 1;
  display: grid;
  gap: 0.4rem;
}

.c-mini-cart__item-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.c-mini-cart__item-name:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.c-mini-cart__item-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.c-mini-cart__item-unit {
  font-weight: 500;
  color: var(--color-text-primary);
}

.c-mini-cart__item-line {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.c-mini-cart__item-separator {
  color: var(--color-border-dark);
  font-size: 0.75rem;
}

.c-mini-cart__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-mini-cart__summary {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.c-mini-cart__label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.c-mini-cart__value {
  font-size: 1.15rem;
}

.c-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 2rem;
}

/* Legacy Responsive */
@media (max-width: 991px) {
  header .hamburger {
    display: flex;
  }

  header .header-icons {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }
}

@media (min-width: 992px) {
  header .hamburger,
  header .header-icons {
    display: none;
  }

  .desktop-nav {
    display: block;
  }
}

/* ========================================
   Shop Hero Section
   ======================================== */
.shop-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(140deg, rgba(211, 47, 47, 0.08), rgba(0, 0, 0, 0.08));
}

.shop-hero__content {
  display: grid;
  gap: 0.85rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.shop-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-accent);
}

.shop-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.shop-hero__lead {
  font-size: 1.05rem;
  max-width: 70ch;
  margin: 0 auto;
  color: var(--shop-muted);
}

.shop-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.shop-hero__chips span {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(211, 47, 47, 0.12);
  color: var(--shop-primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-hero__metrics {
  width: 100%;
  justify-self: stretch;
}

@media (max-width: 1024px) {
  .shop-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .shop-hero {
    padding: 2.5rem 0 2rem;
  }
  
  .shop-hero__title {
    font-size: 2rem;
  }
}

/* ========================================
   Unified Filter Controls
   ======================================== */
.shop-filters,
.blog-filters {
  padding: 2.5rem 0 0;
}

.filter-form,
.shop-filter-form,
.blog-filter-form {
  border-radius: var(--filter-radius, 1.5rem);
  background: var(--filter-surface, #ffffff);
  border: 1px solid var(--filter-border, #eadfdd);
  box-shadow: var(--filter-shadow, var(--shadow-lg));
  padding: 2rem 2.25rem;
  display: grid;
  gap: 1.5rem;
}

.filter-grid,
.shop-filter-form__row,
.blog-filter-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filter-group,
.shop-filter-group,
.blog-filter-group {
  display: grid;
  gap: 0.5rem;
}

.filter-label,
.shop-filter-label,
.blog-filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--filter-muted, var(--color-text-secondary));
}

.filter-input,
.shop-filter-input,
.blog-filter-input {
  border-radius: 0.75rem;
  border: 1px solid var(--filter-border, #eadfdd);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #fff;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.filter-input:focus,
.shop-filter-input:focus,
.blog-filter-input:focus {
  outline: none;
  border-color: var(--filter-primary, var(--color-primary));
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18);
}

.filter-actions,
.shop-filter-form__actions,
.blog-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-submit,
.shop-filter-submit,
.blog-filter-submit {
  background: var(--filter-primary, var(--color-primary));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.filter-submit:hover,
.shop-filter-submit:hover,
.blog-filter-submit:hover {
  background: var(--filter-primary-dark, var(--color-primary-dark));
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(211, 47, 47, 0.25);
}

.filter-clear,
.shop-filter-clear,
.blog-filter-clear {
  font-weight: 600;
  color: var(--filter-primary-dark, var(--color-primary-dark));
  text-decoration: none;
}

.filter-clear:hover,
.shop-filter-clear:hover,
.blog-filter-clear:hover {
  text-decoration: underline;
}

.filter-summary,
.shop-filter-summary,
.blog-filter-summary {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--filter-muted, var(--color-text-secondary));
}

.filter-summary ul,
.shop-filter-summary ul,
.blog-filter-summary ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.filter-chip,
.shop-filter-chip,
.blog-filter-chip {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--filter-chip-bg, rgba(211, 47, 47, 0.12));
  color: var(--filter-primary-dark, var(--color-primary-dark));
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .filter-form,
  .shop-filter-form,
  .blog-filter-form {
    padding: 1.6rem;
  }
}

/* ========================================
   Shop Results & Product Grid
   ======================================== */
.shop-results {
  padding: 2.5rem 0 4rem;
}

.shop-results__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.shop-results__title {
  margin: 0;
  font-size: 1.8rem;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.shop-results__subtitle {
  margin: 0.35rem 0 0;
  color: var(--shop-muted);
}

/* RESPONSIVE 3/2/1 PRODUCT GRID */
.shop-product-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.shop-pagination__info {
  color: var(--shop-muted);
  font-weight: 600;
}

.shop-pagination__controls {
  display: flex;
  align-items: center;
}

.shop-pagination__list {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.shop-pagination__list .c-button {
  min-width: 44px;
}

/* Mobile: 1 column (default above) */
@media (min-width: 768px) {
  /* Tablet: 2 columns */
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  /* Desktop: 3 columns */
  .shop-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Product Cards
   ======================================== */
.shop-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(211, 47, 47, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all var(--transition-slow);
  height: 100%;
}

.shop-product-card__image {
  position: relative;
  background: #f2ecea;
  aspect-ratio: 3 / 4;
  padding: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-product-card__image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shop-product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--shop-primary);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.shop-product-card__content {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  flex: 1;
}

.shop-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--shop-muted);
}

.shop-product-card__category {
  font-weight: 600;
  color: var(--shop-primary-dark);
}

.shop-product-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.shop-product-card__title a {
  text-decoration: none;
  color: inherit;
}

.shop-product-card__title a:hover {
  color: var(--shop-primary-dark);
}

.shop-product-card__excerpt {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.95rem;
}

.shop-product-card__bookmeta {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: rgba(76, 29, 149, 0.06);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.shop-product-card__bookmeta span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--shop-muted);
}

.shop-product-card__bookmeta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--shop-text);
}

.shop-product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.shop-product-card__price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--shop-primary-dark);
}

.shop-product-card__price-compare {
  font-size: 0.95rem;
  color: var(--shop-muted);
  text-decoration: line-through;
}

.shop-product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-product-card__stock-indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--shop-primary);
}

.shop-product-card__stock.is-low .shop-product-card__stock-indicator {
  background: #ed8936;
}

.shop-product-card__stock.is-out .shop-product-card__stock-indicator {
  background: #c53030;
}

.shop-product-card__stock.is-healthy .shop-product-card__stock-indicator {
  background: #38a169;
}

.shop-product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.shop-product-card__quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.shop-product-card__qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 90px;
}

.shop-product-card__price-inline {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.shop-product-card__price-inline .shop-product-card__price-current {
  font-size: 1rem;
}

.shop-product-card__price-inline .shop-product-card__price-compare {
  font-size: 0.85rem;
}

.shop-product-card__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--shop-surface-alt);
  border-radius: 0.9rem;
  padding: 0.6rem 0.75rem;
}

.shop-product-card__form button {
  background: var(--shop-primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
}

.shop-product-card__form button:hover {
  background: var(--shop-primary-dark);
}

.shop-product-card__qty {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--shop-muted);
}

.shop-product-card__link {
  text-decoration: none;
  font-weight: 600;
  color: var(--shop-primary-dark);
  font-size: 0.9rem;
}

.shop-product-card__link:hover {
  text-decoration: underline;
}

/* Empty State */
.shop-empty {
  text-align: center;
  padding: 3rem;
  border-radius: 1.5rem;
  background: var(--shop-surface-alt);
  border: 1px dashed var(--shop-border);
  color: var(--shop-muted);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

/* Mobile Product Card Adjustments */
@media (max-width: 768px) {
  .shop-product-card__actions {
    gap: 0.6rem;
  }

  .shop-product-card__content {
    display: grid;
    gap: 0.85rem;
  }
  
  .shop-product-card__form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .shop-product-card__form input[type='number'] {
    width: 100%;
  }
  
  .shop-product-card__form button {
    width: 100%;
  }

  .shop-product-card__price-inline {
    display: none;
  }
}

@media (min-width: 769px) {
  .shop-product-card__price-inline {
    display: flex;
  }
}

/* ========================================
   Buttons
   ======================================== */
.c-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  min-height: 44px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}

.c-button:hover,
.btn:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.c-button-primary,
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.c-button-secondary,
.btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.c-button-secondary:hover,
.btn-secondary:hover {
  background: var(--color-gray-100);
  border-color: var(--color-border-dark);
  color: var(--color-text-primary);
}

.c-button-ghost,
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}

.c-button-ghost:hover,
.btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.c-button-sm,
.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.75rem;
  min-height: 32px;
}

.c-button-lg,
.btn-lg {
  padding: var(--space-lg) var(--space-3xl);
  font-size: 1rem;
  min-height: 56px;
}

/* ========================================
   Forms
   ======================================== */
.c-form-group,
.form-group {
  margin-bottom: var(--space-2xl);
}

.c-form-label,
.form-label,
.c-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.c-form-input,
.form-control,
.c-input,
.c-select,
.c-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  transition: all var(--transition-base);
  background: var(--color-surface);
  color: var(--color-text-primary);
  min-height: 48px;
}

.c-form-input:focus,
.form-control:focus,
.c-input:focus,
.c-select:focus,
.c-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ========================================
   Cards
   ======================================== */
.c-card,
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-slow);
  border: 1px solid var(--color-border);
}

.c-card:hover,
.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.c-card-body,
.card-body {
  padding: var(--space-2xl);
}

.c-card-title,
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

/* ========================================
   Tables
   ======================================== */
.c-table,
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.c-table th,
.c-table td,
.table th,
.table td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.c-table th,
.table th {
  background: var(--color-surface-alt);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.c-table tbody tr:hover,
.table tbody tr:hover {
  background: var(--color-surface-alt);
}

/* ========================================
   Footer
   ======================================== */
.c-footer {
  background: #1f1b1a;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-6xl) 0 var(--space-4xl);
  margin-top: var(--space-6xl);
  border-top: none;
}

.c-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
  align-items: start;
}

.c-footer__brand {
  display: grid;
  gap: var(--space-md);
  color: var(--color-text-muted);
  max-width: 320px;
}

.c-footer__logo {
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.015em;
}

.c-footer__address,
.c-footer__contact,
.c-footer__hours {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.c-footer__social {
  margin-top: var(--space-lg);
}

.c-footer__social .c-footer__text {
  margin-bottom: 0.5rem;
}

.c-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
}

.c-footer__contact span {
  opacity: 0.6;
}

.c-footer__contact a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.c-footer__contact a:hover {
  color: #ff8787;
}

.c-footer__heading {
  margin: 0 0 var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.c-footer__column {
  display: grid;
  gap: var(--space-md);
}

.c-footer__column--newsletter {
  max-width: 340px;
}

.c-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.c-footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.c-footer__links a:hover {
  color: #ffffff;
}

.c-footer__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.c-footer__text--muted {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.c-footer__form {
  margin-top: var(--space-sm);
  width: 100%;
}

.c-footer__form-row {
  display: block;
  margin-top: var(--space-xs);
  width: 100%;
}

.c-footer__form .c-form-input {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

.c-footer__subscribe-btn {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  padding-inline: var(--space-3xl);
  margin-top: var(--space-md);
  white-space: nowrap;
}

.c-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-3xl);
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.c-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.c-footer__legal {
  list-style: none;
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

.c-footer__legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-base);
}

.c-footer__legal a:hover {
  color: #ffffff;
}

/* ========================================
   Flash Messages
   ======================================== */
.c-flash {
  position: fixed;
  top: var(--space-6xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(420px, calc(100vw - var(--space-2xl) * 2));
  display: grid;
  gap: var(--space-md);
  pointer-events: none;
}

.c-flash__item,
.alert {
  display: flex;
  align-items: flex-start;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  background: var(--color-surface);
  animation: flash-slide-in 0.35s ease-out;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: auto;
}

@keyframes flash-slide-in {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.c-flash__item.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.c-flash__item--success,
.alert-success {
  border-left-color: var(--color-success);
  background: var(--color-success-light);
}

.c-flash__item--error,
.alert-danger {
  border-left-color: var(--color-error);
  background: var(--color-error-light);
}

.c-flash__item--warning,
.alert-warning {
  border-left-color: var(--color-warning);
  background: var(--color-warning-light);
}

.c-flash__item--info,
.alert-info {
  border-left-color: var(--color-info);
  background: var(--color-info-light);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .c-footer {
    margin-top: var(--space-5xl);
    padding: var(--space-5xl) 0 var(--space-3xl);
  }

  .c-footer__grid {
    gap: var(--space-2xl);
  }

  .c-footer__column--newsletter {
    max-width: none;
  }

  .c-footer__form-row {
    display: flex;
  }

  .c-footer__form .c-button {
    width: 100%;
  }

  .c-footer__contact {
    gap: var(--space-xs);
  }

  .c-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .c-footer__legal {
    justify-content: center;
    gap: var(--space-md);
  }

  .c-flash {
    top: var(--space-4xl);
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 420px);
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   Home Page Specific Styles
   ======================================== */
body.home-page {
  --home-primary: #d32f2f;
  --home-primary-dark: #b71c1c;
  --home-primary-light: #fef2f2;
  --home-accent: #a91c3d;
  --home-text-dark: #1f1f1f;
  --home-text-muted: #5f5f5f;
  --home-surface: #fffdf9;
  --home-surface-alt: #fff7f2;
  --home-surface-muted: #faf6f4;
  --home-border: #f0e4df;
  --home-shadow: 0 20px 45px rgba(30, 15, 15, 0.08);
  background: var(--home-surface);
  color: var(--home-text-dark);
}
 
body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page h4 {
  font-family: 'Crimson Text', 'Times New Roman', serif;
  color: var(--home-text-dark);
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-hero {
  padding: var(--space-6xl) 0 var(--space-5xl);
  background: linear-gradient(145deg, rgba(211, 47, 47, 0.07), rgba(169, 28, 61, 0.05));
}

.home-hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5xl);
  align-items: center;
}

.home-hero__media {
  margin: 0;
}

.home-hero__content {
  display: grid;
  gap: var(--space-lg);
  text-align: left;
  max-width: 520px;
}

.home-hero__welcome {
  font-weight: 600;
  color: var(--home-primary);
  margin-bottom: 0.5rem;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.12);
  color: var(--home-primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-hero__title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.5rem, 3vw, 3.4rem);
  line-height: 1.05;
}

.home-hero__lead {
  font-size: 1.1rem;
  color: var(--home-text-muted);
  margin: 0;
}

.home-hero__actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin: 0;
}

.home-hero__link {
  font-weight: 600;
  color: var(--home-primary-dark);
}

.home-hero__link:hover {
  color: var(--home-primary);
}

.home-hero__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--home-text-muted);
}

.home-hero__figure {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--home-shadow);
  background: #000;
}

.home-hero__figure img {
  width: 100%;
  display: block;
}

.home-hero__figure figcaption {
  padding: 0.85rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(169, 28, 61, 0.6));
}

.home-section {
  padding: 4rem 0;
}

.home-section--muted {
  background: var(--home-surface-muted);
}

.home-section--accent {
  background: var(--home-surface-alt);
}

.home-section__header {
  margin-bottom: 2.25rem;
  display: grid;
  gap: 0.75rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-section__title {
  font-size: clamp(1.9rem, 2.5vw, 2.4rem);
}

.home-section__subtitle {
  color: var(--home-text-muted);
  font-size: 1rem;
}

.home-section__footer {
  margin-top: 2.5rem;
  text-align: center;
}

.home-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-highlight-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(211, 47, 47, 0.05), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(211, 47, 47, 0.1);
  box-shadow: 0 14px 30px rgba(169, 28, 61, 0.08);
}

.home-highlight-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.home-highlight-card p {
  margin: 0;
  color: var(--home-text-muted);
  font-size: 0.98rem;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.home-category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--home-border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(169, 28, 61, 0.15);
}

.home-category-card__name {
  font-weight: 600;
}

.home-category-card__meta {
  font-size: 0.85rem;
  color: var(--home-text-muted);
  margin-top: 0.5rem;
}

.home-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.home-product-grid--compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.home-product-grid--3x3 {
  grid-template-columns: repeat(1, 1fr);
}

.home-product-grid--stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Tablet: 2 columns for all home product grids */
@media (min-width: 768px) {
.home-product-grid,
.home-product-grid--compact,
.home-product-grid--stats {
  grid-template-columns: repeat(2, 1fr);
}

.home-product-grid--3x3 {
  grid-template-columns: repeat(2, 1fr);
}
}

/* Desktop: 3 columns for all home product grids */
@media (min-width: 1024px) {
.home-product-grid,
.home-product-grid--compact,
.home-product-grid--stats {
  grid-template-columns: repeat(3, 1fr);
}

.home-product-grid--3x3 {
  grid-template-columns: repeat(3, 1fr);
}
}

.home-product-card {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(211, 47, 47, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-product-card__media {
  display: block;
  position: relative;
  padding-top: 65%;
  overflow: hidden;
}

.home-product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-product-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.home-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-product-card__title a:hover {
  color: var(--home-primary);
}

.home-product-card__excerpt {
  margin: 0;
  color: var(--home-text-muted);
  font-size: 0.95rem;
}

.home-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.home-price {
  font-weight: 600;
  color: var(--home-primary-dark);
}

.home-price--sale {
  color: var(--home-accent);
}

.home-price--compare {
  color: var(--home-text-muted);
  font-size: 0.85rem;
  text-decoration: line-through;
}

.home-product-card__form {
  margin-top: auto;
}

.c-button-outline,
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.c-button-outline:hover,
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.c-button-link,
.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.c-button-link:hover,
.btn-link:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

.home-arrival-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--home-border);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.06);
}

.home-arrival-card__thumb {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
}

.home-arrival-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-arrival-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.home-arrival-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.home-arrival-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-arrival-card__title a:hover {
  color: var(--home-primary);
}

.home-arrival-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--home-text-muted);
}

.home-bestseller-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(211, 47, 47, 0.14);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 18px 28px rgba(169, 28, 61, 0.08);
}

.home-bestseller-card__thumb {
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
}

.home-bestseller-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-bestseller-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-bestseller-card__title {
  margin: 0 0 0.35rem;
}

.home-bestseller-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-bestseller-card__title a:hover {
  color: var(--home-primary);
}

.home-bestseller-card__stat {
  margin: 0;
  font-size: 0.9rem;
  color: var(--home-text-muted);
}

.home-bestseller-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--home-primary-dark);
  text-decoration: none;
}

.home-bestseller-card__link:hover {
  color: var(--home-primary);
  text-decoration: underline;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Tablet: 2 columns for blog grid */
@media (min-width: 768px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns for blog grid */
@media (min-width: 1024px) {
  .home-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-blog-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.home-blog-card__body {
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.home-blog-card__date {
  font-size: 0.85rem;
  color: var(--home-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.home-blog-card__title {
  margin: 0;
}

.home-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-blog-card__title a:hover {
  color: var(--home-primary);
}

.home-blog-card__excerpt {
  margin: 0;
  color: var(--home-text-muted);
}

.home-blog-card__link {
  font-weight: 600;
  color: var(--home-primary-dark);
  text-decoration: none;
}

.home-blog-card__link:hover {
  color: var(--home-primary);
  text-decoration: underline;
}

.home-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.home-event-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(211, 47, 47, 0.12);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.07);
  display: grid;
  gap: 0.65rem;
}

.home-event-card__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--home-primary-dark);
  margin: 0;
}

.home-event-card__title {
  margin: 0;
}

.home-event-card__description {
  color: var(--home-text-muted);
  margin: 0;
}

.home-event-card__link {
  font-weight: 600;
  color: var(--home-primary-dark);
  text-decoration: none;
}

.home-event-card__link:hover {
  color: var(--home-primary);
  text-decoration: underline;
}

.home-store-info {
  padding: 4rem 0 5rem;
  background: #181414;
  color: rgba(255, 255, 255, 0.92);
}

.home-store-info h2,
.home-store-info h3 {
  color: #fff;
}

.home-store-info__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.home-store-info__intro {
  grid-column: span 2;
}

.home-store-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.home-store-info a {
  color: rgba(255, 255, 255, 0.92);
}

.home-store-info a:hover {
  color: #fff;
}

/* Home Page Responsive */
@media (max-width: 1024px) {
  .home-hero__body {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .home-hero__metrics {
    max-width: none;
  }

  .home-highlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .home-store-info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding-top: 3rem;
  }

  .home-hero__content {
    max-width: none;
    text-align: center;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .home-hero__body {
    gap: 1.75rem;
  }

  .home-hero__metrics {
    max-width: none;
  }

  .home-arrival-card,
  .home-bestseller-card {
    grid-template-columns: 1fr;
  }

  .home-store-info__grid {
    grid-template-columns: 1fr;
  }

  .home-store-info__intro {
    grid-column: span 1;
  }
}

@media (max-width: 540px) {
  .home-container {
    padding: 0 1rem;
  }

  .home-product-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 3rem 0;
  }
}

/* ========================================
   Static Page Styles
   ======================================== */
body.page-static {
  --page-primary: #d32f2f;
  --page-primary-dark: #b71c1c;
  --page-accent: #a91c3d;
  --page-text: #1f1b1a;
  --page-muted: #6c6461;
  --page-border: #eadfdd;
  --page-surface: #fffdf9;
  --page-surface-alt: #f7f2ef;
  --page-shadow: 0 20px 48px rgba(24, 12, 12, 0.12);
  background: var(--page-surface);
  color: var(--page-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-hero {
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.09), rgba(0, 0, 0, 0.08));
}

.page-hero__content {
  display: grid;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-hero__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-accent);
}

.page-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.page-hero__lead {
  font-size: 1.05rem;
  color: var(--page-muted);
  margin: 0;
}

.page-section {
  padding: var(--space-4xl) 0;
}

.page-section + .page-section {
  border-top: 1px solid rgba(234, 223, 221, 0.6);
}

.page-section__title {
  margin: 0 0 var(--space-3xl);
  font-size: 1.6rem;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3xl);
}

.page-card {
  background: var(--page-surface);
  border-radius: 1.5rem;
  border: 1px solid rgba(211, 47, 47, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: var(--space-3xl);
  display: grid;
  gap: var(--space-md);
}

.page-card h3 {
  margin: 0;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1.3rem;
}

.page-card p {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.6;
}

.page-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2xl);
}

.page-timeline li {
  position: relative;
  padding-left: 1.8rem;
}

.page-timeline li::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--page-primary);
}

.page-timeline li::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 1.1rem;
  bottom: -1.1rem;
  width: 2px;
  background: rgba(211, 47, 47, 0.18);
}

.page-timeline li:last-child::after {
  display: none;
}

.page-timeline strong {
  display: block;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  margin-bottom: var(--space-sm);
}

.page-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3xl);
}

.page-info-item {
  background: var(--page-surface);
  border: 1px solid rgba(211, 47, 47, 0.14);
  border-radius: 1.2rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
  padding: var(--space-3xl);
  display: grid;
  gap: var(--space-md);
}

.page-info-item h4 {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  font-weight: 600;
}

.page-info-item ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: var(--space-sm);
  color: var(--page-muted);
}

.page-form {
  background: var(--page-surface);
  border-radius: 1.5rem;
  border: 1px solid var(--page-border);
  box-shadow: var(--page-shadow);
  padding: var(--space-3xl) var(--space-4xl);
}

.page-form .c-form-group {
  margin-bottom: 0;
}

.page-form .c-form-label {
  color: var(--page-muted);
}

.page-form .c-form-input,
.page-form .c-textarea {
  background: #fff;
  border: 1px solid var(--page-border);
  border-radius: 0.85rem;
  box-shadow: none;
}

.page-form .c-form-input:focus,
.page-form .c-textarea:focus {
  border-color: var(--page-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18);
}

.page-form .c-button {
  justify-self: start;
  box-shadow: 0 12px 22px rgba(211, 47, 47, 0.18);
}

.page-form .c-button:hover {
  box-shadow: 0 14px 26px rgba(169, 28, 61, 0.22);
}

.page-form__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: var(--space-2xl);
}

.page-form__grid .c-form-group--full {
  grid-column: 1 / -1;
}

.page-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: flex-start;
}

.page-form__actions .c-button {
  box-shadow: 0 12px 22px rgba(211, 47, 47, 0.18);
}

.page-form__actions .c-button:hover {
  box-shadow: 0 14px 26px rgba(169, 28, 61, 0.22);
}

.page-callout {
  background: var(--page-surface-alt);
  border-radius: 1.3rem;
  border: 1px solid rgba(211, 47, 47, 0.18);
  padding: var(--space-3xl);
  display: grid;
  gap: var(--space-md);
  color: var(--page-text);
}

.page-callout strong {
  font-size: 1.05rem;
}

.page-longform {
  display: grid;
  gap: var(--space-3xl);
}

.page-longform h3 {
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1.35rem;
  margin: 0 0 var(--space-sm);
}

.page-longform p,
.page-longform ul {
  color: var(--page-muted);
  line-height: 1.65;
  margin: 0;
}

.page-longform ul {
  padding-left: 1.1rem;
  display: grid;
  gap: var(--space-sm);
}

@media (max-width: 720px) {
  .page-hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  .page-form {
    padding: var(--space-3xl);
  }
}

@media (max-width: 520px) {
  .page-container {
    padding: 0 1rem;
  }
}

/* ========================================
   Account Page Styles
   ======================================== */
body.account-page {
  background: var(--color-surface-alt);
}

.account-dashboard__layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: start;
}

.account-dashboard__sidebar {
  position: sticky;
  top: var(--space-4xl);
}

.account-nav {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-3xl);
}

.account-nav__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.account-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.account-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base), transform var(--transition-fast);
}

.account-nav__link::before {
  content: "•";
  color: var(--color-primary);
  font-size: 0.75rem;
  translate: 0 1px;
}

.account-nav__link:hover,
.account-nav__link:focus-visible {
  color: var(--color-primary);
  transform: translateX(2px);
}

.account-dashboard__content {
  display: grid;
  gap: var(--space-3xl);
}

.account-panel {
  display: grid;
  gap: var(--space-2xl);
  padding: var(--space-3xl);
}

.account-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-lg);
}

.account-panel__title {
  margin: 0;
  font-size: 1.35rem;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.account-panel__subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.account-panel__body {
  display: grid;
  gap: var(--space-2xl);
}

.account-alert {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.account-alert--success {
  background: var(--color-success-light);
  border-color: rgba(56, 161, 105, 0.4);
  color: var(--color-success);
}

.account-alert--error {
  background: var(--color-error-light);
  border-color: rgba(229, 62, 62, 0.4);
  color: var(--color-error);
}

.account-view {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.account-view__action {
  flex-shrink: 0;
}

.account-details {
  display: grid;
  gap: var(--space-md);
  margin: 0;
}

.account-details div {
  display: grid;
  gap: 0.2rem;
}

.account-details dt {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.account-details dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-primary);
}

.account-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  color: var(--color-text-muted);
}

.account-empty--subtle {
  background: var(--color-surface);
  border-style: solid;
  padding: var(--space-2xl);
}

.account-order-list {
  display: grid;
  gap: var(--space-2xl);
}

.account-order {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  display: grid;
  gap: var(--space-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.account-order__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.account-order__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.account-order__meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.account-order__status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

.account-order__status--paid,
.account-order__status--completed,
.account-order__status--shipped {
  background: rgba(56, 161, 105, 0.12);
  color: var(--color-success);
}

.account-order__status--pending,
.account-order__status--processing {
  background: rgba(237, 137, 54, 0.12);
  color: var(--color-warning);
}

.account-order__status--cancelled,
.account-order__status--canceled {
  background: rgba(229, 62, 62, 0.12);
  color: var(--color-error);
}

.account-order__summary {
  display: grid;
  gap: var(--space-lg);
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(120px, auto));
}

.account-order__summary div {
  display: grid;
  gap: 0.25rem;
}

.account-order__summary dt {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.account-order__summary dd {
  margin: 0;
  font-weight: 600;
}

.account-order__note {
  margin: 0;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
}

.account-order__actions {
  display: flex;
  justify-content: flex-end;
}

.account-order__items {
  display: grid;
  gap: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-lg);
}

.account-order__items-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.account-order__item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.account-order-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.account-order-item:last-child {
  border-bottom: none;
}

.account-order-item__details {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.account-order-item__name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1rem;
  text-decoration: none;
}

.account-order-item__name:hover {
  color: var(--color-primary);
}

.account-order-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.account-order-item__meta span + span::before {
  content: '•';
  margin: 0 var(--space-xs);
  color: var(--color-border-dark);
}

.account-order-item__total {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-left: auto;
}

.account-order-item__media {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.account-order-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-form__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.account-form__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.account-form__checkbox {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.account-password-placeholder {
  margin: 0;
  letter-spacing: 0.35em;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .account-dashboard__layout {
    grid-template-columns: 1fr;
  }

  .account-dashboard__sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .account-panel {
    padding: var(--space-3xl) var(--space-2xl);
  }

  .account-order {
    padding: var(--space-2xl);
  }
}

/* ========================================
   Blog Page Specific Styles
   ======================================== */
body.blog-page {
  --blog-primary: #d32f2f;
  --blog-primary-dark: #b71c1c;
  --blog-accent: #a91c3d;
  --blog-text: #1f1b1a;
  --blog-muted: #6e6662;
  --blog-border: #eadfdd;
  --blog-surface: #fffdf9;
  --blog-surface-alt: #f8f2ef;
  --blog-shadow: 0 20px 45px rgba(24, 12, 12, 0.12);
  --blog-radius: 1.25rem;
  background: var(--blog-surface);
  color: var(--blog-text);
  --filter-surface: var(--blog-surface);
  --filter-border: var(--blog-border);
  --filter-shadow: var(--blog-shadow);
  --filter-primary: var(--blog-primary);
  --filter-primary-dark: var(--blog-primary-dark);
  --filter-muted: var(--blog-muted);
  --filter-chip-bg: rgba(211, 47, 47, 0.12);
  --filter-radius: 1.5rem;
}

.blog-container {
  max-width: 1200px;  /* Changed from 1100px */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-hero {
  padding: 3.25rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(0, 0, 0, 0.08));
}

.blog-hero__content {
  display: grid;
  gap: 0.8rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.blog-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blog-accent);
}

.blog-hero__title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.blog-hero__lead {
  font-size: 1.05rem;
  color: var(--blog-muted);
  max-width: 70ch;
  margin: 0 auto;
}

.blog-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.blog-hero__tags span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.12);
  color: var(--blog-primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-hero__metrics {
  width: 100%;
  justify-self: stretch;
}

@media (max-width: 1024px) {
  .blog-hero__grid {
    grid-template-columns: 1fr;
  }
}

.blog-results {
  padding: 2.5rem 0 4rem;
}

.blog-results__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.blog-results__title {
  margin: 0;
  font-size: 1.7rem;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.blog-results__subtitle {
  margin: 0;
  color: var(--blog-muted);
}

/* RESPONSIVE 3/2/1 BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(211, 47, 47, 0.12);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.blog-card__media {
  position: relative;
  padding-top: 58%;
  background: #f2ecea;
}

.blog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  padding: 1.6rem;
  display: grid;
  gap: 0.9rem;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--blog-muted);
}

.blog-card__date {
  font-weight: 600;
  color: var(--blog-primary-dark);
}

.blog-card__categories {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.blog-card__title a {
  text-decoration: none;
  color: var(--blog-text);
}

.blog-card__title a:hover {
  color: var(--blog-primary-dark);
}

.blog-card__excerpt {
  margin: 0;
  color: var(--blog-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-card__actions {
  margin-top: auto;
}

.blog-card__link {
  font-weight: 600;
  color: var(--blog-primary-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.blog-card__link:hover {
  text-decoration: underline;
}

.blog-empty {
  margin-top: 1.5rem;
  padding: 3rem;
  border-radius: 1.5rem;
  background: var(--blog-surface-alt);
  border: 1px dashed var(--blog-border);
  color: var(--blog-muted);
  text-align: center;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

/* Blog Detail Layout */
body.blog-detail-page .blog-main {
  padding: 0;
}

body.blog-detail-page .blog-article-hero {
  position: relative;
  isolation: isolate;
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.06), rgba(26, 18, 16, 0.04));
}

body.blog-detail-page .blog-article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blog-hero, none);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: -1;
}

body.blog-detail-page .blog-article-hero__content {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
  text-align: left;
  position: relative;
  z-index: 1;
}

body.blog-detail-page .blog-article-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blog-accent);
}

body.blog-detail-page .blog-article-hero__title {
  margin: 0;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.15;
}

body.blog-detail-page .blog-article-hero__meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--blog-muted);
}

body.blog-detail-page .blog-article {
  padding: var(--space-5xl) 0 var(--space-6xl);
  background: var(--blog-surface);
}

body.blog-detail-page .blog-article > .blog-container {
  max-width: 900px;
  display: grid;
  gap: var(--space-4xl);
}

body.blog-detail-page .blog-article__feature {
  margin: 0;
  border-radius: var(--blog-radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
}

body.blog-detail-page .blog-article__feature img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

body.blog-detail-page .blog-article__content {
  display: block;
  padding: var(--space-3xl);
  background: var(--color-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  box-shadow: var(--blog-shadow);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--blog-text);
}

body.blog-detail-page .blog-article__content p {
  margin: 0;
}

body.blog-detail-page .blog-article__content > * + * {
  margin-top: 1rem;
}

body.blog-detail-page .blog-article__content h2,
body.blog-detail-page .blog-article__content h3 {
  font-family: 'Crimson Text', 'Times New Roman', serif;
  color: var(--blog-text);
  margin: var(--space-3xl) 0 var(--space-md);
}

body.blog-detail-page .blog-article__content h2:first-child,
body.blog-detail-page .blog-article__content h3:first-child {
  margin-top: 0;
}

body.blog-detail-page .blog-article__content ul,
body.blog-detail-page .blog-article__content ol {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.5rem;
}

body.blog-detail-page .blog-article__content a {
  color: var(--blog-primary);
  text-decoration: underline;
  font-weight: 500;
}

body.blog-detail-page .blog-article__gallery {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-3xl);
  background: var(--color-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  box-shadow: var(--blog-shadow);
}

body.blog-detail-page .blog-article__gallery h2 {
  margin: 0;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1.4rem;
  color: var(--blog-text);
}

body.blog-detail-page .blog-gallery {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.blog-detail-page .blog-gallery__item {
  border-radius: var(--blog-radius);
  overflow: hidden;
  background: var(--blog-surface-alt);
  border: 1px solid var(--blog-border);
  box-shadow: 0 16px 28px rgba(24, 12, 12, 0.12);
}

body.blog-detail-page .blog-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.blog-detail-page .blog-article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

body.blog-detail-page .blog-article__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--blog-primary-dark);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--blog-border);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

body.blog-detail-page .blog-article__button:hover {
  background: rgba(211, 47, 47, 0.1);
  border-color: var(--blog-primary);
  color: var(--blog-primary);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  body.blog-detail-page .blog-article-hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

  body.blog-detail-page .blog-article > .blog-container {
    gap: var(--space-3xl);
  }

  body.blog-detail-page .blog-article__content,
  body.blog-detail-page .blog-article__gallery {
    padding: var(--space-2xl);
  }
}

@media (max-width: 540px) {
  body.blog-detail-page .blog-article-hero__content {
    gap: var(--space-md);
  }

  body.blog-detail-page .blog-article__feature img {
    aspect-ratio: 4 / 3;
  }

  body.blog-detail-page .blog-article__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  body.blog-detail-page .blog-article__button {
    width: 100%;
    justify-content: center;
  }
}

/* Blog Page Responsive */
@media (max-width: 768px) {
  .blog-card__content {
    padding: 1.4rem;
  }
}

@media (max-width: 540px) {
  .blog-container {
    padding: 0 1.1rem;
  }

  .blog-hero {
    padding: 2.6rem 0 2.1rem;
  }
}

/* ========================================================================
   Product Detail Styles
======================================================================== */

body.product-detail-page {
    --product-primary: var(--shop-primary);
    --product-primary-dark: var(--shop-primary-dark);
    --product-accent: var(--shop-accent);
    --product-text: var(--shop-text);
    --product-muted: var(--shop-muted);
    --product-border: var(--shop-border);
    --product-border-strong: #d9cfc9;
    --product-panel: var(--color-surface);
    --product-panel-alt: var(--shop-surface);
    --product-background: var(--shop-surface-muted);
    --product-shadow: 0 30px 60px rgba(58, 25, 16, 0.14);
    --product-radius: 1.25rem;
    background: linear-gradient(180deg, #fdf8f5 0%, #f7f2ef 45%, #f9f3ef 100%);
    background-color: var(--product-background);
    color: var(--product-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.product-detail-main {
    padding: var(--space-5xl) 0 var(--space-4xl);
}

.product-detail {
    padding: var(--space-5xl) 0;
}

.product-detail__container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-detail__layout {
    display: grid;
    gap: var(--space-4xl);
    align-items: start;
}

@media (min-width: 992px) {
    .product-detail__layout {
        grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    }
}

.product-detail__gallery {
    display: grid;
    gap: var(--space-xl);
}

.product-detail__media {
    margin: 0;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
}

.product-detail__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

.product-detail__thumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: 0;
    margin: 0;
}

.product-detail__thumb button {
    display: block;
    width: 90px;
    height: 120px;
    padding: 0.5rem;
    border-radius: calc(var(--product-radius) - 0.5rem);
    border: 2px solid transparent;
    background: var(--product-panel);
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(17, 10, 8, 0.12);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.product-detail__thumb button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail__thumb button:hover,
.product-detail__thumb.is-active button {
    border-color: var(--product-primary);
    box-shadow: 0 16px 28px rgba(197, 48, 48, 0.25);
    transform: translateY(-3px);
}

.product-detail__info {
    display: grid;
    gap: var(--space-xl);
    padding: var(--space-3xl);
    border-radius: var(--product-radius);
    background: var(--product-panel);
    border: 1px solid var(--product-border);
    box-shadow: var(--product-shadow);
}

@media (min-width: 1200px) {
    .product-detail__info {
        padding: var(--space-4xl);
    }
}

.product-detail__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(197, 48, 48, 0.12);
    color: var(--product-primary-dark);
}

.product-detail__name {
    margin: 0;
    font-family: 'Crimson Text', 'Times New Roman', serif;
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    line-height: 1.2;
}

.product-detail__pricing {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
}

.product-detail__price {
    font-weight: 600;
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    color: var(--product-primary-dark);
}

.product-detail__price--sale {
    color: var(--product-primary);
}

.product-detail__price--original {
    color: var(--product-muted);
    font-size: 1rem;
    text-decoration: line-through;
    font-weight: 500;
}

.product-detail__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.product-detail__stock {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(56, 161, 105, 0.12);
    color: #1f6041;
}

.product-detail__stock--low {
    background: rgba(237, 137, 54, 0.12);
    color: #a85425;
}

.product-detail__stock--out {
    background: rgba(229, 62, 62, 0.12);
    color: #9b2c2c;
}

.product-detail__meta {
    font-size: 0.95rem;
    color: var(--product-muted);
}

.product-detail__form {
    display: grid;
    gap: var(--space-lg);
}

.product-detail__quantity {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: var(--product-text);
}

.product-detail__quantity input {
    width: 100%;
    max-width: 110px;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid var(--product-border);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-detail__quantity input:focus {
    outline: none;
    border-color: var(--product-primary);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.18);
}

.product-detail__gift {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: var(--product-muted);
}

.product-detail__gift input {
    width: 18px;
    height: 18px;
    accent-color: var(--product-primary);
}

.product-detail__cta {
    justify-self: start;
}

.product-detail__cta.c-button {
    min-width: 220px;
}

.product-detail__cta.c-button-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

.product-detail__message {
    margin: 0;
    font-size: 1rem;
    color: var(--product-muted);
}

.product-detail__description {
    padding: var(--space-4xl) 0 var(--space-5xl);
}

.product-detail__description .product-detail__container {
    max-width: 820px;
}

.product-detail__section-title {
    margin: 0 0 var(--space-lg);
    font-family: 'Crimson Text', 'Times New Roman', serif;
    font-size: 1.6rem;
    color: var(--product-text);
}

.product-detail__copy {
    display: grid;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--product-text);
}

.product-detail__copy p {
    margin: 0;
}

.product-hero {
    position: relative;
}

.product-hero__grid {
    align-items: stretch;
}

.product-hero__gallery {
    gap: var(--space-lg);
}

@media (min-width: 1100px) {
    .product-hero__gallery {
        position: sticky;
        top: 2rem;
    }
}

.product-hero__media {
    padding: 1rem 1rem 0.75rem;
}

.product-hero__panel {
    gap: var(--space-xl);
}

.product-hero__pills {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-hero__sku {
    font-size: 0.9rem;
    color: var(--product-muted);
}

.product-hero__price-block {
    display: grid;
    gap: 0.35rem;
}

.product-hero__price-note {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--product-primary);
}

.product-hero__summary {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--product-muted);
}

.product-detail__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
}

.product-detail__facts li {
    border: 1px dashed var(--product-border);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--product-panel-alt);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.product-detail__facts-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--product-muted);
    margin-bottom: 0.3rem;
}

.product-detail__facts-value {
    font-weight: 600;
    color: var(--product-text);
    font-size: 1rem;
}

.product-hero__form {
    gap: var(--space-lg);
}

.product-detail__form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-end;
}

.product-detail__form-grid > label {
    flex: 1 1 220px;
}

.product-detail__quantity > span {
    font-weight: 600;
    color: var(--product-text);
}

.product-quantity-control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--product-border);
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--product-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    min-width: 180px;
}

.product-quantity-control__btn {
    width: 2.75rem;
    border: none;
    background: transparent;
    color: var(--product-primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-quantity-control__btn:hover,
.product-quantity-control__btn:focus-visible {
    background: rgba(197, 48, 48, 0.1);
    color: var(--product-primary);
    outline: none;
}

.product-quantity-control__input {
    border: none;
    width: 4rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
    padding: 0.65rem 0;
}

.product-quantity-control__input:focus {
    outline: none;
    box-shadow: none;
}

.product-quantity-control input[type="number"]::-webkit-outer-spin-button,
.product-quantity-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-quantity-control input[type="number"] {
    -moz-appearance: textfield;
}

.product-detail__gift {
    margin-bottom: 0.35rem;
    color: var(--product-text);
    font-weight: 600;
}

.product-detail__gift span {
    color: var(--product-muted);
    font-weight: 500;
}

.product-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-hero__actions .product-detail__cta.c-button {
    width: 100%;
    justify-content: center;
}

.product-hero__shipping-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--product-muted);
}

.product-story {
    padding: var(--space-5xl) 0;
    background: var(--product-panel-alt);
}

.product-story__card {
    background: #fff;
    border-radius: var(--product-radius);
    border: 1px solid var(--product-border);
    box-shadow: var(--product-shadow);
    padding: var(--space-4xl);
    display: grid;
    gap: 1.5rem;
}

.product-story__header {
    display: grid;
    gap: 0.35rem;
}

.product-story__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--product-muted);
}

.product-story__body {
    display: grid;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--product-text);
}

.product-story__body p {
    margin: 0;
}

.product-related {
    background: var(--product-panel-alt);
    border-top: 1px solid var(--product-border);
    padding: var(--space-5xl) 0;
}

.product-related__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.product-related__header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Crimson Text', 'Times New Roman', serif;
}

.product-related__link {
    font-weight: 600;
    color: var(--product-primary-dark);
    text-decoration: none;
}

.product-related__link:hover {
    text-decoration: underline;
}

.product-related__grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .product-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-related__card {
    background: var(--product-panel);
    border-radius: var(--product-radius);
    border: 1px solid var(--product-border);
    box-shadow: var(--product-shadow);
    overflow: hidden;
    display: grid;
    gap: 0.9rem;
}

.product-related__image {
    display: block;
    aspect-ratio: 3 / 4;
    background: rgba(197, 48, 48, 0.08);
}

.product-related__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-related__content {
    padding: 0 1.4rem 1.6rem;
    display: grid;
    gap: 0.5rem;
}

.product-related__title {
    margin: 0;
    font-size: 1.05rem;
}

.product-related__title a {
    color: var(--product-text);
    text-decoration: none;
}

.product-related__title a:hover {
    text-decoration: underline;
}

.product-related__price {
    margin: 0;
    font-weight: 600;
    color: var(--product-primary-dark);
}

@media (max-width: 991px) {
    .product-detail__layout {
        grid-template-columns: 1fr;
    }

    .product-detail__info {
        padding: var(--space-3xl);
    }
}

@media (max-width: 640px) {
    .product-detail {
        padding: var(--space-4xl) 0 var(--space-3xl);
    }

    .product-detail__container {
        padding: 0 1.25rem;
    }

    .product-detail__gallery {
        gap: var(--space-lg);
    }

    .product-detail__thumb button {
        width: 68px;
        height: 68px;
    }

    .product-detail__info {
        padding: var(--space-2xl);
        gap: var(--space-lg);
    }

    .product-detail__pricing {
        gap: 0.75rem;
    }

    .product-detail__form {
        gap: var(--space-lg);
    }

    .product-detail__cta.c-button {
        width: 100%;
    }

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

    .product-detail__form-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .product-detail__form-grid > label {
        width: 100%;
    }

    .product-quantity-control {
        width: 100%;
    }

    .product-story__card {
        padding: var(--space-3xl);
    }

    .product-related {
        padding: var(--space-4xl) 0;
    }
}
/* ========================================================================
   Cart & Checkout Layout
======================================================================== */
.c-section {
  padding: var(--space-4xl) 0;
}

.c-form {
  display: grid;
  gap: var(--space-2xl);
}

.c-form-row,
.c-form-row-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

.c-cart-form {
  display: grid;
  gap: var(--space-2xl);
}

.c-cart-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-3xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.c-cart-item__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
}

.c-cart-item__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.c-cart-item__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-xl);
}

.c-cart-item__media {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.c-cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-cart-item__details {
  flex: 1;
  min-width: 220px;
  display: grid;
  gap: var(--space-lg);
}

.c-cart-item__info {
  display: grid;
  gap: var(--space-sm);
}

.c-cart-item__heading {
  display: flex;
  align-items: flex-start;
}

 param($m) $m.Value + $insert .c-cart-item__name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1.05rem;
  text-decoration: none;
}

.c-cart-item__name:hover {
  color: var(--color-primary);
}

.c-cart-item__sku {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.c-cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.c-cart-item__price {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-left: auto;
}

.c-form-input--cart-qty {
  width: 90px;
  text-align: center;
}

.c-cart-item__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-lg);
}

.c-cart-item__quantity-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.c-cart-item__qty-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.c-cart-summary {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-3xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.c-cart-summary p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.summary-line.total-line {
  font-size: 1.125rem;
  color: var(--color-text-primary);
}

.checkout-summary__title {
  margin: 0 0 var(--space-lg);
  font-size: 1.5rem;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.checkout-summary__divider {
  margin: var(--space-3xl) 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.checkout-summary__total {
  margin-bottom: var(--space-md);
}

.checkout-summary__total-amount {
  color: var(--color-primary-dark);
}

.checkout-summary-items {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border-light);
  display: grid;
  gap: var(--space-lg);
}

.checkout-summary-items__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.checkout-summary-items__list {
  display: grid;
  gap: var(--space-lg);
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.checkout-summary-item__media {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.checkout-summary-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary-item__details {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: var(--space-sm);
}

.checkout-summary-item__name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.45;
}

.checkout-summary-item__name:hover {
  color: var(--color-primary);
}

.checkout-summary-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.checkout-summary-item__meta span + span::before {
  content: '•';
  margin: 0 var(--space-xs);
  color: var(--color-border-dark);
}

.checkout-summary-item__total {
  margin-left: auto;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
}


.text-brand {
  color: var(--color-primary);
}

.sticky-summary {
  position: sticky;
  top: var(--space-5xl);
}

.checkout-layout {
  display: grid;
  gap: var(--space-3xl);
}

.checkout-form-column {
  display: grid;
  gap: var(--space-3xl);
}

.checkout-summary-column {
  display: grid;
  gap: var(--space-2xl);
  align-self: start;
}

.c-grid {
  display: grid;
  gap: var(--space-2xl);
}

.c-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ========================================================================
   Utility Enhancements
======================================================================== */
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.gap-6 { gap: var(--space-4xl); }
.gap-8 { gap: var(--space-5xl); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-lg); }
.mb-3 { margin-bottom: var(--space-xl); }
.mb-4 { margin-bottom: var(--space-3xl); }
.mb-6 { margin-bottom: var(--space-4xl); }
.mb-8 { margin-bottom: var(--space-5xl); }
.mt-1 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-3xl); }
.mt-6 { margin-top: var(--space-4xl); }
.my-3 { margin-top: var(--space-xl); margin-bottom: var(--space-xl); }

.grid { display: grid; }

@media (max-width: 1024px) {
  .c-grid-2 {
    grid-template-columns: 1fr;
  }
  .sticky-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .c-section {
    padding: var(--space-3xl) 0;
  }

  .c-cart-item {
    padding: var(--space-2xl);
  }

  .c-cart-item__header,
  .c-cart-item__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .c-cart-item__media {
    width: 90px;
    height: 90px;
  }

  .c-cart-item__footer {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .c-cart-item__quantity-group {
    justify-content: flex-start;
  }

  .c-cart-item__footer .c-button {
    width: 100%;
  }
}

/* ========================================================================
   Mobile Navigation Fixes
======================================================================== */
@media (max-width: 991px) {
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .c-site-header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(22rem, 85vw);
    max-width: 360px;
    background: var(--color-surface);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 950;
    overflow-y: auto;
  }

  .c-site-header-mobile[aria-hidden="false"] {
    transform: translateX(0);
  }
}

/* ========================================================================
   Admin Dashboard Legacy Styles
   Scoped copy of original admin-dashboard.css for consistency
======================================================================== */
body.admin-dashboard-body {
    --admin-primary: #d32f2f;
    --admin-primary-dark: #b71c1c;
    --admin-surface: #f8f4f3;
    --admin-panel: #ffffff;
    --admin-border: #eadfdd;
    --admin-muted: #6b6461;
    --admin-shadow: 0 18px 40px rgba(30, 15, 15, 0.12);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--admin-surface);
    color: #1f1b1a;
}

body.admin-dashboard-body h1,
body.admin-dashboard-body h2,
body.admin-dashboard-body h3 {
    font-family: 'Crimson Text', 'Times New Roman', serif;
}

.admin-dashboard-main {
    padding: 0;
    background: var(--admin-surface);
}

.admin-dashboard {
    display: grid;
    gap: 2.5rem;
}

.admin-dashboard__header {
    display: grid;
    gap: 1.8rem;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(211, 47, 47, 0.1), rgba(0, 0, 0, 0.08));
    border-radius: 1.75rem;
    box-shadow: var(--admin-shadow);
}

.admin-dashboard__welcome {
    font-weight: 600;
    color: var(--admin-primary-dark);
    margin-bottom: 0.35rem;
}

.admin-dashboard__title {
    font-size: clamp(2rem, 3vw, 2.7rem);
    margin: 0 0 0.5rem;
}

.admin-dashboard__subtitle {
    margin: 0;
    max-width: 48ch;
    color: var(--admin-muted);
}

.admin-dashboard__intro {
    display: grid;
    gap: 1.5rem;
}

.admin-dashboard__metrics {
    width: 100%;
}

.admin-dashboard__quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.admin-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--admin-primary);
    box-shadow: 0 16px 26px rgba(211, 47, 47, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-quick-action:hover {
    transform: translateY(-2px);
    background: var(--admin-primary-dark);
    box-shadow: 0 20px 36px rgba(183, 28, 28, 0.35);
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.admin-metric-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: var(--admin-panel);
    border: 1px solid rgba(211, 47, 47, 0.15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 0.5rem;
}

.admin-metric-card__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--admin-muted);
}

.admin-metric-card__value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--admin-primary-dark);
}

.admin-metric-card__meta {
    font-size: 0.9rem;
    color: var(--admin-muted);
}

.admin-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.admin-panel {
    background: var(--admin-panel);
    border-radius: 1.5rem;
    border: 1px solid var(--admin-border);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.admin-panel--wide {
    grid-column: 1 / -1;
}

.admin-panel__header {
    padding: 1.5rem 1.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-panel__header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.admin-panel__header a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--admin-primary-dark);
    text-decoration: none;
}

.admin-panel__body--stats {
    display: grid;
    gap: 1rem;
}

.admin-panel__body--stats--row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-panel__body--stats--row .c-form-group {
    flex: 1 1 260px;
}

.admin-panel__body--stats--wide {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.admin-panel__body--stats--wide .c-form-group {
  flex: 1 1 320px;
}

.admin-stat__label {
    font-size: 0.85rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-stat__value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--admin-primary-dark);
}

.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-orders-table th,
.admin-orders-table td {
    padding: 0.75rem 0.35rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-orders-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--admin-muted);
}

.admin-empty {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.95rem;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(211, 47, 47, 0.12);
    color: var(--admin-primary-dark);
}

.admin-status--completed,
.admin-status--shipped,
.admin-status--paid {
    background: rgba(56, 161, 105, 0.12);
    color: #276749;
}

.admin-status--processing {
    background: rgba(66, 153, 225, 0.12);
    color: #2b6cb0;
}

.admin-status--pending {
    background: rgba(237, 137, 54, 0.12);
    color: #c05621;
}

.admin-status--cancelled,
.admin-status--refunded {
    background: rgba(229, 62, 62, 0.12);
    color: #c53030;
}

.admin-status-list,
.admin-alert-list,
.admin-bestseller-list,
.admin-customer-list,
.admin-traffic-list,
.admin-trend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.admin-status-list li,
.admin-alert-list li,
.admin-bestseller-list li,
.admin-customer-list li,
.admin-traffic-list li,
.admin-trend-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-status-count,
.admin-trend-amount,
.admin-traffic-count,
.admin-customer-meta {
    font-weight: 600;
    color: var(--admin-primary-dark);
}

.admin-alert-list li {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.admin-alert-stock {
    font-size: 0.85rem;
    color: var(--admin-muted);
}

.admin-bestseller-list li {
    padding: 0.5rem 0.35rem;
    gap: 1.25rem;
}

.admin-bestseller-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(211, 47, 47, 0.12);
    color: var(--admin-primary-dark);
    font-weight: 700;
}

.admin-trend-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.admin-trend-amount {
    font-weight: 600;
    color: var(--admin-primary-dark);
}

.admin-traffic-path {
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .admin-dashboard__header {
        gap: 1.6rem;
    }

    .admin-panel__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .admin-metric-card__value {
        font-size: 1.6rem;
    }

    .admin-orders-table th,
    .admin-orders-table td {
        padding: 0.6rem 0.25rem;
    }
}

@media (max-width: 600px) {
    .admin-dashboard__quick-actions {
        width: 100%;
    }

    .admin-quick-action {
        flex: 1;
        text-align: center;
    }

    .admin-insight-grid {
        grid-template-columns: 1fr;
    }
}





.reset-form__wrapper {
  max-width: 820px;
}

.reset-form__wrapper .account-panel {
  padding: var(--space-5xl);
}

.reset-form__wrapper .account-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: var(--space-3xl);
}

@media (max-width: 768px) {
  .reset-form__wrapper .account-panel {
    padding: var(--space-3xl);
  }
  .reset-form__wrapper .account-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.book-overview {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #fffaf5;
}
.book-overview__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.book-overview__title {
    margin: 0;
    font-size: 1.5rem;
}
.book-overview__subtitle {
    margin-top: 0.25rem;
    color: #5f6065;
}
.book-overview__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
}
.book-overview__details dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8c8d94;
}
.book-overview__details dd {
    margin: 0.25rem 0 0;
    font-weight: 600;
}
.book-format-badge {
    border-radius: 999px;
    border: 1px solid #8b4513;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    background: rgba(139, 69, 19, 0.08);
    font-weight: 600;
}
.book-details {
    padding: 3rem 0;
}
.book-details__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.book-details__card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.book-details__card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.book-details__card dl {
    margin: 0;
}
.book-details__card dl div {
    margin-bottom: 0.9rem;
}
.book-details__card dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8c8d94;
}
.book-details__card dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
}
.book-toc {
    margin-top: 1rem;
    border-radius: 12px;
    background: #f8f5ff;
    padding: 1rem;
}
.book-toc summary {
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.book-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.book-genre-badge {
    background: #eef2ff;
    color: #3446a6;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.book-awards {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4a4b53;
}

.product-detail__media {
    margin: 0;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
}

.product-detail__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

.product-detail__thumb button {
    width: 90px;
    height: 120px;
    padding: 0.5rem;
}

.product-detail__thumb button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
