:root {
  --mint: #aef2c9;
  --mint-light: #e9fdf1;
  --green: #1d7a45;
  --green-deep: #0f4d2a;
  --ink: #1a1a1a;
  --red: #c62836;
  --red-dark: #8e1923;
  --amber: #f2a007;
  --teal: #0e8a7b;
  --card: #fffdf7;
  --muted: #666;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(160deg, var(--mint) 0%, var(--mint-light) 45%, #ffd9a8 130%);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, var(--green-deep) 0%, var(--ink) 55%, var(--red-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--amber);
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo {
  height: 52px; width: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--amber);
}
.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--mint);
}
.header-right { display: flex; align-items: center; gap: 14px; }

.open-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.open-badge.closed { background: var(--red); }

/* Nav */
.site-nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link {
  color: #cfe9d9;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}
.nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-link.active { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.cart-btn {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.cart-btn:hover { filter: brightness(1.12); }
.cart-count {
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 44px 16px 32px;
  background:
    radial-gradient(circle at 15% 20%, rgba(242,160,7,0.22), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(198,40,54,0.16), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
}
.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 26px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(15,77,42,0.35);
}
.hero h1 {
  font-size: 2.3rem;
  margin-top: 16px;
  letter-spacing: 0.5px;
  color: var(--green-deep);
  text-shadow: 0 2px 0 rgba(255,255,255,0.6);
}
.tagline {
  color: var(--red-dark);
  font-weight: 700;
  margin-top: 6px;
}
.butcher-stripe {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 18px,
    #fffdf7 18px 36px
  );
  border-top: 3px solid var(--green-deep);
  border-bottom: 3px solid var(--green-deep);
}

/* Layout */
.container { max-width: 1000px; margin: 0 auto; padding: 0 16px 40px; width: 100%; }
.section-title {
  margin: 30px 0 18px;
  font-size: 1.5rem;
  color: var(--green-deep);
  display: inline-block;
  border-bottom: 4px solid var(--amber);
  padding-bottom: 4px;
}

/* Hours */
.hours-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  max-width: 480px;
  border-left: 6px solid var(--teal);
}
.hours-card h2 { font-size: 1.15rem; margin-bottom: 10px; color: var(--teal); }
.hours-list { display: grid; gap: 4px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 3px 0;
}
.hours-row.today { font-weight: 800; color: var(--green); }
.hours-row .closed { color: var(--red); font-weight: 700; }

/* Search bar */
.search-bar { margin-bottom: 14px; }
.search-bar input {
  width: 100%;
  max-width: 480px;
  padding: 13px 18px 13px 44px;
  border: 2px solid var(--green);
  border-radius: 999px;
  font-size: 1rem;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231d7a45' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") no-repeat 14px center;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}
.search-bar input:focus { outline: none; border-color: var(--amber); }
.search-bar input::placeholder { color: #999; }

/* Category filter chips */
.cat-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cat-chip {
  background: #fffdf7;
  border: 2px solid var(--green);
  color: var(--green-deep);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.cat-chip:hover { background: var(--mint-light); }
.cat-chip.active { background: var(--green); color: #fff; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  transition: transform 0.15s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-caption .gname { font-weight: 700; color: var(--green-deep); }
.gallery-caption .gprice { color: var(--red-dark); font-weight: 800; }

/* Find Us page */
.findus-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}
.contact-card {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  border-top: 6px solid var(--teal);
}
.contact-card h3 {
  color: var(--teal);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.contact-card h3 + div { margin-bottom: 18px; }
.contact-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
}
.contact-label { font-weight: 800; color: var(--green-deep); }
.contact-row a { color: var(--red-dark); font-weight: 700; }
.map-wrap {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  border-top: 6px solid var(--amber);
  min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

@media (max-width: 760px) {
  .findus-layout { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 320px; }
}

/* Custom pages */
.page-card {
  background: var(--card);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  border-top: 6px solid var(--red);
  max-width: 760px;
  margin: 30px auto;
}
.page-title {
  color: var(--green-deep);
  margin-bottom: 14px;
  border-bottom: 4px solid var(--amber);
  display: inline-block;
  padding-bottom: 4px;
}
.page-card p { margin-bottom: 12px; line-height: 1.6; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 6px solid var(--green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:nth-child(3n+1) { border-top-color: var(--red); }
.product-card:nth-child(3n+2) { border-top-color: var(--amber); }
.product-card:nth-child(3n+3) { border-top-color: var(--teal); }
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}
.product-top { display: flex; align-items: center; gap: 12px; }
.product-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  background: var(--green);
  flex-shrink: 0;
}
.product-card:nth-child(3n+1) .product-badge { background: var(--red); }
.product-card:nth-child(3n+2) .product-badge { background: var(--amber); }
.product-card:nth-child(3n+3) .product-badge { background: var(--teal); }
.product-img {
  width: calc(100% + 40px);
  margin: -20px -20px 4px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.product-card h3 { font-size: 1.15rem; color: var(--green-deep); }
.product-desc { color: var(--muted); font-size: 0.92rem; flex: 1; }
.product-weight {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
}
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--red-dark); }
.price .unit { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.stock-tag { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #dcf5e7; color: var(--green); }
.stock-tag.low { background: #fdedc2; color: #8a6d00; }
.stock-tag.out { background: #fde2e4; color: var(--red); }

.add-row { display: flex; gap: 8px; margin-top: 6px; }
.qty-input {
  width: 80px;
  padding: 9px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
.qty-input:focus { outline: none; border-color: var(--green); }
.btn-add {
  flex: 1;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  padding: 9px;
}
.btn-add:hover { filter: brightness(1.15); }
.btn-add:disabled { background: #bbb; cursor: not-allowed; }

/* Cart drawer */
.overlay {
  position: fixed; inset: 0;
  background: rgba(15,77,42,0.5);
  z-index: 90;
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #fffdf7;
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 24px rgba(0,0,0,0.25);
  border-left: 5px solid var(--amber);
}
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { color: var(--green-deep); }
.icon-btn {
  background: none; border: none;
  font-size: 1.8rem; cursor: pointer;
  color: var(--muted); line-height: 1;
}
.cart-items { margin-top: 14px; display: grid; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}
.cart-item .name { font-weight: 700; }
.cart-item .sub { font-size: 0.85rem; color: var(--muted); }
.cart-item input { width: 70px; padding: 6px; border: 1px solid #ddd; border-radius: 6px; }
.remove-btn { background: none; border: none; color: var(--red); cursor: pointer; font-size: 1.1rem; }
.cart-empty { color: var(--muted); text-align: center; padding: 24px 0; }

.cart-total-row {
  display: flex; justify-content: space-between;
  font-size: 1.15rem;
  padding: 16px 0;
  border-top: 2px solid #eee;
  margin-top: 16px;
  color: var(--red-dark);
}

.delivery-line {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 700;
  padding-top: 12px;
}
.method-opts { display: grid; gap: 8px; }
.method-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}
.method-opt:has(input:checked) { border-color: var(--green); background: var(--mint-light); }
.del-areas { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.checkout-form { display: grid; gap: 10px; }
.checkout-form h3 { font-size: 1rem; color: var(--green-deep); }
.checkout-form input, .checkout-form textarea {
  padding: 11px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}
.checkout-form input:focus, .checkout-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.btn-primary {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.12); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 200;
  max-width: 90vw;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* Footer */
.site-footer {
  margin-top: auto;
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--ink) 50%, var(--green-deep) 100%);
  border-top: 4px solid var(--amber);
  color: #eee;
  text-align: center;
  padding: 30px 16px;
}
.footer-logo {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--amber);
}
.copyright-line { color: #aaa; font-size: 0.8rem; margin-top: 6px; }
.muted { color: #bbb; font-size: 0.85rem; margin-top: 4px; }
.admin-link { color: var(--amber); font-size: 0.8rem; }
.hidden { display: none !important; }
.loading { color: var(--muted); }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.7rem; }
  .brand-name { font-size: 1.1rem; }
}
