/* ============================================
   TIERRA DE LOS ARTESANOS — Artisan Home Decor
   Design System: Warm, Earthy, Natural, Handcrafted
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- Design Tokens --- */
:root {
  /* Color Palette — Warm Earthy Artisan */
  --color-bg: #FAF6F0;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F2EBE0;
  --color-surface-dark: #2A2018;
  --color-border: #E0D5C7;
  --color-border-light: #EDE5D8;
  --color-text-primary: #2A2018;
  --color-text-secondary: #5C4E3F;
  --color-text-muted: #8A7B6A;
  --color-accent: #B8651E;
  --color-accent-hover: #9E5418;
  --color-accent-light: #D4894A;
  --color-accent-fg: #FFFFFF;
  --color-terracotta: #C66B3D;
  --color-sage: #8B9D7A;
  --color-indigo: #3D5266;
  --color-success: #5A7D4F;
  --color-warning: #C4942E;
  --color-error: #B8442E;
  --color-sale: #B8442E;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(42, 32, 24, 0.08);
  --shadow-md: 0 4px 12px rgba(42, 32, 24, 0.10);
  --shadow-lg: 0 12px 32px rgba(42, 32, 24, 0.14);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

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

  /* Layout */
  --container-max: 1280px;
  --nav-height: 72px;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: var(--space-md); }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-lg); }

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--color-surface-dark);
  color: #F2EBE0;
  text-align: center;
  padding: 10px var(--space-lg);
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.announcement-bar span { display: inline-flex; align-items: center; gap: 6px; }
.announcement-bar svg { width: 14px; height: 14px; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-lg);
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--color-accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { padding: 8px var(--space-md); border-radius: var(--radius-sm); font-size: 0.875rem; }
.nav-dropdown-menu a:hover { background: var(--color-surface-alt); }

.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-action-btn:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.nav-action-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-size: 0.6875rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: var(--font-body);
}
.cart-count.hidden { display: none; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 24px; }
.hamburger span { width: 100%; height: 2px; background: var(--color-text-primary); border-radius: 2px; transition: all var(--transition-base); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 200;
  padding: var(--space-xl) var(--space-lg);
  transition: left var(--transition-slow);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { left: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xl); }
.mobile-menu-close { font-size: 1.5rem; color: var(--color-text-muted); }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-md); }
.mobile-menu nav a { font-size: 1.125rem; font-weight: 500; color: var(--color-text-primary); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border-light); }
.mobile-menu nav a:hover { color: var(--color-accent); }
.mobile-menu .social-links { margin-top: var(--space-xl); }

/* Search */
.search-toggle { display: flex; align-items: center; gap: var(--space-sm); }
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-surface);
  z-index: 150;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}
