/* ==========================================================================
   Eldhaven Goods — Autumn & Thanksgiving Home Collection
   Editorial Warmth • High-Contrast Readability • Smooth Transitions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-cream: #FAF6F0;
  --bg-linen: #F2EBE0;
  --bg-card: #FFFFFF;
  --bg-Espresso: #1F1814;
  --bg-warm-dark: #2A201B;

  --text-main: #1F1814;
  --text-body: #463A32;
  --text-muted: #756559;
  --text-light: #FAF6F0;

  --accent-terracotta: #B54B24;
  --accent-terracotta-hover: #963B1A;
  --accent-amber: #C98627;
  --accent-amber-soft: #F9EFE0;
  --accent-sage: #485C46;
  --accent-sage-soft: #EBF0EA;

  --border-warm: #E4D9C8;
  --border-subtle: #EDE4D7;

  --shadow-sm: 0 2px 10px rgba(31, 24, 20, 0.05);
  --shadow-md: 0 12px 32px rgba(31, 24, 20, 0.08);
  --shadow-lg: 0 24px 56px rgba(31, 24, 20, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Elegant Dark Mode (Warm Autumn Midnight) ---------- */
[data-theme="dark"] {
  --bg-cream: #14100D;
  --bg-linen: #1C1612;
  --bg-card: #221B16;
  --bg-Espresso: #0B0806;
  --bg-warm-dark: #120D0A;

  --text-main: #F5EBE1;
  --text-body: #D4C3B4;
  --text-muted: #9E8B7C;
  --text-light: #FAF6F0;

  --accent-terracotta: #E26E45;
  --accent-terracotta-hover: #F0835C;
  --accent-amber: #E5A344;
  --accent-amber-soft: #2D2218;
  --accent-sage: #759B72;
  --accent-sage-soft: #1E281D;

  --border-warm: #382C24;
  --border-subtle: #2C221B;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .site-header {
  background: rgba(20, 16, 13, 0.92);
}

[data-theme="dark"] .product-card {
  background: var(--bg-card);
  border-color: var(--border-warm);
}

