:root {
  --color-ink-primary: #111111;
  --color-ink-secondary: #555555;
  /* Correct Gold Color */
  --color-accent-gold: #c39e59; 
  --color-bg-default: #f9f9f9; 
  --color-bg-card: #ffffff;
  --color-line: #e5e5e5;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-md: 6px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink-primary);
  background-color: var(--color-bg-default);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Utilities --- */
/* Skip Link - Hidden unless focused */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 2000;
}
.skip-link:focus {
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.row { display: flex; align-items: center; }

/* --- Header & Navigation --- */
.topbar {
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.topbar .container {
  justify-content: space-between;
}
.brand img {
  height: 50px;
  width: auto;
}

/* Desktop Nav Defaults */
#primary-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
#primary-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
#primary-nav a:hover, #primary-nav a.active {
  color: var(--color-accent-gold);
}
#primary-nav .cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  background: var(--color-ink-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* --- Nav Toggle (Mobile) --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-ink-primary);
  transition: all 0.3s ease;
}

/* --- MOBILE NAV OVERLAY --- */
@media (max-width: 850px) {
  .nav-toggle { display: flex; }

  #primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    padding: 80px 20px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
  }
  #primary-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  #primary-nav a:not(.cart-link) {
    display: block;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 14px;
    margin: 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    border: 1px solid var(--color-ink-primary);
    border-radius: 8px;
    color: var(--color-ink-primary);
  }
  
  #primary-nav a[href*="jerky"] { border-color: var(--color-ink-primary); }
  #primary-nav a[href*="bbq"] { border-color: var(--color-accent-gold); color: #9e7d26; }
  #primary-nav a[href*="Pantry"] { border-color: #ff85a2; color: #ff85a2; }
  #primary-nav a[href*="community"] { border-color: #C2B280; color: #998a60; }

  #primary-nav .cart-link {
    margin-top: 20px;
    font-size: 1.2rem;
    padding: 10px;
  }
  
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* --- HERO SECTION (HOME) --- */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background-color: var(--color-bg-default);
}
.hero-logo {
  max-width: 350px;
  margin: 0 auto 60px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.cta-row {
  display: flex;
  gap: 16px;
}

/* Base Ghost Button Style */
.cta {
  flex: 1;
  padding: 20px 10px;
  border-width: 2px;
  border-style: solid;
  border-radius: 8px; /* Squared corners */
  font-weight: 700;
  font-size: 1.25rem; 
  text-transform: none; 
  letter-spacing: 0;
  text-align: center;
  background-color: transparent;
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* --- SPECIFIC BUTTON COLORS --- */

/* 1. Jerky: Black Outline -> Gold Fill -> BLACK TEXT */
.ghost-jerky {
  border-color: #111;
  color: #111;
}
.ghost-jerky:hover {
  background-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: #000000; 
}

/* 2. BBQ: Gold Outline -> Black Fill -> GOLD TEXT */
.ghost-bbq {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold); 
}
.ghost-bbq:hover {
  background-color: #111;
  border-color: #111;
  color: var(--color-accent-gold);
}

/* 3. Pantry: Custom Outline -> Deep Red Fill -> Off-White TEXT */
.ghost-pantry {
  border-color: #b6465f; 
  color: #b6465f;
}
.ghost-pantry:hover {
  background-color: #830c1c; 
  border-color: #830c1c; 
  color: #fffceb; 
}

/* 4. Community: Creme Outline -> Mocha Fill -> CREME TEXT */
.ghost-community {
  border-color: #D2C6A8; 
  color: #B0A080; 
}
.ghost-community:hover {
  background-color: #5D4037; 
  border-color: #5D4037; 
  color: #D2C6A8;
}


/* Updates Section */
#latest-updates {
  text-align: center;
  max-width: 700px;
  margin: 40px auto 60px;
}
#latest-updates h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}
#latest-updates p {
  color: var(--color-ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
}
#latest-updates a {
  color: #111;
}

/* Footer */
.footer {
  background: #f5f5f7;
  padding: 40px 0;
  text-align: center;
  margin-top: auto;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
}

@media (max-width: 600px) {
  .cta-row { flex-direction: column; gap: 12px; }
  .hero-ctas { gap: 12px; }
}

/* =========================================
   JERKY PAGE REFRESH STYLES
   ========================================= */

/* Dark Hero Section */
.jerky-hero {
  background-color: #111; /* Deep Black */
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}
.jerky-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.jerky-hero .gold-accent {
  color: var(--color-accent-gold);
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* Refined Story Section */
.refined-story {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 0 20px;
}
.refined-story h2 {
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.refined-story .divider {
  width: 50px;
  height: 2px;
  background: var(--color-accent-gold);
  margin: 0 auto 20px;
}
.refined-story p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  max-width: 650px;
  margin: 0 auto 20px;
}

/* Modern Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-bottom: 60px;
}

/* Sophisticated Product Card */
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: var(--color-accent-gold); /* Gold Border on Hover */
}

.card-image-wrap {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.card-image-wrap img {
  max-height: 280px;
  width: auto;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

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

/* Badges */
.premium-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #111;
  color: var(--color-accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 5px;
  color: #111;
  text-transform: uppercase;
}

.card-price {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
  font-weight: 500;
}

.card-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Add to Cart Button */
.btn-add-cart {
  display: block;
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.2s;
  border: 1px solid #111;
}

.product-card:hover .btn-add-cart {
  background: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: #000;
}

/* --- Cart Notification Fix --- */
#cart-notification {
  position: fixed;
  bottom: -100px; /* Start off-screen */
  left: 50%;
  transform: translateX(-50%);
  background-color: #111;
  color: #fff;
  padding: 16px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: bottom 0.5s ease-in-out;
  z-index: 2000;
  opacity: 0; /* Start invisible */
  visibility: hidden; /* Start hidden from interaction */
}

#cart-notification.show {
  bottom: 30px; /* Move up into view */
  opacity: 1; /* Make visible */
  visibility: visible; /* Allow interaction */
}