/* ===== Mobile overflow fixes ===== */
html, body { overflow-x: clip; max-width: 100%; }
.rich, .rich * { max-width: 100%; overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: anywhere; }
@media (max-width: 991px) { .reveal.left, .reveal.right { transform: translateY(28px); } }

/* ===== Swipeable carousels ===== */
.snap-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; padding: .4rem .2rem 1rem; margin: 0 -.2rem; cursor: grab; }
.snap-track::-webkit-scrollbar { display: none; }
.snap-track > * { scroll-snap-align: start; flex: none; }
.snap-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.snap-track.dragging a, .snap-track.dragging button { pointer-events: none; }
.snap-track:focus-visible { outline: 2px solid var(--bf-green-500); outline-offset: 4px; border-radius: 12px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bf-green-700); background: transparent; color: var(--bf-green-700); display: grid; place-items: center; transition: all .25s; }
.car-btn:hover { background: var(--bf-green-700); color: #fff; transform: scale(1.06); }
.car-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .4rem; }
.car-dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; padding: 0; background: var(--bf-line); transition: width .3s, background .3s; }
.car-dots button.on { width: 26px; background: var(--bf-orange-500); }

/* Reviews */
.review-track > .review { flex: 0 0 calc((100% - 2rem) / 3); display: flex; flex-direction: column; position: relative; margin: 0; transition: transform .35s, box-shadow .35s; }
.review-track > .review:hover { transform: translateY(-6px); box-shadow: var(--bf-shadow); }
.review .q { position: absolute; top: 1rem; right: 1.2rem; font-size: 2rem; color: var(--bf-orange-100); }
.review blockquote { line-height: 1.7; flex: 1; }
@media (max-width: 991px) { .review-track > .review { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 575px) { .review-track > .review { flex-basis: 88%; } }

/* Recipe cards */
.recipe-track > .recipe-card { flex: 0 0 calc((100% - 3rem) / 4); }
@media (max-width: 1199px) { .recipe-track > .recipe-card { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 767px) { .recipe-track > .recipe-card { flex-basis: 72%; } }
.recipe-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3/4; display: block; color: #fff; background: #e57f0c; box-shadow: 0 8px 22px rgba(0,0,0,.1); transition: transform .4s, box-shadow .4s; }
.recipe-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(229, 127, 12, .3); color: #fff; }
.rc-bg { position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, #ffd27a, #f08a1c 55%, #c9650a); }
.recipe-card img { position: absolute; left: 50%; top: 9%; width: 78%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.25)); transition: transform .6s; }
.recipe-card:hover img { transform: translateX(-50%) scale(1.08) rotate(-3deg); }
.rc-play { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--bf-orange-600); display: grid; place-items: center; font-size: .9rem; }
.rc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.2rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; background: linear-gradient(to top, rgba(23, 63, 34, .92), rgba(23, 63, 34, .55) 60%, transparent); }
.rc-body strong { font-family: var(--bf-font-head); font-size: 1.35rem; line-height: 1.15; }
.rc-meta { font-size: .75rem; opacity: .9; }
.rc-cta { font-size: .82rem; font-weight: 600; color: #ffd27a; }
.rc-cta i { transition: transform .25s; }
.recipe-card:hover .rc-cta i { transform: translateX(4px); }

/* Story cards */
.story-track { gap: .9rem; }
.story-track > .story-card { flex: 0 0 calc((100% - 2.7rem) / 4); }
@media (max-width: 991px) { .story-track > .story-card { flex-basis: calc((100% - 1.8rem) / 3); } }
@media (max-width: 575px) { .story-track > .story-card { flex-basis: 46%; } }
.story-card { position: relative; border: 0; padding: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 9/14; background: var(--bf-green-100); color: #fff; text-align: left; }
.story-card img, .story-card video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; display: block; pointer-events: none; }
.story-card:hover img, .story-card:hover video { transform: scale(1.07); }
.story-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 50%); }
.story-ring { position: absolute; inset: 6px; border-radius: 17px; border: 2.5px solid transparent; background: linear-gradient(135deg, #f9b233, #e5405e, #8a3ab9) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none; }
.story-card .play { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--bf-green-900); display: grid; place-items: center; transition: transform .3s; }
.story-card:hover .play { transform: translate(-50%, -50%) scale(1.12); }
.story-card .cap { position: absolute; z-index: 3; left: 1rem; right: 1rem; bottom: .9rem; font-weight: 600; font-size: .9rem; }

/* Story viewer */
.story-viewer { position: fixed; inset: 0; z-index: 2500; background: rgba(8, 14, 9, .94); display: grid; place-items: center; animation: svIn .25s ease; }
.story-viewer[hidden] { display: none; }
@keyframes svIn { from { opacity: 0; } }
.sv-frame { position: relative; width: 100vw; height: 100dvh; background: #000; overflow: hidden; }
@media (min-width: 600px) { .sv-frame { height: min(92dvh, 820px); width: calc(min(92dvh, 820px) * 9 / 16); border-radius: 22px; } }
.sv-media { position: absolute; inset: 0; display: grid; place-items: center; }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: cover; }
.sv-bars { position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; display: block; }
.sv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { position: absolute; z-index: 5; top: 22px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-weight: 600; font-size: .9rem; }
.sv-close { background: rgba(0,0,0,.35); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; position: relative; z-index: 6; }
.sv-nav { position: absolute; z-index: 4; top: 64px; bottom: 0; width: 38%; border: 0; background: transparent; }
.sv-nav.prev { left: 0; }
.sv-nav.next { right: 0; }

/* ===== Mobile menu / cart drawer ===== */
.nav-drawer { width: min(330px, 88vw) !important; background: var(--bf-cream); border: 0; }
.nd-head { background: linear-gradient(135deg, var(--bf-green-900), var(--bf-green-700)); color: #fff; padding: 1.2rem 1.2rem 1.4rem; position: relative; overflow: hidden; }
.nd-head::after { content: ''; position: absolute; right: -40px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(240,138,28,.6), transparent 70%); }
.nd-head .logo { background: #fff; display: inline-block; padding: .4rem .7rem; border-radius: 12px; }
.nd-head .logo img { height: 38px; }
.nd-head .btn-close { filter: invert(1); position: relative; z-index: 2; }
.nd-head p { margin: .8rem 0 0; font-size: .82rem; opacity: .85; position: relative; z-index: 2; }
.nd-links { padding: .8rem; display: grid; gap: .25rem; }
.nd-links a { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; color: var(--bf-ink); font-weight: 500; transition: background .2s, transform .2s; }
.nd-links a i { width: 36px; height: 36px; border-radius: 10px; background: var(--bf-green-100); color: var(--bf-green-700); display: grid; place-items: center; font-size: .95rem; transition: all .2s; }
.nd-links a:hover, .nd-links a.active { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.06); transform: translateX(3px); }
.nd-links a.active { color: var(--bf-green-700); }
.nd-links a.active i { background: var(--bf-green-700); color: #fff; }
.nd-foot { margin-top: auto; padding: 1rem 1.2rem 1.4rem; border-top: 1px dashed var(--bf-line); font-size: .85rem; display: grid; gap: .6rem; }
.nd-foot a { color: var(--bf-ink); }
.nd-foot a.btn-bf { color: #fff; }
#miniCart.offcanvas { width: min(400px, 94vw); background: var(--bf-cream); }
#miniCart .offcanvas-header { background: #fff; border-bottom: 1px solid var(--bf-line); }
#miniCart .cart-line { padding: .9rem 0; }

/* Product images: fit fully inside the card, any aspect ratio */
.p-card .media { aspect-ratio: 1 / 1; display: block; }
.p-card .media img:not([style]) { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; padding: 1.2rem; }
.p-card .media img[style] { position: absolute; inset: 0; }

/* Blog images: never stretched or cropped; blurred copy fills any spare space */
.blog-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bf-green-100); isolation: isolate; }
.blog-media::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover; filter: blur(22px) saturate(1.1); z-index: -1; }
.blog-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.p-card:hover .blog-media img { transform: scale(1.04); }
.blog-hero { aspect-ratio: 16 / 10; border-radius: 22px; box-shadow: var(--bf-shadow); }

