/* =====================================================================
   BREW HAVEN — Specialty Coffee Shop Website Template
   Pure CSS3 Stylesheet (No frameworks, No build step required)
   Customizable Theme Variables at the top of this file
   ===================================================================== */

:root {
  /* Color Palette */
  --bg-color: #FAF7F2;            /* Warm cream background (60%) */
  --surface-color: #FFFFFF;       /* Crisp white surface */
  --surface-warm: #F4EFEA;        /* Warm latte tone (30%) */
  --surface-warm-border: #E8DFD5; /* Subtle card border */
  --surface-elevated: #FFFFFF;
  
  --primary-color: #3E2723;       /* Deep coffee-brown signature accent */
  --primary-hover: #271815;       /* Darker espresso hover */
  --primary-light: #5D4037;
  
  --accent-color: #B26A44;        /* Roasted bronze / terracotta accent */
  --accent-hover: #985532;
  --accent-soft: #F9EFE9;
  
  --text-main: #2C1E18;           /* Deep roasted bean dark text */
  --text-muted: #736359;          /* Taupe muted subtext */
  --text-light: #A39388;          /* Light taupe for hairline metadata */
  --text-inverse: #FFFFFF;        /* White text for dark surfaces */

  --border-light: #EBE3D9;        /* Hairline borders */
  --border-subtle: rgba(62, 39, 35, 0.1);
  --border-focus: #3E2723;

  --success-color: #2F6F4E;
  --success-bg: #EDF7F1;
  --error-color: #BA2D24;
  --error-bg: #FDF2F1;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(62, 39, 35, 0.05);
  --shadow-md: 0 4px 16px rgba(62, 39, 35, 0.08);
  --shadow-lg: 0 12px 32px rgba(62, 39, 35, 0.12);

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Layout dimensions */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Tabular Numerals for pricing */
.price, .tabular, [data-price] {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =====================================================================
   HEADER & NAVIGATION (Top Bar Contract: 3 Zones, 1-Line)
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* Zone 1: Brand Wordmark */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  fill: var(--accent-color);
  flex-shrink: 0;
}

/* Zone 2: Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Zone 3: Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: var(--text-inverse);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  min-height: 42px;
}

.cart-button:hover {
  background-color: var(--primary-hover);
}

.cart-button:active {
  transform: scale(0.98);
}

.cart-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Cart badge: hidden by default when empty */
.cart-badge {
  display: none;
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  line-height: 1;
}

.cart-badge.has-items {
  display: inline-block;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile Menu Overlay */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-light);
  padding: 20px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================================================
   VIEW ROUTING SYSTEM (SPA Views)
   ===================================================================== */
.view {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.view.active-view {
  display: block;
  opacity: 1;
}

/* =====================================================================
   HOME VIEW
   ===================================================================== */
/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg-color) 0%, #F5EEE6 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.kicker {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 14px;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-wrap: balance;
  font-weight: 700;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--surface-warm);
  border-color: var(--primary-color);
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background-color: var(--surface-warm);
}

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

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.hero-badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.hero-badge-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Trust Bar / Ethos */
.ethos-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--surface-color);
}

.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ethos-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ethos-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--surface-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.ethos-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ethos-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.ethos-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Featured Section */
.featured-section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-header.left-aligned {
  text-align: left;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.left-aligned .section-subtitle {
  margin-left: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Product Card Design */
.product-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--surface-warm-border);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-warm);
  overflow: hidden;
  cursor: pointer;
}

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

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

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

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.3;
  cursor: pointer;
}

.product-name:hover {
  color: var(--accent-color);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-card {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--surface-warm);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  min-height: 38px;
}

.btn-card:hover {
  background-color: var(--primary-color);
  color: var(--text-inverse);
}

/* Roastery Story Section */
.roastery-section {
  padding: 80px 0;
  background-color: var(--surface-warm);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.roastery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.roastery-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.roastery-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.roastery-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.roastery-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-warm-border);
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

/* Visit Strip on Home */
.visit-strip {
  padding: 60px 0;
}

.visit-card {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 36px;
  align-items: center;
}

.visit-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.visit-card p {
  color: #D7CCC8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.visit-card .btn {
  background-color: var(--accent-color);
  color: #FFFFFF;
}

.visit-card .btn:hover {
  background-color: var(--accent-hover);
}

/* =====================================================================
   MENU VIEW
   ===================================================================== */
.menu-view-header {
  padding: 48px 0 32px;
  background-color: var(--surface-warm);
  border-bottom: 1px solid var(--border-light);
}

.sample-notice-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(62, 39, 35, 0.08);
  border: 1px solid rgba(62, 39, 35, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 16px;
}

