
:root {
  /* Warm, welcoming, earthy palette for a furniture store */
  --color-bg: #f9f7f4;
  --color-surface: #ffffff;
  --color-surface-alt: #f1ede8;
  --color-border: #e0d8d0;

  --color-text-primary: #2a2522;
  --color-text-secondary: #564c47;
  --color-text-muted: #8b807a;

  --color-accent: #8b5a2b;       /* Walnut/Wood tone */
  --color-accent-hover: #6e4620;
  --color-accent-light: #e8dbce;
  --color-accent-fg: #ffffff;

  --color-success: #3c763d;
  --color-warning: #8a6d3b;
  --color-error: #a94442;

  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(42, 37, 34, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(42, 37, 34, 0.1), 0 2px 4px -1px rgba(42, 37, 34, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(42, 37, 34, 0.1), 0 4px 6px -2px rgba(42, 37, 34, 0.05);

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

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  --container-width: 1280px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.6;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-primary);
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Typography Classes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }

/* Grids */
.grid-2, .grid-3, .grid-4, .grid-auto {
  display: grid;
  gap: var(--space-lg);
  width: 100%;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container { padding-inline: var(--space-lg); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sections */
.section { padding: var(--space-2xl) 0; }
.section-alt { background-color: var(--color-surface-alt); padding: var(--space-2xl) 0; }
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-inline: auto;
}
.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}
.section-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-accent-fg);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--color-text-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
}
.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-surface-alt);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.badge-sale {
  background-color: var(--color-error);
  color: white;
}
.badge-out {
  background-color: var(--color-surface-alt);
  color: var(--color-text-muted);
}
.badge-new {
  background-color: var(--color-success);
  color: white;
}