.search-overlay.open { transform: translateY(0); }
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  padding: 12px var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.search-bar input:focus { border-color: var(--color-accent); }
.search-bar button { padding: 12px var(--space-lg); }
.search-close { position: absolute; top: var(--space-lg); right: var(--space-lg); font-size: 1.5rem; color: var(--color-text-muted); }
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
.search-results-dropdown.show { display: block; }
.search-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}
.search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.search-item-info h4 { font-size: 0.9375rem; margin: 0; }
.search-item-info p { font-size: 0.875rem; color: var(--color-accent); margin: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  border: 2px solid var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-text-primary);
}
.btn-secondary:hover { background: var(--color-text-primary); color: var(--color-surface); }
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-text-primary); color: var(--color-text-primary); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.badge-sale { background: var(--color-sale); color: #fff; }
.badge-new { background: var(--color-sage); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }
.badge-best { background: var(--color-accent); color: var(--color-accent-fg); }

/* --- Sections --- */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-dark { background: var(--color-surface-dark); color: #E0D5C7; }
.section-dark h2, .section-dark h3 { color: #FAF6F0; }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-title { margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--color-text-muted); font-size: 1.0625rem; max-width: 600px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 32, 24, 0.65) 0%, rgba(42, 32, 24, 0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: var(--space-2xl) var(--space-lg);
  color: #FAF6F0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #FAF6F0;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  font-weight: 500;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(250, 246, 240, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* --- Product Card --- */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }
.product-card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-card-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(42,32,24,0.8), transparent);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  z-index: 2;
}
.product-card:hover .product-card-quick-add { transform: translateY(0); }
.product-card-quick-add .btn { width: 100%; }
.product-card-info { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.product-card-vendor { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a:hover { color: var(--color-accent); }
.product-card-price-wrap { display: flex; align-items: center; gap: var(--space-sm); margin-top: auto; }
.product-card-price { font-size: 1.0625rem; font-weight: 600; color: var(--color-text-primary); font-family: var(--font-mono); }
.product-card-compare-price { font-size: 0.875rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: var(--space-sm); }
.product-card-rating .stars { color: var(--color-warning); font-size: 0.875rem; }
.product-card-rating span { font-size: 0.75rem; color: var(--color-text-muted); }

/* --- Collection Card --- */
.collection-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.collection-card:hover img { transform: scale(1.08); }
.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,32,24,0.75) 0%, rgba(42,32,24,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}
.collection-card-title { color: #FAF6F0; font-size: 1.5rem; font-family: var(--font-heading); margin-bottom: 4px; }
.collection-card-count { color: rgba(250,246,240,0.8); font-size: 0.875rem; }

/* --- Blog Card --- */
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: var(--space-lg); }
.blog-card-date { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-sm); }
.blog-card-title { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.blog-card-excerpt { font-size: 0.9375rem; color: var(--color-text-secondary); margin-bottom: var(--space-md); }
.blog-card-read { font-size: 0.875rem; color: var(--color-accent); font-weight: 500; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-item.current { color: var(--color-text-secondary); }

/* --- Product Page Layout --- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}
@media (min-width: 768px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}
@media (min-width: 1024px) {
  .product-layout { grid-template-columns: 1.2fr 1fr; }
}

/* Product Gallery */
.product-gallery { display: flex; flex-direction: column; gap: var(--space-md); }
.gallery-main-wrap {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-alt);
  position: relative;
}
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-info { display: flex; flex-direction: column; gap: var(--space-md); }
.product-vendor { font-size: 0.8125rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.product-title { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; }
.product-rating-row { display: flex; align-items: center; gap: var(--space-sm); }
.product-rating-row .stars { color: var(--color-warning); font-size: 1.125rem; }
.product-rating-row span { font-size: 0.875rem; color: var(--color-text-muted); }
.product-price-wrap { display: flex; align-items: center; gap: var(--space-md); }
.product-price { font-size: 1.75rem; font-weight: 700; color: var(--color-text-primary); font-family: var(--font-mono); }
.product-compare-price { font-size: 1.25rem; color: var(--color-text-muted); text-decoration: line-through; font-family: var(--font-mono); }
.product-short-desc { color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.7; }

/* Option Selectors */
.option-group { margin-top: var(--space-sm); }
.option-label { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.option-label span { color: var(--color-accent); font-weight: 500; }
.option-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.option-btn {
  padding: 10px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  background: var(--color-surface);
}
.option-btn:hover { border-color: var(--color-text-primary); }
.option-btn.active { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-fg); }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* Quantity Control */
.qty-control { display: flex; align-items: center; border: 2px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.qty-btn:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.qty-input { width: 50px; height: 44px; text-align: center; border: none; border-left: 2px solid var(--color-border); border-right: 2px solid var(--color-border); font-size: 1rem; font-weight: 600; outline: none; background: var(--color-surface); }

/* ATC Area */
.product-atc-area { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-md); }
.product-atc-row { display: flex; gap: var(--space-md); align-items: stretch; }
.product-atc-row .btn { flex: 1; }

/* Availability */
.availability-msg { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.875rem; }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }
.availability-msg svg { width: 16px; height: 16px; }

/* Sticky ATC */
.sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(42,32,24,0.08);
  padding: var(--space-md) var(--space-lg);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-product { display: flex; align-items: center; gap: var(--space-md); flex: 1; min-width: 0; }
.sticky-atc-product img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-atc-product .info { min-width: 0; }
.sticky-atc-product h4 { font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-product .price { font-size: 1rem; font-weight: 600; color: var(--color-accent); font-family: var(--font-mono); }
.sticky-atc .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .sticky-atc { padding: var(--space-sm) var(--space-md); }
  .sticky-atc-product h4 { font-size: 0.8125rem; }
}

/* Accordions */
.product-accordions { margin-top: var(--space-lg); }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.accordion-header:hover { color: var(--color-accent); }
.accordion-icon { font-size: 1.25rem; transition: transform var(--transition-base); color: var(--color-text-muted); }
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.accordion.open .accordion-body { max-height: 1000px; }
.accordion-body-inner { padding: 0 0 var(--space-md); color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.7; }
.accordion-body-inner ul { padding-left: var(--space-lg); margin: var(--space-sm) 0; }
.accordion-body-inner li { list-style: disc; margin-bottom: 4px; }

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-top: var(--space-md);
}
@media (min-width: 480px) { .trust-badges { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.trust-item svg { width: 28px; height: 28px; color: var(--color-accent); }
.trust-item span { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 500; }

/* --- Reviews --- */
.reviews-section { margin-top: var(--space-2xl); }
.reviews-summary {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.reviews-avg { text-align: center; }
.reviews-score { font-size: 3rem; font-weight: 700; color: var(--color-text-primary); font-family: var(--font-heading); line-height: 1; }
.reviews-stars { color: var(--color-warning); font-size: 1.125rem; margin: var(--space-sm) 0; }
.reviews-count { font-size: 0.8125rem; color: var(--color-text-muted); }
.reviews-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.rating-bar { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.8125rem; }
.rating-bar-label { width: 40px; color: var(--color-text-muted); }
.rating-bar-track { flex: 1; height: 6px; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--color-warning); border-radius: var(--radius-full); }
.rating-bar-count { width: 30px; text-align: right; color: var(--color-text-muted); }

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.review-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--space-sm); }
.review-author { font-weight: 600; color: var(--color-text-primary); font-size: 0.9375rem; }
.review-verified { font-size: 0.75rem; color: var(--color-success); display: flex; align-items: center; gap: 4px; }
.review-title { font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-sm); font-size: 1rem; }
.review-body { color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.7; }
.review-stars { color: var(--color-warning); font-size: 0.875rem; margin-bottom: var(--space-sm); }
.review-date { font-size: 0.75rem; color: var(--color-text-muted); }

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 32, 24, 0.5);
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 190;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-slow);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-header h2 { font-size: 1.25rem; display: flex; align-items: center; gap: var(--space-sm); }
.cart-drawer-close { font-size: 1.5rem; color: var(--color-text-muted); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); }
.cart-drawer-close:hover { background: var(--color-surface-alt); }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-lg); }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--color-text-muted); }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto var(--space-md); opacity: 0.3; }
.cart-empty p { margin-bottom: var(--space-md); }
.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.875rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }
.cart-item-variant { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.cart-item-price { font-size: 0.875rem; font-weight: 600; color: var(--color-accent); font-family: var(--font-mono); }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-sm); }
.cart-item-qty { display: flex; align-items: center; gap: var(--space-sm); }
.cart-item-qty button { width: 28px; height: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--color-text-secondary); }
.cart-item-qty button:hover { border-color: var(--color-accent); color: var(--color-accent); }
.cart-item-qty span { font-size: 0.875rem; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-remove { font-size: 0.75rem; color: var(--color-text-muted); text-decoration: underline; }
.cart-item-remove:hover { color: var(--color-error); }
.cart-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.cart-subtotal span { font-size: 0.9375rem; color: var(--color-text-secondary); }
.cart-subtotal strong { font-size: 1.25rem; color: var(--color-text-primary); font-family: var(--font-mono); }
.cart-tax-note { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; margin-bottom: var(--space-md); }
.cart-footer .btn { width: 100%; margin-bottom: var(--space-sm); }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface-dark);
  color: #FAF6F0;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  z-index: 300;
  opacity: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-error); }

