/* ===========================================
   POM — Responsive overrides (mobile nav & touch)
   Fluid layout lives in fluid.css
   =========================================== */

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

#main-header {
  padding-top: var(--safe-top);
  padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
  overflow-x: clip;
}

#main-footer {
  padding-bottom: max(1.25rem, var(--safe-bottom));
  overflow-x: clip;
}

#main-header .nav-link,
#main-header .btn-contact,
.cta-link,
.brands-cta-link,
.brands-carousel__btn,
.social-carousel__btn {
  min-height: 2.75rem;
}

/* --- Agroplus-style mobile menu toggle --- */
.pom-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-green-800);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.pom-menu-btn:hover,
.pom-menu-btn:focus-visible {
  background: #f0f4f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  outline: none;
}

.pom-menu-btn__bars,
.pom-menu-btn__close {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.pom-menu-btn__bars {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

#main-header.pom-header--nav-open .pom-menu-btn__bars {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.4);
}

.pom-menu-btn__close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.4);
}

#main-header.pom-header--nav-open .pom-menu-btn__close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

@media (max-width: 991.98px) {
  #main-header .pom-header__inner {
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
  }

  #main-header .pom-header__bar {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.75rem;
  }

  #main-header .navbar-brand {
    margin-inline-end: 0;
  }

  #main-header.scrolled .navbar-brand .logo-img,
  #main-header.scrolled .navbar-brand img {
    height: clamp(2.5rem, 3.5vw + 0.5rem, 3rem);
  }

  .pom-menu-btn {
    display: flex;
    margin-left: auto;
  }

  #main-header .pom-nav-wrap {
    display: none;
  }

  #main-header .pom-nav-wrap.pom-nav-wrap--open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    background: var(--color-green-800);
    /* Match the header container gutters so the menu items line up with the
       logo (which sits at --shell-pad-start), while still clearing notches. */
    padding: 0 max(var(--shell-pad-end), var(--safe-right)) 0
      max(var(--shell-pad-start), var(--safe-left));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: pomNavDropIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
    max-height: calc(100dvh - var(--pom-nav-top, 4rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #main-header .pom-nav-wrap.pom-nav-wrap--closing {
    animation: pomNavDropOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  #main-header .pom-nav-wrap.pom-nav-wrap--open .pom-nav-list,
  #main-header .pom-nav-wrap.pom-nav-wrap--open .pom-nav-primary {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #main-header .pom-nav-wrap.pom-nav-wrap--open .nav-item {
    display: block !important;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* #main-header prefix raises specificity above fluid.css's
     `#main-header .nav-link` !important padding, so the menu text sits flush
     with the logo instead of being indented by the nav-link's side padding. */
  #main-header .pom-nav-wrap.pom-nav-wrap--open .nav-link {
    display: block;
    padding: 0.85rem 0 !important;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: left;
    text-shadow: none;
  }

  .pom-nav-wrap.pom-nav-wrap--open .nav-link::after {
    display: none;
  }

  .pom-nav-wrap.pom-nav-wrap--open .nav-link:hover,
  .pom-nav-wrap.pom-nav-wrap--open .nav-link:focus {
    color: var(--color-gold) !important;
  }

  .pom-nav-wrap.pom-nav-wrap--open .nav-link.active {
    color: var(--color-gold) !important;
    font-weight: 600;
  }

  #main-header.pom-header--nav-open {
    z-index: 1001;
  }

  #main-header.pom-header--nav-open.scrolled {
    background-color: var(--color-green-800);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  @keyframes pomNavDropIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes pomNavDropOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }

    to {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #main-header .navbar-brand {
    margin-inline-end: clamp(1rem, 2vw, 2.25rem);
  }

  #main-header .nav-link {
    padding-inline: clamp(0.5rem, 0.75vw, 0.85rem) !important;
    font-size: clamp(0.75rem, 0.68rem + 0.25vw, 0.875rem);
  }

  /* The reduced nav-link padding above tightens the items; add an explicit
     gap so they keep breathing room around ~1180px. */
  #main-header .pom-nav-list,
  #main-header .pom-nav-primary {
    gap: 20px;
  }
}

