/* ==========================================================================
   Brine & Time — The Phenomenon of Sauerkraut
   Warm Dark-Cellar Editorial Aesthetic
   ========================================================================== */

:root {
  --bg-deep: #110e0c;
  --bg-surface: #181411;
  --bg-elevated: #211b16;
  --bg-card: #1b1612;
  --border-subtle: rgba(212, 163, 89, 0.16);
  --border-strong: rgba(212, 163, 89, 0.38);

  --text-primary: #f4ede2;
  --text-secondary: #c9bca9;
  --text-muted: #938574;

  --gold: #d4a359;
  --gold-light: #e7be7c;
  --gold-dark: #a67630;
  --olive: #7a8462;
  --danger: #d96b5b;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.55);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

/* Subtle paper/film grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.035;
  background-image: radial-gradient(rgba(244, 237, 226, 0.8) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* Typography Helpers */
.chapter-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #16110c;
  box-shadow: 0 10px 28px rgba(212, 163, 89, 0.22);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f0cc8e, var(--gold-light));
  box-shadow: 0 14px 36px rgba(212, 163, 89, 0.34);
}

.btn-outline {
  background: rgba(244, 237, 226, 0.04);
  border-color: rgba(244, 237, 226, 0.28);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 163, 89, 0.08);
}

.btn-sm {
  padding: 0.62rem 1.3rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 1.1rem 0;
  transition: background-color var(--transition), border-color var(--transition), padding var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(17, 14, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 163, 89, 0.07);
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--gold-light);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  padding: 0 10px;
}

.mobile-menu-btn span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-primary);
  transition: transform var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 4vw 1.75rem;
  background: rgba(17, 14, 12, 0.97);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 0.35rem 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: saturate(0.95) contrast(1.04);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 14, 12, 0.72) 0%, rgba(17, 14, 12, 0.42) 38%, rgba(17, 14, 12, 0.9) 84%, #110e0c 100%),
    linear-gradient(90deg, rgba(17, 14, 12, 0.85) 0%, rgba(17, 14, 12, 0.32) 60%, rgba(17, 14, 12, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-metrics {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  background: rgba(17, 14, 12, 0.76);
  backdrop-filter: blur(12px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.65rem 0;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.25rem;
}

.metric-item:first-child {
  border-left: none;
  padding-left: 0;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   General Sections
   ========================================================================== */
.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  position: relative;
}

.section-header-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.75rem;
}

.section-header-center .section-intro {
  margin-top: 1rem;
}

/* Chapter 01: Phenomenon Pillars */
.section-phenomenon {
  background: linear-gradient(180deg, #110e0c 0%, #16120f 100%);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.65rem;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.pillar-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.pillar-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

/* Chapter 02: History */
.section-history {
  background: #14100d;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.history-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: start;
}

.editorial-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-deep);
  background: #0d0b09;
}

.editorial-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.editorial-frame:hover img {
  transform: scale(1.03);
}

.editorial-quote {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  border-left: 2px solid var(--gold);
  background: rgba(212, 163, 89, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
}

.editorial-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-subtle);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 163, 89, 0.14);
}

.timeline-era {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.timeline-body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-body p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Chapter 03: Craft */
.section-craft {
  background: var(--bg-deep);
}

.craft-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.craft-step {
  padding: 2rem 1.6rem;
  border-top: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(212, 163, 89, 0.045) 0%, transparent 100%);
}

.step-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(212, 163, 89, 0.5);
  margin-bottom: 1.1rem;
}

.craft-step h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.craft-step p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Chapter 04: At the Table */
.section-table {
  background: #171310;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.table-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.pairing-list {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pairing-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.pairing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.pairing-item h3 {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pairing-item p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.tasting-notes-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.note-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.note-value {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--gold-light);
}

/* ==========================================================================
   Chapter 05: Shop / Product Cards
   ========================================================================== */
.section-shop {
  background: radial-gradient(ellipse at top, rgba(212, 163, 89, 0.08) 0%, #110e0c 58%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-deep);
}

.product-card-featured {
  border-color: rgba(212, 163, 89, 0.45);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: #0d0a08;
  aspect-ratio: 16 / 10;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(17, 14, 12, 0.82);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.badge-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #16110c;
  border-color: transparent;
}

.product-body {
  padding: 1.65rem 1.65rem 1.25rem;
  flex: 1;
}

.product-meta {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.65rem 1.65rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.price-compare {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.price-currency {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.shop-perks {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.perk {
  font-size: 0.84rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1rem;
}

.perk::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   Bottom CTA & Footer
   ========================================================================== */
.section-bottom-cta {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(circle at center, rgba(212, 163, 89, 0.14) 0%, rgba(17, 14, 12, 0.98) 68%),
    #14100d;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.bottom-cta-inner {
  max-width: 680px;
}

.bottom-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.bottom-cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2.2rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.75rem 0;
  background: #0d0a08;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Order Form Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 6, 5, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow-y: auto;
  animation: fadeIn 0.22s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #181411;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
  animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 89, 0.45) #120f0d;
}

.modal-dialog::-webkit-scrollbar {
  width: 7px;
}

.modal-dialog::-webkit-scrollbar-track {
  background: #120f0d;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 89, 0.42);
  border-radius: 999px;
}

.modal-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 89, 0.68);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.modal-close:hover {
  background: rgba(212, 163, 89, 0.14);
  border-color: var(--gold);
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 1.65rem;
  padding-right: 2rem;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  background: #110e0c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.14);
}

textarea {
  resize: vertical;
}

/* Pack Selector */
.pack-selector {
  display: grid;
  gap: 0.65rem;
}

.pack-option {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.9rem;
  background: #120f0d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.pack-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pack-option img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.pack-info {
  display: flex;
  flex-direction: column;
}

.pack-info strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
}

.pack-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pack-price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.pack-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 163, 89, 0.09);
}

/* Qty & Summary */
.qty-summary-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: #120f0d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

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

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--gold-light);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.qty-btn:hover {
  background: rgba(212, 163, 89, 0.14);
}

#order-qty {
  width: 42px;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breakdown-total {
  margin-top: 0.25rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gold-light);
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(217, 107, 91, 0.12);
  border: 1px solid rgba(217, 107, 91, 0.45);
  color: #f4a498;
  font-size: 0.86rem;
}

/* Order Confirmation View */
#order-success-view {
  text-align: center;
  padding: 0.5rem 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  color: #16110c;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 30px rgba(212, 163, 89, 0.3);
}

#order-success-view h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.success-sub {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.receipt-card {
  text-align: left;
  background: #120f0d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.receipt-row span:first-child {
  color: var(--text-muted);
}

.receipt-row span:last-child {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.receipt-total-row {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1rem;
}

.receipt-total-row span:last-child {
  color: var(--gold-light);
  font-weight: 700;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .pillars-grid,
  .craft-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-layout,
  .table-layout,
  .section-header-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .products-grid,
  .pillars-grid,
  .craft-steps,
  .form-grid,
  .qty-summary-row {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    padding: 1.5rem;
  }
}