/* Header & Nav */
.announcement-bar {
  background-color: var(--color-text-primary);
  color: white;
  text-align: center;
  padding: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
}
.header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}
.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.nav-link:hover {
  color: var(--color-text-primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  position: relative;
}
.nav-icon-btn:hover {
  background-color: var(--color-surface-alt);
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Bar (Expandable) */
.search-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-surface);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.search-container.active { display: block; }
.search-form {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  font-size: 1rem;
}
.search-input:focus {
  outline: none;
  border-color: var(--color-text-primary);
  background: var(--color-surface);
}
.search-icon-inside {
  position: absolute;
  left: 1rem;
  color: var(--color-text-muted);
}
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}
.search-results-dropdown.active { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-surface-alt);
  transition: background var(--transition-fast);
}
.search-result-item:hover { background: var(--color-surface-alt); }
.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.search-result-info { flex: 1; }
.search-result-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.search-result-price {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-text-primary);
  color: white;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero {
    height: 600px;
  }
}
@media (min-width: 1024px) {
  .hero {
    height: 650px;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,37,34,0.65) 0%, rgba(42,37,34,0.35) 50%, rgba(42,37,34,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: var(--space-xl);
}
.hero-eyebrow {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-accent-light);
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: white;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  text-wrap: balance;
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image {
  transform: scale(1.05);
}
.product-card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 2;
}
.product-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-sm) var(--space-sm) var(--space-sm);
}
.product-card-vendor {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.product-card-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
}
.product-price-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.product-price {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.product-compare-price {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Collection Cards */
.collection-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}
.collection-card-title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.collection-card-count {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}
.collection-card:hover img {
  transform: scale(1.05);
}

/* Trust Badges */
.trust-section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.trust-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.trust-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background-color: var(--color-text-primary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 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;
  color: white;
  margin-bottom: var(--space-md);
  display: inline-block;
}
.footer-title {
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-link {
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: white;
}
.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.social-link {
  color: white;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.social-link:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Product Page layout */
.product-layout {
  display: grid;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}
@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr 450px;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr 500px;
  }
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: 100px;
}
.gallery-main {
  aspect-ratio: 1;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background-color: var(--color-surface-alt);
}
.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-lg);
}
.product-info-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-lg);
}
.product-title-large {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: var(--space-sm);
}
.product-price-large {
  font-size: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Options */
.option-group {
  margin-bottom: var(--space-md);
}
.option-label {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
}
.option-value-display {
  color: var(--color-text-secondary);
  font-weight: 400;
}
.option-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.option-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.option-btn:hover {
  border-color: var(--color-text-primary);
}
.option-btn.active {
  background: var(--color-text-primary);
  color: white;
  border-color: var(--color-text-primary);
}
.option-btn.unavailable {
  opacity: 0.5;
  text-decoration: line-through;
}

/* Qty */
.qty-control {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 48px;
}
.qty-btn {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  color: var(--color-text-primary);
}
.qty-btn:hover { background: var(--color-border); }
.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  border-inline: 1px solid var(--color-border);
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ATC Block */
.atc-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.buy-now-btn {
  background-color: var(--color-text-primary);
  color: white;
}
.buy-now-btn:hover { background-color: #000; }
.availability-msg {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-of-stock { color: var(--color-error); }

/* Accordions */
.accordion {
  border-bottom: 1px solid var(--color-border);
}
.accordion:first-child {
  border-top: 1px solid var(--color-border);
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  font-weight: 600;
  text-align: left;
}
.accordion-icon {
  transition: transform var(--transition-fast);
}
.accordion.active .accordion-icon {
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.accordion-content {
  padding-bottom: var(--space-md);
  color: var(--color-text-secondary);
}
.accordion-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}
.accordion-content p { margin-bottom: 1rem; }

/* Product Description HTML */
.prose {
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--color-text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Reviews */
.reviews-section {
  padding: var(--space-2xl) 0;
  background-color: var(--color-surface-alt);
}
.reviews-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.rating-stars {
  display: inline-flex;
  color: #fbbf24;
  font-size: 1.25rem;
  letter-spacing: 2px;
}
.review-grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}
.review-author {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.verified-badge {
  color: var(--color-success);
  width: 14px;
  height: 14px;
}
.review-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.review-title {
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.review-body {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 100;
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 101;
  display: flex;
  flex-direction: column;
}
.cart-drawer.active {
  transform: translateX(0);
}
.cart-drawer-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
}
.cart-close-btn:hover { background: var(--color-border); }
.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.cart-empty {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--color-text-secondary);
}
.cart-item {
  display: flex;
  gap: var(--space-md);
}
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
}
.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cart-item-title {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-variant {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: auto;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
}
.cart-item-remove {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}
.cart-item-remove:hover { color: var(--color-error); }
.cart-item-price {
  font-weight: 600;
  font-family: var(--font-mono);
}
.cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.cart-tax-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transform: translateY(100%);
  opacity: 0;
  transition: all var(--transition-base);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-error); }

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  overflow-x: auto;
  white-space: nowrap;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-item a { transition: color var(--transition-fast); }
.breadcrumb-item a:hover { color: var(--color-text-primary); }
.breadcrumb-sep { margin: 0 8px; font-size: 0.75rem; opacity: 0.5; }

/* Sticky ATC */
.sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sticky-atc.visible {
  transform: translateY(0);
}
.sticky-atc-info {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}
@media (min-width: 640px) {
  .sticky-atc-info { display: flex; }
}
.sticky-atc-img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

/* Page Layout */
.page-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  background-color: var(--color-surface-alt);
}
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* Policy Pages */
.policy-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}
@media (min-width: 768px) {
  .policy-layout { flex-direction: row; }
}
.policy-sidebar {
  min-width: 250px;
  border-right: 1px solid var(--color-border);
  padding-right: var(--space-lg);
}
.policy-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: sticky;
  top: 100px;
}
.policy-nav-link {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.policy-nav-link:hover, .policy-nav-link.active {
  background: var(--color-surface-alt);
  font-weight: 500;
}
.policy-content { flex: 1; }

/* Contact Form */
.form-group {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Checkout Form */
.checkout-layout {
  display: grid;
  gap: var(--space-2xl);
}
@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}
.checkout-section {
  margin-bottom: var(--space-xl);
}
.checkout-section-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.checkout-summary {
  background: var(--color-surface-alt);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  position: sticky;
  top: 100px;
}
.checkout-summary-lines {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-lg);
}
.checkout-summary-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.checkout-summary-item:last-child { margin-bottom: 0; }
.checkout-summary-img-wrap {
  position: relative;
}
.checkout-summary-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.checkout-summary-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-text-primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.checkout-summary-totals > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.checkout-total-row {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.payment-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--color-surface);
}

/* Payment Icons */
.payment-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 42px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  line-height: 1;
}
.payment-icon-visa { background: #1a1f71; }
.payment-icon-mastercard { background: #eb001b; }
.payment-icon-amex { background: #006fcf; }
.payment-icon-discover { background: #ff6000; }
.payment-icon-paypal { background: #003087; }
.payment-icon-apple { background: #000000; }
.payment-icon-shopify { background: #5e8e3e; }

/* Blog Styles */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
}
.blog-card-image {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
}
.blog-card-link {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.875rem;
}

/* Blog Article */
.blog-article-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.blog-article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}
.blog-article-hero-content {
  position: relative;
  z-index: 10;
  color: white;
  padding: var(--space-2xl);
  max-width: 800px;
}
.blog-article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}
.blog-article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.blog-article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
.blog-article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.blog-article-content ul, .blog-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
}
.blog-article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.blog-article-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* Product card ATC button */
.product-card-atc {
  width: 100%;
  margin-top: 0;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 5;
  position: relative;
}
.product-card-footer {
  margin-top: auto;
}

/* Reviews placeholder */
.reviews-placeholder {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