/* --- Footer --- */
.footer { background: var(--color-surface-dark); color: #C4B5A5; padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: #FAF6F0; margin-bottom: var(--space-md); }
.footer-logo span { color: var(--color-accent-light); }
.footer-tagline { font-size: 0.875rem; color: #A89888; margin-bottom: var(--space-md); max-width: 300px; line-height: 1.7; }
.footer-col h4 { color: #FAF6F0; font-size: 0.9375rem; font-weight: 600; margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a { font-size: 0.875rem; color: #C4B5A5; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-contact { font-size: 0.875rem; color: #C4B5A5; line-height: 1.8; }
.footer-contact a { color: var(--color-accent-light); }
.social-links { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.social-links a {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(250, 246, 240, 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.social-links a:hover { background: var(--color-accent); }
.social-links svg { width: 18px; height: 18px; color: #FAF6F0; }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #8A7B6A;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-payments { display: flex; gap: var(--space-sm); align-items: center; }
.footer-payments span { font-size: 0.75rem; padding: 4px 8px; background: rgba(250,246,240,0.08); border-radius: var(--radius-sm); }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.pagination-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}
.pagination-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination-btn.active { background: var(--color-accent); color: var(--color-accent-fg); border-color: var(--color-accent); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Sort Bar --- */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.sort-bar select {
  padding: 10px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--color-surface);
  outline: none;
  cursor: pointer;
}
.sort-bar select:focus { border-color: var(--color-accent); }
.sort-count { font-size: 0.875rem; color: var(--color-text-muted); }

/* --- Collection Hero --- */
.collection-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.collection-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.collection-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(42,32,24,0.7) 0%, rgba(42,32,24,0.4) 100%); }
.collection-hero-content { position: relative; z-index: 2; padding: var(--space-2xl) var(--space-lg); color: #FAF6F0; }
.collection-hero-content h1 { color: #FAF6F0; margin-bottom: var(--space-sm); }
.collection-hero-content p { color: rgba(250,246,240,0.85); max-width: 500px; }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--color-accent); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* --- Checkout Page --- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}
@media (min-width: 768px) {
  .checkout-layout { grid-template-columns: 1.5fr 1fr; }
}
.checkout-form-section {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border-light);
}
.checkout-form-section h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.checkout-form-section h3 .step-num {
  width: 28px; height: 28px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.checkout-summary {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
}
.checkout-summary h3 { font-size: 1.125rem; margin-bottom: var(--space-md); }
.checkout-summary-items { margin-bottom: var(--space-md); }
.checkout-summary-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.checkout-summary-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.checkout-summary-item-info { flex: 1; min-width: 0; }
.checkout-summary-item-info h4 { font-size: 0.8125rem; margin: 0; }
.checkout-summary-item-info p { font-size: 0.75rem; color: var(--color-text-muted); margin: 0; }
.checkout-summary-item-price { font-size: 0.875rem; font-weight: 600; font-family: var(--font-mono); }
.checkout-totals { padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
.checkout-total-row { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); font-size: 0.875rem; }
.checkout-total-row.grand { font-size: 1.125rem; font-weight: 700; color: var(--color-text-primary); padding-top: var(--space-sm); border-top: 1px solid var(--color-border); margin-top: var(--space-sm); }

/* Card Payment Form */
.card-form { margin-top: var(--space-md); }
.card-input-wrap { position: relative; margin-bottom: var(--space-md); }
.card-input-wrap .card-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.card-input-wrap .card-icon svg { width: 20px; height: 20px; }
.card-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 480px) { .card-row { grid-template-columns: 1fr 1fr; } }
.card-preview {
  background: linear-gradient(135deg, var(--color-surface-dark), #3D2E22);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: #FAF6F0;
  margin-bottom: var(--space-lg);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.card-preview::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184,101,30,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.card-preview-chip {
  width: 40px; height: 30px;
  background: linear-gradient(135deg, #D4A843, #B8902E);
  border-radius: 4px;
  margin-bottom: var(--space-md);
}
.card-preview-number {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}
.card-preview-bottom { display: flex; justify-content: space-between; align-items: end; position: relative; z-index: 1; }
.card-preview-name { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 1px; }
.card-preview-expiry { font-size: 0.8125rem; font-family: var(--font-mono); }
.card-preview-brand { font-size: 1rem; font-weight: 600; font-style: italic; }

/* Security badges */
.security-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.security-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--color-text-muted); }
.security-indicator svg { width: 16px; height: 16px; color: var(--color-success); }

/* --- Thank You Page --- */
.thank-you-hero {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
}
.thank-you-icon {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--color-success);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
}
.thank-you-icon svg { width: 40px; height: 40px; color: #fff; }
.thank-you-hero h1 { margin-bottom: var(--space-md); }
.thank-you-hero p { font-size: 1.125rem; color: var(--color-text-secondary); max-width: 500px; margin: 0 auto var(--space-lg); }
.order-number {
  display: inline-block;
  background: var(--color-surface);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}
.order-details {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-xl);
}
.order-details h3 { margin-bottom: var(--space-md); }
.order-detail-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.9375rem; }
.order-detail-row:last-child { border-bottom: none; }
.order-detail-row strong { color: var(--color-text-primary); }

/* --- Cart Page --- */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}
@media (min-width: 768px) {
  .cart-page-layout { grid-template-columns: 1.5fr 1fr; }
}
.cart-page-items { background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-lg); border: 1px solid var(--color-border-light); }
.cart-page-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.cart-page-item:last-child { border-bottom: none; }
.cart-page-item-img { width: 100px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.cart-page-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-item-info { flex: 1; }
.cart-page-item-info h3 { font-size: 1rem; margin-bottom: 4px; }
.cart-page-item-info .variant { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.cart-page-item-info .price { font-size: 0.9375rem; font-weight: 600; color: var(--color-accent); font-family: var(--font-mono); }
.cart-page-item-actions { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-sm); }
.cart-page-summary { background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-lg); border: 1px solid var(--color-border-light); position: sticky; top: calc(var(--nav-height) + var(--space-md)); }
.cart-page-summary h3 { margin-bottom: var(--space-md); }
.cart-page-summary-row { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); font-size: 0.9375rem; }
.cart-page-summary-row.grand { font-size: 1.25rem; font-weight: 700; padding-top: var(--space-sm); border-top: 1px solid var(--color-border); margin-top: var(--space-sm); }

