/* =============================================================================
   Ember & Thorn — Theme Stylesheet
   ============================================================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

/* --- CSS Variables (colors injected via wp_add_inline_style) --- */
:root {
  --color-primary:      #c0522a;
  --color-primary-fg:   #f5ede0;
  --color-background:   #f5f1ed;
  --color-foreground:   #1f1912;
  --color-secondary:    #e8e3de;
  --color-secondary-fg: #2d2820;
  --color-muted:        #d9d2cb;
  --color-muted-fg:     #6b6055;
  --color-accent:       #7a6434;
  --color-border:       #d4ccc4;
  --color-card:         #ede8e3;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;

  --radius:     0.5rem;
  --btn-radius: 0.375rem;
  --btn-height: 2.75rem;
  --btn-padding: 0.625rem 1.5rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.025em;
  --btn-text-transform: none;
  --logo-height: 60px;

  --header-height: 80px;
  --shadow-soft: 0 4px 20px -4px rgba(31,25,18,.06);
  --shadow-elevated: 0 8px 40px -8px rgba(31,25,18,.10);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.875rem;
}

/* --- Utility Classes --- */
.container-wide { width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) { .container-wide { padding-left: 2rem; padding-right: 2rem; } }

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-muted-fg); }
.text-bg      { color: var(--color-background); }
.bg-primary   { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.text-primary-fg { color: var(--color-primary-fg); }

.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: flex; } .mobile-only { display: none !important; } }

.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Section Headers --- */
.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 0;
}
.section-header { margin-bottom: 3rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  min-height: var(--btn-height);
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.88; }
.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover { background-color: var(--color-secondary); }
.btn-outline-light {
  background-color: transparent;
  color: var(--color-background);
  border-color: rgba(245,241,237,0.35);
}
.btn-outline-light:hover { background-color: rgba(245,241,237,0.12); }
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
}
.btn-secondary:hover { opacity: 0.85; }
.btn-ghost {
  background-color: transparent;
  color: var(--color-foreground);
}
.btn-ghost:hover { background-color: var(--color-secondary); }
.btn-lg { padding: 0.75rem 2rem; font-size: 0.9375rem; min-height: 3rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-foreground); }
.back-link-light { color: rgba(245,241,237,0.6); }
.back-link-light:hover { color: var(--color-background); }

/* --- Link Underline Animation --- */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* --- Image Hover Zoom --- */
.image-zoom { transition: transform 0.7s ease-out; }
.image-zoom:hover { transform: scale(1.05); }

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(245,241,237,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}
.site-header.is-solid {
  background-color: var(--color-background);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-nav-desktop {
  flex: 1;
  align-items: center;
  justify-content: center;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}
.nav-right { justify-content: flex-start; }
.nav-left  { justify-content: flex-end; }
.nav-link {
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.025em;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }
.site-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-link.mobile-only { display: flex; }
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: var(--logo-height);
  display: block;
}
.site-nav-desktop .site-logo-link { margin: 0 2.5rem; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
  position: absolute;
  top: -0.125rem; right: -0.125rem;
  min-width: 1.25rem; height: 1.25rem;
  padding: 0 0.25rem;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }
.mobile-menu-btn {
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.mobile-menu-btn:hover { opacity: 0.6; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile menu — compact strip under header (height = links + padding) */
.mobile-menu {
  display: none;
}
@media (max-width: 1023px) {
  .mobile-menu:not([hidden]) {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 400;
    margin: 0;
    padding: 1rem 1.5rem 1.25rem;
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 48px rgba(31, 25, 18, 0.12);
    width: 100%;
    max-height: calc(100dvh - var(--header-height) - 1rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}
.mobile-menu-inner { display: flex; flex-direction: column; gap: 0; }
.mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  letter-spacing: 0.025em;
  color: var(--color-foreground);
  transition: color 0.2s;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--color-primary); }

body.mobile-nav-open {
  overflow: hidden;
}

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

.new-editions-empty {
  max-width: 36rem;
  margin: 0 auto 1rem;
  padding: 0 1rem 2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted-fg);
}

/* =============================================================================
   HERO
   ============================================================================= */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) { .hero-content { padding-top: 8rem; padding-bottom: 8rem; } }
