@font-face { font-family: "Baloo 2"; src: url(fonts/baloo2-variable.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-variable.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #1f1a14;
  --cream: #fbf6e6;
  --kraft: #e9dcb6;
  --straw: #f4c343;
  --clover: #79c94f;
  --pasture: #3f7d25;
  --barn: #b3352b;
  --sky: #cfeaf5;
  --soil: #c08a52;
  --line: rgba(31, 26, 20, .14);
  --display: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --body: "Nunito", "Segoe UI", sans-serif;
  --pop: 0 5px 0 var(--ink);
  --pop-sm: 0 3px 0 var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: var(--pasture); font-weight: 700; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--barn); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); font-weight: 800; }
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head p { margin: .35rem 0 0; max-width: 36em; color: #4d4436; }

/* Buttons: chunky, outlined, pressable — the logo's sticker look */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 3px solid var(--ink); border-radius: 14px;
  background: var(--straw); color: var(--ink);
  font: 800 1.05rem/1 var(--display); text-decoration: none; cursor: pointer;
  box-shadow: var(--pop); transform: translateY(0);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.green { background: var(--clover); }
.btn.cream { background: var(--cream); }
.btn.small { min-height: 40px; padding: 0 1rem; font-size: .95rem; border-radius: 12px; box-shadow: var(--pop-sm); }

/* Promo bar */
.promo { background: var(--ink); color: var(--cream); font-size: .9rem; overflow: hidden; }
.promo-track { display: flex; gap: 3rem; width: max-content; padding: .5rem 0; white-space: nowrap; }
.promo-track span::before { content: "✦"; color: var(--straw); margin-right: .75rem; }

/* Store header */
.store-head { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 3px solid var(--ink); }
.store-head .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.5rem; padding-block: .6rem; }
.store-head .brand img { display: block; width: 150px; }
.search { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.search input {
  width: 100%; min-height: 46px; padding: 0 1rem 0 2.75rem;
  border: 3px solid var(--ink); border-radius: 14px; background: #fff;
}
.search svg { position: absolute; left: .9rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.cart-btn { position: relative; background: var(--clover); }
.cart-btn svg { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: -10px; right: -10px; min-width: 26px; height: 26px; padding: 0 6px;
  display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 13px;
  background: var(--barn); color: #fff; font: 800 .8rem/1 var(--display);
}
.cart-count.bump { animation: bump .45s cubic-bezier(.3, 1.8, .5, 1); }
.cat-nav { border-top: 2px solid var(--line); }
.cat-nav .wrap { display: flex; gap: .25rem 1.5rem; padding-block: .45rem; overflow-x: auto; scrollbar-width: none; }
.cat-nav a { color: var(--ink); text-decoration: none; font: 700 1rem/1.4 var(--display); white-space: nowrap; padding: .15rem 0; border-bottom: 3px solid transparent; }
.cat-nav a:hover { border-color: var(--straw); }
.cat-nav a.deal { color: var(--barn); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #e6f4e4 62%, var(--cream) 100%); border-bottom: 3px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; align-items: center; min-height: clamp(520px, 72vh, 680px); padding-block: 2rem; }
.hero-copy { position: relative; z-index: 2; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  font: 700 .9rem/1.4 var(--display); box-shadow: var(--pop-sm);
}
.hero h1 { margin: 1rem 0 0; font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 .swash { display: block; color: var(--pasture); -webkit-text-stroke: 0; }
.hero p.lead { margin: 1rem 0 0; font-size: 1.15rem; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.perks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; margin: 1.75rem 0 0; padding: 0; font-weight: 700; }
.perks li { display: flex; align-items: center; gap: .45rem; }
.perks svg { width: 22px; height: 22px; flex: none; }
.stage { position: relative; height: clamp(380px, 56vh, 560px); }
#farm3d { position: absolute; inset: -6% -10% -6% -6%; width: 116%; height: 112%; display: block; cursor: grab; touch-action: pan-y; }
#farm3d:active { cursor: grabbing; }
.stage .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .fallback img { width: min(380px, 80%); }
.stage.ready .fallback { display: none; }
.stage:not(.ready) .stage-hint, .stage:not(.ready) #farm3d { display: none; }
.stage-debug { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .4rem .6rem; border-radius: 8px; background: var(--ink); color: var(--cream); font-size: .85rem; }
.stage-hint { position: absolute; right: 0; bottom: .25rem; font: 700 .85rem/1 var(--display); color: #4d4436; opacity: .8; }
.price-sticker {
  position: absolute; z-index: 3; left: 4%; top: 8%;
  width: 118px; height: 118px; display: grid; place-content: center; text-align: center;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--barn); color: #fff;
  font: 800 .95rem/1.05 var(--display); transform: rotate(-12deg); box-shadow: var(--pop);
}
.price-sticker b { font-size: 2rem; line-height: 1; }

/* 3D packshots (CSS boxes) */
.pack-stage { perspective: 900px; display: grid; place-items: center; height: 210px; }
.pack {
  --w: 120px; --h: 160px; --d: 46px; --face: var(--kraft); --side: #d6c494; --top: #f1e7c9; --band: var(--barn);
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-32deg);
  transition: transform 1s cubic-bezier(.3, 1.3, .5, 1);
}
.card:hover .pack, .tile:hover .pack, .card:focus-within .pack { transform: rotateX(-14deg) rotateY(328deg); }
.pack > i { position: absolute; display: block; border: 3px solid var(--ink); }
.pack .f, .pack .b { width: var(--w); height: var(--h); background: var(--face); }
.pack .f { transform: translateZ(calc(var(--d) / 2)); overflow: hidden; }
.pack .b { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.pack .r, .pack .l { width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2); background: var(--side); }
.pack .r { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.pack .l { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.pack .t, .pack .u { width: var(--w); height: var(--d); top: calc(50% - var(--d) / 2); background: var(--top); }
.pack .t { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.pack .u { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.pack::after { /* floor shadow */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: calc(var(--d) / -2 - 14px); height: 22px;
  background: radial-gradient(closest-side, rgba(31,26,20,.35), transparent); transform: rotateX(90deg) translateZ(calc(var(--h) / -2)); pointer-events: none;
}
.label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 6px; gap: 4px; }
.label img { width: 70%; }
.label .name { font: 800 .82rem/1.05 var(--display); text-transform: uppercase; }
.label .wt { font: 800 .72rem/1 var(--display); padding: 2px 6px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.label .band { position: absolute; left: 0; right: 0; bottom: 14%; height: 14px; background: var(--band); border-block: 2px solid var(--ink); }
/* sacks: sewn top, softer shading */
.pack.sack .f { border-radius: 10px 10px 16px 16px / 8px 8px 22px 22px; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent 20% 80%, rgba(0,0,0,.08)), repeating-linear-gradient(0deg, rgba(31,26,20,.05) 0 1px, transparent 1px 4px), var(--face); }
.pack.sack .f::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; border-top: 3px dashed rgba(31,26,20,.5); }
.pack.bale { --face: #f0cf6b; --side: #e2bb4f; --top: #f6dc89; }
.pack.bale > i { background-image: repeating-linear-gradient(100deg, rgba(150,100,20,.25) 0 2px, transparent 2px 7px), repeating-linear-gradient(10deg, rgba(255,255,255,.25) 0 1px, transparent 1px 6px); }
.pack.bale .f::before, .pack.bale .f::after { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; background: #8a5a2b; }
.pack.bale .f::before { left: 28%; } .pack.bale .f::after { right: 28%; }
.pack.block { --face: #f4f1ea; --side: #dcd7cb; --top: #fff; }
.pack.box { --face: #d9a86a; --side: #c4904f; --top: #e6bb84; }
.pack.box .f::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: rgba(31,26,20,.12); }
.pack.packet { --face: #fff; --side: #e8e2d2; --top: #fff; }
.pack.roll { --face: #b9c2bf; --side: #9aa5a1; --top: #c9d1ce; }
.pack.roll > i { background-image: linear-gradient(45deg, transparent 46%, rgba(31,26,20,.45) 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, rgba(31,26,20,.45) 46% 54%, transparent 54%); background-size: 16px 16px; }
.pack.post { --face: #4f8a33; --side: #3f7d25; --top: #79c94f; }
.pack.post > i { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 4px, transparent 4px 14px); }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tile {
  position: relative; display: block; padding: 1rem 1rem 1.25rem; text-decoration: none; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--pop); background: var(--bg, #fff);
  transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--ink); }
.tile h3 { font-size: 1.5rem; font-weight: 800; }
.tile p { margin: .15rem 0 0; font-weight: 600; color: #4d4436; }
.tile .pack-stage { height: 190px; }

/* Shop grid */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 40px; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  font: 700 .95rem/1 var(--display); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: var(--pop);
}
.card .pack-stage { background: radial-gradient(120% 90% at 50% 15%, #fff 0, var(--well, #eef6e6) 70%); border-bottom: 3px solid var(--ink); }
.card .info { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem 1rem; flex: 1; }
.card .cat { font: 700 .82rem/1.2 var(--display); color: var(--pasture); }
.card h3 { font-size: 1.22rem; font-weight: 800; }
.card .size { color: #5b5244; font-size: .92rem; }
.card .buy { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.price { font: 800 1.45rem/1 var(--display); }
.price s { font-size: .95rem; color: #8a8070; font-weight: 600; margin-left: .3rem; }
.badge {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: .15rem .6rem;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--barn); color: #fff;
  font: 800 .85rem/1.3 var(--display); transform: rotate(-4deg); box-shadow: var(--pop-sm);
}
.badge.new { background: var(--straw); color: var(--ink); }
.add.added { background: var(--clover); }
.empty { grid-column: 1 / -1; padding: 2rem; text-align: center; border: 3px dashed var(--line); border-radius: 22px; }

/* Delivery band */
.delivery { background: var(--pasture); color: var(--cream); border-block: 3px solid var(--ink); overflow: hidden; padding-bottom: 0; }
.delivery .wrap { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.delivery img { display: block; width: 100%; filter: drop-shadow(0 8px 0 rgba(31,26,20,.35)); }
.delivery h2 { color: var(--straw); }
.delivery p { font-size: 1.1rem; max-width: 34em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.step { padding: .9rem 1rem; border: 3px solid var(--ink); border-radius: 16px; background: var(--cream); color: var(--ink); box-shadow: var(--pop-sm); }
.step b { display: block; font: 800 1.1rem/1.2 var(--display); }
.step span { font-size: .93rem; }
/* Road is CSS so its height never depends on screen width; the rig is a fixed-size SVG driving across it. */
.road {
  position: relative; height: 150px; margin-top: 2rem; overflow: hidden;
  background:
    linear-gradient(var(--ink), var(--ink)) bottom 34px left 0 / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--straw) 0 30px, transparent 30px 56px) bottom 14px left 0 / 100% 4px no-repeat,
    linear-gradient(#8f8a7d, #8f8a7d) bottom 0 left 0 / 100% 34px no-repeat;
}
.hauler { position: absolute; left: 0; bottom: 35px; width: 260px; height: 114px; overflow: visible; transform: translateX(8vw); }
.road .ink { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }

/* Bulletin board */
.cork {
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.09) 0 1px, transparent 2px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.13) 0 1px, transparent 2px) 0 0 / 7px 7px,
    #b98a55;
  border: 10px solid #6b4a2b; border-radius: 14px; box-shadow: var(--pop);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem);
}
.notice { position: relative; background: #fff8e4; padding: 1.6rem 1.1rem 1.1rem; font: 500 1.05rem/1.45 var(--display); box-shadow: 0 10px 16px -10px rgba(31,26,20,.6); transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.notice:nth-child(3n+1) { transform: rotate(-1.6deg); }
.notice:nth-child(3n+2) { transform: rotate(1.2deg); background: #fbf2a9; }
.notice:nth-child(3n) { transform: rotate(-.4deg); background: #e3f1d6; }
.notice:hover { transform: rotate(0) scale(1.04); z-index: 1; }
.notice::before { content: ""; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, var(--barn) 60%); box-shadow: 0 2px 2px rgba(0,0,0,.35); }
.notice strong { display: block; font-size: 1.25rem; font-weight: 800; margin-bottom: .2rem; }
.notice p { margin: 0; }

/* Visit */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; margin-top: 1rem; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 2px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-weight: 800; }
.directions { padding: 1.4rem 1.5rem; border: 3px solid var(--ink); border-radius: 22px; background: var(--kraft); box-shadow: var(--pop); }
.directions h3 { font-size: 1.5rem; font-weight: 800; color: var(--pasture); }
.directions ol { margin: .5rem 0 0; padding-left: 1.25rem; }
.directions li { margin: .3rem 0; }

/* Footer */
footer { background: var(--ink); color: var(--kraft); padding: 3rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot-grid h3 { color: var(--straw); font-size: 1.15rem; margin-bottom: .5rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot-grid a { color: var(--kraft); font-weight: 600; text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand img { width: 170px; background: var(--cream); border-radius: 16px; padding: 8px 12px; }
.foot-brand p { margin: .75rem 0 0; max-width: 24em; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(233, 220, 182, .2); font-size: .9rem; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(31, 26, 20, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--cream); border-left: 3px solid var(--ink);
  transform: translateX(105%); transition: transform .35s cubic-bezier(.3, 1.2, .5, 1);
}
.cart-open .scrim { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 3px solid var(--ink); background: var(--straw); }
.drawer header h2 { font-size: 1.6rem; }
.drawer .lines { flex: 1; overflow: auto; padding: 1rem 1.25rem; display: grid; align-content: start; gap: .75rem; }
.line { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .75rem .9rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.line b { font-family: var(--display); font-size: 1.05rem; }
.line .qty { display: flex; align-items: center; gap: .5rem; }
.line .qty button { width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 9px; background: var(--cream); font-weight: 800; cursor: pointer; }
.drawer footer { padding: 1rem 1.25rem 1.25rem; border-top: 3px solid var(--ink); }
.subtotal { display: flex; justify-content: space-between; font: 800 1.3rem/1 var(--display); margin-bottom: .9rem; }
.drawer .note { margin: .75rem 0 0; font-size: .95rem; min-height: 1.5em; }
.drawer .btn { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 12px; background: var(--cream); cursor: pointer; font-size: 1.3rem; font-weight: 800; }
.flyer { position: fixed; z-index: 60; width: 34px; height: 34px; border: 3px solid var(--ink); border-radius: 8px; background: var(--kraft); pointer-events: none; }

/* Motion */
@keyframes bump { 40% { transform: scale(1.45); } }
@media (prefers-reduced-motion: no-preference) {
  .promo-track { animation: ticker 38s linear infinite; }
  .hero-copy > * { animation: rise-in .7s cubic-bezier(.2, .8, .3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4) { animation-delay: .3s; } .hero-copy > :nth-child(5) { animation-delay: .4s; }
  .price-sticker { animation: pop-in .8s cubic-bezier(.3, 1.6, .5, 1) .8s both, wobble 4s ease-in-out 2s infinite; }
  .tile .pack, .card .pack { animation: float 4s ease-in-out infinite; }
  .tile:nth-child(2) .pack, .card:nth-child(3n+2) .pack { animation-delay: -1.3s; }
  .tile:nth-child(3) .pack, .card:nth-child(3n) .pack { animation-delay: -2.6s; }
  .tile:hover .pack, .card:hover .pack { animation-play-state: paused; }
  .delivery img { animation: rock 4s ease-in-out infinite; transform-origin: 50% 90%; }
  .hauler { animation: haul 16s linear infinite; }
  .road .body { animation: chug .3s ease-in-out infinite alternate; }
  .road .wheel { transform-box: fill-box; transform-origin: center; animation: spin 1.1s linear infinite; }
  .road .puffs circle { fill: #fff; stroke: var(--ink); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: puff 1.6s ease-out infinite; }
  .road .puffs circle:nth-child(2) { animation-delay: .55s; } .road .puffs circle:nth-child(3) { animation-delay: 1.1s; }
  @keyframes ticker { to { transform: translateX(-50%); } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
  @keyframes pop-in { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }
  @keyframes wobble { 50% { transform: rotate(-4deg) scale(1.04); } }
  @keyframes float { 50% { translate: 0 -10px; } }
  @keyframes rock { 50% { transform: rotate(-3deg) translateY(-4px); } }
  @keyframes haul { from { transform: translateX(-280px); } to { transform: translateX(calc(100vw + 20px)); } }
  @keyframes chug { to { transform: translateY(-2px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes puff { 0% { opacity: .9; transform: translate(0, 0) scale(.5); } 100% { opacity: 0; transform: translate(-22px, -26px) scale(1.8); } }
}
.road .puffs circle { opacity: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .stage { height: 360px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .store-head .wrap { grid-template-columns: 1fr auto; }
  .store-head .brand img { width: 120px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .delivery .wrap { grid-template-columns: 1fr; }
  .delivery img { width: min(220px, 60%); margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .price-sticker { width: 96px; height: 96px; font-size: .8rem; }
  .price-sticker b { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .tile { padding: .75rem; }
  .tile h3 { font-size: 1.2rem; }
  .tile .pack-stage { height: 150px; }
  .tile .pack { scale: .75; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* Hero carousel */
.slides { display: grid; }
.slide { grid-area: 1 / 1; }
.slide[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.dots { display: flex; gap: .5rem; margin-top: 1.4rem; }
.dot { width: 16px; height: 16px; padding: 0; border: 3px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; transition: width .3s, background .3s; }
.dot[aria-pressed="true"] { width: 44px; background: var(--straw); }
.cart-label { font-size: 1rem; }
@media (max-width: 480px) { .cart-label { display: none; } .cart-btn { padding: 0 .9rem; } }

/* Bubbles drifting behind the hero */
.bubble { position: absolute; z-index: 0; border-radius: 50%; border: 3px solid rgba(31, 26, 20, .12); pointer-events: none; }
.bubble.b1 { width: 340px; height: 340px; left: -120px; top: 18%; background: rgba(244, 195, 67, .35); }
.bubble.b2 { width: 220px; height: 220px; right: 4%; top: -60px; background: rgba(121, 201, 79, .3); }
.bubble.b3 { width: 140px; height: 140px; left: 42%; bottom: -40px; background: rgba(179, 53, 43, .16); }
.hero .wrap { position: relative; z-index: 1; }

/* Offers */
.offers-band { background: #fff3cf; border-block: 3px solid var(--ink); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.offer {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 1.5rem 1.4rem 1.4rem; border: 3px solid var(--ink); border-radius: 28px;
  background: var(--o-bg); color: var(--o-fg); box-shadow: var(--pop);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.offer:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 11px 0 var(--ink); }
.offer h3 { font-size: 1.8rem; font-weight: 800; }
.offer p { margin: .4rem 0 1.1rem; font-weight: 600; }
.o-amt { display: inline-block; margin-bottom: .6rem; padding: .2rem .8rem; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 800 1.1rem/1.3 var(--display); }
.o-blob { position: absolute; z-index: -1; right: -50px; bottom: -60px; width: 190px; height: 190px; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; background: rgba(255, 255, 255, .25); }
.linklike { border: 0; padding: 0; background: none; color: var(--pasture); font-weight: 800; text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .slide { transition: opacity .5s, transform .6s cubic-bezier(.3, 1.3, .5, 1); }
  .slide[hidden] { transform: translateY(18px) scale(.98); }
  .bubble { animation: bubble 9s ease-in-out infinite alternate; }
  .bubble.b2 { animation-duration: 11s; animation-delay: -4s; }
  .bubble.b3 { animation-duration: 7s; animation-delay: -2s; }
  .o-blob { animation: blob 8s ease-in-out infinite alternate; }
  @keyframes bubble { to { transform: translate(30px, -24px) scale(1.08); } }
  @keyframes blob { to { transform: rotate(40deg) scale(1.15); border-radius: 58% 42% 45% 55% / 40% 60% 40% 60%; } }
}
.card .add { white-space: nowrap; }
.pack.box .label .name, .pack.block .label .name { font-size: .95rem; }

/* Photo catalog */
.card .photo { position: relative; aspect-ratio: 1; overflow: hidden; background: #f3efe4; border-bottom: 3px solid var(--ink); }
.card .photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .3, 1); }
.card:hover .photo img { transform: scale(1.07); }
.card { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 0 var(--ink); }

.tile { padding: 0; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; isolation: isolate; }
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .3, 1); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(31, 26, 20, .82)); }
.tile:hover > img { transform: scale(1.08); }
.tile-text { padding: 1.1rem 1.1rem 1.2rem; color: #fff; }
.tile .tile-text p { color: rgba(255, 255, 255, .88); }
.tile-go { display: inline-block; margin-top: .6rem; padding: .3rem .9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--straw); color: var(--ink); font: 800 .92rem/1.3 var(--display); box-shadow: var(--pop-sm); transition: transform .15s; }
.tile:hover .tile-go { transform: translateY(-2px) scale(1.04); }
@media (max-width: 480px) { .tile { min-height: 220px; } .tile-go { display: none; } }

.credits { margin-top: 2rem; font-size: .82rem; color: rgba(233, 220, 182, .75); }
.credits summary { cursor: pointer; font-weight: 700; }
.credits a { color: inherit; font-weight: 600; }