[data-theme="dark"] .hero-card {
  background: linear-gradient(135deg, #241A14 0%, #1A130E 100%);
  border-color: var(--border-warm);
}

[data-theme="dark"] .btn-secondary {
  background: #251D17;
  color: var(--text-main);
  border-color: var(--border-warm);
}

[data-theme="dark"] .btn-secondary:hover {
  background: #32271F;
}

[data-theme="dark"] .btn-ghost {
  color: var(--text-main);
  border-color: var(--border-warm);
}

[data-theme="dark"] .cat-pill {
  background: #201812;
  border-color: var(--border-warm);
  color: var(--text-body);
}

[data-theme="dark"] .cat-pill.active {
  background: var(--accent-terracotta);
  color: #FFF;
  border-color: var(--accent-terracotta);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .search-input,
[data-theme="dark"] .sort-select,
[data-theme="dark"] .newsletter-form input {
  background-color: #1A1410 !important;
  border-color: var(--border-warm) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .search-input:focus,
[data-theme="dark"] .sort-select:focus,
[data-theme="dark"] .newsletter-form input:focus {
  background-color: #241B15 !important;
  border-color: var(--accent-terracotta) !important;
  color: #FFF !important;
  outline: none;
}

[data-theme="dark"] .cart-drawer {
  background-color: var(--bg-card);
  color: var(--text-main);
}

[data-theme="dark"] .cart-drawer-header,
[data-theme="dark"] .cart-drawer-footer {
  background-color: var(--bg-linen);
  border-color: var(--border-warm);
}

[data-theme="dark"] .modal-card {
  background-color: var(--bg-card);
  border-color: var(--border-warm);
  color: var(--text-main);
}

[data-theme="dark"] .specs-table th {
  background-color: #1A130E;
  color: var(--text-muted);
}

[data-theme="dark"] .prose-page {
  background: var(--bg-card);
  border-color: var(--border-warm);
}

/* ---------- Deals Banner & Callouts in Light vs Dark ---------- */
.harvest-deals-banner {
  background: linear-gradient(135deg, #FBF4E9 0%, #F4E4CE 100%);
  border: 1px solid #DFC6A6;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(90, 52, 24, 0.05);
}

.product-bundle-callout {
  background: #FBF4E9;
  border: 1px solid #DFC6A6;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

[data-theme="dark"] .harvest-deals-banner {
  background: linear-gradient(135deg, #261B14 0%, #1D140F 100%);
  border-color: #4D3728;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .harvest-deals-banner h3 {
  color: #FFF0E2 !important;
}

[data-theme="dark"] .harvest-deals-banner p {
  color: #E2D1C2 !important;
}

[data-theme="dark"] .harvest-deals-banner strong {
  color: #FFF !important;
}

[data-theme="dark"] .product-bundle-callout {
  background: #251B15;
  border-color: #4A3528;
  color: #E8D8CC !important;
}

[data-theme="dark"] .product-bundle-callout strong {
  color: #FFF0E2 !important;
}

[data-theme="dark"] .hero-caption-badge {
  background: rgba(28, 21, 17, 0.94);
  border-color: #4A3528;
}

[data-theme="dark"] .hero-caption-badge strong {
  color: #FFF0E2 !important;
}

[data-theme="dark"] .hero-caption-badge span {
  color: #CDB9A8 !important;
}

[data-theme="dark"] .story-section {
  background: #17110D;
}

[data-theme="dark"] .story-content h2 {
  color: #FFF0E2 !important;
}

[data-theme="dark"] .story-content p {
  color: #D4C3B4 !important;
}

[data-theme="dark"] .story-point strong {
  color: #FFF0E2 !important;
}

[data-theme="dark"] .story-point span {
  color: #BFAEA0 !important;
}

[data-theme="dark"] .pillar-card {
  background: #201813;
  border-color: #382C24;
}

[data-theme="dark"] .pillar-card h3 {
  color: #FFF0E2 !important;
}

[data-theme="dark"] .pillar-card p {
  color: #BFAEA0 !important;
}

[data-theme="dark"] .newsletter-banner {
  background: #1B140F;
  border-top: 1px solid #382C24;
}

[data-theme="dark"] .review-item-card {
  background: #201813;
  border-color: #382C24;
}

[data-theme="dark"] .review-item-body {
  color: #D8C7B8 !important;
}

[data-theme="dark"] .review-form-card {
  background: #201813;
  border-color: #382C24;
}

[data-theme="dark"] .product-tagline {
  color: #BFAEA0 !important;
}

[data-theme="dark"] .section-subtitle {
  color: #C0B0A2 !important;
}

[data-theme="dark"] .btn-secondary {
  background: #2B211A !important;
  color: #FFF0E2 !important;
  border-color: #553E2F !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #3B2E24 !important;
}

[data-theme="dark"] .product-info-panel {
  background: var(--bg-card);
  border-color: var(--border-warm);
}

[data-theme="dark"] .product-gallery-card {
  background: #1A130E;
  border-color: var(--border-warm);
}

[data-theme="dark"] .detail-description {
  color: #E2D1C2 !important;
}

[data-theme="dark"] .detail-features-title {
  color: #FFF0E2 !important;
}

[data-theme="dark"] .detail-features-list li {
  color: #D8C7B8 !important;
}

[data-theme="dark"] .specs-table td {
  color: #E2D1C2 !important;
  border-color: #382C24;
}

[data-theme="dark"] .specs-table th {
  border-color: #382C24;
  color: #C0B0A2 !important;
}

[data-theme="dark"] .qty-selector {
  background: #1A1410;
  border-color: var(--border-warm);
}

[data-theme="dark"] .qty-input {
  color: #FFF !important;
}

[data-theme="dark"] .qty-btn {
  color: #C0B0A2 !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--text-main);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Fix browser autofill background & text contrast in both light and dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-main) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-card) inset !important;
  box-shadow: 0 0 0px 1000px var(--bg-card) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background-color: var(--bg-Espresso);
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 16px;
  text-align: center;
  letter-spacing: 0.02em;
}

.announcement-bar span.divider {
  margin: 0 12px;
  opacity: 0.45;
}

.announcement-bar a {
  color: #F4C37E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-warm);
  transition: box-shadow 0.3s var(--ease-smooth);
}

[data-theme="dark"] .site-header {
  background: rgba(20, 16, 13, 0.94);
  border-bottom-color: #2F241C;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(31, 24, 20, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-linen);
  border: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-terracotta);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 1;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-terracotta);
  transition: width 0.28s var(--ease-smooth);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-main);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.currency-selector {
  background: var(--bg-linen);
  border: 1px solid var(--border-warm);
  color: var(--text-main);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s var(--ease-smooth);
}

[data-theme="dark"] .currency-selector {
  background: #221B16;
  border-color: #3D2E24;
  color: #FFF0E2;
}

.currency-selector:hover {
  border-color: var(--accent-terracotta);
}

.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

[data-theme="dark"] .btn-theme-toggle {
  background: #221B16;
  border-color: #3D2E24;
  color: #F5EBE1;
}

.btn-theme-toggle:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-warm);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease-smooth);
}

[data-theme="dark"] .btn-ghost {
  border-color: #3D2E24;
  color: #F5EBE1;
}

.btn-ghost:hover {
  background: var(--bg-linen);
  border-color: #CEBFA9;
}

[data-theme="dark"] .btn-ghost:hover {
  background: #2B211A;
  border-color: #553E2F;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(181, 75, 36, 0.2);
  transition: transform 0.2s var(--ease-smooth), background-color 0.25s var(--ease-smooth);
}

.btn-cart:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-1px);
}

