/* ==========================================================================
   Barkshire Pet Goods - Bespoke Design System & Stylesheet
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary: #153b2a;             /* Deep Pine Forest */
  --primary-hover: #0e291c;
  --primary-light: #1f503a;
  --primary-surface: #eaf3ee;
  
  --accent: #d97724;              /* Warm Golden Amber / Caramel */
  --accent-hover: #b86016;
  --accent-light: #fdf3e7;
  
  --secondary: #3b281c;           /* Artisan Leather / Dark Bark */
  --secondary-light: #7c6251;
  
  --bg-main: #fbf9f5;             /* Warm Alabaster / Natural Cream */
  --bg-surface: #ffffff;          /* Crisp White Card Surface */
  --bg-subtle: #f4efe6;           /* Warm Oat Surface */
  --bg-dark: #0f241a;             /* Rich Midnight Forest for Footer */
  
  --text-main: #1c2721;           /* Deep Charcoal Slate */
  --text-muted: #5f6e66;          /* Muted Sage */
  --text-light: #8f9e96;          /* Subtle Border/Placeholder */
  --text-inverse: #ffffff;
  
  --border-subtle: #e6dfd5;
  --border-focus: #153b2a;
  
  --success: #1b8a5a;
  --success-bg: #e6f6ee;
  --danger: #dc2626;
  --warning: #f59e0b;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 36, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 36, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 36, 26, 0.12);
  --shadow-xl: 0 20px 48px rgba(15, 36, 26, 0.16);
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1320px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::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-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Typography Helpers
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   Announcement Bar
   -------------------------------------------------------------------------- */
.top-announcement {
  background: var(--primary-hover);
  color: #e5f2eb;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.top-announcement strong {
  color: var(--accent-light);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

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

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

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(21, 59, 42, 0.2);
}

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

.logo-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

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

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--primary);
  font-size: 1.15rem;
  position: relative;
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background: var(--primary-surface);
  transform: translateY(-1px);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #153b2a 0%, #0e291c 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 36, 0.2);
  border: 1px solid rgba(217, 119, 36, 0.4);
  color: #fce7d2;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.5rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-title em {
  font-style: italic;
  color: #f7b771;
  font-weight: 400;
}

.hero-text {
  font-size: 1.125rem;
  color: #d1ded7;
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 36, 0.35);
  transition: all var(--transition-base);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 36, 0.45);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h4 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #ffffff;
  font-weight: 700;
}

.stat-item p {
  font-size: 0.8125rem;
  color: #b5c9bf;
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.1);
  background: #fff;
}

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

.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
}

.floating-icon {
  font-size: 1.75rem;
  color: var(--accent);
}

.floating-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
}

.floating-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Value Props / Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
}

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

.trust-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.trust-info h5 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.trust-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Shop & Catalog Section
   -------------------------------------------------------------------------- */
.shop-section {
  padding: 4.5rem 0 5.5rem;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-chip:hover {
  background: var(--primary-surface);
  border-color: var(--primary-light);
  color: var(--primary);
}

.category-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(21, 59, 42, 0.2);
}

.chip-count {
  font-size: 0.75rem;
  opacity: 0.75;
  background: rgba(0,0,0,0.06);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.category-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Controls Bar (Search, Sort, View, Price) */
.catalog-controls {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 59, 42, 0.1);
}

.catalog-filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.control-select {
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235f6e66'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
  cursor: pointer;
}

.control-select:focus {
  outline: none;
  border-color: var(--primary);
}

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

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

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

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

.product-media {
  position: relative;
  background: #fdfcfb;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.product-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-thumb {
  transform: scale(1.06);
}

.product-badge-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-badge-tag.sale {
  background: var(--accent);
}

.product-quick-btn {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  z-index: 3;
}

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

