/*
 * Wheel Brand: site-wide styles
 * Loaded on every page. Page-only styles live in css/pages/.
 */

/* ======================================================================
   Base styles: colours, typography, header, footer, cards and buttons
   ====================================================================== */
body {
  background-color: #FDFBF7;
  color: #4A2C11;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

/* Infinite Seamless Marquee Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Subtle Floating Animation for Hero Badges */
@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-slow {
  animation: gentleFloat 4.5s ease-in-out infinite;
}

.float-delayed {
  animation: gentleFloat 5.2s ease-in-out 1.4s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #FAF4E6;
}

::-webkit-scrollbar-thumb {
  background: #D4B483;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4A2C11;
}

/* Hide scrollbar for horizontal category strips on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Wheel product-pack presentation */
#product-grid article .aspect-\[4\/3\] {
  background: linear-gradient(145deg,#fffdf8,#f5ead4);
}

#product-grid article img {
  object-fit: contain !important;
  padding: 12px;
}

#product-grid article {
  transition: transform .28s ease, box-shadow .28s ease;
}

#product-grid article:hover {
  transform: translateY(-4px);
}

#main-header img {
  max-height: 58px;
}

@media (max-width: 640px) {
  #main-header img {
    max-width: 154px;
    max-height: 48px;
  }
}

/* Typography: titles in Playfair Display, all body copy and small text in Plus Jakarta Sans (easier to read) */
html, body, body * {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
}

:is(h1, h2, h3, h4, h5, h6, .font-serif, .ab-title, .products-page-title, .ab-quote p, .ab-stats b, .ab-hero-seal b,
    .ab-media-badge b, .ab-step-no, .ab-avatar, .ab-quote-avatar),
:is(h1, h2, h3, h4, h5, h6, .font-serif, .ab-title, .products-page-title, .ab-quote p) * {
  font-family: 'Playfair Display', Georgia, serif !important;
}

/* Product category navigation: never crop labels */
#category-tabs {
  flex-wrap: wrap;
  overflow: visible;
  min-width: 0;
}

#category-tabs .filter-tab {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  #category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* Recipe modal: scrollbar stays within the rounded dialog and is visually hidden */
#recipe-modal > div {
  max-height: 90vh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
}

#recipe-modal-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#recipe-modal-content::-webkit-scrollbar {
  display: none;
}

/* Product cards: artwork fills the full top panel, without a nested white frame */
#product-grid .product-range-card {
  background: #fbd72e;
  border-color: rgba(132, 91, 20, .16);
  padding: 0 !important;
}

#product-grid .product-range-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border-radius: 1.35rem 1.35rem 0 0;
}

#product-grid .product-range-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: cover !important;
  border-radius: 0;
}

/* Product cards: clean white surface with a soft hover shadow */
#product-grid .product-range-card {
  background: #ffffff !important;
  border-color: rgba(92, 61, 30, .12);
  box-shadow: 0 2px 10px rgba(74, 44, 17, .045);
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}

#product-grid .product-range-card:hover {
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(74, 44, 17, .16);
  border-color: rgba(130, 91, 37, .22);
  transform: translateY(-4px);
}

/* New full-width Wheel hero banner */
.wheel-hero {
  min-height: clamp(430px, 33.3vw, 650px);
  background: #f7e9d6;
  isolation: isolate;
}

.wheel-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.wheel-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,235,216,0) 0%, rgba(248,235,216,0) 48%, rgba(250,240,225,.22) 62%, rgba(250,240,225,.78) 76%, rgba(250,240,225,.92) 100%);
}

.wheel-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.wheel-hero-copy {
  position: relative;
  z-index: 1;
  width: min(43%, 610px);
  margin-left: auto;
  margin-right: clamp(28px, 5.5vw, 110px);
  min-height: clamp(430px, 33.3vw, 650px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 52px 0;
  color: #482b18;
}

.wheel-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #77502d;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 700;
}

.wheel-hero-eyebrow span {
  width: 26px;
  height: 2px;
  background: #a36c24;
  display: inline-block;
}

.wheel-hero-copy h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(38px, 4.1vw, 68px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
  color: #452817;
}

.wheel-hero-copy h1 em {
  color: #8b4a1e;
  font-style: italic;
}

.wheel-hero-copy p {
  max-width: 490px;
  margin: 22px 0 0;
  color: #654b35;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.8;
}

.wheel-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.wheel-hero-primary, .wheel-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wheel-hero-primary {
  color: #fff;
  background: #75431f;
  box-shadow: 0 8px 22px rgba(82, 48, 22, .18);
}

.wheel-hero-primary:hover {
  background: #593217;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(82, 48, 22, .24);
}

