/* ============================================================
   VIVO FRESH — RESPONSIVE
   ============================================================ */

/* ---------- Mobile navigation drawer ---------- */
@media (max-width: 959px) {
  /* YOUR FIX: Change sticky to relative so the menu drops down properly */
  .site-header {
    position: relative !important;
    z-index: 9999 !important;
  }

  /* The drawer container */
  .nav {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    min-height: calc(100vh - var(--header-h)) !important;

    background: var(--cream) !important;
    padding: 2rem var(--gutter) !important;

    /* Scrolls on short screens so the last links and CTA stay reachable */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - var(--header-h)) !important;

    /* Animation states */
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease !important;

    border-top: 1px solid var(--line) !important;
    z-index: 9998 !important;
  }

  /* Open state */
  body.nav-open .nav {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Prevent body scrolling when menu is open */
  body.nav-open {
    overflow: hidden !important;
  }

  /* Stack the links vertically */
  .nav__list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav__list li {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Force links to display properly */
  .nav__link {
    display: block !important;
    padding: 1.2rem 0 !important;
    font-family: var(--font-display) !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: var(--charcoal) !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    text-align: left !important;
    background: transparent !important;
  }

  .nav__link:hover,
  .nav__link[aria-current="page"] {
    color: var(--green) !important;
  }

  .nav__link[aria-current="page"]::after {
    display: none !important;
  }

  /* Shop Now Button */
  .nav__cta {
    display: inline-flex !important;
    margin-top: 2rem !important;
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    justify-content: center !important;
  }
}

/* ---------- Desktop navigation & balanced wide PC layout ---------- */
@media (min-width: 960px) {
  :root {
    --header-h: 80px;
    --wrap: 1380px;
    --gutter: clamp(24px, 3.5vw, 44px);
  }
  .site-header {
    position: sticky !important;
    z-index: 1000 !important;
    width: 100% !important;
  }
  .site-header .header__inner {
    max-width: var(--wrap) !important;
    width: 100% !important;
    padding-inline: var(--gutter) !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
  }
  .site-header .brand {
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }
  .nav {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    position: static !important;
    min-height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .nav__cta {
    display: none !important;
  }
  .nav-toggle {
    display: none !important;
  }
  .header__actions {
    flex-shrink: 0 !important;
    gap: 0.75rem !important;
  }
  .header__shop {
    display: inline-flex !important;
  }
  .nav__list {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(0.35rem, 1.1vw, 1.25rem) !important;
  }
  .nav__link {
    font-family: var(--font-sans) !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 0.9rem !important;
    border-bottom: none !important;
    white-space: nowrap !important;
  }
  .nav__link[aria-current="page"]::after {
    display: block !important;
  }
}

/* ---------- Hero ---------- */
@media (min-width: 720px) {
  .hero__art {
    padding-block: 0;
  }
  .hero__arch {
    width: min(100%, 400px);
  }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .hero__art {
    justify-content: flex-end;
    padding-right: clamp(1rem, 4vw, 3rem);
  }
  .hero__arch {
    width: min(100%, 440px);
  }
  .hero__chip--a {
    left: -6%;
    bottom: 18%;
  }
  .hero__chip--b {
    right: -4%;
    top: 8%;
  }
  .hero__badge {
    right: -2%;
    bottom: 2%;
  }
}

/* ---------- Intro ---------- */
@media (min-width: 860px) {
  .intro__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

/* ---------- Product grid ---------- */
@media (min-width: 560px) {
  .pgrid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}
@media (min-width: 900px) {
  .pgrid {
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  }
}

/* ---------- Steps ---------- */
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .step {
    padding-left: 0;
    padding-top: 3.6rem;
  }
  .step::before {
    top: 0;
    left: 0;
  }
}

/* ---------- Delivery panel ---------- */
@media (min-width: 900px) {
  .delivery-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* ---------- Cart layout ---------- */
@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
  .cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
  .citem {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    padding: 1rem;
  }
  .citem__media {
    width: 92px;
    height: 92px;
  }
  .citem__controls {
    grid-column: 2 / -1;
    padding-top: 0.85rem;
  }
}

@media (min-width: 1120px) {
  .citem {
    grid-template-columns: 92px minmax(0, 1fr) auto auto;
  }
  .citem__controls {
    grid-column: auto;
    border-top: 0;
    padding-top: 0;
    gap: 0.9rem;
    justify-content: flex-end;
    min-width: 240px;
  }
}

/* ---------- Forms ---------- */
@media (min-width: 720px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 900px) {
  .toolbar {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
  }
  .toolbar__count {
    grid-column: 1 / -1;
  }
}

/* ---------- Split sections (about / contact) ---------- */
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
  .split--narrow-left {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* ---------- Footer ---------- */
@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  }
}

/* ---------- Mobile-specific tweaks for small screens ---------- */
@media (max-width: 480px) {
  .pgrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .chips {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .chip {
    flex: 0 0 auto;
  }
}

/* ============================================================
   UX PASS — sort, price note, order bar, vegetable tiles, mobile
   ============================================================ */
.pricenote {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(241, 163, 74, 0.14);
  border: 1px solid rgba(241, 163, 74, 0.45);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--charcoal);
}
.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.toolbar__sort select {
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
}
.catgroup__title {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green);
}
.orderbar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(92vw, 460px);
  padding: 0.85rem 1.2rem;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 64, 48, 0.35);
  text-decoration: none;
  font-size: 0.9rem;
}
.orderbar[hidden] {
  display: none;
}
.orderbar strong {
  color: var(--gold-soft);
  white-space: nowrap;
}
.summary__clear {
  margin-top: 0.5rem;
}
body {
  padding-bottom: 0;
}
.chip,
.pcard__add,
.stepper__btn,
.citem__remove {
  min-height: 44px;
}
.stepper__btn {
  min-width: 44px;
}