/* Filter Controls Toolbar */
.filter-toolbar {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Category Segmented Buttons */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.category-tab {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all 0.15s ease;
  min-height: 40px;
}

.category-tab:hover {
  border-color: var(--text-muted);
  color: var(--primary-color);
}

.category-tab.active {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* Search Box */
.search-wrapper {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  pointer-events: none;
}

/* Dietary Tag Toggles */
.filter-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 16px;
}

.dietary-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dietary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
}

.dietary-label input[type="checkbox"] {
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.results-count {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Empty filter state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--surface-color);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* =====================================================================
   PRODUCT DETAIL VIEW (Full View & Contiguous Purchase Module)
   ===================================================================== */
.detail-section {
  padding: 48px 0 80px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 0.15s ease;
}

.back-btn:hover {
  color: var(--primary-color);
}

.back-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 100px;
}

.detail-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  background-color: var(--surface-warm);
}

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

/* Purchase Module */
.purchase-module {
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.detail-category-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 12px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.detail-active-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.detail-price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Option Groups (Size, Milk, Sweetness) */
.option-group {
  margin-bottom: 24px;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.option-current-choice {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.option-card-label {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--surface-color);
  transition: all 0.15s ease;
  user-select: none;
}

.option-card-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card-label:hover {
  border-color: var(--text-muted);
}

.option-card-label.selected {
  border-color: var(--primary-color);
  background-color: var(--surface-warm);
}

.option-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

.option-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Quantity & Add to Cart Row */
.purchase-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--surface-color);
  overflow: hidden;
  height: 48px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: background-color 0.15s ease;
}

.qty-btn:hover {
  background-color: var(--surface-warm);
}

.qty-display {
  width: 44px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-add-cart {
  flex-grow: 1;
  height: 48px;
}

/* Toast Notification for Cart */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-notice svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-color);
  stroke-width: 2;
  fill: none;
}

/* =====================================================================
   CART & CHECKOUT VIEW
   ===================================================================== */
.cart-view-section {
  padding: 48px 0 80px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.cart-items-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-warm);
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.cart-item-options {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cart-item-qty-wrap {
  display: flex;
  align-items: center;
}

.cart-item-price-wrap {
  text-align: right;
  min-width: 80px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 4px;
  transition: color 0.15s ease;
}

.cart-item-remove:hover {
  color: var(--error-color);
}

/* Empty Cart State */
.cart-empty-box {
  text-align: center;
  padding: 48px 24px;
}

.cart-empty-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.cart-empty-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Order Summary Box */
.cart-summary-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.summary-row.total-row {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px solid var(--border-light);
}

/* Checkout Form */
.checkout-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background-color: var(--bg-color);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
  background-color: #FFFFFF;
}

.form-control.is-invalid {
  border-color: var(--error-color);
  background-color: var(--error-bg);
}

.form-error-msg {
  color: var(--error-color);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.demo-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: var(--surface-warm);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  line-height: 1.45;
}

/* Order Confirmation State */
.order-confirmation-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  background-color: var(--success-bg);
  color: var(--success-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirmation-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.confirmation-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.order-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.order-number {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.1rem;
  background-color: var(--surface-warm);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  color: var(--primary-color);
}

.confirmation-summary {
  background-color: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  margin-bottom: 28px;
}

/* =====================================================================
   CONTACT & VISIT VIEW
   ===================================================================== */
.contact-section {
  padding: 48px 0 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.visit-info-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.visit-block {
  margin-bottom: 28px;
}

.visit-block-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.visit-block-content {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
}

.contact-form-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-success-banner {
  background-color: var(--success-bg);
  color: var(--success-color);
  border: 1px solid rgba(47, 111, 78, 0.2);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: none;
}

.contact-success-banner.visible {
  display: block;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--primary-color);
  color: #D7CCC8;
  padding: 60px 0 32px;
  border-top: 1px solid var(--primary-hover);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: #BCAAA4;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #A1887F;
  flex-wrap: wrap;
  gap: 16px;
}

/* =====================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First to Desktop)
   Mobile ~375px: touch targets >= 44px, no horizontal scroll
   ===================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .roastery-grid,
  .detail-layout,
  .cart-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-gallery {
    position: static;
  }

  .cart-summary-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .visit-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .visit-card .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .ethos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-item-row {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }

  .cart-item-qty-wrap {
    grid-column: 2;
    justify-content: space-between;
  }

  .cart-item-price-wrap {
    grid-column: 2;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .purchase-actions-row {
    flex-direction: column;
  }

  .qty-control {
    width: 100%;
    justify-content: center;
  }

  .qty-display {
    flex-grow: 1;
  }

  .btn-add-cart {
    width: 100%;
  }
}