.wheel-hero-secondary {
  color: #694323;
  border: 1px solid rgba(105,67,35,.3);
  background: rgba(255,250,242,.6);
}

.wheel-hero-secondary:hover {
  background: #fffaf2;
  transform: translateY(-2px);
}

.wheel-hero-bottom-note {
  position: absolute;
  bottom: 17px;
  right: 4.5%;
  color: rgba(92,61,37,.56);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
}

@media (max-width: 900px) {
  .wheel-hero {
    min-height: 0;
    padding-bottom: 0;
    background: #f8eddd;
  }
  .wheel-hero-image {
    position: relative;
    inset: auto;
    height: clamp(235px, 42vw, 390px);
    z-index: 0;
  }
  .wheel-hero-image::after {
    background: linear-gradient(0deg, rgba(248,237,221,.08), transparent 40%);
  }
  .wheel-hero-image img {
    object-position: 18% center;
  }
  .wheel-hero-copy {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 34px 7vw 42px;
    background: #f8eddd;
  }
  .wheel-hero-copy h1 {
    font-size: clamp(38px, 7vw, 54px);
  }
  .wheel-hero-copy p {
    max-width: 650px;
  }
  .wheel-hero-bottom-note {
    display: none;
  }
}

@media (max-width: 480px) {
  .wheel-hero-image {
    height: 220px;
  }
  .wheel-hero-copy {
    padding: 28px 22px 34px;
  }
  .wheel-hero-eyebrow {
    font-size: 9px;
    margin-bottom: 14px;
  }
  .wheel-hero-copy h1 {
    font-size: 38px;
  }
  .wheel-hero-actions {
    margin-top: 22px;
    gap: 9px;
  }
  .wheel-hero-primary, .wheel-hero-secondary {
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* Hero artwork update and transparent overlay navigation */
html {
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
}

.wheel-overlay-topbar {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 61;
  min-height: 30px;
  padding: 6px 16px !important;
  color: #5b351c !important;
  background: rgba(248, 237, 220, .12) !important;
  border: 0 !important;
  text-shadow: 0 1px 8px rgba(255,255,255,.35);
  font-size: 11px !important;
}

.wheel-overlay-header {
  position: absolute !important;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 60;
  width: 100%;
  background: rgba(248, 237, 220, .10) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background .25s ease, box-shadow .25s ease;
}

.wheel-overlay-header > div {
  max-width: 1440px;
}

.wheel-overlay-header nav a,
.wheel-overlay-header button,
.wheel-overlay-header .mobile-menu-button {
  color: #4b2b17 !important;
  text-shadow: 0 1px 8px rgba(255,255,255,.35);
}

.wheel-overlay-header nav a:hover {
  color: #8b4a1e !important;
}

.wheel-overlay-header img {
  filter: drop-shadow(0 1px 3px rgba(255,255,255,.22));
}

.wheel-hero {
  min-height: clamp(540px, 57vw, 790px) !important;
  padding-top: 30px;
  background: #f2e3cf !important;
}

.wheel-hero-image {
  inset: 0 !important;
}

.wheel-hero-image::after {
  background: linear-gradient(90deg, rgba(248,237,220,0) 0%, rgba(248,237,220,0) 55%, rgba(248,237,220,.08) 70%, rgba(248,237,220,.20) 100%) !important;
}

.wheel-hero-image img {
  object-fit: cover !important;
  object-position: center center !important;
}

.wheel-hero-copy {
  width: min(39%, 560px) !important;
  min-height: clamp(540px, 57vw, 790px) !important;
  margin-right: clamp(34px, 5vw, 100px) !important;
  padding-top: clamp(130px, 13vw, 205px) !important;
  justify-content: flex-start !important;
}

.wheel-hero-copy h1 {
  font-size: clamp(36px, 3.6vw, 60px) !important;
}

.wheel-hero-copy p {
  max-width: 440px !important;
}

.wheel-hero-bottom-note {
  display: none !important;
}

@media (max-width: 900px) {
  .wheel-overlay-topbar {
    position: absolute !important;
    font-size: 9px !important;
    min-height: 26px;
    padding: 5px 10px !important;
  }
  .wheel-overlay-header {
    top: 26px;
    background: rgba(248,237,220,.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .wheel-hero {
    min-height: 0 !important;
    padding-top: 0;
  }
  .wheel-hero-image {
    position: relative !important;
    height: clamp(330px, 58vw, 500px) !important;
    inset: auto !important;
  }
  .wheel-hero-image::after {
    background: linear-gradient(0deg, rgba(248,237,220,.06), transparent 35%) !important;
  }
  .wheel-hero-image img {
    object-position: center center !important;
  }
  .wheel-hero-copy {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 34px 7vw 42px !important;
    justify-content: center !important;
    background: #f8eddd;
  }
}

@media (max-width: 480px) {
  .wheel-overlay-header {
    top: 26px;
  }
  .wheel-hero-image {
    height: 280px !important;
  }
  .wheel-hero-copy {
    padding: 26px 22px 34px !important;
  }
}

/* Floating glass navigation: rounded, translucent and sticky */
#main-header.wheel-overlay-header {
  position: sticky !important;
  top: 12px !important;
  left: auto !important;
  right: auto !important;
  z-index: 100 !important;
  width: min(calc(100% - 48px), 1360px) !important;
  margin: 0 auto -92px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#main-header.wheel-overlay-header > div {
  max-width: none !important;
  padding-left: clamp(14px, 2.2vw, 30px) !important;
  padding-right: clamp(14px, 2.2vw, 30px) !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 248, .80) !important;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  box-shadow: 0 10px 32px rgba(65, 42, 23, .12), 0 2px 8px rgba(65, 42, 23, .05), inset 0 1px 0 rgba(255,255,255,.82) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

#main-header.wheel-overlay-header nav a,
#main-header.wheel-overlay-header button,
#main-header.wheel-overlay-header .mobile-menu-button {
  color: #4b2b17 !important;
  text-shadow: none !important;
}

#main-header.wheel-overlay-header img {
  filter: none !important;
}

#main-header.wheel-overlay-header > div > div {
  min-height: 70px !important;
  height: 70px !important;
}