@media (max-width: 480px) {
  /* Two compact columns instead of one very long list (320px-safe) */
  .pgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .pcard__name {
    font-size: 0.95rem;
  }
  .pcard__foot {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .pcard__add {
    flex: 1 1 100%;
  }
  /* Category chips become one swipeable row instead of a tall wrapped block */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
  }
  .chip {
    white-space: nowrap;
  }
  .toolbar__sort {
    justify-content: space-between;
  }
  .orderbar {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }
}
@media (max-width: 360px) {
  .pcard__body {
    padding: 0.7rem;
  }
  .pcard__price {
    font-size: 0.92rem;
  }
}

/* ============================================================
   SHOP-FIRST POLISH — photo category tiles, scannable cards, order bar
   ============================================================ */
.cattile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s var(--ease);
}
.cattile:hover .cattile__img {
  transform: scale(1.06);
}
.cattile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(28, 64, 48, 0) 25%,
    rgba(28, 64, 48, 0.88) 100%
  );
}
.cattile__name {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Product names and prices are read fast: sans-serif, not decorative serif */
.pcard__name {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.pcard__price {
  font-family: var(--font-sans);
  font-weight: 700;
}
.pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard__foot {
  margin-top: auto;
}

.orderbar span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.orderbar small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}
#categories {
  scroll-margin-top: calc(var(--header-h, 72px) + 1rem);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 480px) {
  .cattile {
    min-height: 132px;
    padding: 0.8rem;
  }
}

/* ============================================================
   FOODIE PASS — photo food cards, flavour ribbon, filter panel, photo slot
   ============================================================ */
.foodcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.foodcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(150deg, #4e8f6b, #285943 60%, #1c4030);
  box-shadow: 0 10px 28px rgba(28, 64, 48, 0.18);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.foodcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(28, 64, 48, 0.26);
}
.foodcard .cattile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.foodcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(28, 64, 48, 0) 20%,
    rgba(28, 64, 48, 0.9) 100%
  );
}
.foodcard__emoji {
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.foodcard__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
}
.foodcard__sub {
  font-size: 0.88rem;
  opacity: 0.9;
}

.valuegrid {
  align-items: start;
}

.ribbon {
  align-self: start;
  height: auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0.75rem 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--coral), var(--gold));
  color: #fff;
  font-size: clamp(0.82rem, 0.72rem + 0.15vw, 0.98rem);
  font-weight: 500;
  line-height: 1.25;
  box-shadow: 0 8px 20px rgba(28, 64, 48, 0.1);
}

.ribbon__track {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  width: max-content;
  padding-left: clamp(1.1rem, 2vw, 2rem);
  animation: ribbon 42s linear infinite;
}

.ribbon__track span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.ribbon__emoji {
  font-size: 1.05em;
  line-height: 1;
}