.cart-badge {
  background: #FFFFFF;
  color: var(--accent-terracotta);
  font-size: 0.74rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 6px 20px rgba(181, 75, 36, 0.24);
}

.btn-primary:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(181, 75, 36, 0.32);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-warm);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.btn-secondary:hover {
  background: var(--bg-linen);
  border-color: var(--text-muted);
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 44px 0 56px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--bg-linen);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-content {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--accent-amber-soft);
  color: #875212;
  border: 1px solid #E7CFA6;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.2vw, 3.7rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-terracotta);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-warm);
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
}

.hero-highlight-item svg {
  color: var(--accent-terracotta);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
  min-height: 460px;
  background: #DFD3C3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.hero-caption-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.hero-caption-badge span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Category & Filter Toolbar ---------- */
.catalog-section {
  padding: 28px 0 80px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-body);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease-smooth);
}

.cat-pill:hover {
  background: var(--bg-linen);
  color: var(--text-main);
}

.cat-pill.active {
  background: var(--bg-Espresso);
  color: var(--text-light);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  background: var(--bg-cream);
  font-size: 0.9rem;
  color: var(--text-main);
  width: 220px;
  transition: border-color 0.2s, width 0.25s var(--ease-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  background: var(--bg-card);
  color: var(--text-main);
}

.sort-select {
  padding: 9px 16px;
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  background: var(--bg-cream);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
}

/* ---------- Product Grid & Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth), border-color 0.3s;
  animation: cardFadeUp 0.6s var(--ease-smooth) both;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 16px 36px rgba(31, 24, 20, 0.14);
  border-color: var(--accent-terracotta);
}

.product-image-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bg-linen);
  overflow: hidden;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

.product-card:hover .product-image-link img {
  transform: scale(1.08);
}

/* ---------- Keyframe Animations & Micro-Interactions ---------- */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(181, 75, 36, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(181, 75, 36, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(181, 75, 36, 0); }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(181, 75, 36, 0.28);
}

.btn-primary:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(181, 75, 36, 0.38);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-linen);
  border: 1px solid var(--border-warm);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.btn-theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.btn-cart {
  position: relative;
  transition: transform 0.25s var(--ease-spring);
}

.btn-cart:hover {
  transform: scale(1.06);
}

.hero-media img {
  transition: transform 1.2s var(--ease-smooth);
}