.wheel-overlay-topbar {
  z-index: 101 !important;
  pointer-events: none;
}

@media (max-width: 900px) {
  #main-header.wheel-overlay-header {
    top: 8px !important;
    width: calc(100% - 24px) !important;
    margin: 0 auto -78px !important;
  }
  #main-header.wheel-overlay-header > div {
    border-radius: 17px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    background: rgba(255,253,248,.88) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  }
  #main-header.wheel-overlay-header > div > div {
    min-height: 62px !important;
    height: 62px !important;
  }
}

@media (max-width: 480px) {
  #main-header.wheel-overlay-header {
    width: calc(100% - 18px) !important;
    margin-bottom: -72px !important;
  }
  #main-header.wheel-overlay-header > div {
    border-radius: 15px !important;
  }
}

/* Final requested refinements: consistent dark-red actions, compact product filters,
   and reliable recipe visibility. */
.wheel-hero-primary, .wheel-hero-primary:hover {
  background: #7F1D1D !important;
}

.wheel-hero-primary {
  box-shadow: 0 8px 22px rgba(127,29,29,.20) !important;
}

.wheel-hero-primary:hover {
  background: #991B1B !important;
}

button.bg-herb,
a.bg-herb,
button[class*="bg-green"],
a[class*="bg-green"] {
  background-color: #7F1D1D !important;
  border-color: #7F1D1D !important;
  color: #fff !important;
}

button.bg-herb:hover,
a.bg-herb:hover,
button[class*="bg-green"]:hover,
a[class*="bg-green"]:hover {
  background-color: #991B1B !important;
}

#category-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap;
  scrollbar-width: none;
  padding-bottom: 8px;
}

#category-tabs::-webkit-scrollbar {
  display: none;
}

#category-tabs .filter-tab {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  padding: 9px 14px !important;
}

@media (min-width: 1024px) {
  #category-tabs {
    overflow-x: visible !important;
    gap: 8px !important;
  }
  #category-tabs .filter-tab {
    font-size: 12px !important;
    padding: 9px 15px !important;
  }
}

#recipe-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

#recipe-category-tabs .recipe-tab {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 12px !important;
}