@media (min-width: 992px) {
  #main-footer .row {
    --bs-gutter-y: clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (max-width: 991.98px) {
  /* Full-width shell — header, sections, and split-band share one horizontal rhythm */
  :root {
    --container-px: clamp(1rem, 5vw, 2rem);
    --shell-pad-start: max(var(--container-px), var(--safe-left));
    --shell-pad-end: max(var(--container-px), var(--safe-right));
  }

  #main-header .container,
  #main-footer .container,
  .pom-section .container {
    width: 100%;
    max-width: none;
    padding-inline: var(--shell-pad-start) var(--shell-pad-end);
    margin-inline: auto;
  }

  .split-band,
  .split-band--img-right {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .split-band__content,
  .split-band--img-left .split-band__content,
  .split-band--img-right .split-band__content,
  .brand-lifestyle .split-band--img-left .split-band__content,
  .brand-lifestyle .split-band--img-right .split-band__content {
    width: 100%;
    padding-inline: var(--shell-pad-start) var(--shell-pad-end);
    justify-content: flex-start;
  }

  .split-band__inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0;
  }

  .food-culture__visual {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--shell-pad-start) var(--shell-pad-end);
  }

  .food-culture__visual img {
    width: 100%;
  }

  .dish-grid {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--shell-pad-start) var(--shell-pad-end);
  }

  /* Social / reels — full shell width (matches header padding) */
  #social .container,
  #social .pom-certificates-band .container {
    width: 100%;
    max-width: none;
    padding-inline: var(--shell-pad-start) var(--shell-pad-end);
  }

  #social .pom-certificates-band .pom-certificates-wrap {
    padding-inline: var(--shell-pad-start) var(--shell-pad-end);
  }

  #social .pom-social-reels,
  #social .social-carousel,
  #social .pom-showreels {
    width: 100%;
    max-width: none;
  }

  #social .social-handle {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }

  #social .social-carousel__track .social-card {
    flex: 0 0 clamp(11rem, 34vw, 14rem);
    min-width: clamp(11rem, 34vw, 14rem);
  }

  #social .pom-showreels {
    --sr-per-view: 2.35;
    --sr-gap: clamp(0.65rem, 1.5vw, 1rem);
  }

  #social .pom-showreels__nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .split-band--img-right .split-band__media,
  .brand-lifestyle .split-band--img-right .split-band__media {
    order: -1;
  }

  .split-band__media,
  .split-band__media img {
    min-height: var(--split-media-height);
    max-height: 55vw;
  }

  #main-footer {
    padding-top: var(--space-xl);
    text-align: left;
  }

  #main-footer .footer-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }

  #main-footer .footer-row > [class*="col-"] {
    flex: none;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  #main-footer .footer-col--brand {
    grid-column: 1 / -1;
  }

  #main-footer .footer-col--menu {
    min-width: 0;
  }

  #main-footer .footer-col {
    text-align: left;
  }

  .footer-logo {
    display: block;
  }

  .footer-logo .logo-img--footer,
  .footer-logo img {
    margin-inline: 0;
    margin-bottom: 1rem;
  }

  .footer-desc {
    margin-inline: 0;
    max-width: min(28rem, 100%);
  }

  .footer-contact,
  .footer-buttons {
    align-items: flex-start;
  }

  .footer-buttons {
    justify-content: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom {
    margin-top: 1.2rem;
    padding: 0.85rem max(0.5rem, var(--safe-left), var(--safe-right));
    font-size: var(--fluid-text-xs);
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  #main-footer .footer-row {
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2.5vw, 1rem);
  }

  #main-footer .footer-col--brand {
    padding: 0;
    margin-bottom: 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #main-footer .footer-col--brand:not(:has(.footer-widget)) {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo desc"
      "social social";
    gap: 0.85rem 1rem;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.25rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.12);
  }

  #main-footer .footer-col--brand .footer-widget,
  #main-footer .footer-col--brand .pom-footer-branding-widget {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo desc"
      "social social";
    gap: 0.85rem 1rem;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.25rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.12);
  }

  #main-footer .footer-col--brand .footer-logo {
    grid-area: logo;
    margin: 0;
  }

  #main-footer .footer-col--brand .footer-logo .logo-img--footer,
  #main-footer .footer-col--brand .footer-logo img {
    height: clamp(3.25rem, 14vw, 4.25rem);
    width: auto;
    margin: 0;
  }

  #main-footer .footer-col--brand .footer-desc {
    grid-area: desc;
    margin: 0;
    max-width: none;
    font-size: var(--font-size-xs);
    line-height: 1.55;
  }

  #main-footer .footer-col--brand .footer-social {
    grid-area: social;
    margin-top: 0.15rem;
    gap: 0.65rem;
  }

  #main-footer .footer-col--brand .footer-social a {
    width: 2.25rem;
    height: 2.25rem;
  }

  #main-footer .footer-col--menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .footer-menu-accordion {
    width: 100%;
  }

  .footer-accordion__trigger,
  #main-footer .footer-col--menu .footer-widget .footer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0.95rem 1rem;
    border: 0;
    background: transparent;
    color: var(--color-white);
    font: inherit;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .footer-accordion__icon {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    margin-top: -0.15rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  #main-footer .footer-col--menu .footer-widget .footer-heading::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    margin-top: -0.15rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .footer-col--menu.is-open {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: inset 3px 0 0 var(--color-gold);
  }

  .footer-col--menu.is-open .footer-accordion__trigger,
  .footer-col--menu.is-open .footer-widget .footer-heading {
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.04);
  }

  .footer-col--menu.is-open .footer-accordion__icon,
  .footer-col--menu.is-open .footer-widget .footer-heading::after {
    border-color: var(--color-gold);
    transform: rotate(-135deg);
    margin-top: 0.1rem;
  }

  .footer-menu-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease, visibility 0.25s ease;
    padding: 0 1rem;
  }

  .footer-col--menu.is-open .footer-menu-panel {
    max-height: 24rem;
    opacity: 1;
    visibility: visible;
    padding-bottom: 0.85rem;
  }

  #main-footer .footer-widget .menu li,
  #main-footer .footer-widget .footer-links li {
    margin-bottom: 5px;
  }

  .footer-col--menu .footer-links a,
  #main-footer .footer-col--menu .footer-widget .menu a {
    display: block;
    padding: 0.45rem 0;
    border-bottom: 1px solid #d9d9d947;
  }

  #main-footer .footer-widget .menu li:last-child a,
  #main-footer .footer-widget .footer-links li:last-child a {
    border-bottom: 0;
  }

  .footer-col--menu .footer-links li:last-child,
  #main-footer .footer-col--menu .footer-widget .menu li:last-child {
    margin-bottom: 0;
  }

  /* Tagline block — pull out of accordion column into its own full-width banner */
  #main-footer .footer-col--menu:has(.widget_block) {
    display: contents;
  }

  #main-footer .footer-col--menu:has(.widget_block) .footer-menu-accordion {
    display: contents;
  }

  #main-footer .footer-col--menu:has(.widget_block) .widget_nav_menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  #main-footer .footer-col--menu:has(.widget_block).is-open .widget_nav_menu {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: inset 3px 0 0 var(--color-gold);
  }

  #main-footer .footer-col--menu .widget_block {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    margin-bottom: 0;
    padding: clamp(1.35rem, 5vw, 1.85rem) clamp(1.1rem, 4vw, 1.35rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: linear-gradient(155deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.08) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  #main-footer .footer-col--menu .widget_block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(2.5rem, 12vw, 3.5rem);
    height: 3px;
    border-radius: 999px;
    background: var(--color-gold);
    opacity: 0.9;
  }

  #main-footer .footer-col--menu .widget_block .wp-block-heading,
  #block-10 .wp-block-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 5.4vw, 1.7rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.015em;
    color: var(--color-white);
    margin: 0.4rem 0 0;
    max-width: 16ch;
    margin-inline: auto;
  }

  #main-footer .footer-col--menu .widget_block .footer-tagline__lead {
    color: rgba(255, 255, 255, 0.9);
  }

  #main-footer .footer-col--menu .widget_block .footer-tagline__accent {
    display: inline-block;
    margin-top: 0.15rem;
    color: var(--color-gold);
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    line-height: 1.2;
  }

  #main-footer .footer-col--menu .widget_block .wp-block-heading:not(:has(.footer-tagline__accent)) {
    color: var(--color-gold);
  }

  #main-footer .footer-col--menu .widget_block .wp-block-heading:not(:has(.footer-tagline__accent))::first-line {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.2rem, 4.8vw, 1.55rem);
  }

  #main-footer .footer-bottom {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.85rem calc(2.75rem + 1.35rem + max(0px, var(--safe-right))) 0.85rem max(0.5rem, var(--safe-left));
    margin-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
  }

  #main-footer .footer-bottom .footer-copyright,
  #main-footer .footer-bottom .footer-widget {
    width: 100%;
    margin: 0;
  }

  #main-footer .footer-bottom .footer-widget {
    display: contents;
  }

  #main-footer .footer-bottom .footer-copyright {
    display: block;
    line-height: 1.5;
  }
}