.hero-card:hover .hero-media img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(31, 24, 20, 0.86);
  backdrop-filter: blur(6px);
  color: #FAF6F0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.product-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.product-category {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-terracotta);
}

.product-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-rating-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-main);
  margin-bottom: 6px;
}

.product-title a:hover {
  color: var(--accent-terracotta);
}

.product-tagline {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 18px;
  flex: 1;
}

.product-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price-wrap {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.product-stock {
  font-size: 0.76rem;
  color: var(--accent-sage);
  font-weight: 600;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-inspect {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--bg-cream);
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-inspect:hover {
  background: var(--bg-linen);
  color: var(--text-main);
}

.btn-add-cart {
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent-terracotta);
  color: #FFF;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.18s;
}

.btn-add-cart:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-1px);
}

/* ---------- Editorial Split Banner ---------- */
.story-section {
  padding: 20px 0 80px;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--bg-Espresso);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-media {
  min-height: 400px;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content .eyebrow-pill {
  background: rgba(201, 134, 39, 0.2);
  color: #F4C37E;
  border-color: rgba(244, 195, 126, 0.35);
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #FAF6F0;
}

.story-text {
  color: #D8CEC2;
  font-size: 1.02rem;
  margin-bottom: 28px;
  line-height: 1.75;
}

.story-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.story-point {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.story-point strong {
  display: block;
  color: #F4C37E;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.story-point span {
  font-size: 0.84rem;
  color: #CFC3B4;
}

/* ---------- Trust Pillars Section ---------- */
.pillars-section {
  padding: 10px 0 80px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-amber-soft);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-body);
}

/* ---------- Product Inspection Page (/product) ---------- */
.breadcrumb-bar {
  padding: 22px 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-bar a:hover {
  color: var(--accent-terracotta);
  text-decoration: underline;
}

.product-detail-section {
  padding: 20px 0 64px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 102px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
}

.gallery-main-stage img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-main-stage:hover img {
  transform: scale(1.04);
}

.gallery-thumbs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.gallery-thumb-btn {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-warm);
  background: var(--bg-surface);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-btn:hover {
  border-color: var(--accent-terracotta);
  transform: translateY(-2px);
}

.gallery-thumb-btn.is-active {
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 2px rgba(181, 75, 36, 0.25);
}

.gallery-counter-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(31, 24, 20, 0.75);
  color: #FAF6F0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Variant Selector Component */
.product-variants-wrapper {
  margin: 18px 0 22px;
  padding: 16px;
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
}

.variant-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.variant-label-title {
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.78rem;
}

.variant-selected-value {
  font-weight: 600;
  color: var(--accent-terracotta);
}

.variant-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.variant-pill-btn:hover {
  border-color: var(--accent-terracotta);
  background: var(--bg-card);
  transform: translateY(-1px);
}

.variant-pill-btn.is-active {
  border-color: var(--accent-terracotta);
  background: #FFF;
  color: var(--accent-terracotta);
  box-shadow: 0 0 0 2px rgba(181, 75, 36, 0.2);
  font-weight: 700;
}

[data-theme="dark"] .variant-pill-btn.is-active {
  background: #2D221A;
  color: #F89B67;
  border-color: #F89B67;
}

.variant-pill-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.variant-pill-btn.is-active .variant-pill-price {
  color: var(--accent-terracotta);
}

[data-theme="dark"] .variant-pill-btn.is-active .variant-pill-price {
  color: #F89B67;
}

.product-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.detail-cat-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-terracotta);
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent-amber);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

.detail-stock-pill {
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.detail-description {
  font-size: 1.02rem;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.75;
}

.detail-purchase-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-warm);
  background: #FFF;
  border-radius: 999px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

.qty-btn:hover {
  background: var(--bg-linen);
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 0.98rem;
  background: transparent;
}

.detail-features-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-features-list {
  list-style: none;
  margin-bottom: 28px;
}

.detail-features-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--text-body);
  font-size: 0.96rem;
}

.detail-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-terracotta);
  font-weight: 700;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.specs-table tr {
  border-top: 1px solid var(--border-subtle);
}