/* Hero entrance: reveal copy word-by-word, then bring in the calls to action */
@keyframes wheelHeroWordIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes wheelHeroButtonIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.wheel-hero-delicious {
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

.wheel-hero-word {
  display: inline-block;
  opacity: 0;
  animation: wheelHeroWordIn .62s cubic-bezier(.2,.72,.25,1) forwards;
  animation-delay: var(--wheel-word-delay, 0ms);
  will-change: transform, opacity, filter;
}

.wheel-hero-eyebrow.wheel-hero-reveal {
  opacity: 0;
  animation: wheelHeroWordIn .55s ease-out .08s forwards;
}

.wheel-hero-actions.wheel-hero-reveal .wheel-hero-primary,
.wheel-hero-actions.wheel-hero-reveal .wheel-hero-secondary {
  opacity: 0;
  animation: wheelHeroButtonIn .62s cubic-bezier(.2,.72,.25,1) forwards;
  animation-delay: var(--wheel-button-delay, 0ms);
  will-change: transform, opacity;
}

.wheel-hero-actions.wheel-hero-reveal .wheel-hero-secondary {
  --wheel-button-delay: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  .wheel-hero-word,
.wheel-hero-eyebrow.wheel-hero-reveal,
.wheel-hero-actions.wheel-hero-reveal .wheel-hero-primary,
.wheel-hero-actions.wheel-hero-reveal .wheel-hero-secondary {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Product cards enter softly as they scroll into view, with a staggered sequence. */
#product-grid .product-range-card.product-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.985);
  transition: opacity .65s ease, transform .7s cubic-bezier(.2,.75,.25,1), box-shadow .28s ease, border-color .28s ease;
  transition-delay: var(--product-reveal-delay, 0ms), var(--product-reveal-delay, 0ms), 0ms, 0ms;
  will-change: opacity, transform;
}

#product-grid .product-range-card.product-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

#product-grid .product-range-card .product-range-image img {
  transition: transform .8s cubic-bezier(.2,.75,.25,1);
}

#product-grid .product-range-card:hover .product-range-image img {
  transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  #product-grid .product-range-card.product-reveal,
#product-grid .product-range-card .product-range-image img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Whole-page scroll reveal, matching the hero entrance: each block rises gently and sharpens
   from a soft blur as it scrolls into view; blocks entering together are staggered in reading order.
   Uses the individual `translate` property so it never fights an element's own transform/hover. */
@keyframes wheelPageReveal {
  from {
    opacity: 0;
    translate: 0 24px;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

.page-scroll-reveal:not(.page-is-visible) {
  opacity: 0;
}

.page-scroll-reveal.page-is-visible {
  animation: wheelPageReveal .72s cubic-bezier(.2,.72,.25,1) backwards;
  animation-delay: var(--page-reveal-delay, 0ms);
}

.wheel-overlay-topbar, header {
  animation: wheelHeroWordIn .7s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .page-scroll-reveal,
.page-scroll-reveal.page-is-visible,
.wheel-overlay-topbar,
header {
    opacity: 1 !important;
    translate: none !important;
    filter: none !important;
    animation: none !important;
  }
}


/* ======================================================================
   Base styles: colours, typography, header, footer, cards and buttons
   ====================================================================== */
/* Keep the original kitchen hero intact; place the separate animated pouches on its tabletop. */
.wheel-hero {
  min-height: clamp(540px, 57vw, 790px) !important;
  background: #f2e3cf !important;
  overflow: visible !important;
}

.wheel-hero-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

.wheel-hero-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.wheel-hero-image::after {
  content: none !important;
}

.wheel-pouch-stage {
  position: absolute !important;
  z-index: 2 !important;
  left: 10.5% !important;
  top: 55% !important;
  width: 49% !important;
  height: 34% !important;
  display: grid !important;
  grid-template-columns: repeat(6,minmax(0,1fr)) !important;
  grid-template-rows: minmax(0,1fr) !important;
  gap: clamp(2px,.5vw,9px) !important;
  align-items: end !important;
  justify-items: center !important;
  pointer-events: none !important;
}

.wheel-pouch-slot {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.wheel-pouch-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.wheel-hero-copy {
  position: relative !important;
  z-index: 3 !important;
}

@media(max-width:900px) {
  .wheel-hero {
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
  .wheel-hero-image {
    position: relative !important;
    inset: auto !important;
    height: clamp(280px,58vw,480px) !important;
  }
  .wheel-pouch-stage {
    position: absolute !important;
    left: 4% !important;
    top: clamp(205px,43vw,365px) !important;
    width: 60% !important;
    height: clamp(115px,24vw,190px) !important;
    grid-template-columns: repeat(6,minmax(0,1fr)) !important;
    gap: 2px !important;
  }
  .wheel-hero-copy {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 34px 7vw 42px !important;
  }
}

@media(max-width:520px) {
  .wheel-hero-image {
    height: 270px !important;
  }
  .wheel-pouch-stage {
    left: 2% !important;
    top: 205px !important;
    width: 68% !important;
    height: 105px !important;
  }
}

/* Hero range lineup and scroll-linked pouch-to-product animation */
.wheel-hero {
  position: relative;
  min-height: min(900px, 92vh) !important;
  overflow: visible !important;
  background: linear-gradient(135deg,#f8ead7 0%,#f2dfc5 52%,#ead0ae 100%) !important;
}

.wheel-pouch-backdrop {
  display: none !important;
}

.wheel-pouch-stage {
  position: absolute;
  z-index: 3;
  left: 3.5%;
  top: clamp(105px,13vh,150px);
  width: 62%;
  height: calc(100% - 170px);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-template-rows: repeat(2,minmax(0,1fr));
  gap: 12px 18px;
  align-items: center;
  justify-items: center;
  pointer-events: none;
}

.wheel-pouch-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-pouch-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 15px rgba(54,31,12,.20));
}

.wheel-hero-copy {
  width: min(32%,470px) !important;
  margin-right: 3.5% !important;
  min-height: inherit !important;
  padding-top: clamp(110px,12vh,170px) !important;
}

.wheel-pouch-flight-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.wheel-pouch-flight {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(40,25,12,.18));
  will-change: transform,left,top,width,height;
}

#product-grid [data-product-pack-target] img {
  opacity: 1 !important;
}

#product-grid .product-range-card.pack-landed [data-product-pack-target] img {
  opacity: 1;
}

@media(max-width:900px) {
  .wheel-hero {
    min-height: 0 !important;
    padding-bottom: 28px !important;
  }
  .wheel-pouch-stage {
    position: relative;
    left: auto;
    top: auto;
    width: 94%;
    height: auto;
    margin: 100px auto 8px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    grid-template-rows: repeat(2, minmax(125px, 28vw));
    gap: 4px 6px;
  }
  .wheel-pouch-slot {
    min-height: 125px;
  }
  .wheel-hero-copy {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 24px 7vw 28px !important;
  }
}

@media(max-width:520px) {
  .wheel-pouch-stage {
    width: 96%;
    grid-template-rows: repeat(2,minmax(110px,31vw));
    margin-top: 86px;
  }
  .wheel-pouch-slot {
    min-height: 110px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .wheel-pouch-flight {
    display: none !important;
  }
  #product-grid [data-product-pack-target] img {
    opacity: 1 !important;
  }
}

/* Product images remain available after the pouch landing handoff. */
#product-grid .product-range-image img {
  visibility: visible !important;
}


