/* =========================================================================
   Bee's Honey Store — boutique artisan honey brand
   Mobile-first, warm & natural.
   ========================================================================= */

:root {
  /* Brand palette */
  --amber: #d97706;       /* warm amber  */
  --amber-dark: #b45309;
  --gold: #f59e0b;        /* honey gold  */
  --gold-soft: #fbbf24;
  --cream: #fffbeb;       /* cream white */
  --cream-deep: #fef3c7;
  --brown: #78350f;       /* dark brown  */
  --brown-soft: #92400e;

  --ink: #3f2a14;
  --muted: #8a6d4b;
  --white: #ffffff;
  --border: #f0e0bf;

  --shadow-sm: 0 2px 10px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 10px 30px rgba(120, 53, 15, 0.12);
  --shadow-lg: 0 22px 50px rgba(120, 53, 15, 0.22);

  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 70px;
  --max: 1180px;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must always win, even over flex/grid display rules
   (e.g. .summary-row, .checkout-success). Without this, hidden elements such
   as the zero-discount row or the post-order success view stay visible. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  /* Clip horizontal overflow at the initial containing block so off-canvas
     fixed elements (cart drawer) can't create a horizontal scrollbar.
     `clip` (unlike hidden) does not break the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Guard against accidental horizontal overflow without breaking the
     sticky header (clip, unlike hidden, doesn't create a scroll container). */
  overflow-x: clip;
}
img, svg, video { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; }

a { color: var(--amber-dark); text-decoration: none; }

.container { width: min(var(--max), 92%); margin-inline: auto; }

/* ── Decorative honey drip ────────────────────────────────────────────── */
.honey-drip {
  position: relative;
  z-index: 1;
  line-height: 0;
  filter: drop-shadow(0 4px 4px rgba(180, 83, 9, 0.25));
}
.honey-drip svg { width: 100%; height: 46px; display: block; }
.honey-drip path { fill: var(--gold); }
.honey-drip .drop {
  fill: var(--gold);
  transform-origin: center top;
  animation: drip 4.5s ease-in-out infinite;
}
.honey-drip .drop-2 { animation-delay: 1.4s; }
.honey-drip .drop-3 { animation-delay: 2.8s; }

@keyframes drip {
  0%, 55% { transform: translateY(0) scaleY(0.7); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateY(26px) scaleY(1.25); opacity: 0; }
}

/* ── Sticky navigation ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
  background: rgba(255, 251, 235, 0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brown);
}
.brand em { color: var(--amber); font-style: italic; }
.brand-logo {
  display: block;
  height: 55px;
  width: auto;
  object-fit: contain;
}
.brand-bee { font-size: 1.4rem; animation: buzz 4s ease-in-out infinite; }
@keyframes buzz {
  0%, 92%, 100% { transform: rotate(0); }
  94% { transform: rotate(-12deg); }
  96% { transform: rotate(12deg); }
  98% { transform: rotate(-8deg); }
}

.nav-links { display: none; gap: 30px; }
.nav-links a {
  position: relative;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--brown);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cart-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cart-icon { width: 22px; height: 22px; fill: var(--brown); }
.cart-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  background: var(--amber);
  border-radius: 999px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(217, 119, 6, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--amber);
}
.btn-outline:hover { background: var(--amber); color: var(--white); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--cream-deep), transparent 60%),
    linear-gradient(165deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding: clamp(60px, 12vw, 130px) 0 clamp(70px, 14vw, 150px);
  text-align: center;
}
/* Subtle honeycomb pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23f59e0b' stroke-width='2' stroke-opacity='0.25'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3Cpath d='M28 66 L56 82 L56 100 M28 66 L0 82 L0 100'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 20%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 80% at 50% 20%, #000 35%, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--amber-dark);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  color: var(--brown);
  letter-spacing: -0.01em;
}
.hero-subtitle {
  max-width: 36ch;
  margin: 20px auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--brown-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--amber);
  margin: 0 0 10px;
}
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); color: var(--brown); font-weight: 700; }
.section-lede { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ── Shop toolbar: filter pills + search ──────────────────────────────── */
.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pill.is-active {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}
.search-box { position: relative; }
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
}
.search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