/* --- Nutrition: stack the heading onto its own red band with the image as a
   separate block below, from 1280px down. --- */
@media (max-width: 1280px) {
  .nutrition-title {
    position: static;
    transform: none;
    max-width: none;
    margin: 0;
    text-align: left;
    padding-inline: var(--shell-pad-start) var(--shell-pad-end);
  }

  #nutrition .nutrition-content {
    display: flex;
    align-items: center;
    order: 1;
    position: relative;
    z-index: 1;
    min-height: clamp(5rem, 12vw, 7rem);
    width: 100%;
    padding: 0 !important;
    background: linear-gradient(0deg, rgba(150, 4, 27, 1) 0%, rgba(101, 3, 18, 1) 100%);
  }

  #nutrition.pom-section--nutrition {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: linear-gradient(0deg, rgba(150, 4, 27, 1) 0%, rgba(101, 3, 18, 1) 100%);
  }

  #nutrition .nutrition-bg {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(14rem, 52vw, 22rem);
    min-height: clamp(14rem, 52vw, 22rem);
    background-size: cover;
    background-position: 75%;
  }
}

/* --- Nutrition bg position: 966px → mobile --- */
@media (max-width: 966.98px) {
  #nutrition .nutrition-bg {
    background-position: 75%;
  }
}