/* --- 404 Page --- */
.error-page { text-align: center; padding: var(--space-3xl) var(--space-lg); }
.error-page h1 { font-size: clamp(4rem, 15vw, 8rem); color: var(--color-accent); line-height: 1; }
.error-page p { font-size: 1.125rem; color: var(--color-text-secondary); max-width: 400px; margin: 0 auto var(--space-lg); }

/* --- Policy Pages --- */
.policy-page { max-width: 800px; margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.policy-page h1 { margin-bottom: var(--space-md); }
.policy-page .policy-updated { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: var(--space-xl); }
.policy-page h2 { font-size: 1.375rem; margin: var(--space-xl) 0 var(--space-md); }
.policy-page p, .policy-page li { color: var(--color-text-secondary); line-height: 1.8; margin-bottom: var(--space-sm); }
.policy-page ul, .policy-page ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.policy-page li { list-style: disc; }
.policy-sidebar { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.policy-sidebar a { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; transition: all var(--transition-fast); }
.policy-sidebar a:hover, .policy-sidebar a.active { background: var(--color-surface-alt); color: var(--color-accent); }

/* --- Page (About/Contact) --- */
.page-content { max-width: 800px; margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.page-content h1 { margin-bottom: var(--space-md); }
.page-content h2 { margin: var(--space-xl) 0 var(--space-md); }
.page-content p { line-height: 1.8; margin-bottom: var(--space-md); }
.page-content img { border-radius: var(--radius-md); margin: var(--space-md) 0; }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin: var(--space-xl) 0; }
@media (min-width: 640px) { .contact-info-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-info-card { text-align: center; padding: var(--space-lg); background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border-light); }
.contact-info-card svg { width: 32px; height: 32px; color: var(--color-accent); margin: 0 auto var(--space-sm); }
.contact-info-card h4 { font-size: 0.9375rem; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

/* --- Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border-light) 50%, var(--color-surface-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn var(--transition-slow) ease; }
.slide-up { animation: slideUp var(--transition-slow) ease; }

/* --- Accessibility --- */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.pt-xl { padding-top: var(--space-xl); }
.pb-xl { padding-bottom: var(--space-xl); }

/* --- Brand Story Section --- */
.brand-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 768px) { .brand-story { grid-template-columns: 1fr 1fr; } }
.brand-story-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.brand-story-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-story-content h2 { margin-bottom: var(--space-md); }
.brand-story-content p { line-height: 1.8; margin-bottom: var(--space-md); }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  text-align: center;
}
.testimonial-stars { color: var(--color-warning); font-size: 1.125rem; margin-bottom: var(--space-md); }
.testimonial-text { font-size: 1rem; color: var(--color-text-secondary); line-height: 1.7; font-style: italic; margin-bottom: var(--space-md); }
.testimonial-author { font-weight: 600; color: var(--color-text-primary); font-size: 0.875rem; }
.testimonial-location { font-size: 0.75rem; color: var(--color-text-muted); }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon { font-size: 1.5rem; color: var(--color-text-muted); transition: transform var(--transition-base); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 var(--space-md); color: var(--color-text-secondary); line-height: 1.7; }

/* --- Newsletter --- */
.newsletter {
  background: var(--color-surface-dark);
  color: #FAF6F0;
  padding: var(--space-2xl) 0;
  text-align: center;
}
.newsletter h2 { color: #FAF6F0; margin-bottom: var(--space-sm); }
.newsletter p { color: #C4B5A5; margin-bottom: var(--space-lg); }
.newsletter-form { display: flex; gap: var(--space-sm); max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px var(--space-md);
  border: 2px solid rgba(250,246,240,0.2);
  border-radius: var(--radius-sm);
  background: rgba(250,246,240,0.05);
  color: #FAF6F0;
  font-size: 0.9375rem;
  outline: none;
}
.newsletter-form input::placeholder { color: #8A7B6A; }
.newsletter-form input:focus { border-color: var(--color-accent-light); }

/* --- Featured Banner --- */
.feature-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
}
@media (min-width: 768px) { .feature-banner { grid-template-columns: 1fr 1fr; } }
.feature-banner-img { aspect-ratio: 4/3; overflow: hidden; }
.feature-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner-content { padding: var(--space-2xl); background: var(--color-surface-dark); color: #FAF6F0; display: flex; flex-direction: column; justify-content: center; }
.feature-banner-content h2 { color: #FAF6F0; margin-bottom: var(--space-md); }
.feature-banner-content p { color: #C4B5A5; margin-bottom: var(--space-lg); line-height: 1.7; }

/* --- Responsive Nav --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 1.25rem; }
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-xl) 0; }
  .hero { min-height: 500px; }
  .hero-content { padding: var(--space-xl) var(--space-md); }
}

/* --- Blog Article Page --- */
.article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.article-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,32,24,0.85) 0%, rgba(42,32,24,0.35) 60%, rgba(42,32,24,0.2) 100%); }
.article-hero-content { position: relative; z-index: 2; padding: var(--space-2xl) var(--space-lg); color: #FAF6F0; max-width: 860px; margin: 0 auto; width: 100%; }
.article-hero-content h1 { color: #FAF6F0; font-size: clamp(1.875rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: var(--space-md); }
.article-meta { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; font-size: 0.875rem; color: rgba(250,246,240,0.85); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent-light); }
.article-tag-pill { display: inline-block; padding: 4px 12px; background: rgba(184,101,30,0.9); color: #fff; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.5px; margin-bottom: var(--space-md); }

.article-body { max-width: 720px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); }
.article-body .lead { font-size: 1.25rem; line-height: 1.7; color: var(--color-text-primary); font-family: var(--font-heading); font-weight: 400; margin-bottom: var(--space-lg); }
.article-body h2 { font-size: 1.75rem; margin: var(--space-xl) 0 var(--space-md); color: var(--color-text-primary); }
.article-body h3 { font-size: 1.3rem; margin: var(--space-lg) 0 var(--space-sm); color: var(--color-text-primary); }
.article-body p { font-size: 1.0625rem; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: var(--space-md); }
.article-body ul, .article-body ol { padding-left: var(--space-lg); margin: var(--space-md) 0 var(--space-lg); }
.article-body li { font-size: 1.0625rem; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: var(--space-sm); }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--color-text-primary); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--color-accent); text-decoration: underline; }
.article-body a:hover { color: var(--color-accent-hover); }
.article-inline-img { border-radius: var(--radius-md); overflow: hidden; margin: var(--space-xl) 0; }
.article-inline-img img { width: 100%; height: auto; }
.article-inline-img figcaption { font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; padding: var(--space-sm); font-style: italic; }

/* Article share */
.article-share { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: var(--space-xl) 0; }
.article-share span { font-size: 0.875rem; font-weight: 600; color: var(--color-text-primary); }
.article-share-btns { display: flex; gap: var(--space-sm); }
.article-share-btn { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-surface-alt); display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.article-share-btn:hover { background: var(--color-accent); color: #fff; }
.article-share-btn svg { width: 18px; height: 18px; }

/* Author box */
.article-author-box { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg); background: var(--color-surface-alt); border-radius: var(--radius-md); margin: var(--space-xl) 0; }
.article-author-avatar { width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; flex-shrink: 0; }
.article-author-info h4 { font-size: 1rem; margin-bottom: 2px; }
.article-author-info p { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

/* Blog listing */
.blog-hero { position: relative; min-height: 360px; display: flex; align-items: center; overflow: hidden; }
.blog-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.blog-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(42,32,24,0.75) 0%, rgba(42,32,24,0.45) 100%); }
.blog-hero-content { position: relative; z-index: 2; padding: var(--space-2xl) var(--space-lg); color: #FAF6F0; text-align: center; width: 100%; }
.blog-hero-content h1 { color: #FAF6F0; margin-bottom: var(--space-sm); }
.blog-hero-content p { color: rgba(250,246,240,0.85); max-width: 560px; margin: 0 auto; }

.blog-featured { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-2xl); border: 1px solid var(--color-border-light); }
@media (min-width: 768px) { .blog-featured { grid-template-columns: 1.2fr 1fr; } }
.blog-featured-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-content { padding: var(--space-xl); display: flex; flex-direction: column; justify-content: center; background: var(--color-surface); }
.blog-featured-content .blog-card-title { font-size: 1.75rem; }
.blog-card-tag { display: inline-block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-sm); }
.blog-card-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.75rem; color: var(--color-text-muted); margin-top: var(--space-md); }