/* ======================================================================
   Home hero: product pouch images
   ====================================================================== */
.wheel-pouch-slot img {
  opacity: 1 !important;
  visibility: visible !important;
}

#product-grid [data-product-pack-target] img {
  opacity: 1 !important;
  visibility: visible !important;
}


/* ======================================================================
   Home hero: layout over the kitchen photo
   ====================================================================== */
/* Preserve the original kitchen hero and original copy layout; overlay six independent packs on the table. */
.wheel-hero {
  min-height: clamp(540px, 57vw, 790px) !important;
  background: #f2e3cf !important;
  overflow: visible !important;
}

.wheel-hero-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
}

.wheel-hero-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.wheel-hero-image::after {
  content: none !important;
}

.wheel-pouch-stage {
  position: absolute !important;
  z-index: 2 !important;
  left: 10.5% !important;
  top: 55% !important;
  width: 49% !important;
  height: 34% !important;
  display: grid !important;
  grid-template-columns: repeat(6,minmax(0,1fr)) !important;
  grid-template-rows: minmax(0,1fr) !important;
  gap: clamp(2px,.5vw,9px) !important;
  align-items: end !important;
  justify-items: center !important;
  pointer-events: none !important;
}

.wheel-pouch-slot {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.wheel-pouch-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.wheel-hero-copy {
  position: relative !important;
  z-index: 3 !important;
}

@media(max-width:900px) {
  .wheel-hero {
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
  .wheel-hero-image {
    position: relative !important;
    inset: auto !important;
    height: clamp(280px,58vw,480px) !important;
  }
  .wheel-pouch-stage {
    position: absolute !important;
    left: 4% !important;
    top: clamp(205px,43vw,365px) !important;
    width: 60% !important;
    height: clamp(115px,24vw,190px) !important;
    grid-template-columns: repeat(6,minmax(0,1fr)) !important;
    gap: 2px !important;
  }
  .wheel-hero-copy {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 34px 7vw 42px !important;
  }
}

@media(max-width:520px) {
  .wheel-hero-image {
    height: 270px !important;
  }
  .wheel-pouch-stage {
    left: 2% !important;
    top: 205px !important;
    width: 68% !important;
    height: 105px !important;
  }
}


/* ======================================================================
   Home hero: pouches flying into the product cards on scroll
   ====================================================================== */
.wheel-pouch-flight-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.wheel-pouch-flight {
  position: absolute;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 10px rgba(54,31,12,.22));
  will-change: transform,width,height;
}

#product-grid [data-product-pack-target] img {
  opacity: 1;
}

@media(prefers-reduced-motion:reduce) {
  .wheel-pouch-flight-layer {
    display: none !important;
  }
  #product-grid [data-product-pack-target] img {
    opacity: 1 !important;
  }
}


