html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for sticky header */
}

/* === Accessibility: Skip Link === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  transition: top 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
  pointer-events: auto;
}

/* === Typography and Variables === */
:root {
  --font-header: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* New Professional Color Palette */
  --color-primary: #2d5016;      /* Forest green - Scottish, natural, strong */
  --color-primary-hover: #3d6b1f; /* Lighter green for hovers */
  --color-primary-light: #e8f2e1; /* Very light green for backgrounds */
  
  --color-accent: #d4a574;        /* Warmer gold - better contrast */
  --color-accent-dark: #b8824f;   /* Darker gold */
  
  --color-bg: #fdfcf8;            /* Warmer white */
  --color-text: #333333;          /* Softer charcoal for body text */
  --color-text-dark: #2a2a2a;     /* Slightly darker for headings */
  --color-text-light: #666666;    /* Lighter gray for secondary text */
  
  --color-border: #e8e4dc;        /* Subtle borders */
  --color-soft: #f8f7f4;          /* Light background sections */
  --color-muted: #f0ede8;         /* Muted backgrounds */

  --max-width: 1140px;
  --spacing: 2rem;
  
  /* New: Consistent shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(45, 80, 22, 0.15);
  --shadow-button: 0 4px 12px rgba(45, 80, 22, 0.25);
  
  /* New: Consistent border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  /* New: Smooth transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
}

p {
  line-height: 1.7;
  margin-bottom: 1em;
}

h2.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

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

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing);
}

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 0;
  transition: all var(--transition-base);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-header);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

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

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

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* === Trust Banner === */
.trust-banner {
  background: var(--color-primary-light);
  border-bottom: 2px solid var(--color-primary);
  padding: 1rem 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: transform var(--transition-fast);
}

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

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-text {
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* === Hero Section === */
.hero {
  position: relative;
  padding: 8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 650px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--color-text-dark);
  font-weight: 700;
  text-shadow: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.35rem;
  color: var(--color-text);
  font-weight: 400;
  text-shadow: none;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.35);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button);
}

/* === Products Section === */
.product-item {
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 320px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-card img {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base);
}

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

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

.product-card .tagline {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.5rem;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.product-card .description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.card-footer .price {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.product-card .add-to-cart-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.product-card .add-to-cart-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card .add-to-cart-btn:active {
  transform: translateY(0);
}

/* === With-Gallery Enhancements === */
.product-card.with-gallery {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
}

.product-left {
  flex: 0 0 400px;
}

.product-left img {
  border-radius: 12px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.use-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 1.5rem;
  max-width: 300px;
}

.use-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* === Ethos Section === */
.ethos {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, white 100%);
  text-align: center;
  padding: 5rem 2rem;
  border-top: 2px solid var(--color-border);
}

.ethos h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.ethos p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* === Footer === */
footer {
  background: var(--color-text);
  border-top: 3px solid var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 2rem 2rem;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.7;
}

footer a {
  color: white;
  margin: 0 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
}

footer a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

footer p + p {
  margin-top: 0.75rem;
}

.products,
.ingredient-grid,
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 1rem;
}

.use-case-card {
  flex: 1 1 300px;
  max-width: 340px;
  text-align: center;
  background: white;
  padding: 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.use-case-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base);
}

.use-case-card:hover img {
  transform: scale(1.02);
}

.use-case-card p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.tall-image img {
  height: 180px;
  object-fit: contain;
}

.ingredient-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: white;
  padding: 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.ingredient-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base);
}

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

.ingredient-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 600;
}

.ingredient-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 6px;
}

/* === Tablet Breakpoint === */
@media (max-width: 1024px) {
  .products,
  .use-grid,
  .ingredient-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    max-width: 100%;
  }

  .hero-overlay {
    max-width: 85%;
  }

  .product-left {
    flex: 0 0 300px;
  }
}

/* === Mobile Breakpoint === */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem 0;
    font-size: 0.85rem;
  }

  .trust-banner {
    padding: 0.5rem 0;
  }

  .trust-items {
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.8rem;
  }

  .trust-icon {
    font-size: 1rem;
  }

  .hero {
    padding: 5rem 1rem;
    min-height: 500px;
  }

  .hero-overlay {
    padding: 2rem 1.5rem;
    width: 95%;
    max-width: 500px;
  }

  .hero-text h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .button {
    width: auto;
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
  }

  .section-title,
  h2.section-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .container {
    padding: 1rem;
  }

  .products,
  .use-grid,
  .ingredient-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .product-card {
    width: 100%;
    max-width: 400px;
    padding: 1.2rem;
  }

  .product-card.with-gallery {
    flex-direction: column;
  }

  .product-left,
  .product-right {
    width: 100%;
    flex: 1;
  }

  .use-grid {
    align-items: center;
    flex-direction: column;
  }

  .use-case-card {
    width: 100%;
    max-width: 90%;
  }

  .use-case-card img,
  .tall-image img {
    height: auto;
    max-height: 220px;
  }

  .ingredient-card {
    max-width: 90%;
  }

  .ingredient-card img {
    height: auto;
    max-height: 200px;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .product-card .description,
  .product-card .price {
    font-size: 1rem;
  }

  .button {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    width: 100%;
    text-align: center;
  }

  footer {
    padding: 2rem 1rem;
  }

  .ethos {
    padding: 3rem 1rem;
  }

  .ethos h2 {
    font-size: 1.5rem;
  }
}

/* === Small Mobile Breakpoint === */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero {
    padding: 4rem 1rem;
    min-height: 450px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .product-card {
    max-width: 100%;
  }

  .logo {
    font-size: 1.5rem;
  }
}


.about-section p,
.about-values li {
  font-size: 1rem;
  line-height: 1.7;
}



.toast-container {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: #333;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  animation: fadeInOut 3s ease forwards;
  pointer-events: auto;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}


.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid #e0dcd5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}


.compact-header {
  padding: 0.5rem 0;
}

.compact-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
}

.logo-text {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-text);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
}

.main-nav a:hover {
  text-decoration: underline;
}





.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
  padding: 0.5rem 1rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: #000;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: #000;
}



#cart-count {
  font-weight: bold;
  /* Prevent flicker during updates */
  will-change: contents;
  display: inline-block;
}



.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--color-dark);
  text-decoration: none;
}

.logo:hover {
  opacity: 0.8;
}