.hero-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,241,237,0.7);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-background);
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  color: rgba(245,241,237,0.7);
  font-size: 1.25rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

/* =============================================================================
   VALUE BAR
   ============================================================================= */
.value-bar { background-color: var(--color-foreground); color: var(--color-background); }
.value-bar-inner {
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}
@media (min-width: 640px) { .value-bar-inner { flex-direction: row; gap: 3rem; } }
.value-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.value-bar-sep { opacity: 0.4; display: none; }
@media (min-width: 640px) { .value-bar-sep { display: block; } }

/* =============================================================================
   SECTIONS — New Editions, About Preview, Shop, etc.
   ============================================================================= */
.new-editions-section { padding: 5rem 0; }
.shop-by-cat { padding: 5rem 0; }
.about-preview { padding: 5rem 0; }
.about-preview .section-title { margin-bottom: 1.5rem; }
.about-preview-text { color: var(--color-muted-fg); line-height: 1.7; margin-bottom: 1rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
.about-preview .btn { margin-top: 2rem; }

/* Category Cards */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-card);
  display: block;
}
.cat-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cat-card.group:hover .cat-card-img { transform: scale(1.05); }
.cat-card-img { transition: transform 0.7s ease-out; }
.cat-card-overlay {
  position: absolute; inset: 0;
  background-color: rgba(31,25,18,0.4);
  transition: background-color 0.2s;
}
.cat-card:hover .cat-card-overlay { background-color: rgba(31,25,18,0.5); }
.cat-card-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.cat-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  color: white;
}

/* Dual CTA */
.dual-cta { padding: 4rem 0; }
.dual-cta-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .dual-cta-grid { grid-template-columns: 1fr 1fr; } }
.dual-cta-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dual-cta-icon { margin-bottom: 1rem; opacity: 0.8; }
.dual-cta-title { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; margin-bottom: 1rem; }
.dual-cta-text { max-width: 20rem; margin: 0 auto 2rem; color: var(--color-muted-fg); }
.dual-cta-card.bg-primary .dual-cta-text { color: rgba(245,241,237,0.9); }
.dual-cta-card.bg-primary .dual-cta-icon { color: rgba(245,241,237,0.8); }

/* Shop Section */
.shop-section { padding: 5rem 0; scroll-margin-top: 6rem; }
.shop-search-wrap {
  position: relative;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}
.shop-search-icon {
  position: absolute;
  left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
  pointer-events: none;
}
.shop-search-input {
  width: 100%;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  padding: 0 2.5rem 0 2.25rem;
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s;
}
.shop-search-input::placeholder { color: var(--color-muted-fg); }
.shop-search-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(192,82,42,0.15); }
.shop-search-clear {
  position: absolute;
  right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
}
.shop-search-clear:hover { color: var(--color-foreground); }
.shop-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.filter-pill {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  transition: all 0.2s;
}
.filter-pill:hover, .filter-pill.is-active {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}
.shop-show-more { margin-top: 2rem; }
.shop-empty { padding: 5rem 0; }
.shop-empty p { color: var(--color-muted-fg); margin-bottom: 1rem; }

/* =============================================================================
   PRODUCT GRID & CARDS
   ============================================================================= */
.product-grid {
  display: grid;
  gap: 1.5rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Product Card Wrapper */
.theme-product-card-wrap { height: 100%; }
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Hit area overlay */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  display: block;
}
/* Pass clicks through decorative layers to the overlay link */
.theme-product-card * { pointer-events: none; }
/* Overlay must stay clickable (selector beats `.theme-product-card *`) */
.theme-product-card .theme-card-link {
  pointer-events: auto;
}
.add_to_cart_button { position: relative; z-index: 2; pointer-events: auto; }

/* Product Image */
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.theme-product-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease-out;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__image.is-faded { opacity: 0.6; }

/* Badges */
.sold-out-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-radius: 0.25rem;
}
.new-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-primary);
  color: white;
  border-radius: 0.25rem;
}

/* Card Info */
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted-fg);
  margin-bottom: 0.25rem;
}
.card-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: opacity 0.2s;
}
.theme-product-card:hover .card-name { opacity: 0.7; }
.card-price { font-size: 0.875rem; color: var(--color-muted-fg); }