/* ======================================================================
   Home hero: pouch positions on the table
   ====================================================================== */
/* Hero photo: keep the woman (left of the image) in frame at every width. */
.wheel-hero .wheel-hero-image img {
  object-position: left center !important;
}

/* No overlay on the hero photo. */
.wheel-hero .wheel-hero-image::after {
  content: none !important;
}

@media(max-width:900px) {
  .wheel-hero .wheel-hero-image {
    margin-top: 82px !important;
  }
}

/* Pouch group, arranged like the supplied reference: a tight overlapping cluster on the mat
   beside the woman, with the centre pack largest and in front.
   The stage is sized by script to exactly match the rendered photo, so every pouch is placed
   in photo coordinates (percent of the 1920x864 image) and stays on the table at any width. */
.wheel-hero .wheel-pouch-stage {
  position: absolute !important;
  display: block !important;
  z-index: 4 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

.wheel-hero .wheel-pouch-slot {
  position: absolute !important;
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.wheel-hero .wheel-pouch-slot img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: none !important;
  filter: drop-shadow(0 10px 10px rgba(54,31,12,.22)) !important;
}

.wheel-hero .wheel-pouch-slot[data-pack="roasted-wheat-vermicelli"] {
  left: 16.914% !important;
  top: 60.568% !important;
  width: 13.236% !important;
  height: 29.414% !important;
  z-index: 10 !important;
}

.wheel-hero .wheel-pouch-slot[data-pack="raagi-semiya"] {
  left: 22.840% !important;
  top: 62.274% !important;
  width: 11.966% !important;
  height: 26.591% !important;
  z-index: 9 !important;
}

.wheel-hero .wheel-pouch-slot[data-pack="raagi-flour"] {
  left: 28.095% !important;
  top: 63.288% !important;
  width: 11.511% !important;
  height: 25.580% !important;
  z-index: 8 !important;
}

.wheel-hero .wheel-pouch-slot[data-pack="roasted-vermicelli"] {
  left: 32.922% !important;
  top: 63.396% !important;
  width: 11.486% !important;
  height: 25.524% !important;
  z-index: 6 !important;
}

.wheel-hero .wheel-pouch-slot[data-pack="chapati-poori-flour"] {
  left: 37.633% !important;
  top: 64.966% !important;
  width: 10.847% !important;
  height: 24.105% !important;
  z-index: 5 !important;
}

.wheel-hero .wheel-pouch-slot[data-pack="maida"] {
  left: 41.921% !important;
  top: 64.355% !important;
  width: 10.847% !important;
  height: 24.105% !important;
  z-index: 4 !important;
}

.wheel-hero .wheel-pouch-slot[data-pack="roasted-rava-sooji"] {
  left: 46.624% !important;
  top: 65.012% !important;
  width: 10.552% !important;
  height: 23.448% !important;
  z-index: 3 !important;
}

/* ======================================================================
   Product cards: pack images and entrance animation
   ====================================================================== */
/* Pouch cards (transparent pack images used in the hero) show the whole pack, centred,
   at exactly the size the flying pouch lands at, so the hand-off has no size jump. */
#product-grid .product-range-card[data-product-id="roasted-wheat-vermicelli"] .product-range-image img,
#product-grid .product-range-card[data-product-id="maida"] .product-range-image img,
#product-grid .product-range-card[data-product-id="roasted-vermicelli"] .product-range-image img,
#product-grid .product-range-card[data-product-id="roasted-rava-sooji"] .product-range-image img,
#product-grid .product-range-card[data-product-id="chapati-poori-flour"] .product-range-image img,
#product-grid .product-range-card[data-product-id="sutriya"] .product-range-image img,
#product-grid .product-range-card[data-product-id="raagi-flour"] .product-range-image img,
#product-grid .product-range-card[data-product-id="rice-flour"] .product-range-image img,
#product-grid .product-range-card[data-product-id="raagi-semiya"] .product-range-image img,
#product-grid .product-range-card[data-product-id="rumania-semiya"] .product-range-image img,
#product-grid .product-range-card[data-product-id="roasted-rumania"] .product-range-image img {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
}

.wheel-pouch-flight {
  object-position: center center !important;
}

/* Flying copies stay hidden until the scroll script places them (prevents a full-size flash on load). */
.wheel-pouch-flight:not([style*="left"]) {
  display: none !important;
}

