:root {
  --primary: #0b5c38;
  --secondary: #0c1f2c;
  --accent: #daa520;
  --bg: #fafaf9;
  --text: #1c1c1c;
  --muted: #666;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  color: var(--text);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 0.75rem;
}
.nav img {
  display: block;
  height: auto;
}
.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  min-height: 40px; /* touch target */
  display: inline-flex;
  align-items: center;
}
.nav a.active,
.nav a:hover {
  background: rgba(11, 92, 56, 0.08);
  color: var(--primary);
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* Hero (if used) */
.hero {
  display: grid;
  gap: 1rem;
  padding: 2.2rem 0;
  grid-template-columns: 1.2fr 0.8fr;
}
.hero .cta {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  min-height: 44px; /* touch target */
}
.btn.outline {
  color: var(--primary);
  background: transparent;
}

/* Grids & cards */
.grid {
  display: grid;
  gap: 1rem;
}
.grid.cards {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  overflow: hidden;
}
.card .content {
  padding: 0.8rem;
}
.price {
  font-weight: 600;
  color: var(--primary);
}

/* Legacy footer block (not used by partial) */
.footer {
  margin-top: 3rem;
  border-top: 1px solid #eee;
  background: #fff;
}
.footer .cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 1.5rem 0;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ========= Responsive tweaks ========= */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    align-items: center;
  }
  .nav ul {
    display: none; /* hidden by default */
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-top: 1px solid #eee;
    width: 100%;
  }
  .nav ul.is-open {
    display: flex;
  } /* toggled open */
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.25rem;
  }
  .card .content {
    padding: 0.7rem;
  }
}

@media (max-width: 360px) {
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

/* ===== New Footer to match header (white) ===== */
.site-footer {
  background: #fff; /* same as header */
  color: var(--text);
  box-shadow: none;
  border-top: 1px solid #eee; /* subtle divider like header */
}
.site-footer .container {
  padding: 2rem 1rem;
  text-align: center;
}

/* Social icons on white */
.footer-social {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-social a {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: var(--secondary); /* SVG uses currentColor */
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: none;
}
.footer-social a:hover {
  background: #f7f7f7;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.footer-social svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Footer page links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
}
.footer-links a {
  color: #666;
  font-size: 1rem;
}
.footer-links a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Bottom bar */
.footer-bottom {
  background: #fff;
  border-top: 1px solid #eee;
}
.footer-bottom .container {
  padding: 0.8rem 1rem;
  color: #777;
}

/* Tighten on very small screens */
@media (max-width: 480px) {
  .footer-social a {
    width: 48px;
    height: 48px;
  }
  .footer-links {
    gap: 1.2rem;
  }
}

/* Accessibility focus outline */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =========================
   RED MARKETING DISCOUNT BADGE
   ========================= */

.card {
  position: relative;
}

/* Visible, high-conversion sale badge */
.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;

  background: linear-gradient(135deg, #ff1f1f, #ff7a00);
  color: #fff;

  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  box-shadow:
    0 10px 22px rgba(255, 40, 40, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);

  animation: salePulse 1.6s ease-in-out infinite;
  pointer-events: none;
}

/* Old price */
.price .old {
  margin-right: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* Smooth pulse animation */
@keyframes salePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(255, 40, 40, 0.55);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 14px 30px rgba(255, 90, 0, 0.75);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(255, 40, 40, 0.55);
  }
}



/* Show discount badge ONLY on homepage */
.page-home .discount-badge {
  display: inline-block;
}