/* Grid item animation staggering */
.product-grid-item { animation: none; }

/* =============================================================================
   TESTIMONIALS
   ============================================================================= */
.testimonials-section { padding: 5rem 0; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.testimonial-card {
  background-color: var(--color-background);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.testimonial-stars { display: flex; gap: 0.125rem; margin-bottom: 0.75rem; }
.star-icon { color: var(--color-primary); }
.testimonial-text { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.7; flex: 1; margin-bottom: 1rem; }
.testimonial-name { font-size: 0.875rem; font-weight: 500; padding-top: 0.75rem; border-top: 1px solid var(--color-border); }

/* =============================================================================
   CONTACT CTA
   ============================================================================= */
.contact-cta-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.contact-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-cta-overlay { position: absolute; inset: 0; background-color: rgba(31,25,18,0.6); }
.contact-cta-content { position: relative; z-index: 2; }
.contact-cta-inner { max-width: 32rem; margin: 0 auto; }
.contact-cta-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.contact-cta-text { color: rgba(245,241,237,0.7); margin-bottom: 2rem; }

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-secondary);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: span 1; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.footer-about { font-size: 0.875rem; color: var(--color-muted-fg); max-width: 22rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.social-link { padding: 0.5rem; transition: opacity 0.2s; }
.social-link:hover { opacity: 0.6; }
.social-icon { width: 1.25rem; height: 1.25rem; }
.footer-col-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-list a, .footer-contact-list a { font-size: 0.875rem; color: var(--color-muted-fg); transition: color 0.2s; }
.footer-nav-list a:hover, .footer-contact-list a:hover { color: var(--color-foreground); }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-fg); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright, .footer-meta { font-size: 0.75rem; color: var(--color-muted-fg); }
.footer-meta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .footer-meta { flex-direction: row; gap: 1rem; } }
.footer-meta a { text-decoration: underline; transition: color 0.2s; }
.footer-meta a:hover { color: var(--color-foreground); }

/* =============================================================================
   CART DRAWER
   ============================================================================= */
body.cart-open { overflow: hidden; }

#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31,25,18,0.2);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-background);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
  box-shadow: var(--shadow-elevated);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.cart-drawer-close { padding: 0.25rem; transition: opacity 0.2s; }
.cart-drawer-close:hover { opacity: 0.6; }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cart-empty-icon { color: var(--color-muted-fg); margin-bottom: 1rem; }
.cart-empty-text { color: var(--color-muted-fg); margin-bottom: 1.5rem; }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cart-item { display: flex; gap: 1rem; }
.cart-item-img-link {
  width: 5rem; height: 6rem;
  background-color: var(--color-secondary);
  border-radius: 0.25rem;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-fg); margin-top: 0.25rem; }
.cart-item-variations { font-size: 0.75rem; color: var(--color-muted-fg); margin-top: 0.25rem; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  transition: background-color 0.2s;
  border-radius: 0.25rem;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-qty-display { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-remove-btn { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-fg); transition: color 0.2s; }
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.875rem; color: var(--color-muted-fg); }
.cart-checkout-btn { text-decoration: none; }

/* =============================================================================
   ABOUT PAGE
   ============================================================================= */
.about-page { padding-top: calc(var(--header-height) + 2rem); min-height: 100vh; }
.about-page .container-wide { padding-top: 2.5rem; padding-bottom: 5rem; }
.about-hero-grid, .about-boxes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) {
  .about-hero-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .about-boxes-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.about-hero-img-wrap { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.about-hero-img { width: 100%; height: 100%; object-fit: cover; }
.about-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin: 0.5rem 0 1.5rem; }
.about-body p { color: var(--color-muted-fg); line-height: 1.8; margin-bottom: 1rem; }
.about-boxes-img-wrap { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 1024px) { .about-boxes-img-wrap { order: -1; } }
.about-boxes-img { width: 100%; height: 100%; object-fit: cover; }
.about-boxes-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 500; margin: 0.5rem 0 1.5rem; }
.about-boxes-body { color: var(--color-muted-fg); line-height: 1.8; }
.about-mission {
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .about-mission { padding: 4rem; } }
.about-mission-title { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; margin-bottom: 1.5rem; }
.about-mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-muted-fg);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  font-style: italic;
}
.about-mission-text { color: var(--color-muted-fg); max-width: 32rem; margin: 0 auto; }
.about-banner { position: relative; border-radius: 1rem; overflow: hidden; margin-bottom: 5rem; }
.about-banner-img { width: 100%; height: 400px; object-fit: cover; }
.about-banner-overlay { position: absolute; inset: 0; background-color: rgba(31,25,18,0.7); }
.about-banner-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.about-banner-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.about-banner-text { color: rgba(245,241,237,0.8); max-width: 32rem; margin: 0 auto 2rem; text-align: center; }