/* ── Product grid + cards ─────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  /* Isolate each card's layout/style work from the rest of the grid. */
  contain: layout style;
  will-change: transform; /* animated on hover (transform only) */
}
.product-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-lg); }
/* 16:9 product image */
.product-card .thumb-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-deep); }
/* Amber skeleton placeholder shimmer until the image has loaded (.loaded). */
.product-card .thumb-wrap:not(.loaded)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #fde9b8 30%, #fff3cf 50%, #fde9b8 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
.product-card .thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative; z-index: 1;
  /* Fade in once loaded, but the image is never hidden if the load event is
     missed — it simply paints over the skeleton. Prevents stuck-blank images. */
  animation: imgfade 0.4s ease;
  transition: transform 0.4s ease;
  will-change: transform;
}
@keyframes imgfade { from { opacity: 0; } to { opacity: 1; } }
.product-card:hover .thumb-img { transform: scale(1.06); }
.product-card .thumb {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
}
.product-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 1.2rem; color: var(--brown); }
.product-card .desc { font-size: 0.9rem; color: var(--muted); }
/* Truncate the short description to two lines */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.product-card .weight {
  font-size: 0.78rem; font-weight: 600; color: var(--brown);
  background: var(--cream-deep); border-radius: 999px; padding: 3px 10px;
}
.product-card .stock { font-size: 0.78rem; font-weight: 600; }
.product-card .stock.in { color: #15803d; }
.product-card .stock.low { color: var(--amber-dark); }
.product-card .stock.out { color: #b91c1c; }
.product-card .price-row { display: flex; align-items: baseline; gap: 10px; }
.product-card .price { font-weight: 700; font-size: 1.25rem; color: var(--amber-dark); font-family: var(--font-head); }
.product-card .compare { font-size: 0.95rem; color: var(--muted); text-decoration: line-through; }
.product-card .add-btn { width: 100%; margin-top: 6px; }

/* Loading skeletons */
.skeleton { pointer-events: none; }
.skel, .skel-line {
  background: linear-gradient(100deg, var(--cream-deep) 30%, #fff7e0 50%, var(--cream-deep) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 8px;
}
.skel { width: 100%; aspect-ratio: 16 / 9; }
.skel-line { height: 12px; margin: 10px 0; }
.skel-line.tall { height: 38px; border-radius: 999px; margin-top: 16px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w70 { width: 70%; } .w90 { width: 90%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120%);
  z-index: 90;
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.35s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Ribbon-style featured / sale tags */
.tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.tag-featured { background: linear-gradient(135deg, var(--gold), var(--amber)); }
.tag-sale { background: var(--brown); left: auto; right: 14px; }
.out-of-stock { color: var(--brown); font-weight: 700; font-size: 0.85rem; }

/* Optional hexagonal decorative badge */
.hex {
  width: 46px; height: 52px;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--white);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-size: 1.4rem;
}

/* ── About ────────────────────────────────────────────────────────────── */
.section-about { background: linear-gradient(180deg, var(--cream), var(--cream-deep)); }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy p { color: var(--brown-soft); }
.about-copy .btn { margin-top: 10px; }
.about-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.badge-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.badge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.badge-card span { font-size: 1.8rem; }
.badge-card strong { display: block; margin: 8px 0 4px; color: var(--brown); }
.badge-card small { color: var(--muted); }

/* ── Cart drawer & dialog ─────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(400px, 92%);
  background: var(--cream);
  box-shadow: -10px 0 40px rgba(120, 53, 15, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 70;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 1.3rem; color: var(--brown); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cart-line .qty { display: flex; align-items: center; gap: 8px; }
.cart-line .qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); cursor: pointer; font-weight: 700; color: var(--amber-dark); }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.cart-total { font-size: 1.1rem; color: var(--brown); }
.cart-total strong { font-family: var(--font-head); color: var(--amber-dark); }
.icon-button { border: none; background: none; font-size: 1.2rem; cursor: pointer; color: var(--brown); }
.cart-overlay { position: fixed; inset: 0; background: rgba(60, 35, 10, 0.4); backdrop-filter: blur(2px); z-index: 60; }

.checkout-dialog { border: none; border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow-lg); width: min(460px, 92vw); max-width: 92vw; background: var(--cream); }
.checkout-dialog::backdrop { background: rgba(60, 35, 10, 0.45); backdrop-filter: blur(3px); }
.checkout-dialog form { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.checkout-dialog h3 { font-size: 1.5rem; color: var(--brown); }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 0.9rem; color: var(--brown); }
input, textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
textarea { min-height: 80px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.form-error { color: #b91c1c; font-size: 0.9rem; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; }
.loading { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 30px; }

/* ── Cart line items, empty state & subtotal ──────────────────────────── */
.cart-thumb {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-deep);
  display: grid; place-items: center;
  font-size: 1.5rem;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; color: var(--brown); font-size: 0.95rem; }
.cart-line-price { color: var(--amber-dark); font-weight: 600; font-size: 0.88rem; }
.cart-remove { border: none; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; align-self: flex-start; line-height: 1; }
.cart-remove:hover { color: #b91c1c; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cart-empty-icon { font-size: 2.6rem; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; color: var(--brown); }
.cart-subtotal strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--amber-dark); }
#checkout-button { width: 100%; }

/* ── Checkout dialog: layout, summary, spinner, success ───────────────── */
.dialog-close { position: absolute; top: 14px; right: 16px; font-size: 1.1rem; }
.field-grid { display: grid; gap: 14px; }
.order-summary { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.order-summary h4 { margin: 0 0 10px; color: var(--brown); font-family: var(--font-head); }
.summary-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--brown-soft); }
.summary-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-weight: 600; color: var(--brown); }
.summary-total strong { font-family: var(--font-head); color: var(--amber-dark); }
#place-order { min-width: 150px; }

