/* ===================================================================
   APEX VISTA OPTICS — Premium Outdoor E-Commerce Stylesheet
   Designed for High-Clarity Field Optics & Adventure Gear
   =================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette: Earthy Wilds & Deep Obsidian */
  --color-forest: #172a20;
  --color-forest-dark: #0f1c15;
  --color-forest-light: #243f31;
  --color-amber: #d9653b;
  --color-amber-hover: #c4532b;
  --color-amber-subtle: #fbf0ea;
  --color-moss: #3b5f47;
  --color-sage: #e3ebe5;
  
  --bg-page: #f8f7f4;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f0eb;
  --bg-dark: #121915;
  --bg-dark-surface: #1a2520;
  
  --text-primary: #141b17;
  --text-secondary: #536158;
  --text-muted: #7d8c83;
  --text-inverse: #ffffff;
  
  --border-light: #e5e4de;
  --border-subtle: #ecebe6;
  --border-dark: #27372f;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.09);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

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

/* Top Announcement Bar */
.announcement-bar {
  background: var(--color-forest-dark);
  color: #d1ded7;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.03em;
}

.announcement-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.announcement-item span.highlight {
  color: #f7a278;
  font-weight: 600;
}

/* Header & Nav */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-forest-dark);
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  fill: var(--color-forest);
}

.brand-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--color-sage);
  color: var(--color-forest);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

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

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

/* Search Bar in Header */
.header-search {
  position: relative;
  width: 240px;
}

.header-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.header-search input:focus {
  background: #ffffff;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(23, 42, 32, 0.1);
  width: 300px;
}

.header-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.action-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.cart-btn {
  background: var(--color-forest);
  color: var(--text-inverse);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.cart-btn:hover {
  background: var(--color-forest-dark);
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--color-amber);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-forest-dark) 0%, #15241b 100%);
  color: #ffffff;
  padding: 64px 0 54px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fce2d6;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title span.accent {
  color: #f7a278;
}

.hero-desc {
  font-size: 1.125rem;
  color: #cbdad1;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

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

.btn-primary {
  background: var(--color-amber);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(217, 101, 59, 0.35);
}

.btn-primary:hover {
  background: var(--color-amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 101, 59, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-visual {
  position: relative;
}

.hero-card-showcase {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.hero-showcase-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.35));
}

.hero-spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
}

.hero-spec-item strong {
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: #f7a278;
}

.hero-spec-item span {
  font-size: 0.75rem;
  color: #a8bdb2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Pillars */
.pillars-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

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

.pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-sage);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.pillar-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-forest-dark);
}

.pillar-text p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Main Shop Catalog Area */
.catalog-section {
  padding: 56px 0 80px;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.catalog-header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--color-forest-dark);
  letter-spacing: -0.02em;
}

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

/* Category Filter Pills */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  border-color: var(--color-forest);
  color: var(--color-forest-dark);
}

.pill-btn.active {
  background: var(--color-forest);
  color: #ffffff;
  border-color: var(--color-forest);
}

.pill-btn .count {
  font-size: 0.75rem;
  opacity: 0.8;
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.pill-btn.active .count {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* Controls Toolbar (Sort, Search, Specs Filter) */
.controls-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

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

.filter-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--color-forest);
}

.item-counter {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

/* Product Card */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5ce;
}

.card-media {
  position: relative;
  background: #fdfdfc;
  padding: 24px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.card-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-green {
  background: #e6f4ea;
  color: #137333;
}

.badge-amber {
  background: var(--color-amber-subtle);
  color: var(--color-amber);
}

.badge-blue {
  background: #e8f0fe;
  color: #1a73e8;
}

.card-quickview-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(23, 42, 32, 0.9);
  color: #ffffff;
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.product-card:hover .card-quickview-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

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

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-forest-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.stars {
  color: #e3a008;
  letter-spacing: 1px;
}

.card-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-chip {
  font-size: 0.6875rem;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

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

.card-price {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-forest-dark);
  font-family: var(--font-heading);
}

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

.add-btn {
  background: var(--color-forest);
  color: #ffffff;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.add-btn:hover {
  background: var(--color-amber);
  transform: translateY(-1px);
}

/* Pagination / Load More */
.load-more-wrapper {
  margin-top: 48px;
  text-align: center;
}

/* Drawer & Modal Overlays */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14, 23, 19, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  z-index: 1001;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest-dark);
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

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