/* --- Products tiles: ~1024px --- */
@media (min-width: 992px) and (max-width: 1133.98px) {
  #products .product-tile__title {
    font-size: 0.80rem;
  }
}

/* --- Brands carousel — breathable spacing per viewport --- */
@media (min-width: 1134px) {
  .brand-showcase-item__name {
    min-height: 2.85em;
    font-size: clamp(0.8125rem, 0.7rem + 0.22vw, 1rem);
  }

  .brand-showcase-item__product {
    min-height: clamp(9rem, 16.5vw, 14.5rem);
  }

  .brand-showcase-item__product img {
    max-height: clamp(8.5rem, 15.5vw, 13.5rem);
    max-width: 98%;
  }
}

@media (min-width: 1441px) {
  #brands,
  #brands .brands-showcase-grid {
    --brands-per-view: 5;
    --brands-gap: clamp(1rem, 1.4vw, 1.5rem);
  }
}

@media (min-width: 1134px) and (max-width: 1440.98px) {
  #brands,
  #brands .brands-showcase-grid {
    --brands-per-view: 4;
    --brands-gap: clamp(1rem, 1.4vw, 1.5rem);
  }
}

@media (min-width: 812px) and (max-width: 1133.98px) {
  #brands,
  #brands .brands-showcase-grid {
    --brands-per-view: 3;
    --brands-gap: clamp(0.95rem, 1.5vw, 1.3rem);
  }

  .brand-showcase-item__name {
    min-height: 2.6em;
    font-size: clamp(0.8125rem, 0.75rem + 0.35vw, 0.9375rem);
  }

  .brand-showcase-item__product {
    min-height: clamp(10.5rem, 18vw, 14.5rem);
  }

  .brand-showcase-item__product img {
    max-height: clamp(10rem, 17.5vw, 13.25rem);
    max-width: 98%;
  }
}

@media (min-width: 641px) and (max-width: 811.98px) {
  #brands,
  #brands .brands-showcase-grid {
    --brands-per-view: 2;
    --brands-gap: clamp(0.75rem, 2.8vw, 1.05rem);
  }

  .brand-showcase-item {
    padding-inline: clamp(0.25rem, 1vw, 0.5rem);
  }

  .brand-showcase-item__name {
    min-height: 2.4em;
    font-size: 1.125rem;
  }

  .brand-showcase-item__desc {
    font-size: 0.9375rem;
  }

  .brand-showcase-item__product {
    min-height: clamp(13rem, 30vw, 17.5rem);
  }

  .brand-showcase-item__product img {
    max-height: clamp(12.5rem, 28vw, 16.5rem);
    max-width: 100%;
  }
}