/* Coupon entry + checkout breakdown */
.coupon-row { display: flex; gap: 8px; margin-top: 14px; }
.coupon-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  text-transform: uppercase;
}
.coupon-row input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.coupon-row .btn { padding: 9px 16px; }
.coupon-feedback { margin: 8px 0 0; font-size: 0.85rem; }
.coupon-feedback.ok { color: #166534; }
.coupon-feedback.error { color: #b91c1c; }
.summary-breakdown { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--brown-soft); }
.summary-row .muted { color: var(--brown-soft); opacity: 0.75; font-size: 0.85em; }
#summary-discount { color: #166534; font-weight: 600; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-success { padding: 40px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.checkout-success h3 { font-size: 1.6rem; color: var(--brown); }
.checkout-success p { color: var(--brown-soft); margin: 0; }
.success-mark {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--white);
  font-size: 2rem; font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.4);
}

/* ── Why Bee's? ───────────────────────────────────────────────────────── */
.section-why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  background: var(--cream-deep);
  border-radius: 50%;
}
.why-card h3 { font-size: 1.15rem; color: var(--brown); margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--brown); color: var(--cream-deep); padding: 54px 0 24px; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand em { color: var(--gold-soft); }
.site-footer a { color: var(--cream-deep); font-weight: 500; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer-brand { max-width: 340px; }
.footer-tagline { margin: 14px 0 18px; font-size: 0.95rem; opacity: 0.85; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-head); color: var(--gold-soft); margin: 0 0 6px; font-size: 1.05rem; }
.footer-col p { margin: 0; opacity: 0.85; }
.social { display: flex; gap: 12px; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 251, 235, 0.25);
  border-radius: 50%;
  color: var(--cream);
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--brown); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 251, 235, 0.15); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.9rem; opacity: 0.75; }

/* ── Navigation actions, hamburger & mobile menu ──────────────────────── */
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; /* shown ≤768px */
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.site-header.nav-open .hamburger { background: transparent; }
.site-header.nav-open .hamburger::before { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; background: rgba(60, 35, 10, 0.4); z-index: 40; }

/* Sticky mobile cart bar (only visible on small screens with items) */
.mobile-cart-bar {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 45;
  align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.45);
  cursor: pointer;
  touch-action: manipulation;
}
.mobile-cart-count {
  background: #fff; color: var(--amber-dark);
  border-radius: 999px; padding: 1px 9px; font-size: 0.85rem;
}

/* Fast taps everywhere, comfortable hit areas on touch controls. */
.btn, .pill, .cart-button, .nav-toggle, .icon-button, .add-btn, button {
  touch-action: manipulation;
}

/* ── Responsive ───────────────────────────────────────────────────────────
   Breakpoints: mobile ≤480 · tablet ≤768 · desktop ≥1024            */

/* Tablet & up: 2-column product/why grids, side-by-side form fields. */
@media (min-width: 481px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .shop-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .search-box { min-width: 240px; }
}

/* Desktop nav (≥769): horizontal links, no hamburger / mobile bar. */
@media (min-width: 769px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .about-grid { grid-template-columns: 1.1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Desktop: 3-column grids. */
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tablet and below (≤768px): hamburger menu, scrolling pills ──────── */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  /* Slide-down full-width menu panel under the header. */
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .site-header.nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a {
    width: 100%;
    padding: 16px 22px;
    min-height: 44px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }

  /* Category filter pills scroll horizontally instead of wrapping. */
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; min-height: 40px; }

  /* Comfortable tap targets + no iOS zoom on focus (font ≥16px). */
  .btn { min-height: 44px; }
  input, select, textarea, .input, .search-box input { font-size: 16px; }

  /* Show the sticky cart bar once there's something in the cart. */
  body.has-cart-items .mobile-cart-bar { display: flex; }
  body.has-cart-items { padding-bottom: 84px; } /* clear the fixed bar */

  /* Footer stacks. */
  .footer-grid { grid-template-columns: 1fr; }

  /* Checkout becomes a full-screen, scrollable sheet that always fills the
     viewport — `inset:0; margin:0` overrides the browser's modal centering so
     it can never overflow / clip on tablets & foldables. */
  .checkout-dialog {
    inset: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .checkout-dialog form {
    min-height: 100dvh;
    max-height: none;
    overflow-y: auto;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }
  .checkout-success { min-height: 100dvh; justify-content: center; }
}

/* ── Mobile (≤480px) ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }

  /* Tighter hero. */
  .hero { padding: 48px 0 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  /* Cart drawer goes full-width. */
  .cart-drawer { width: 100vw; }

  /* Stack the name / email / phone fields on small phones. */
  .field-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