.shipping-progress-bar {
  background: var(--color-sage);
  padding: 12px 24px;
  font-size: 0.8125rem;
  color: var(--color-forest-dark);
  font-weight: 500;
}

.progress-track {
  height: 6px;
  background: rgba(23, 42, 32, 0.15);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-amber);
  border-radius: 3px;
  transition: width 0.3s ease;
}

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

.cart-empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
}

.cart-empty-state svg {
  width: 48px;
  height: 48px;
  fill: var(--text-muted);
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  line-height: 1.35;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 8px;
}

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

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-subtle);
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  padding: 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}

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

.cart-remove-btn:hover {
  color: #dc2626;
}

.drawer-footer {
  padding: 20px 24px;
  background: #fafaf9;
  border-top: 1px solid var(--border-light);
}

.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--color-forest);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.checkout-btn:hover {
  background: var(--color-amber);
}

.drawer-trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Product Detail Modal */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 92%;
  max-width: 980px;
  max-height: 90vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1002;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.product-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-secondary);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  padding: 40px;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fbfbfa;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}

.modal-main-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-forest-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.modal-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-forest-dark);
}

.stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #137333;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #e6f4ea;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.stock-dot {
  width: 8px;
  height: 8px;
  background: #137333;
  border-radius: 50%;
}

.modal-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.8125rem;
}

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

.specs-table td {
  padding: 8px 6px;
}

.specs-table td.label {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

.specs-table td.val {
  color: var(--color-forest-dark);
  font-weight: 600;
}

.modal-cta-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 94%;
  max-width: 840px;
  max-height: 92vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1003;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.checkout-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.checkout-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf9;
}

.checkout-body {
  padding: 32px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
}

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 12px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(23, 42, 32, 0.1);
}

/* Stripe Payment Element Container */
.stripe-payment-box {
  background: #fdfdfd;
  border: 1px solid #dcdad4;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
}

.stripe-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stripe-badge-row span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-icons {
  display: flex;
  gap: 6px;
}

.card-icons span {
  font-size: 0.6875rem;
  background: #ebebe6;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: #3f4e44;
}

.stripe-input-frame {
  position: relative;
  background: #ffffff;
  border: 1px solid #c9c7be;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stripe-input-frame:focus-within {
  border-color: #635bff;
  box-shadow: 0 0 0 1px #635bff;
}

.stripe-card-number {
  border: none;
  border-bottom: 1px solid #ecebe4;
  border-radius: 0;
}

.stripe-card-split {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.stripe-card-split input {
  border: none;
  border-radius: 0;
}

.stripe-card-split input:not(:last-child) {
  border-right: 1px solid #ecebe4;
}

.security-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.security-assurance svg {
  width: 14px;
  height: 14px;
  fill: #137333;
}

/* Order Summary Box */
.order-summary-box {
  background: #fafaf8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.summary-line.total {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-forest-dark);
}

/* Order Success Screen */
.order-success-screen {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #e6f4ea;
  color: #137333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Informational / Brand Story Section */
.story-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 72px 0;
}

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

.story-content h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-forest-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.story-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.tech-highlight-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.tech-highlight-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--color-moss);
  flex-shrink: 0;
  margin-top: 2px;
}

.story-quote-card {
  background: var(--color-forest-dark);
  color: #ffffff;
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
}

.story-quote-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 20px;
  color: #e2ede6;
}

.story-quote-card cite {
  font-style: normal;
  font-size: 0.875rem;
  color: #f7a278;
  font-weight: 600;
}

/* Reviews / Testimonials */
.reviews-section {
  padding: 72px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.review-card .stars {
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

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

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-forest);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.reviewer-info h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-forest-dark);
}

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

/* Site Footer */
.site-footer {
  background: var(--color-forest-dark);
  color: #cbdad1;
  padding: 64px 0 32px;
  font-size: 0.875rem;
}

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

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: #a3baa8;
}

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

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

.footer-legal-links {
  display: flex;
  gap: 20px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-forest-dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.25s ease forwards;
  border-left: 4px solid var(--color-amber);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .story-grid, .checkout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pillars-grid, .reviews-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }
  .header-search, .primary-nav {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .pillars-grid, .reviews-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}
