/* Global Styles & Variables */
:root {
  --color-primary: #8B4513;
  /* SaddleBrown */
  --color-secondary: #D2691E;
  /* Chocolate */
  --color-accent: #DAA520;
  /* GoldenRod */
  --color-bg-light: #FDF5E6;
  /* OldLace */
  /* OldLace */
  --color-text-dark: #262626;
  /* Neutral Dark Charcoal (was #2F4F4F DarkSlateGray) */
  --color-text-light: #FFFFFF;
  --color-plaid-red: #cc0000;
  /* Deep Red for Plaid */
  
  /* Neutral Palette */
  --color-white: #ffffff;
  --color-gray-100: #f9f9f9;
  --color-gray-200: #e0e0e0;
  --color-gray-300: #cccccc;
  --color-gray-500: #888888;
  --color-gray-600: #666666;
  --color-gray-700: #555555;

  --font-heading: 'Abril Fatface', cursive;
  --font-body: 'Lato', sans-serif;
  --spacing-section: 4rem;
  --radius-card: 12px;
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  text-decoration: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Product Detail Page Styles */
.product-detail-container {
  max-width: 1000px;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 0 1rem;
  align-items: center;
}

.detail-image {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-dark);
  /* Fixed visibility (was light on light) */
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.back-link:hover {
  color: var(--color-primary);
  transform: translateX(-5px);
  text-decoration: underline;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary);
  line-height: 1.1;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.detail-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

.add-to-cart-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 1.2rem 3rem;
  /* Larger hit area */
  font-family: var(--font-heading);
  font-size: 1.5rem;
  /* Larger text */
  border-radius: var(--radius-button);
  /* Note: --radius-button variable might be missing in root, check this */
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:hover {
  background-color: darkred;
  transform: scale(1.05);
  /* Pop effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
}

.btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Header */
.site-header {
  /* Buffalo Plaid Pattern - Real Fabric Texture */
  background-color: var(--color-plaid-red);
  background-image: url('header_option_flannel.png');
  background-repeat: repeat;
  background-size: 150px 150px;
  /* Adjust scale to look realistic */

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--color-text-dark);
  padding: 0.5rem 0;
  /* Default padding */
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.25rem 0;
    /* Tighter padding on mobile */
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links a {
  font-weight: 700;
  color: var(--color-white);
  /* White text for contrast on plaid */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
  /* Use the empty background */
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('hero_empty_background.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  position: relative;
}

.hero-content {
  z-index: 5;
  position: relative;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Products Section */
.products {
  padding: var(--spacing-section) 0;
}

.product-grid {
  display: grid;
  /* Auto-fit is good, but user specifically asked for 3x1. 
     minmax(300px, 1fr) usually fits 3 on 1200px container, but we can potentially force it.
     Let's keep auto-fit but ensure 3 items fit perfectly. */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Responsive Grid for Tablets/Phones */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 300px;
  /* Fixed height for consistency */
  width: 100%;
  object-fit: contain;
  /* Contain to show the whole bottle */
  background-color: var(--color-white);
  /* White bg for cut-out images */
  padding: 1rem;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-info p {
  margin-bottom: 1.5rem;
  color: var(--color-gray-600);
  flex-grow: 1;
}

.price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  display: block;
}

/* Recipes Section */
.recipes {
  background-color: var(--color-white);
  padding: var(--spacing-section) 0;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

.recipe-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.recipe-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-info {
  padding: 1.5rem;
}

.recipe-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

.recipe-info p {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  line-height: 1.5;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-bg-light);
  padding: var(--spacing-section) 0;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Find Us Section */
.find-us {
  background-color: var(--color-white);
  padding: var(--spacing-section) 0;
  text-align: center;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-links a:hover {
  background: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-content h1 span {
    display: block;
  }

  .navbar {
    flex-direction: row;
    /* Keep row for Logo + Burger */
    justify-content: space-between;
    height: auto;
    padding: 0.5rem 1rem;
    position: relative;
    /* For absolute dropdown */
  }

  .logo img {
    height: 50px;
    /* Small logo */
  }

  .hamburger {
    display: block;
    /* Show on mobile */
  }

  /* Fix: Position nav absolute so it doesn't take up flex space */
  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99;
  }

  .nav-links {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    width: 100%;
    background-color: var(--color-plaid-red);
    background-image: url('header_option_flannel.png');
    background-size: 150px 150px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
    /* Show when active */
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
  }
}

/* Dynamic & Cart Styles */
.btn-disabled {
  background-color: var(--color-gray-300) !important;
  cursor: not-allowed;
}

.stock-info {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-bottom: 0.5rem;
}

.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.cart-content {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-card);
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-cart {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

/* Toast Notification */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* Utilities & Helper Classes */
.text-center {
  text-align: center;
}

.text-lead {
  font-size: 1.2rem;
  color: var(--color-text-dark);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.bg-gray-light {
  background-color: var(--color-gray-100);
}

.section-padding {
  padding: 4rem 2rem;
}

/* Specialized Components from Inline Styles */
.hero-small {
  height: 40vh;
}

.hero-medium {
  height: 50vh;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.logo-img {
  border-radius: 50%; 
  border: 2px solid var(--color-white);
}

.link-reset {
  text-decoration: none;
  color: inherit;
}

.grid-col-full {
  grid-column: 1 / -1;
}

.recipe-section {
  margin-top: 2rem;
}

.recipe-heading {
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.recipe-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-specs {
  margin-bottom: 1rem;
  color: var(--color-gray-600);
  font-size: 0.9em;
}

.detail-claims {
  columns: 2;
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: var(--color-text-dark);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gray-100);
  padding-bottom: 0.5rem;
}

.cart-item-name {
  display: block;
  font-weight: bold;
}

.cart-item-price {
  font-size: 0.9em;
  color: var(--color-gray-600);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #cc0000;
  cursor: pointer;
  font-size: 0.9rem;
}