@media (max-width: 700px) {
  .ribbon__emoji {
    font-size: 0.95em;
  }
}
@keyframes ribbon {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon__track {
    animation: none;
  }
  .ribbon {
    overflow-x: auto;
  }
}
@media (max-width: 700px) {
  .ribbon {
    padding: 0.5rem 0;
    font-size: 0.76rem;
  }

  .ribbon__track {
    gap: 1rem;
    padding-left: 1rem;
  }

  .ribbon__track span {
    gap: 0.2rem;
  }
}
@media (max-width: 480px) {
  .ribbon {
    margin-top: 0.8rem;
    padding: 0.45rem 0;
    font-size: 0.78rem;
  }

  .ribbon__track {
    gap: 1.1rem;
    padding-left: 1.1rem;
  }
}
/* Fresh favourites strip: warm tinted band so it never reads as an empty white block */
#featuredGrid {
  min-height: 120px;
}
.section--cream {
  background: linear-gradient(180deg, #fff1dc 0%, #fff5e8 100%);
}

/* Filter panel (search + sort + chips + count) */
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "search sort" "chips chips" "count reset";
  gap: 0.9rem 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(28, 64, 48, 0.08);
}
.toolbar__search {
  grid-area: search;
  min-height: 48px;
}
.toolbar__sort {
  grid-area: sort;
}
.toolbar .chips {
  grid-area: chips;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-strong);
}
.toolbar__count {
  grid-area: count;
  margin: 0;
  font-weight: 500;
  color: var(--green);
}
.toolbar__reset {
  grid-area: reset;
  justify-self: end;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--coral);
  border-radius: 999px;
  background: transparent;
  color: var(--coral);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.toolbar__reset:hover {
  background: var(--coral);
  color: #fff;
}
.toolbar__reset[hidden] {
  display: none;
}
.chip {
  background: #fff8ee;
}
.chip[aria-pressed="true"] {
  box-shadow: 0 6px 16px rgba(40, 89, 67, 0.28);
}

/* About photo slot */
.photo-slot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 64, 48, 0.15);
  aspect-ratio: 16 / 9;
  background: #fff1dc;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "Order sent" notice on the empty cart */
.sentbox {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(40, 89, 67, 0.08);
  border: 1px solid rgba(40, 89, 67, 0.25);
  text-align: left;
}
.sentbox p {
  margin: 0.35rem 0 0.8rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .foodcards {
    grid-template-columns: 1fr;
  }
  .foodcard {
    min-height: 120px;
  }
  .foodcard__title {
    font-size: 1.35rem;
  }
  .toolbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "search search" "sort sort" "chips chips" "count reset";
    padding: 0.9rem;
  }
  .toolbar .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -0.2rem;
    padding-inline: 0.2rem;
    padding-bottom: 0.3rem;
  }
  .toolbar .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

/* ============================================================
   ROUND 4 — food strip layout, product page, counters, speed
   ============================================================ */
/* Food cards + ribbon: stacked full-width block (they were sitting side by side in a grid) */
.foodstrip {
  display: block;
  width: 100%;
}
.foodstrip .foodcards {
  width: 100%;
}
.foodstrip .ribbon {
  width: 100%;
  margin-top: 1.1rem;
}
.ribbon {
  font-size: 1rem;
  padding: 0.9rem 0;
  box-shadow: 0 8px 22px rgba(231, 109, 88, 0.28);
}
@media (max-width: 720px) {
  .foodcards {
    gap: 0.9rem;
  }
  .foodcard {
    min-height: 170px;
    padding: 1.2rem;
  }
  .foodcard__emoji {
    font-size: 2.6rem;
    top: 0.9rem;
    left: 1.1rem;
  }
  .foodcard__title {
    font-size: 1.75rem;
  }
  .foodcard__sub {
    font-size: 1rem;
    line-height: 1.35;
  }
  .ribbon {
    font-size: 1.05rem;
    padding: 1rem 0;
    margin-top: 1rem;
  }
}

/* Form counters */
.charcount {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.charcount.is-short {
  color: #b4691a;
}
.charcount.is-ok {
  color: var(--green);
}
.charcount.is-near {
  color: var(--coral-deep);
  font-weight: 600;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Clickable product cards */
a.pcard__media {
  display: block;
  color: inherit;
}
.pcard__link {
  color: inherit;
  text-decoration: none;
}
.pcard__link:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Product detail page */
.pd {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1.25rem;
}
.pd__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 64, 48, 0.16);
}
.pd__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(40, 89, 67, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
}
.pd__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  margin: 0.6rem 0 0.2rem;
}
.pd__unit {
  color: var(--muted);
  margin: 0;
}
.pd__price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green);
  margin: 0.8rem 0 0.2rem;
  font-family: var(--font-sans);
}
.pd__note {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(241, 163, 74, 0.15);
  font-size: 0.88rem;
}
.pd__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0.9rem 0 1.3rem;
}
.pd__buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.pd__qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.pd__qty button {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--green);
}
.pd__qty input {
  width: 56px;
  height: 48px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}