.specs-table th {
  text-align: left;
  padding: 10px 12px 10px 0;
  color: var(--text-muted);
  font-weight: 600;
  width: 36%;
}

.specs-table td {
  padding: 10px 0;
  color: var(--text-main);
  font-weight: 500;
}

/* ---------- Amazon-Style Customer Reviews Section ---------- */
.reviews-section {
  padding: 48px 0 80px;
  border-top: 1px solid var(--border-warm);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: start;
}

.reviews-summary-card,
.review-form-card,
.review-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.reviews-big-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 6px;
}

.reviews-big-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.histogram-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.histogram-row {
  display: grid;
  grid-template-columns: 56px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-body);
}

.histogram-bar-bg {
  height: 12px;
  background: var(--bg-linen);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-warm);
}

.histogram-bar-fill {
  height: 100%;
  background: var(--accent-amber);
  border-radius: 999px;
  transition: width 0.4s var(--ease-smooth);
}

.review-form-card {
  margin-bottom: 28px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--text-main);
  transition: border-color 0.2s, background-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  background: var(--bg-card);
  color: var(--text-main);
}

.star-picker {
  display: inline-flex;
  gap: 6px;
}

.star-pick-btn {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.15rem;
  color: #C7B9A5;
  transition: all 0.18s;
}

.star-pick-btn.active,
.star-pick-btn:hover {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  background: var(--accent-amber-soft);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-linen);
  color: var(--accent-terracotta);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #B54B24;
  background: var(--accent-amber-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.review-item-title {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 6px 0;
}

.review-item-body {
  color: var(--text-body);
  font-size: 0.96rem;
  white-space: pre-line;
}

.permanent-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- Slide-Out Shopping Cart Drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 24, 20, 0.5);
  backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: var(--bg-cream);
  z-index: 950;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-smooth);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 22px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
}