.product-quick-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.product-card-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-card-title a:hover {
  color: var(--primary);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.star-icons {
  color: #f59e0b;
  display: flex;
  gap: 1px;
}

.rating-count-text {
  color: var(--text-muted);
}

.product-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

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

.btn-add-cart {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

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

/* Empty State */
.empty-catalog {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Rescue Initiative Banner
   -------------------------------------------------------------------------- */
.rescue-banner-section {
  background: linear-gradient(135deg, #f4efe6 0%, #ebe2d3 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4.5rem 0;
}

.rescue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.rescue-content .section-title {
  margin-bottom: 1rem;
}

.rescue-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.rescue-stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}

.rescue-stat-box h4 {
  font-size: 2rem;
  color: var(--accent);
}

.rescue-stat-box p {
  font-size: 0.875rem;
  margin-bottom: 0;
  font-weight: 600;
}

.rescue-card-box {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.rescue-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.rescue-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.author-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Reviews Section
   -------------------------------------------------------------------------- */
.reviews-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
  font-style: italic;
}

.review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.user-meta-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}

.user-meta-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Newsletter / CTA Bar
   -------------------------------------------------------------------------- */
.newsletter-bar {
  background: var(--primary);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

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

.newsletter-text h3 {
  color: #fff;
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.newsletter-text p {
  color: #d1ded7;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  max-width: 480px;
}

.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9375rem;
}

.newsletter-input::placeholder {
  color: #a8beaf;
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.newsletter-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: #b5c7bd;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo-title {
  color: #fff;
}

.footer-brand p {
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #b5c7bd;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 0.2rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8125rem;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pay-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   Quick View Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 36, 26, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: #fff;
}

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

.modal-gallery-box {
  background: #fbf9f5;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.modal-main-img {
  max-height: 340px;
  object-fit: contain;
}

.modal-details h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-sku-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

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

.modal-price-compare {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.modal-desc-preview {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.modal-features-list {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-features-list h6 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.modal-features-list li {
  font-size: 0.8125rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1.2rem;
}

.modal-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.modal-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #fff;
}

.qty-btn {
  width: 38px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  transition: background var(--transition-fast);
}

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

.qty-val {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  outline: none;
}

.modal-add-btn {
  flex: 1;
  height: 46px;
}

/* --------------------------------------------------------------------------
   Slide-out Cart Drawer
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 36, 26, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

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

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.35rem;
}

.free-shipping-tracker {
  padding: 0.85rem 1.5rem;
  background: var(--primary-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.tracker-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.tracker-bar-bg {
  height: 6px;
  background: rgba(21, 59, 42, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tracker-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

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

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #fbf9f5;
  object-fit: contain;
  padding: 0.35rem;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

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

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

.cart-item-remove {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 600;
}

.cart-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cart-empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
}

.cart-coupon-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cart-coupon-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.cart-coupon-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-main);
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.cart-totals-row.final {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-checkout {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

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

/* --------------------------------------------------------------------------
   Legal & Static Page Layouts (Privacy, Terms, Shipping, Contact, About)
   -------------------------------------------------------------------------- */
.legal-header {
  background: linear-gradient(135deg, #153b2a 0%, #0e291c 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.legal-header h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.legal-header p {
  color: #d1ded7;
  font-size: 1rem;
}

.legal-body-section {
  padding: 4.5rem 0 6rem;
  background: var(--bg-surface);
}

.legal-content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.8;
  color: #2d3748;
}

.legal-content-wrapper h2 {
  font-size: 1.65rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-surface);
  color: var(--primary);
}

.legal-content-wrapper h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-content-wrapper p, .legal-content-wrapper ul {
  margin-bottom: 1.25rem;
}

.legal-content-wrapper ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content-wrapper li {
  margin-bottom: 0.5rem;
}

.compliance-box {
  background: var(--primary-surface);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0;
}

.compliance-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  margin-top: 1rem;
}

.contact-card-info {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-detail-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

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

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.9375rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 59, 42, 0.1);
}

/* --------------------------------------------------------------------------
   Checkout Page Styles
   -------------------------------------------------------------------------- */
.checkout-section {
  padding: 3.5rem 0 5.5rem;
  background: var(--bg-main);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.step-num-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.shipping-method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shipping-method-option:hover, .shipping-method-option.selected {
  border-color: var(--primary);
  background: var(--primary-surface);
}

.shipping-method-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stripe-payment-box {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--bg-main);
  margin-top: 1rem;
}

.stripe-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Order Summary Box */
.order-summary-box {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.summary-items-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

/* Order Success Screen */
.order-success-card {
  max-width: 680px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.success-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.85rem;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .rescue-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-form {
    width: 100%;
  }
}