/* These cards receive a flying pouch: keep them still (fade only) so the landing spot doesn't move. */
#product-grid .product-range-card.product-reveal[data-product-id="roasted-wheat-vermicelli"],
#product-grid .product-range-card.product-reveal[data-product-id="raagi-semiya"],
#product-grid .product-range-card.product-reveal[data-product-id="raagi-flour"],
#product-grid .product-range-card.product-reveal[data-product-id="maida"],
#product-grid .product-range-card.product-reveal[data-product-id="roasted-vermicelli"],
#product-grid .product-range-card.product-reveal[data-product-id="roasted-rava-sooji"],
#product-grid .product-range-card.product-reveal[data-product-id="chapati-poori-flour"] {
  transform: none !important;
}

/* Desktop hero: the frame follows the photo's own proportions (1920x724) so the whole image is visible,
   and the text block sits on the plain wall at the right, vertically centred, as in the reference. */
@media(min-width:1200px) {
  section#home.wheel-hero {
    width: 100% !important;
    aspect-ratio: 1920 / 864 !important;
    height: auto !important;
    min-height: 520px !important;
    padding: 0 !important;
  }
  section#home.wheel-hero .wheel-hero-copy {
    position: absolute !important;
    left: 64.8% !important;
    right: auto !important;
    top: calc(50% + 26px) !important;
    transform: translateY(-50%) !important;
    width: min(30%, 540px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  section#home.wheel-hero .wheel-hero-copy h1 {
    font-size: clamp(34px, 3.4vw, 66px) !important;
  }
  section#home.wheel-hero .wheel-hero-copy p {
    max-width: 440px !important;
  }
}

/* Tablet landscape (901-1199px): too narrow for text beside the pouches, so use the stacked layout
   (full photo on top, text below), the same as on mobile. */
@media(min-width:901px) and (max-width:1199px) {
  section#home.wheel-hero {
    min-height: 0 !important;
    padding: 0 !important;
    background: #f8eddd !important;
  }
  section#home.wheel-hero .wheel-hero-image {
    position: relative !important;
    inset: auto !important;
    margin-top: 92px !important;
  }
  section#home.wheel-hero .wheel-hero-copy {
    position: relative !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 40px 7vw 48px !important;
    background: #f8eddd;
    transform: none !important;
    left: auto !important;
    top: auto !important;
  }
  section#home.wheel-hero .wheel-hero-copy h1 {
    font-size: clamp(40px, 5vw, 56px) !important;
  }
  section#home.wheel-hero .wheel-hero-copy p {
    max-width: 640px !important;
  }
}

/* Hero pouches enter like the headline words: soft fade, gentle rise and de-blur, staggered left to right. */
@keyframes wheelPouchIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(.96);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

section#home.wheel-hero .wheel-pouch-slot {
  animation: wheelPouchIn .9s cubic-bezier(.2,.72,.25,1) both !important;
  transform-origin: center bottom;
}

section#home.wheel-hero .wheel-pouch-slot:nth-child(1) {
  animation-delay: 380ms !important;
}

section#home.wheel-hero .wheel-pouch-slot:nth-child(2) {
  animation-delay: 500ms !important;
}

section#home.wheel-hero .wheel-pouch-slot:nth-child(3) {
  animation-delay: 620ms !important;
}

section#home.wheel-hero .wheel-pouch-slot:nth-child(4) {
  animation-delay: 740ms !important;
}

section#home.wheel-hero .wheel-pouch-slot:nth-child(5) {
  animation-delay: 860ms !important;
}

section#home.wheel-hero .wheel-pouch-slot:nth-child(6) {
  animation-delay: 980ms !important;
}

section#home.wheel-hero .wheel-pouch-slot:nth-child(7) {
  animation-delay: 1100ms !important;
}

@media (prefers-reduced-motion: reduce) {
  section#home.wheel-hero .wheel-pouch-slot {
    animation: none !important;
  }
}


/* ======================================================================
   Product popup: "Recipes with this product" links
   ====================================================================== */
.product-recipes {
  background: #fff;
  border: 1px solid rgba(74,44,17,.1);
  border-radius: 16px;
  padding: 16px;
}

.product-recipe-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 12px;
  background: #fff8ea;
  color: #4A2C11;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease;
}

.product-recipe-link:hover {
  background: #FCEFC7;
  color: #7F1D1D;
}

.product-recipe-link small {
  color: #7F1D1D;
  white-space: nowrap;
  font-size: 12px;
}

#mobile-nav-drawer a.nav-current {
  color: #7F1D1D !important;
  font-weight: 800 !important;
}


/* ======================================================================
   Popups sit above the floating header
   ====================================================================== */
#product-modal, #recipe-modal, #story-modal {
  z-index: 300 !important;
}


/* ======================================================================
   Mobile fixes and floating WhatsApp / back-to-top buttons
   ====================================================================== */
/* Nothing may push the page wider than the screen (prevents sideways drift / layout shift on phones). */
html, body {
  overflow-x: clip !important;
  max-width: 100%;
}