.btn-close-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-warm);
  background: var(--bg-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.shipping-meter {
  padding: 12px 24px;
  background: var(--accent-amber-soft);
  border-bottom: 1px solid #E7CFA6;
  font-size: 0.85rem;
}

.shipping-meter-bar {
  height: 6px;
  background: #E7CFA6;
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.shipping-meter-fill {
  height: 100%;
  background: var(--accent-terracotta);
  transition: width 0.3s var(--ease-smooth);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-line-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-warm);
}

.cart-line-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-line-title {
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.cart-line-price {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-line-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  background: var(--bg-cream);
}

.mini-qty button {
  border: none;
  background: transparent;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}

.mini-qty span {
  padding: 0 8px;
  font-size: 0.84rem;
  font-weight: 600;
}

.btn-remove-line {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 20px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-warm);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

/* ---------- Modal Dialog (Track Order) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 24, 20, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ---------- Newsletter & Footer ---------- */
.newsletter-banner {
  background: var(--bg-linen);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  padding: 56px 0;
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 280px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-terracotta);
}

.site-footer {
  background: var(--bg-Espresso);
  color: #D9CFC3;
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #FAF6F0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #F4C37E;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  color: #9C8E80;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 850;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

/* ---------- Toast ---------- */
.toast-container {
  display: none !important;
}

.toast {
  display: none !important;
}

/* ---------- Legal / Content Pages ---------- */
.prose-page {
  max-width: 820px;
  margin: 48px auto 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.prose-page h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.prose-page h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin: 28px 0 10px;
}

.prose-page p, .prose-page li {
  color: var(--text-body);
  margin-bottom: 12px;
}

.prose-page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

/* ---------- Responsive & Mobile Excellence ---------- */
@media (max-width: 960px) {
  .hero-card,
  .story-grid,
  .product-detail-grid,
  .reviews-layout {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 36px 28px;
  }
  .main-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-inner {
    padding: 0 16px;
    min-height: 64px;
  }
}

@media (max-width: 680px) {
  /* Announcement Bar on Mobile */
  .announcement-bar {
    font-size: 0.76rem;
    padding: 6px 10px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
  }
  .announcement-bar span.divider {
    margin: 0 4px;
  }

  /* Header adjustments for phone screens */
  .site-header {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .header-inner {
    min-height: 56px;
    gap: 6px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .brand-logo {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .brand-mark svg {
    width: 16px;
    height: 16px;
  }
  .brand-name {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .header-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .btn-theme-toggle {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .currency-selector {
    padding: 4px 6px;
    font-size: 0.72rem;
    max-width: 82px;
  }
  .btn-ghost {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .btn-ghost span {
    display: none; /* Hide 'Account' and 'Track Order' text on narrow phones, keep clean icons */
  }
  .btn-cart {
    padding: 5px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }

  /* Container Padding on Mobile */
  .container {
    padding: 0 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Curated Harvest Bundle on Mobile */
  .harvest-deals-banner,
  div[style*="The Thanksgiving Harvest Table Ensemble"] {
    padding: 16px 14px !important;
    border-radius: var(--radius-md) !important;
  }
  .harvest-deals-banner > div,
  .harvest-deals-banner > div:last-child {
    width: 100%;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 20px 0 36px;
  }
  .hero-card {
    border-radius: var(--radius-md);
  }
  .hero-content {
    padding: 28px 20px;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 18px;
  }
  .hero-media {
    min-height: 260px;
  }
  .hero-caption-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-caption-badge .btn-inspect {
    align-self: flex-end;
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  /* Amazon-Style Sticky Mobile Search Bar */
  .catalog-toolbar {
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    gap: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(31, 24, 20, 0.05);
  }
  .search-input {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-warm);
    padding: 10px 14px 10px 38px;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
  }
  .category-pills {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--border-warm);
    background: var(--bg-linen);
  }
  .cat-pill.active {
    background: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
    color: #FFF;
  }
  .toolbar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .search-input-wrap {
    width: 100%;
  }
  .search-input {
    width: 100% !important;
  }
  .sort-select {
    width: 100%;
  }

  /* Amazon-Style 2-Column Product Cards on Mobile Phones */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .product-card {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(31, 24, 20, 0.06);
    background: var(--bg-card);
  }
  .product-image-link {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  .product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .product-card-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .product-cat-row {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .product-category {
    font-size: 0.68rem;
  }
  .product-rating-link {
    font-size: 0.72rem;
  }
  .product-title {
    font-size: 0.88rem;
    line-height: 1.28;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.3em;
  }
  .product-tagline {
    display: none; /* Hide long taglines on Amazon mobile grid for clean compact look */
  }
  .product-footer {
    margin-top: auto;
    padding-top: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .product-price-wrap {
    gap: 4px;
  }
  .product-price {
    font-size: 1.05rem;
    font-weight: 700;
  }
  .product-stock {
    font-size: 0.68rem;
  }
  .product-card-actions {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .product-card-actions .btn-inspect {
    padding: 6px 8px;
    font-size: 0.74rem;
    flex: 1;
    text-align: center;
  }
  .product-card-actions .btn-add-cart {
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    flex: 1.5;
    background: var(--accent-terracotta);
    color: #FFF;
    border-radius: 99px;
  }

  /* Product Inspection Page Mobile */
  .product-gallery-card {
    position: static !important;
    top: auto !important;
    padding: 12px;
  }
  .gallery-thumb-btn {
    width: 58px;
    height: 58px;
  }
  .product-info-panel {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }
  .detail-title {
    font-size: 1.65rem;
  }
  .detail-purchase-box {
    flex-direction: column;
    gap: 10px;
  }
  .detail-purchase-box .qty-selector {
    width: 100%;
    justify-content: center;
  }
  .detail-purchase-box .btn-primary,
  .detail-purchase-box .btn-secondary {
    width: 100%;
  }
  .specs-table th, .specs-table td {
    padding: 8px;
    font-size: 0.82rem;
  }

  /* Cart Drawer Mobile */
  .cart-drawer {
    max-width: 100%;
    width: 100%;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* General Form Grids & Modals */
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .modal-card {
    padding: 24px 18px;
    max-width: 95vw;
  }
  .prose-page {
    padding: 24px 16px;
    margin: 24px auto 48px;
  }
}
