/* =============================================================================
   EXCELLENT VENISON — STYLES
   Mobile-first. Base rules target phones; media queries scale up to desktop.
   ============================================================================= */

:root {
  --brown-deep:   #3b2a1a;
  --brown:        #4b2e1e;
  --leather:      #a47148;
  --leather-dark: #8b5e3c;
  --cream:        #f1ece2;
  --card:         #ffffff;
  --wa-green:     #25d366;
  --wa-green-dark:#1da851;
  --text:         #3b2a1a;
  --muted:        #7a6a58;
  --radius:       10px;
  --shadow:       0 6px 18px rgba(59, 42, 26, 0.10);
  /* Type: Poppins is the clean sans (stand-in for the label's Jannah), and
     Antic Didone is the elegant serif accent used on the packaging. */
  --display: 'Poppins', sans-serif;
  --body:    'Poppins', sans-serif;
  --accent:  'Antic Didone', Georgia, serif;
  --header-h: 64px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; }

/* ---- Sticky top bar --------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  background: var(--brown); color: #fff;
}
.topbar__brand {
  font-family: var(--display); font-size: 19px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: #fff; text-decoration: none;
}
.cart-button {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--leather); color: #fff; border: none;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius); cursor: pointer;
  transition: background .2s;
}
.cart-button:hover { background: var(--leather-dark); }
.cart-button__badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #fff; color: var(--brown); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  background-color: var(--brown); /* fallback so the hero is never broken */
  background-image:
    linear-gradient(rgba(75,46,30,0.82), rgba(75,46,30,0.82)),
    url('../images/hero-background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff; text-align: center; padding: 90px 20px;
}
.hero h1 {
  font-size: 40px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 12px;
}
.hero p {
  font-family: var(--accent); font-size: 22px; letter-spacing: .3px;
  margin: 0 0 20px; opacity: .95;
}
.hero__delivery {
  display: inline-block; font-family: var(--body); font-size: 14px; font-weight: 600;
  letter-spacing: .3px; color: #fff; background: rgba(37,211,102,.22);
  border: 1px solid rgba(255,255,255,.35); border-radius: 30px;
  padding: 8px 18px; margin: 0 0 28px;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 16px; font-weight: 600;
  padding: 12px 22px; border: none; border-radius: var(--radius);
  background: var(--leather); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--leather-dark); }
.btn:active { transform: translateY(1px); }
.btn--add { padding: 10px 18px; font-size: 15px; }
.btn--whatsapp { width: 100%; background: var(--wa-green); }
.btn--whatsapp:hover { background: var(--wa-green-dark); }

/* ---- Sections --------------------------------------------------------- */
.section { padding: 60px 20px; }
.section--tint { background: #ece4d6; }
.container { max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: 32px; text-align: center; margin-bottom: 10px; }
.section__lead {
  font-family: var(--accent); font-size: 19px;
  text-align: center; color: var(--muted);
  max-width: 620px; margin: 0 auto 32px;
}
.about-text {
  max-width: 760px; margin: 0 auto 26px; text-align: center;
  font-size: 16px; color: var(--text);
}
.trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.trust li {
  background: #fff; border: 1px solid #ddceb8; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--brown-deep);
}

/* ---- Filter tabs ------------------------------------------------------ */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.filter {
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 9px 20px; border: 1.5px solid #d8cbb6; border-radius: 30px;
  background: transparent; color: var(--brown-deep); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--leather); }
.filter.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }

/* ---- Product groups (per animal) ------------------------------------- */
.group { margin-bottom: 48px; }
.group:last-child { margin-bottom: 0; }
.group__title {
  font-size: 26px; text-align: left; margin: 0 0 20px;
  padding-bottom: 10px; border-bottom: 2px solid #ddceb8;
}

/* ---- Product grid ----------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.product {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(59,42,26,.14); }
/* Flip card: photo on the front, ingredients on the back.
   Flips on hover (desktop) or tap (mobile / keyboard). */
