*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:root {
  --color-bg: #f4efe6;
  --color-surface: #fffaf3;
  --color-surface-alt: #e7efe4;
  --color-ink-deep: #1f261c;
  --color-border: #d7ccb8;
  --color-text-primary: #243024;
  --color-text-secondary: #4d5648;
  --color-text-muted: #6f7668;
  --color-accent: #7a3b3b;
  --color-accent-hover: #5f2c2c;
  --color-accent-fg: #fff8ef;
  --color-forest: #3d4a3a;
  --color-forest-hover: #2c362a;
  --color-gold: #c4a46a;
  --color-success: #2f6b45;
  --color-warning: #a56a1d;
  --color-error: #8b2e2e;
  --font-heading: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(36, 48, 36, 0.06);
  --shadow-md: 0 10px 30px rgba(36, 48, 36, 0.08);
  --shadow-lg: 0 24px 50px rgba(36, 48, 36, 0.14);
  --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;
  --max: 1180px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, .logo-word {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.announcement-bar {
  background: var(--color-forest);
  color: #f3ead8;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-forest);
  color: #f4efe6;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
}
.logo-word { font-size: 1.05rem; display: flex; flex-direction: column; line-height: 1.05; }
.logo-word span { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); }

.nav-links { display: none; gap: 18px; margin-left: auto; font-size: 0.92rem; }
.nav-links a:hover { color: var(--color-accent); }
.nav-actions { display: flex; gap: 4px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.icon-btn:hover { background: var(--color-surface-alt); }
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.hamburger { width: 42px; height: 42px; display: grid; gap: 5px; place-content: center; }
.hamburger span { display: block; width: 18px; height: 1.5px; background: currentColor; }

.mobile-menu {
  display: grid;
  gap: 14px;
  padding: 8px 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-menu[hidden] { display: none; }

.search-bar {
  width: min(100% - 24px, var(--max));
  margin: 0 auto 14px;
  position: relative;
}
.search-bar[hidden] { display: none; }
.search-input, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.search-results {
  position: absolute;
  inset: 100% 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 20;
  max-height: 360px;
  overflow: auto;
}
.search-item { display: flex; gap: 12px; padding: 10px 12px; align-items: center; }
.search-item img { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; }
.search-item:hover { background: var(--color-surface-alt); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary { background: var(--color-forest); color: #f6f0e4; }
.btn-secondary:hover { background: var(--color-forest-hover); }
.btn-ghost { border: 1px solid var(--color-border); background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-lg { padding: 15px 26px; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 3px 8px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-sale { background: var(--color-accent); color: #fff; }
.badge-new { background: var(--color-gold); color: #2a2416; }
.badge-out { background: #ece4d6; color: var(--color-error); }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: #f8f1e4;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,38,28,.15), rgba(31,38,28,.72)); }
.hero-content { position: relative; width: min(100% - 32px, var(--max)); margin: 0 auto; padding: 48px 0 56px; }
.hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #ead9b0; }
.hero-title { font-size: clamp(2.4rem, 8vw, 5.2rem); max-width: 12ch; margin: 10px 0 14px; }
.hero-subtitle { max-width: 38ch; color: #f0e6d4; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.section { padding: 64px 0; }
.section-alt { background: var(--color-surface-alt); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-subtitle { color: var(--color-text-secondary); max-width: 46ch; }

.grid-2, .grid-3, .grid-4, .grid-auto, .card-grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3, .grid-4, .grid-auto, .card-grid { grid-template-columns: 1fr; }

.product-card, .collection-card, .blog-card, .review-card, .trust-item, .faq-item, .story-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-card-media { position: relative; display: block; aspect-ratio: 4/5; background: #ece3d4; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-media .badge { position: absolute; top: 12px; left: 12px; }
.product-card-body, .blog-card-body { padding: 16px; display: grid; gap: 8px; }
.product-vendor, .muted { color: var(--color-text-muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.product-card h3 { font-size: 1.05rem; }
.product-price { font-family: var(--font-mono); font-size: 0.95rem; }
.product-compare-price { font-family: var(--font-mono); color: var(--color-text-muted); text-decoration: line-through; margin-left: 6px; }

.collection-card { position: relative; min-height: 240px; color: #fff; }
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(20,24,18,.75)); }
.collection-card-body { position: relative; padding: 22px; margin-top: auto; }

.story-split { display: grid; gap: 28px; }
.story-copy h2 { margin-bottom: 12px; }
.story-copy p + p { margin-top: 12px; color: var(--color-text-secondary); }
.story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.story-stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; }
.story-stat strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; }

.trust-badges { display: grid; gap: 12px; }
.trust-item { padding: 18px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 6px; }

.product-layout { display: grid; gap: 28px; }
.gallery-main-wrap { background: #ece3d4; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumb { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.product-vendor { margin-bottom: 6px; }
.product-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 10px; }
.product-price-wrap { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 18px; }
.product-price { font-size: 1.3rem; }
.option-group { margin-bottom: 14px; }
.option-label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; color: var(--color-text-muted); }
.option-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--color-surface);
}
.option-btn.active { background: var(--color-forest); color: #f6f0e4; border-color: var(--color-forest); }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; }
.qty-control { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.qty-btn { width: 40px; height: 40px; }
.qty-input { width: 48px; border: 0; text-align: center; background: transparent; }
.buy-row { display: grid; gap: 10px; margin: 16px 0; }
.availability-msg { font-size: 0.9rem; color: var(--color-success); }
.product-short-desc { color: var(--color-text-secondary); margin: 16px 0; }
.product-accordions { margin-top: 18px; }
.accordion { border-top: 1px solid var(--color-border); }
.accordion summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.accordion-body { padding: 0 0 16px; color: var(--color-text-secondary); }

.sticky-atc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform var(--transition-base);
  z-index: 30;
  padding: 10px 16px;
}
.sticky-atc.visible { transform: none; }
.sticky-atc-inner { width: min(100%, var(--max)); margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.sticky-atc img { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; }
.sticky-atc-product { flex: 1; min-width: 0; }
.sticky-atc-product p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.reviews-summary { display: grid; gap: 18px; margin-bottom: 22px; }
.reviews-avg { font-family: var(--font-heading); font-size: 3rem; line-height: 1; }
.reviews-score { color: var(--color-text-muted); }
.rating-stars { color: var(--color-gold); letter-spacing: 2px; }
.rating-bar { display: grid; grid-template-columns: 40px 1fr 28px; gap: 8px; align-items: center; font-size: 0.85rem; }
.rating-bar span.track { height: 8px; background: #e7dfd0; border-radius: 99px; overflow: hidden; }
.rating-bar i { display: block; height: 100%; background: var(--color-gold); }
.review-card { padding: 18px; }
.review-header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.review-verified { color: var(--color-success); font-size: 0.78rem; }

.cart-overlay {
  position: fixed; inset: 0; background: rgba(24, 28, 22, 0.45); opacity: 0; pointer-events: none; transition: opacity var(--transition-base); z-index: 50;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; width: min(420px, 100%); height: 100%;
  background: var(--color-bg); z-index: 60; transform: translateX(100%);
  transition: transform var(--transition-base); display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-drawer-header, .cart-footer { padding: 18px; border-bottom: 1px solid var(--color-border); }
.cart-footer { border-bottom: 0; border-top: 1px solid var(--color-border); margin-top: auto; display: grid; gap: 10px; }
.cart-lines { overflow: auto; padding: 12px 18px; flex: 1; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart-tax-note { color: var(--color-text-muted); font-size: 0.85rem; }
.cart-page { padding: 40px 0 80px; }
.cart-table { display: grid; gap: 16px; }
.cart-empty { text-align: center; padding: 60px 16px; }

.checkout-wrap { display: grid; gap: 24px; padding: 32px 0 80px; }
.checkout-form, .order-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; }
.form-grid { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; }
.card-box { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; background: #fff; }
.lock-row { display: flex; gap: 8px; align-items: center; color: var(--color-text-muted); font-size: 0.85rem; margin: 8px 0 14px; }
.pay-brands { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-brands span { border: 1px solid var(--color-border); border-radius: 6px; padding: 4px 8px; font-size: 0.75rem; letter-spacing: 0.04em; }

.confirm { text-align: center; padding: 72px 0; }
.confirm h1 { margin: 12px 0; }

.toast {
  position: fixed; right: 16px; bottom: 16px; background: var(--color-forest); color: #fff;
  padding: 12px 16px; border-radius: 12px; opacity: 0; transform: translateY(8px); transition: .25s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--color-error); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--color-text-muted); padding: 18px 0; }
.breadcrumb-item:not(:last-child)::after { content: "/"; margin-left: 8px; }

.sort-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination-btn { border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 14px; background: var(--color-surface); }
.pagination-btn[aria-current="page"] { background: var(--color-forest); color: #fff; }

.policy-layout { display: grid; gap: 24px; }
.policy-side a { display: block; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.prose h2, .prose h3 { margin: 22px 0 8px; }
.prose p, .prose li { color: var(--color-text-secondary); margin-bottom: 10px; }
.prose ul { padding-left: 18px; list-style: disc; }
.article-hero { min-height: 46vh; }

.share-row { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }

.page-hero {
  padding: 48px 0 20px;
}
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); }

.faq-item { padding: 4px 16px 12px; }
.faq-item summary { padding: 14px 0; font-weight: 600; cursor: pointer; }

.zoom-layer {
  position: fixed; inset: 0; background: rgba(20,22,18,.88); display: grid; place-items: center; z-index: 90; padding: 20px;
}
.zoom-layer img { max-height: 92vh; width: auto; }

.skeleton { background: linear-gradient(90deg, #e8dfd0 25%, #f4eee3 37%, #e8dfd0 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-auto, .card-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .story-split { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .reviews-summary { grid-template-columns: 180px 1fr; }
  .product-layout { grid-template-columns: 1.05fr .95fr; }
  .policy-layout { grid-template-columns: 220px 1fr; }
  .checkout-wrap { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
@media (min-width: 1024px) {
  .hamburger { display: none; }
  .nav-links { display: flex; }
  .mobile-menu { display: none !important; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .hero { min-height: 86vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