.pd__qty input::-webkit-outer-spin-button,
.pd__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pd__ask {
  margin-top: 0.8rem;
}
.pd__facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px dashed var(--line-strong);
}
.pd__facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 0.92rem;
}
.pd__facts span {
  color: var(--muted);
}
@media (max-width: 720px) {
  .pd {
    grid-template-columns: 1fr;
  }
  .pd__buy .btn {
    flex: 1 1 auto;
  }
}

/* Speed: skip rendering off-screen cards until needed */
.pgrid .pcard {
  content-visibility: auto;
  contain-intrinsic-size: auto 330px;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
button,
.btn,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


/* ============================================================
   ROUND 5 — hero photo slot, icons, link-safety feedback
   ============================================================ */
.hero__art--girl { display: flex; justify-content: center; align-items: center; }

.title-icon { color: var(--coral); font-size: 0.85em; margin-left: 0.15em; }
.foodcard__emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--green); font-size: 1.6rem; filter: none; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); }
@media (max-width: 720px) { .foodcard__emoji { width: 56px; height: 56px; font-size: 1.8rem; } }
.ribbon .bi { margin-right: 0.35rem; font-size: 1.05em; }
.btn .bi { margin-right: 0.35rem; }

.charcount.is-bad { color: #b3261e; font-weight: 600; }
.field input.has-error, .field textarea.has-error { border-color: #b3261e; }


/* ============================================================
   ROUND 6 — hero collage (girl photo in an arch over fruit arches/pills) + sector icons
   ============================================================ */
.hero__art--girl { display: flex; justify-content: center; align-items: center; }
.herogirl { position: relative; width: min(100%, 540px); aspect-ratio: 1 / 1.08; isolation: isolate; }
.hg { position: absolute; overflow: hidden; background: var(--cream); border: 6px solid var(--cream); box-shadow: var(--shadow); }
.hg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg--dragon { left: 0; top: 40%; width: 42%; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; z-index: 1; }
.hg--straw  { right: 6%; top: 0; width: 25%; aspect-ratio: 1 / 2.2; border-radius: 999px; z-index: 1; }
.hg--mango  { right: 0; bottom: 6%; width: 27%; aspect-ratio: 1 / 2; border-radius: 999px; z-index: 1; }
.hg--girl   { left: 19%; top: 3%; width: 58%; aspect-ratio: 1 / 1.38; border-radius: 999px 999px 22px 22px; border: 8px solid #fff; box-shadow: var(--shadow-lg); z-index: 2; }
.hg--girl img { object-position: 50% 12%; }
.herogirl .hero__badge { z-index: 3; right: 0; bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hg--straw { animation: floaty 8s ease-in-out infinite; }
  .hg--mango { animation: floaty 10s ease-in-out infinite reverse; }
}
@media (max-width: 720px) { .herogirl { width: min(94%, 400px); } .hg { border-width: 4px; } .hg--girl { border-width: 6px; } }
.sector-switch__icon .bi { font-size: 1.45rem; color: var(--green); }

/* ============================================================
   ROUND 7 — Mobile Money / Airtel Money cards & vertical steps fix
   ============================================================ */
/* When .steps is inside a 2-column .split (like delivery.html), stack vertically */
.split .steps {
  grid-template-columns: 1fr !important;
  gap: 1.6rem !important;
}
.split .step {
  padding-left: 3.6rem !important;
  padding-top: 0 !important;
}
.split .step::before {
  top: 0 !important;
  left: 0 !important;
}
.split .step:last-child::before {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* Airtel / Mobile Money UI components */
.momo-card {
  border-radius: var(--radius);
  background: #ffffff;
  border: 1.5px solid rgba(228, 0, 0, 0.18);
  box-shadow: 0 10px 26px rgba(28, 64, 48, 0.07);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.momo-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line-strong);
}
.momo-logo {
  height: 38px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(228, 0, 0, 0.18);
}
.momo-head__titles {
  flex: 1;
  min-width: 140px;
}
.momo-head__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E40000;
}
.momo-head__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}
.momo-rows {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.momo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #fff8f6;
  border: 1px solid rgba(228, 0, 0, 0.12);
  font-size: 0.86rem;
}
.momo-row__label {
  color: var(--muted);
  font-weight: 500;
}
.momo-row__val {
  font-weight: 700;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.momo-code {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: #E40000;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.momo-note {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Compact Airtel badge inside dark green .delivery-panel */
.momo-panel-box {
  margin-top: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 245, 232, 0.22);
}
.momo-panel-box__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.momo-panel-box__grid {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
}
.momo-panel-box__grid div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.momo-panel-box__grid span {
  color: rgba(255, 245, 232, 0.8);
  font-size: 0.83rem;
}
.momo-panel-box__grid strong {
  color: #fff;
  font-weight: 700;
}