@media (min-width: 600px) and (max-width: 640.98px) {
  #brands,
  #brands .brands-showcase-grid {
    --brands-per-view: 2;
    --brands-gap: clamp(0.75rem, 2.8vw, 1.05rem);
  }

  .brand-showcase-item {
    padding-inline: clamp(0.25rem, 1vw, 0.5rem);
  }

  .brand-showcase-item__name {
    min-height: 2.4em;
    font-size: 1rem;
  }

  .brand-showcase-item__desc {
    font-size: 0.875rem;
  }

  .brand-showcase-item__product {
    min-height: clamp(13rem, 30vw, 17.5rem);
  }

  .brand-showcase-item__product img {
    max-height: clamp(12.5rem, 28vw, 16.5rem);
    max-width: 100%;
  }
}

@media (max-width: 599.98px) {
  :root {
    --container-px: max(1rem, var(--safe-left), var(--safe-right));
    --section-py: clamp(2rem, 7vw, 3rem);
  }

  #brands,
  #brands .brands-showcase-grid {
    --brands-per-view: 1;
    --brands-gap: clamp(0.7rem, 3.5vw, 1rem);
  }

  #brands .brands-picker {
    overflow: visible;
    margin: 0 auto;
    width: 100%;
  }

  #brands .brands-carousel {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    gap: clamp(0.5rem, 2vw, 0.75rem);
  }

  #brands .brands-showcase-grid {
    margin: 0 auto;
    padding-inline: 0;
    scroll-padding-inline: 0;
    justify-content: start;
  }

  #brands .brands-carousel__footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 1.1rem);
    margin-top: clamp(0.5rem, 2vw, 0.85rem);
    width: 100%;
  }

  #brands .brands-carousel__nav {
    justify-content: center;
    margin: 0 auto;
    gap: 0.75rem;
  }

  #brands .brands-cta-link {
    margin: 0 auto;
    font-size: clamp(0.75rem, 2.8vw, 0.875rem);
  }

  .brand-showcase-item {
    padding-inline: clamp(0.75rem, 4vw, 1.25rem);
    align-items: center;
    scroll-snap-align: center;
  }

  .brand-showcase-item__name,
  .brand-showcase-item__desc,
  .brand-showcase-item__indicator,
  .brand-showcase-item__product {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .brand-showcase-item__name {
    min-height: 2.35em;
    font-size: 1.125rem;
    justify-content: center;
  }

  .brand-showcase-item__indicator {
    font-size: 1rem;
  }

  .brand-showcase-item__desc {
    font-size: 1rem;
    line-height: 1.45;
    text-align: center;
  }

  .brand-showcase-item__product {
    min-height: auto;
    margin-top: 0.35rem;
    justify-content: center;
  }

  .brand-showcase-item__product img {
    max-height: clamp(12rem, 55vw, 18.75rem);
    max-width: 90%;
    margin-inline: auto;
  }

  .social-carousel {
    gap: 0;
  }

  .social-carousel__track .social-card {
    flex: 0 0 clamp(11rem, 72vw, 16rem);
    min-width: clamp(11rem, 72vw, 16rem);
    scroll-snap-align: center;
  }

  .social-carousel__btn {
    display: none;
  }
}

@media (max-width: 374.98px) {
  .brand-showcase-item__name {
    font-size: 1rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .split-band__media:hover img,
  .recipe-card:hover img,
  .product-tile:hover img,
  .social-card:hover img,
  .value-card:hover .value-card__image img,
  .catalog-product:hover {
    transform: none;
  }
}

@media (max-height: 31.25rem) and (orientation: landscape) {
  :root {
    --header-block-size: 3.25rem;
  }

  .split-band__media,
  .split-band__media img {
    min-height: 12rem;
    max-height: 40vh;
  }
}

@media print {
  #main-header,
  .social-carousel__btn,
  .pom-menu-btn {
    display: none !important;
  }

  #hero {
    min-block-size: auto;
    page-break-after: always;
  }

  .pom-section {
    page-break-inside: avoid;
  }
}

/* --- Tablet tier (767.98px) — layout safety without design changes --- */
@media (max-width: 767.98px) {
  .stat-item {
    min-width: 0;
  }

  .product-use-grid,
  .recipe-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
}

/* --- Clip nested horizontal bleed on stacked layouts --- */
@media (max-width: 991.98px) {
  .pom-section,
  .split-band,
  #product-page,
  #recipe-index-page .ri-shell,
  #recipe-category-page .recipe-dishes,
  #recipe-index-page .recipe-dishes {
    overflow-x: clip;
  }
}