/* Platform badges + story viewer extras */
.plat-badge { position: absolute; z-index: 3; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.35); border: 2px solid #fff; }
.plat-youtube { background: #ff0000; }
.plat-instagram { background: linear-gradient(45deg, #f9b233, #e5405e 55%, #8a3ab9); }
.plat-facebook { background: #1877f2; }
.plat-tiktok { background: #111; }
.plat-x { background: #111; }
.story-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 4rem; }
.sv-tools { display: flex; gap: .5rem; position: relative; z-index: 6; }
.sv-title { display: flex; align-items: center; }
.sv-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.sv-ext { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; text-align: center; padding: 2rem; }
.sv-ext > i { font-size: 4.5rem; }
.sv-ext p { font-size: 1.1rem; margin: 0; }
.story-viewer.embed .sv-nav { width: 12%; top: 64px; bottom: 64px; }
.story-viewer.embed .sv-ext ~ .sv-nav { display: none; }

/* ===== Home hero slider ===== */
.hs { position: relative; background: var(--bf-green-100); }
.snap-track.hs-track { padding: 0; margin: 0; gap: 0; cursor: grab; }
.hs-slide { position: relative; flex: 0 0 100%; min-height: clamp(400px, 40vw, 620px); display: flex; align-items: center; overflow: hidden; scroll-snap-stop: always; }
.hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: scale(1.06); transition: transform 7s ease-out; }
.hs-slide.active .hs-img { transform: scale(1); }
.hs-wrap { position: relative; z-index: 2; display: flex; padding-block: 3rem; }
.align-left .hs-wrap { justify-content: flex-start; }
.align-right .hs-wrap { justify-content: flex-end; }
.align-center .hs-wrap { justify-content: center; text-align: center; }
.hs-panel { max-width: 520px; background: rgba(255, 250, 240, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 26px; padding: 2rem 2.2rem; box-shadow: 0 20px 50px rgba(23, 63, 34, .22); border: 1px solid rgba(255, 255, 255, .7); }
.hs-title { font-size: clamp(1.9rem, 4.2vw, 3.2rem); margin: 0 0 1.3rem; }
.hs-panel > * { opacity: 0; transform: translateY(18px); }
.hs-slide.active .hs-panel > * { animation: hsUp .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.hs-slide.active .hs-panel > :nth-child(2) { animation-delay: .12s; }
.hs-slide.active .hs-panel > :nth-child(3) { animation-delay: .24s; }
@keyframes hsUp { to { opacity: 1; transform: none; } }
.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--bf-green-900); box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: all .25s; }
.hs-arrow:hover { background: var(--bf-orange-500); color: #fff; }
.hs-arrow.prev { left: 18px; } .hs-arrow.next { right: 18px; }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5; margin: 0; }
.hs-dots button { background: rgba(255,255,255,.7); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hs-dots button.on { background: var(--bf-orange-500); }
@media (max-width: 767px) {
  .hs-slide { min-height: 440px; align-items: flex-end; }
  .hs-wrap { padding: 0 16px 3.2rem; justify-content: center !important; text-align: center; }
  .hs-panel { padding: 1.3rem 1.2rem; border-radius: 22px; max-width: 100%; width: 100%; }
  .hs-title { margin-bottom: 1rem; }
  .hs-arrow { display: none; }
  .align-right .hs-img { object-position: 20% center; } .align-left .hs-img { object-position: 80% center; }
}
@media (prefers-reduced-motion: reduce) { .hs-img { transition: none; transform: none; } .hs-panel > * { opacity: 1; transform: none; animation: none !important; } }

/* Hero text: plain, no box */
.hs-panel { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.hs-panel .eyebrow { color: #ffd27a; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hs-title { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5); }
.hs-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,30,15,.45), transparent 60%); pointer-events: none; }
.hs-slide.align-right::after { background: linear-gradient(270deg, rgba(10,30,15,.45), transparent 60%); }
.hs-slide.align-center::after { background: rgba(10,30,15,.28); }
@media (max-width: 767px) { .hs-panel { padding: 0; } .hs-slide::after, .hs-slide.align-right::after { background: linear-gradient(0deg, rgba(10,30,15,.7), transparent 65%); } }

/* Desktop: hero + feature strip fill exactly one screen, strip pinned to the bottom */
@media (min-width: 992px) {
  .fold { display: flex; flex-direction: column; height: calc(100dvh - var(--chrome, 104px)); min-height: 520px; max-height: 900px; }
  .fold > .hs, .fold > .hero { flex: 1 1 auto; min-height: 0; }
  .fold > .hs { display: flex; flex-direction: column; }
  .fold .hs-track { flex: 1 1 auto; min-height: 0; }
  .fold .hs-slide { min-height: 0; }
  .fold > .trust { flex: none; box-shadow: 0 -6px 24px rgba(31, 91, 46, .08); position: relative; z-index: 6; }
  .fold .trust-item { padding: .9rem .5rem; }
}

/* Blog / story body typography */
.rich { font-size: 1.05rem; line-height: 1.85; }
.rich h3 { font-size: 1.45rem; margin: 2rem 0 .7rem; padding-left: .8rem; border-left: 4px solid var(--bf-orange-500); }
.rich ul { margin-bottom: 1.2rem; } .rich li { margin-bottom: .4rem; }
.rich b, .rich strong { color: var(--bf-green-900); }

/* ===== Toasts: dark pill, status icon on the left, countdown bar ===== */
.bf-toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem .75rem .8rem; text-align: left; border-radius: 16px; pointer-events: auto; min-width: min(300px, 100%); }
.bf-toast.err { background: #1d2b1f; }
.bf-toast .ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: rgba(255,255,255,.1); }
.bf-toast .tx { line-height: 1.35; }
.bf-toast .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: toastBar linear forwards; }
@keyframes toastBar { to { transform: scaleX(0); } }
.bf-toast.success .ic { color: #5be08a; } .bf-toast.success .bar { background: #5be08a; }
.bf-toast.error .ic { color: #ff7b6b; } .bf-toast.error .bar { background: #ff7b6b; }
.bf-toast.info .ic { color: #6cc3ff; } .bf-toast.info .bar { background: #6cc3ff; }
.bf-toast.warning .ic { color: #ffd166; } .bf-toast.warning .bar { background: #ffd166; }
.bf-toast.out { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
@media (prefers-reduced-motion: reduce) { .bf-toast .bar { animation-duration: 4s !important; } }

/* Notify-me modal */
.nm { border: 0; border-radius: 24px; overflow: hidden; }
.nm-head { background: linear-gradient(130deg, var(--bf-green-900), var(--bf-green-700)); height: 92px; position: relative; display: grid; place-items: center; }
.nm-head .btn-close { position: absolute; top: 14px; right: 14px; }
.nm-ic { width: 62px; height: 62px; border-radius: 50%; background: var(--bf-orange-500); color: #fff; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: -46px; box-shadow: 0 0 0 6px #fff, 0 8px 18px rgba(0,0,0,.2); position: relative; top: 23px; animation: ring 2.4s ease-in-out infinite; transform-origin: top center; }
.nm form { padding-top: 2.6rem !important; text-align: center; }
.nm form label { text-align: left; display: block; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(14deg); } 72% { transform: rotate(-12deg); } 78% { transform: rotate(8deg); } 84% { transform: rotate(-5deg); } }
.nl-form .btn-bf:disabled { opacity: .75; }

/* Product page: coming-soon state + spacing */
.soon-box { display: flex; gap: 1.1rem; align-items: flex-start; background: linear-gradient(135deg, #fff, var(--bf-green-100)); border: 1px solid var(--bf-line); border-radius: 22px; padding: 1.5rem; margin: 1.2rem 0 1.8rem; box-shadow: 0 6px 20px rgba(31,91,46,.06); }
.soon-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--bf-orange-100); color: var(--bf-orange-600); display: grid; place-items: center; font-size: 1.4rem; }
.soon-txt h3 { font-size: 1.5rem; margin: .25rem 0 .5rem; }
.soon-txt p { color: var(--bf-muted); margin-bottom: 1.2rem; }
.pdp-points { margin: 0 0 1.8rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--bf-line); border-radius: 16px; }
.pdp-points li { display: flex; align-items: center; gap: .7rem; }
.pdp-points i { width: 20px; text-align: center; }
.pdp-about { border-top: 1px solid var(--bf-line); padding-top: 1.6rem; }
@media (max-width: 575px) { .soon-box { flex-direction: column; padding: 1.2rem; } }

/* Our Story: photo stays in view while the story scrolls (desktop) */
.story-sticky img { width: 100%; max-height: calc(100dvh - 140px); object-fit: cover; }
@media (min-width: 992px) { .story-sticky { position: sticky; top: 100px; } }

/* Description / story body from the rich editor, shown as the author formatted it */
.rich table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rich table td, .rich table th { border: 1px solid var(--bf-line); padding: .5rem .7rem; vertical-align: top; }
.rich table th { background: var(--bf-green-100); text-align: left; }
.rich h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; } .rich h4 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.rich a { color: var(--bf-orange-600); text-decoration: underline; text-underline-offset: 3px; }
.rich blockquote { border-left: 4px solid var(--bf-orange-500); background: var(--bf-orange-100); padding: .8rem 1.1rem; border-radius: 0 12px 12px 0; margin: 1.2rem 0; }
.rich pre, .rich code { background: var(--bf-green-100); border-radius: 8px; padding: .1rem .4rem; }
.rich ul, .rich ol { padding-left: 1.4rem; } .rich li { margin-bottom: .3rem; }
.rich img { max-width: 100%; height: auto; border-radius: 14px; }
.pdp-rich > :first-child { margin-top: 0; } .pdp-rich p { margin-bottom: .9rem; line-height: 1.8; }

/* header account link */
.acct-link { display: inline-flex; align-items: center; gap: .4rem; } .acct-name { font-size: .82rem; font-weight: 600; color: var(--bf-green-700); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sticky footer: on short pages the footer sits at the bottom of the screen instead of floating up */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
body > .site-footer { flex-shrink: 0; width: 100%; }

/* Performance: skip rendering work for sections below the fold; lighter effects on phones */
@media (max-width: 767.98px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fffaf0; }
  .float-y { animation: none; }
  .hs-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.section ~ .section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.hero-sub { margin: .6rem 0 0; font-family: var(--bf-font-body); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500; color: var(--bf-muted, #5b6b5f); }
.hs-title { font-family: var(--bf-font-head); font-weight: 700; line-height: 1.15; }

/* Product gallery thumbnails: one swipeable row */
#g-thumbs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; padding: 4px 2px; cursor: grab; }
#g-thumbs::-webkit-scrollbar { display: none; }
#g-thumbs img { flex: 0 0 auto; scroll-snap-align: start; -webkit-user-drag: none; user-select: none; }
#g-thumbs.drag { cursor: grabbing; scroll-snap-type: none; }

/* Cart page lines: never overflow, stack neatly on phones */
.cart-line .cl-info { min-width: 0; overflow-wrap: anywhere; }
.cart-line .cl-price { min-width: 80px; }
@media (max-width: 575.98px) {
  .box > .cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info del" "qty qty price"; gap: .6rem .8rem; align-items: center; }
  .box > .cart-line img { grid-area: img; width: 64px; height: 64px; }
  .box > .cart-line .cl-info { grid-area: info; }
  .box > .cart-line .cl-del { grid-area: del; align-self: start; padding: .25rem .4rem; }
  .box > .cart-line .qty { grid-area: qty; justify-self: start; }
  .box > .cart-line .cl-price { grid-area: price; min-width: 0; font-size: 1.1rem; }
}

/* Sign-in page on phones: no sideways overflow, tighter card, readable fields */
main#main { overflow-x: clip; }
.form-control { text-overflow: ellipsis; }
@media (max-width: 767.98px) {
  .lg-wrap { margin: 1rem 0 2rem; border-radius: 20px; min-height: 0; }
  .lg-art.reveal, .lg-form.reveal { transform: none; }
  .lg-art { padding: 1.4rem 1.2rem; }
  .lg-form { padding: 1.4rem 1.1rem; justify-content: flex-start; }
  .lg-tabs button { font-size: .8rem; padding: .55rem .3rem; }
  .lg-form .form-control { font-size: 1rem; }
}

/* ===== Home on phones: picture first, text on a calm green band, compact feature strip ===== */
@media (max-width: 767.98px) {
  .hs { background: var(--bf-green-900); }
  .hs-slide { display: block; min-height: 0; align-items: initial; }
  .hs-slide::after, .hs-slide.align-right::after, .hs-slide.align-center::after { display: none; }
  .hs-img { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 320px; transform: none; transition: none; }
  .hs-wrap { padding: 1.1rem 18px 0.4rem; justify-content: center !important; }
  .hs-panel { width: 100%; }
  .hs-panel .eyebrow { font-size: .72rem; letter-spacing: .16em; }
  .hs-title { font-size: clamp(1.45rem, 6.4vw, 1.9rem); margin: .2rem 0 .9rem; text-shadow: none; }
  .hs-panel .btn-bf { padding: .6rem 1.5rem; }
  .hs-dots { position: static; padding: .6rem 0 1rem; }
  .hs-dots button { box-shadow: none; }

  .trust .row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
  .trust .row > [class*="col"] { width: auto; max-width: none; padding: 0 .25rem; }
  .trust-item { flex-direction: column; text-align: center; gap: .45rem; padding: .9rem .1rem; }
  .trust-item .ico { width: 40px; height: 40px; font-size: 1rem; }
  .trust-item strong { font-size: .78rem; line-height: 1.25; }
  .trust-item span { font-size: .68rem; line-height: 1.3; }

  .section { padding-block: 2.4rem; }
  .section-title { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
  .section-title .script { display: block; font-size: 1.2em !important; line-height: 1.1; }
  .section-sub { font-size: .95rem; }
  .wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
}