/* =============================================================================
   CONTACT PAGE
   ============================================================================= */
.contact-page { padding-top: calc(var(--header-height) + 2rem); min-height: 100vh; }
.contact-page .container-wide { padding-top: 2.5rem; padding-bottom: 5rem; }
.contact-header { margin-bottom: 3rem; }
.contact-page-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.contact-page-subtitle { color: var(--color-muted-fg); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }
.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card, .contact-social-card {
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-info-title { font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.contact-info-item a { transition: color 0.2s; }
.contact-info-item a:hover { color: var(--color-primary); }
.contact-social-text { font-size: 0.875rem; color: var(--color-muted-fg); margin-bottom: 0.75rem; }
.contact-social-links { display: flex; flex-direction: column; gap: 0.5rem; }
.social-text-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-primary); }
.social-text-link:hover { text-decoration: underline; }

/* Forms */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted-fg); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(192,82,42,0.15);
}
.form-textarea { resize: none; }
.form-select { appearance: none; }

.contact-success { max-width: 40rem; margin: 5rem auto; padding: 2rem 0; }
.contact-success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-fg);
  margin: 0 auto 1.5rem;
}
.contact-success-title { font-size: 2rem; font-weight: 500; margin-bottom: 1rem; }
.contact-success-text { color: var(--color-muted-fg); margin-bottom: 2rem; }

/* =============================================================================
   FAQ PAGE
   ============================================================================= */
.faq-page { padding-top: calc(var(--header-height) + 2rem); min-height: 100vh; }
.faq-page .container-wide { padding-top: 2.5rem; padding-bottom: 5rem; }
.faq-wrap { max-width: 48rem; margin: 0 auto; }
.faq-header { margin-bottom: 3rem; }
.faq-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.faq-subtitle { color: var(--color-muted-fg); }
.faq-sections { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 4rem; }
.faq-section {}
.faq-category {
  font-size: 1.25rem; font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}
.faq-items { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
  transition: background-color 0.2s;
}
.faq-question:hover { background-color: rgba(232,227,222,0.5); }
.faq-question span { font-weight: 500; font-size: 0.875rem; padding-right: 1rem; flex: 1; }
.faq-chevron { flex-shrink: 0; color: var(--color-muted-fg); }
.faq-answer { padding: 0 1.25rem 1.25rem; }
.faq-answer p { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.7; }
.faq-cta { padding-top: 2.5rem; border-top: 1px solid var(--color-border); }
.faq-cta-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 1rem; }
.faq-cta-text { color: var(--color-muted-fg); margin-bottom: 1.5rem; }

/* =============================================================================
   LORE / ARCHIVES PAGE
   ============================================================================= */
.lore-page { }
.lore-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}
.lore-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lore-hero-overlay { position: absolute; inset: 0; background-color: rgba(31,25,18,0.6); }
.lore-hero-content { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; }
.lore-hero-inner { max-width: 40rem; }
.lore-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 1rem; }
.lore-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; color: var(--color-background); margin-bottom: 1.5rem; }
.lore-hero-subtitle { color: rgba(245,241,237,0.7); font-size: 1.125rem; line-height: 1.7; }

.lore-entries { padding: 5rem 0; }
.lore-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) {
  .lore-entry { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .lore-entry--reverse .lore-entry-text { order: 2; }
  .lore-entry--reverse .lore-entry-img-wrap { order: 1; }
}
.lore-entry-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.lore-entry-subtitle { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-fg); }
.lore-entry-title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; margin-bottom: 1.5rem; }
.lore-entry-body { color: var(--color-muted-fg); line-height: 1.8; margin-bottom: 2rem; white-space: pre-line; }
.lore-entry-img-wrap { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background-color: var(--color-secondary); }
.lore-entry-img { width: 100%; height: 100%; object-fit: cover; }