.product__media {
  position: relative; background: #2c2018;
  perspective: 1000px; cursor: pointer;
}
.flip__inner {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  transform-style: preserve-3d; transition: transform .55s;
}
.product__media:hover .flip__inner,
.product__media.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__front, .flip__back {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip__front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip__back {
  transform: rotateY(180deg); background: var(--brown); color: var(--cream);
  padding: 22px; display: flex; flex-direction: column; justify-content: center;
  text-align: left;
}
.flip__title { font-family: var(--accent); font-size: 20px; color: #fff; margin: 0 0 12px; }
.flip__text { font-size: 15px; line-height: 1.55; margin: 0; }
.flip__hint {
  position: absolute; bottom: 10px; right: 10px; pointer-events: none;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .3px; padding: 5px 10px; border-radius: 20px;
}
.product__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #a33; color: #fff; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; padding: 6px 12px; border-radius: 6px;
}

/* Sold-out look */
.product.is-soldout .flip__front img { filter: grayscale(.7) brightness(.82); }
.product.is-soldout .product__price { color: var(--muted); }
.btn--add[disabled] { background: #b9ab97; cursor: not-allowed; }
.btn--add[disabled]:hover { background: #b9ab97; transform: none; }
.product__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product__type {
  text-transform: uppercase; letter-spacing: 1px; font-size: 11px;
  color: var(--leather); margin: 0 0 4px; font-weight: 600;
}
.product__name { font-size: 20px; margin: 0 0 8px; }
.product__desc { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.product__foot {
  margin-top: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.product__price {
  font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--brown-deep);
}

/* ---- Contact ---------------------------------------------------------- */
.contact p { font-size: 17px; margin: 8px 0; text-align: center; }

/* ---- Footer ----------------------------------------------------------- */
.footer {
  background: var(--brown); color: #fff; text-align: center;
  padding: 34px 20px; font-size: 14px;
}

/* ---- Cart drawer ------------------------------------------------------ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 50;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px;
  background: var(--card); z-index: 60; transform: translateX(100%);
  transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,.18);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #e6ddce;
}
.cart-drawer__head h2 { font-size: 22px; }
.cart-close {
  background: none; border: none; font-size: 28px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 4px 8px;
}
.cart-close:hover { color: var(--brown-deep); }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart__empty { text-align: center; color: var(--muted); margin-top: 48px; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eee5d7; }
.cart-item__img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; margin: 0 0 2px; }
.cart-item__meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.cart-item__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item__total { font-weight: 700; color: var(--brown-deep); }
.cart-item__remove {
  background: none; border: none; color: var(--muted); font-size: 13px;
  text-decoration: underline; cursor: pointer; padding: 0;
}
.cart-item__remove:hover { color: #a33; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d8cbb6; border-radius: 8px; overflow: hidden; }
.qty__btn { width: 32px; height: 32px; border: none; background: #f4ede1; color: var(--brown-deep); font-size: 18px; cursor: pointer; }
.qty__btn:hover { background: #e9ddc9; }
.qty__value { min-width: 34px; text-align: center; font-weight: 600; }
.cart-footer { padding: 18px 20px; border-top: 1px solid #e6ddce; }
.cart__totalrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 18px; }
.cart__total { font-family: var(--display); font-size: 26px; font-weight: 700; }
.cart__clear {
  width: 100%; margin-top: 10px; background: none; border: none;
  color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer;
}
.cart__clear:hover { color: var(--brown-deep); }
.btn--whatsapp.is-disabled, .btn--whatsapp[disabled] { background: #cdbfa9; cursor: not-allowed; }
.btn--whatsapp.is-disabled:hover, .btn--whatsapp[disabled]:hover { background: #cdbfa9; }
.cart__minnote { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.cart__delivery {
  margin: 0 0 12px; font-size: 13px; font-weight: 600; text-align: center;
  color: var(--wa-green-dark); background: #eaf7ef; border-radius: 8px; padding: 8px 10px;
}
.cart__confirm { text-align: center; }
.cart__confirm-q { margin: 0 0 14px; font-weight: 600; color: var(--brown-deep); }
.cart__confirm .btn--whatsapp { margin-bottom: 2px; }

/* ---- Toast ------------------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown-deep); color: #fff; padding: 12px 22px;
  border-radius: 30px; font-size: 15px; font-weight: 600;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s;
  z-index: 70; box-shadow: var(--shadow);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---- Hero CTA buttons ------------------------------------------------- */
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--outline { background: transparent; border: 2px solid #fff; }
.btn--outline:hover { background: rgba(255,255,255,.15); }

/* ---- Range switcher --------------------------------------------------- */
.rangeswitch {
  display: flex; gap: 6px; max-width: 520px; margin: 0 auto 22px;
  background: #e3d7c4; border-radius: 999px; padding: 5px;
}
.rangeswitch__btn {
  flex: 1; border: none; cursor: pointer; border-radius: 999px;
  padding: 11px 14px; font-family: var(--body); font-weight: 600; font-size: 14px;
  background: transparent; color: var(--brown-deep); transition: background .2s, color .2s;
}
.rangeswitch__btn.is-active { background: var(--brown); color: #fff; }

/* ---- Species accordion ------------------------------------------------ */
.accordion { border: 1px solid #ddceb8; border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: #fff; }
.accordion__head {
  width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: transparent; border: none; padding: 16px 18px;
  font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--brown-deep); text-align: left;
}
.accordion__head:hover { background: #faf6ee; }
.accordion__count {
  margin-left: auto; font-family: var(--body); font-size: 12px; font-weight: 600;
  color: var(--muted); background: #f1ece2; border-radius: 999px; padding: 2px 9px;
}
.accordion__chev { transition: transform .3s; color: var(--leather); font-size: 14px; }
.accordion__head.is-open .accordion__chev { transform: rotate(180deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__inner { overflow: hidden; }
.accordion__inner .product-grid { padding: 4px 16px 18px; }

/* ---- Product min-qty note + empty state ------------------------------- */
.product__min { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--leather-dark); }
.shop__empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---- Cart sections / subtotals ---------------------------------------- */
.cart__section {
  font-family: var(--body); text-transform: uppercase; letter-spacing: 1px;
  font-size: 11px; font-weight: 700; color: var(--leather);
  margin: 14px 0 2px; padding-top: 10px; border-top: 1px solid #eee5d7;
}
.cart-body > .cart__section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.cart__subrow { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 4px; }

/* ---- Larger screens --------------------------------------------------- */
@media (min-width: 600px) {
  .hero { padding: 130px 20px; }
  .hero h1 { font-size: 54px; }
  .hero p { font-size: 22px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .section h2 { font-size: 36px; }
}

/* ---- Accessibility ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 3px solid var(--leather); outline-offset: 2px; }