/* Homepage blog section cards use existing .blog-card */

/* --- Blog Image Text Overlays (Professional Magazine Style) --- */

/* Blog card image overlay */
.blog-card-img { position: relative; overflow: hidden; }
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,32,24,0.75) 0%, rgba(42,32,24,0.15) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.blog-card-img .img-overlay-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(184,101,30,0.95);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.blog-card-img .img-overlay-title {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 2;
  color: #FAF6F0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured blog image overlay */
.blog-featured-img { position: relative; overflow: hidden; }
.blog-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,32,24,0.7) 0%, rgba(42,32,24,0.1) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.blog-featured-img .img-overlay-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(184,101,30,0.95);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.blog-featured-img .img-overlay-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #FAF6F0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Article inline image caption */
.article-inline-img { position: relative; }
.article-inline-img figcaption {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-style: italic;
  line-height: 1.5;
  background: var(--color-surface-alt);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Article hero image — enhance text readability */
.article-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,32,24,0.88) 0%, rgba(42,32,24,0.5) 50%, rgba(42,32,24,0.25) 100%);
}
.article-hero-content h1 { text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.article-hero-content .article-meta { text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.article-tag-pill { text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* Blog hero listing page */
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,32,24,0.8) 0%, rgba(42,32,24,0.5) 100%);
}
.blog-hero-content h1 { text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.blog-hero-content p { text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