.wheel-hero {
  overflow: hidden !important;
}

img, iframe, video {
  max-width: 100%;
}

@media (max-width:767px) {
  .header-cta {
    display: none !important;
  }
  /* "Get in Touch" lives in the menu on phones */
  .wheel-overlay-topbar {
    display: none !important;
  }
  /* announcement strip was showing through the header */
}

/* Hero photo area keeps its final size from the first paint on tablets & phones (no jump when JS runs). */
@media (max-width:1199px) {
  section#home.wheel-hero .wheel-hero-image {
    height: auto !important;
    aspect-ratio: 1200 / 864;
  }
}

/* Floating action pill: WhatsApp (always) + back to top (after scrolling) */
.fab-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(201,137,46,.3);
  box-shadow: 0 14px 34px rgba(74,44,17,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: gap .35s cubic-bezier(.2,.75,.25,1);
}

.fab-pill.has-top {
  gap: 8px;
}

.fab-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, background .2s ease, box-shadow .25s ease;
}

.fab-btn:hover {
  transform: translateY(-2px);
}

.fab-btn:focus-visible {
  outline: 3px solid #F5C542;
  outline-offset: 3px;
}

.fab-wa {
  background: #25D366;
  box-shadow: 0 6px 14px rgba(37,211,102,.35);
}

.fab-wa:hover {
  background: #1EBE5A;
}

.fab-wa svg {
  width: 26px;
  height: 26px;
}

.to-top {
  background: #7F1D1D;
  box-shadow: 0 6px 14px rgba(127,29,29,.3);
  width: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(.6);
  transition: width .35s cubic-bezier(.2,.75,.25,1), opacity .25s ease, transform .35s cubic-bezier(.2,.75,.25,1), visibility .35s, background .2s ease;
}

.to-top.is-shown {
  width: 48px;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top.is-shown:hover {
  background: #991B1B;
  transform: translateY(-2px);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

.to-top-ring {
  position: absolute;
  inset: -4px;
  width: 56px !important;
  height: 56px !important;
  transform: rotate(-90deg);
  pointer-events: none;
}

.to-top-ring circle {
  fill: none;
  stroke: #F5C542;
  stroke-width: 3;
  stroke-linecap: round;
}

.fab-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(6px,-50%);
  white-space: nowrap;
  background: #4A2C11;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.fab-btn:hover .fab-tip, .fab-btn:focus-visible .fab-tip {
  opacity: 1;
  transform: translate(0,-50%);
}

@media (max-width:640px) {
  .fab-pill {
    right: 12px;
    bottom: 12px;
    padding: 5px;
  }
  .fab-btn {
    height: 44px;
  }
  .fab-wa, .to-top.is-shown {
    width: 44px;
  }
  .to-top-ring {
    width: 52px !important;
    height: 52px !important;
  }
  .fab-tip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab-pill, .to-top, .fab-btn {
    transition: none;
  }
}


/* ======================================================================
   Footer: logo, collapsible link panels, website credit
   ====================================================================== */
.footer-logo {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(74, 44, 17, .1);
}

.footer-logo img {
  display: block;
  height: 52px;
  width: auto;
}

.footer-panel summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}

.footer-panel summary::-webkit-details-marker {
  display: none;
}

.footer-chevron {
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: #4A2C11;
  transition: transform .3s ease;
}

.footer-panel[open] .footer-chevron {
  transform: rotate(180deg);
}

.footer-panel summary:focus-visible {
  outline: 2px solid #7F1D1D;
  outline-offset: 4px;
  border-radius: 6px;
}

.footer-panel-body ul > li + li,
.footer-panel-body > p + p {
  margin-top: 8px;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .footer-grid > :first-child {
    margin-bottom: 24px;
  }
  .footer-panel {
    border-top: 1px solid rgba(74, 44, 17, .18);
    padding: 14px 0;
  }
  .footer-panel summary {
    margin-bottom: 0;
  }
  .footer-panel[open] summary {
    margin-bottom: 12px;
  }
}

.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit a:hover {
  color: #7F1D1D;
}

/* Developer credit: own centred line, with room below so the floating WhatsApp / back-to-top buttons never cover it */
.footer-credit {
  text-align: center;
  font-size: 12px;
  margin-top: 18px;
  padding-bottom: 72px;
}

/* Contact forms: hidden anti-spam field (real visitors never see or fill it) */
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
button[aria-busy="true"] { opacity: .7; cursor: progress; }
.form-error-box { border-radius: 12px; background: #fdecec; border: 1px solid #f3c4c4; color: #7F1D1D; padding: 14px 16px; font-size: 14px; font-weight: 600; }