.lore-notes { padding: 5rem 0; }
.lore-notes-header { max-width: 40rem; margin: 0 auto 3rem; }
.lore-notes-icon { margin: 0 auto 1rem; color: var(--color-primary); }
.lore-notes-title { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; margin-bottom: 1rem; }
.lore-notes-subtitle { color: var(--color-muted-fg); }
.lore-notes-list-wrap { max-width: 48rem; margin: 0 auto; }
.lore-notes-list { display: flex; flex-direction: column; gap: 1rem; }
.lore-note-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--color-background);
  border-radius: var(--radius);
}
.lore-note-num {
  width: 1.5rem; height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(192,82,42,0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500;
  margin-top: 0.125rem;
}
.lore-note-item p { color: var(--color-muted-fg); line-height: 1.7; }

.lore-cta-section { position: relative; padding: 6rem 0; overflow: hidden; }
.lore-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lore-cta-overlay { position: absolute; inset: 0; background-color: rgba(31,25,18,0.7); }
.lore-cta-content { position: relative; z-index: 2; }
.lore-cta-inner { max-width: 32rem; margin: 0 auto; }
.lore-cta-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.lore-cta-text { color: rgba(245,241,237,0.7); margin-bottom: 2rem; }
.lore-cta-btns { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; }
@media (min-width: 640px) { .lore-cta-btns { flex-direction: row; } }

/* =============================================================================
   GIFT BUILDER PAGE
   ============================================================================= */
.gift-builder-page { padding-top: calc(var(--header-height) + 2rem); min-height: 100vh; }
.gift-builder-header { margin-bottom: 3rem; }
.gift-builder-icon { color: var(--color-primary); margin: 0 auto 1rem; }
.gift-builder-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.gift-builder-subtitle { color: var(--color-muted-fg); max-width: 32rem; margin: 0 auto; }
.gift-builder-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .gift-builder-layout { grid-template-columns: 2fr 1fr; } }
.gb-search-wrap { position: relative; margin-bottom: 1rem; }
.gb-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-fg); pointer-events: none; }
.gb-search-input {
  width: 100%; padding: 0.625rem 2.5rem 0.625rem 2.5rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.gb-search-input:focus { border-color: var(--color-primary); }
.gb-search-clear { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-fg); }
.gb-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; overflow-x: auto; }
.gb-filter {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--color-secondary);
  color: var(--color-muted-fg);
  transition: all 0.2s;
  white-space: nowrap;
}
.gb-filter.is-active, .gb-filter:hover { background-color: var(--color-primary); color: var(--color-primary-fg); }
.gb-count-label { font-size: 0.875rem; color: var(--color-muted-fg); margin-bottom: 1rem; }
.gb-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .gb-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gb-product-btn {
  text-align: left;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.gb-product-btn.is-selected { border-color: var(--color-primary); box-shadow: var(--shadow-soft); }
.gb-product-btn:hover { border-color: var(--color-border); }
.gb-product-img-wrap { position: relative; aspect-ratio: 1; background-color: var(--color-secondary); }
.gb-product-img { width: 100%; height: 100%; object-fit: cover; }
.gb-selected-badge {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  width: 1.5rem; height: 1.5rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.gb-selected-qty { color: var(--color-primary-fg); font-size: 0.875rem; font-weight: 700; }
.gb-product-info { padding: 0.75rem; flex: 1; }
.gb-product-name { font-size: 0.875rem; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gb-product-price { font-size: 0.875rem; color: var(--color-muted-fg); }
.gb-no-products { padding: 4rem 0; }
.gb-clear-link { font-size: 0.875rem; text-decoration: underline; }

/* GB Sidebar */
.sticky-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.gb-summary-card { border-radius: var(--radius); padding: 1.5rem; }
.gb-summary-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.gb-summary-items { margin-bottom: 1.5rem; }
.gb-empty-text { font-size: 0.875rem; margin-bottom: 1.5rem; }
.gb-gift-wrap-block { border-top: 1px solid var(--color-border); padding-top: 1rem; margin-bottom: 1rem; }
.gb-giftwrap-label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 0.875rem; }
.gb-gift-message { margin-top: 0.75rem; }
.gb-totals { border-top: 1px solid var(--color-border); padding-top: 1rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.gb-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-fg); }
.gb-total-row { display: flex; justify-content: space-between; font-weight: 500; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
.gb-post-add { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

/* GB Mobile bar */
.gb-mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding: 1rem;
  z-index: 50;
}
@media (min-width: 1024px) { .gb-mobile-bar { display: none !important; } }
.gb-mobile-view-btn { display: flex; justify-content: space-between; align-items: center; }
.gb-mobile-icon { display: flex; align-items: center; gap: 0.5rem; }
.gb-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(31,25,18,0.4);
}
.gb-mobile-drawer-inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background-color: var(--color-background);
  border-radius: 1.5rem 1.5rem 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.gb-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.gb-mobile-close { color: var(--color-muted-fg); }
.gb-mobile-drawer-body { padding: 1.5rem; overflow-y: auto; flex: 1; }

/* pb-28 utility for gift builder page bottom bar clearance */
.pb-28 { padding-bottom: 7rem; }
@media (min-width: 1024px) { .pb-28 { padding-bottom: 2.5rem; } }

/* GB Summary Items */
.gb-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.gb-summary-thumb {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.25rem;
  object-fit: cover;
  flex-shrink: 0;
}
.gb-summary-item-info { flex: 1; min-width: 0; }
.gb-summary-item-info .gb-product-name { font-size: 0.875rem; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gb-summary-item-info .gb-product-price { font-size: 0.875rem; color: var(--color-muted-fg); }
.gb-inline-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.gb-dec, .gb-inc {
  width: 1.25rem; height: 1.25rem;
  border-radius: 0.25rem;
  background-color: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}
.gb-dec:hover, .gb-inc:hover { background-color: var(--color-muted); }
.gb-remove {
  color: var(--color-muted-fg);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.gb-remove:hover { color: var(--color-foreground); }

/* =============================================================================
   SINGLE PRODUCT PAGE
   ============================================================================= */
.single-product { padding-top: var(--header-height); min-height: 100vh; }
.product-back-link { padding: 1.5rem 0; }
.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

/* Gallery */
.product-main-img-wrap {
  aspect-ratio: 3/4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.product-main-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.product-thumb-btn {
  width: 4rem; height: 5rem;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.product-thumb-btn.is-active { border-color: var(--color-primary); }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-fg); }
.product-category a { transition: color 0.2s; }
.product-category a:hover { color: var(--color-primary); }
.product-name { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; margin: 0.5rem 0 1rem; }
.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.product-price .price { font-size: 1.25rem; }
.sold-out-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-muted);
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}
.product-description { color: var(--color-muted-fg); line-height: 1.8; margin-bottom: 2rem; }
.theme-add-to-cart-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

/* Quantity control */
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-qty-minus, .theme-qty-plus {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.2s;
  width: 2.5rem;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
  width: 3rem;
  text-align: center;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  padding: 0.75rem 0;
  background: transparent;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-fulfillment-note { font-size: 0.875rem; color: var(--color-muted-fg); text-align: center; margin-bottom: 1rem; }
.product-details-section { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 1rem; }
.product-details-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.product-short-description { overflow-wrap: break-word; word-break: break-word; }
.product-short-description ul { padding-left: 1.5rem; }
.product-short-description li {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.5rem;
}
.product-short-description li::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 0.6em;
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Related products */
.related-products { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-title { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; margin-bottom: 2.5rem; }

/* Variations table */
.single-product .variations.shop_attributes { width: 100%; margin-bottom: 1.5rem; }
.single-product .variations.shop_attributes tbody,
.single-product .variations.shop_attributes tbody tr,
.single-product .variations.shop_attributes tbody td { display: block; width: 100%; }
.single-product .variations.shop_attributes td.label { padding-bottom: 0.25rem; font-weight: 500; font-size: 0.875rem; }
.single-product .variations.shop_attributes td.value { padding-top: 0; margin-bottom: 1rem; }
.single-product .variations.shop_attributes td.value select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  background-color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
}
.single-product .variations.shop_attributes td.value select:focus { border-color: var(--color-primary); }
.single_variation_wrap { margin-top: 1rem; }
.woocommerce-variation-price .price { font-size: 1.25rem; display: block; margin-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }

/* =============================================================================
   WOOCOMMERCE — Add to Cart Button
   ============================================================================= */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Hide "View cart" after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Loading state for add to cart buttons */
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* WooCommerce notices */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error { /* always visible */ }

/* =============================================================================
   CHECKOUT — WooCommerce Checkout Block
   ============================================================================= */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  padding: 2rem 0 1rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0; width: 100%; max-width: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important; max-width: none !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.25rem !important;
  background-color: var(--color-background) !important;
  color: var(--color-foreground) !important;
  font-family: var(--font-body) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(192,82,42,0.15) !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  min-height: 3rem !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.88 !important; }

/* =============================================================================
   THANK YOU PAGE
   ============================================================================= */
.thankyou-page-wrap { padding: 2rem 0; }
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; padding: 0 0 1rem 0; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem; background-color: var(--color-secondary); border-radius: var(--radius); margin-bottom: 2rem; list-style: none; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-overview strong { display: block; font-weight: 600; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table th, body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { font-style: normal; font-size: 0.875rem; line-height: 1.7; overflow-wrap: break-word; }

/* =============================================================================
   404 PAGE
   ============================================================================= */
.not-found-wrap { padding: 8rem 0; }
.not-found-title { font-size: 8rem; font-weight: 700; color: var(--color-muted); line-height: 1; margin-bottom: 0.5rem; }
.not-found-subtitle { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }
.not-found-text { color: var(--color-muted-fg); margin-bottom: 2rem; }

/* =============================================================================
   WooCommerce Archive Page
   ============================================================================= */
.woocommerce-archive { padding-top: calc(var(--header-height) + 2rem); }
.woo-archive-section { padding: 2.5rem 0 5rem; }
.woocommerce-page-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 3rem; }
.woocommerce nav.woocommerce-pagination ul { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: background-color 0.2s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.no-products { padding: 4rem; color: var(--color-muted-fg); }

/* =============================================================================
   PAGE — generic page
   ============================================================================= */
.site-main { padding-top: calc(var(--header-height) + 2rem); min-height: 60vh; }
.page-content-wrap { padding: 2rem 0 5rem; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2rem;
}
.entry-content { line-height: 1.8; color: var(--color-muted-fg); }
.entry-content h2, .entry-content h3 { color: var(--color-foreground); margin: 1.5rem 0 0.75rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }

/* =============================================================================
   SECTION — New Editions eyebrow/title spacing
   ============================================================================= */
.new-editions-section .section-header { margin-bottom: 3rem; }
.new-editions-section .section-eyebrow { display: block; }

/* Category section header */
.shop-by-cat .section-header { margin-bottom: 3rem; }

/* About Preview spacing */
.about-preview .section-eyebrow { display: block; margin-bottom: 0.5rem; }

/* Shop section header */
.shop-section .section-header .section-title { margin-bottom: 2rem; }

/* =============================================================================
   WOOCOMMERCE — Product details list (from short description)
   ============================================================================= */
.product-short-description ul { list-style: none; padding: 0; }
.woocommerce-product-details__short-description ul { list-style: none; padding: 0; }
.woocommerce-product-details__short-description ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.woocommerce-product-details__short-description ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* =============================================================================
   WOOCOMMERCE — Additional overrides
   ============================================================================= */
.woocommerce-loop-product__link { display: block; }
.woocommerce .loop-product-thumbnail { display: none; } /* prevent WC default thumbnail */

/* =============================================================================
   RESPONSIVE — Overrides
   ============================================================================= */
@media (max-width: 767px) {
  .hero-section { min-height: 80vh; }
  .new-editions-section, .shop-by-cat, .about-preview, .dual-cta, .shop-section, .testimonials-section { padding: 3rem 0; }
  .contact-cta-section { padding: 4rem 0; }
  .lore-hero { padding-top: calc(var(--header-height) + 0); }
  .lore-hero-content { padding-top: 4rem; padding-bottom: 4rem; }
  .lore-entries, .lore-notes { padding: 3rem 0; }
  .lore-entry { margin-bottom: 3rem; }
  .lore-cta-section { padding: 4rem 0; }
  .single-product { padding-top: var(--header-height); }
}
