/* ==========================================================================
   ELOVA — RESPONSIVE STYLESHEET
   Breakpoints: Mobile (320-767px), Tablet (768-1023px), Desktop (1024px+)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Laptop & Medium Screens (< 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .footer-col-contact {
    grid-column: span 4;
    padding-top: 1rem;
    border-top: 1px solid rgba(250, 248, 245, 0.08);
  }
}

/* --------------------------------------------------------------------------
   2. Tablet Screens (< 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  :root {
    --header-height: 72px;
  }
  
  /* Header adjustments: Left Cluster (Hamburger + Shop), Center Logo, Right Actions (Search + Bag only) */
  .header-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: clamp(0.75rem, 3vw, 1.5rem);
    padding-right: clamp(0.75rem, 3vw, 1.5rem);
    gap: 0.5rem;
  }

  .header-left-cluster {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
  }

  .mobile-toggle-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 110 !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
  }

  .mobile-toggle-btn .hamburger-bar,
  .hamburger-bar {
    display: block !important;
    width: 22px !important;
    height: 2.4px !important;
    min-height: 2.4px !important;
    background-color: var(--elova-green, #13572d) !important;
    border-radius: 2px !important;
    margin: 2.2px 0 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .site-header.is-transparent.is-dark-hero .mobile-toggle-btn .hamburger-bar {
    background-color: #ffffff !important;
  }

  .mobile-toggle-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(6.8px) rotate(45deg) !important;
  }
  .mobile-toggle-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }
  .mobile-toggle-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-6.8px) rotate(-45deg) !important;
  }

  .nav-left {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
  }

  .nav-left .nav-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
  }

  .nav-left .nav-shop-text {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .nav-left .nav-jar-wrapper {
    width: 20px;
    height: 20px;
  }

  .nav-left .nav-jar-svg {
    width: 20px;
    height: 20px;
  }

  .nav-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    padding: 0 0.35rem;
  }

  .brand-logo-img {
    height: 34px !important;
    max-width: 115px;
  }

  .site-header.scrolled .brand-logo-img {
    height: 30px !important;
  }

  .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 0 0 auto;
  }

  /* Only Shop, Search, Bag and Logo on mobile: Hide Account from the header bar */
  .nav-right a.nav-action-btn[aria-label="Account"],
  .nav-right .nav-account-btn,
  .nav-right [data-action="open-account"] {
    display: none !important;
  }

  .nav-right .nav-action-text {
    display: none !important;
  }

  .nav-action-btn {
    padding: 0.35rem 0.45rem;
  }
  
  /* Hero section */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .hero-content {
    max-width: 100% !important;
  }
  
  .hero-media {
    order: -1;
    max-height: 480px;
  }
  
  /* Editorial Split Section */
  .editorial-split-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  
  /* Ingredients Showcase */
  .ingredients-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Why Elova Pillars */
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
  
  /* Lifestyle Mosaic */
  .lifestyle-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Products Grids */
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Footer */
  .site-footer {
    padding: 2.25rem 0 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .footer-brand-wrap {
    grid-column: span 2;
    gap: 0.65rem;
  }
  
  .footer-col-contact {
    grid-column: span 2;
    padding-top: 0.75rem;
  }
  
  /* Product Detail Page Layout */
  .pdp-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  
  .pdp-gallery-sticky {
    position: static !important;
  }
  
  /* Dedicated Cart Page Layout */
  .cart-page-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Chat Widget Tablet Adjustments */
  .elova-chat-widget {
    bottom: 24px !important;
    right: 20px !important;
  }
  .elova-chat-window {
    bottom: 84px !important;
    right: 20px !important;
    width: 350px !important;
    max-width: calc(100vw - 40px) !important;
    height: min(480px, calc(100vh - 110px)) !important;
    max-height: calc(100vh - 110px) !important;
    overscroll-behavior: contain !important;
  }
  .elova-chat-messages {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }
}

/* --------------------------------------------------------------------------
   3. Mobile Screens (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }
  
  .brand-logo-img {
    height: 32px;
  }

  /* Typography scale */
  .heading-hero {
    font-size: 2.5rem;
  }
  
  .heading-section {
    font-size: 2rem;
  }
  
  .heading-display {
    font-size: 2.5rem;
  }
  
  /* Hero buttons wrap */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }
  
  /* Category Tiles */
  .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  .category-tile {
    aspect-ratio: 16 / 11;
  }
  
  /* Product Grid: 2 columns on mobile as requested */
  .products-grid-4,
  .products-grid-shop,
  #shop-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.15rem !important;
  }
  
  .product-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .minimal-card-media {
    aspect-ratio: 1 / 1;
    margin-bottom: 0.75rem;
  }

  .minimal-card-title {
    font-size: 1.05rem;
  }

  .minimal-card-quick-add {
    opacity: 1 !important;
    transform: scale(1) !important;
    width: 34px;
    height: 34px;
    bottom: 0.6rem;
    right: 0.6rem;
  }

  .product-title {
    font-size: 1.1rem;
  }
  
  .product-quick-add-btn {
    display: none; /* In mobile, tap product card or quick tap button */
  }

  .product-card-mobile-add {
    display: block !important;
    margin-top: 0.5rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.6875rem;
    width: 100%;
  }
  
  /* Ingredients Showcase */
  .ingredients-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  /* Pillars */
  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  
  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Instagram grid */
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  
  /* Newsletter */
  .newsletter-form {
    flex-direction: column !important;
    width: 100%;
  }

  .newsletter-form input {
    width: 100% !important;
  }

  .newsletter-form button {
    width: 100% !important;
  }
  
  /* Footer */
  .site-footer {
    padding: 1.75rem 0 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding-bottom: 1.15rem;
  }
  
  .footer-brand-wrap {
    grid-column: span 1;
    gap: 0.5rem;
  }

  .site-footer img.footer-logo {
    height: 34px !important;
  }

  .footer-heading {
    margin-bottom: 0.5rem !important;
  }

  .footer-nav-list {
    gap: 0.35rem !important;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 0.75rem;
    padding-top: 1rem;
    text-align: center;
  }
  
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
  }
  
  /* Cart Drawer adjustments */
  .cart-drawer-panel {
    max-width: 100% !important;
  }
  .cart-drawer-header {
    padding: 1.25rem 1.25rem !important;
  }
  .cart-drawer-close-btn,
  .cart-drawer-header [data-action="close-cart"] {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
  
  /* Mobile Menu & Search Close Button Adjustments */
  .mobile-menu-overlay {
    padding: 1rem 1.25rem 2rem !important;
  }
  .mobile-menu-close-btn {
    padding: 0.45rem 0.95rem !important;
    min-height: 40px !important;
  }
  .search-close-btn {
    top: 1rem !important;
    right: 1rem !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
  
  /* Disable custom cursor on mobile */
  .custom-cursor {
    display: none !important;
  }
  
  /* Shop page filters */
  .shop-filter-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .shop-filter-groups {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  /* Chat Widget Mobile Adjustments */
  .elova-chat-widget {
    bottom: 18px !important;
    right: 14px !important;
  }
  .elova-chat-launcher {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  .elova-chat-window {
    position: fixed !important;
    bottom: 74px !important;
    right: 10px !important;
    left: 10px !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    height: min(490px, calc(100dvh - 84px)) !important;
    max-height: calc(100dvh - 84px) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32) !important;
    overscroll-behavior: contain !important;
  }
  .elova-chat-close-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 6px !important;
    touch-action: manipulation !important;
  }
  .elova-chat-close-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  .elova-chat-messages {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0.85rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }
  .elova-chat-chip {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.72rem !important;
    touch-action: manipulation !important;
  }
  .elova-chat-send-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    touch-action: manipulation !important;
  }
}

/* --------------------------------------------------------------------------
   4. Extra Small Screens (< 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  :root {
    --container-padding: 1rem;
  }
  
  .heading-hero {
    font-size: 2.1rem;
  }
  
  .product-title {
    font-size: 1rem;
  }
}

/* Cinematic Hero Responsive Adjustments */
@media (max-width: 1023px) {
  .hero-editorial-heading {
    font-size: 3rem;
  }
  .hero-icon-group {
    padding: 0.6rem 1.1rem;
    gap: 1.2rem;
  }
}

@media (max-width: 767px) {
  .cinematic-hero-section {
    height: 100svh;
  }
  .cinematic-hero-container {
    padding: calc(var(--header-height) + 0.75rem) 1.25rem 1.5rem;
  }
  .hero-top-row {
    flex-direction: column;
    gap: 1.1rem;
  }
  .hero-editorial-heading {
    font-size: 1.35rem;
    line-height: 1.15;
  }
  .hero-icon-group {
    align-self: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.65rem;
  }
  .hero-icon-badge {
    gap: 0.35rem;
  }
  .hero-icon-circle {
    width: 26px;
    height: 26px;
  }
  .hero-icon-svg {
    width: 12px;
    height: 12px;
  }
  .hero-icon-label {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }
  .hero-bottom-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  .hero-bottom-left {
    display: none;
  }
  .hero-bottom-center {
    width: 100%;
    order: 1;
    gap: 0.75rem;
  }
  .hero-ghost-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.75rem;
  }
  .hero-bottom-right {
    order: 2;
    width: 100%;
    justify-content: flex-end;
  }
  .hero-editorial-script-box {
    text-align: right;
  }
  .hero-editorial-script {
    font-size: 1.05rem;
  }
  .hero-scroll-explore {
    order: 3;
    margin-top: 0.25rem;
  }
}


/* Customer account content must shrink within narrow phones. */
.elova-account-content-wrapper, .elova-account-content-wrapper .woocommerce-MyAccount-content,
.elova-myaccount-sidebar-col, .elova-myaccount-content-col, .elova-account-nav-card,
.elova-member-hero-card > div, .elova-member-hero-card > div > div { min-width: 0; }
.elova-member-hero-card h1, .elova-member-hero-card p { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .elova-member-hero-card > div:first-child { flex-wrap: wrap; }
  .elova-myaccount-content-col { padding: 1rem !important; }
  .elova-account-page-main .woocommerce-MyAccount-content { padding: 0 !important; width: 100%; }
  .elova-myaccount-content-col p, .elova-myaccount-content-col address { overflow-wrap: anywhere; }
  .elova-account-page-main input, .elova-account-page-main select { max-width: 100%; font-size: 16px !important; }
}
/* Keep whole category cards inside the page gutters at every snapped position. */
.chapters-track{--chapter-gap:24px;--chapter-columns:3;box-sizing:border-box;max-width:var(--container-max,1280px);margin-inline:auto;padding-inline:var(--container-padding,24px);scroll-padding-inline:var(--container-padding,24px);gap:var(--chapter-gap)}
.chapters-track .chapter-card{box-sizing:border-box;flex:0 0 calc((100% - (var(--chapter-columns) - 1)*var(--chapter-gap))/var(--chapter-columns));min-width:0;scroll-snap-align:start;padding:28px 24px}
.chapters-track .chapter-card-top{gap:12px;flex-wrap:wrap}.chapters-track .chapter-card-pill-btn{max-width:100%;white-space:normal}
.elova-purchase-controls{display:grid;grid-template-columns:120px minmax(0,1fr) 52px;align-items:center;gap:12px;margin-bottom:24px;min-width:0}
.elova-purchase-controls .qty-stepper{width:100%;min-width:0;justify-content:space-between}
.elova-purchase-controls #pdp-add-to-cart-btn{min-width:0;width:100%;padding:12px 16px;white-space:nowrap;gap:10px;font-size:14px;letter-spacing:.04em}
.elova-purchase-controls #pdp-add-to-cart-btn span{white-space:nowrap}.elova-purchase-controls #pdp-add-to-cart-btn svg{flex-shrink:0}
.elova-purchase-controls button.elova-product-save{display:flex;align-items:center;justify-content:center;padding:0;background:#fff;color:#13572d;box-shadow:none;flex-shrink:0}
.elova-purchase-controls button.elova-product-save svg{display:block;width:20px;height:20px;flex-shrink:0;stroke:currentColor}
.elova-purchase-controls button.elova-product-save.is-active{color:#b83535;background:#fff5f3}
.elova-purchase-controls button:focus-visible{outline:2px solid #13572d;outline-offset:3px}
@media(max-width:1100px){.chapters-track{--chapter-columns:2}.chapters-track .chapter-card{height:500px}}
@media(max-width:600px){.chapters-track{--chapter-columns:1;--chapter-gap:16px;padding-inline:20px;scroll-padding-inline:20px}.chapters-track .chapter-card{height:480px;padding:24px}.chapters-track .chapter-card-title{font-size:30px}}
@media(max-width:480px){.elova-purchase-controls{grid-template-columns:minmax(0,1fr) 52px}.elova-purchase-controls #pdp-add-to-cart-btn{grid-column:1/-1;grid-row:2}.elova-purchase-controls .elova-product-save{grid-column:2;grid-row:1}}
/* Put gutters outside the scrolling viewport so neighbouring cards do not peek through them. */
.chapters-carousel-container{box-sizing:border-box;max-width:var(--container-max,1440px);margin-inline:auto;padding-inline:var(--container-padding,24px)}
.chapters-carousel-container .chapters-track{max-width:none;padding-inline:0;scroll-padding-inline:0}
@media(max-width:600px){.chapters-carousel-container{padding-inline:20px}}
/* Search remains usable with an on-screen keyboard and explicit submit control. */
#elova-search-form{display:flex;align-items:center;gap:8px;margin:0 0 20px}
#elova-search-form .search-input-field{min-width:0;flex:1;padding-right:8px!important}
#elova-search-form .search-clear-btn{position:static;flex-shrink:0;transform:none}
#elova-search-form .elova-search-submit{flex-shrink:0;background:#13572d;color:white;padding:10px 14px;border:0;border-radius:7px;font-size:13px;min-height:42px}
.search-modal-content{max-height:calc(100dvh - 32px);overflow-y:auto}.search-suggestions-box{display:block!important}
.elova-purchase-controls{grid-template-columns:120px minmax(0,1fr)}
@media(max-width:1024px){.lifestyle-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}.lifestyle-grid .lifestyle-tile{grid-column:auto!important;grid-row:auto!important;aspect-ratio:3/4!important;height:auto!important;min-width:0}.lifestyle-grid .lifestyle-tile img{display:block;width:100%;height:100%;object-fit:cover}.lifestyle-grid .lifestyle-tile>div{left:12px!important;bottom:12px!important}.lifestyle-grid .lifestyle-tile h4{font-size:16px!important}}

/* --------------------------------------------------------------------------
   Hero Section Mobile & Tablet Button Text Color Fix
   -------------------------------------------------------------------------- */
.elova-hero-rotator .hero-rot-btn-primary,
.elova-hero-rotator .hero-rot-btn-primary:link,
.elova-hero-rotator .hero-rot-btn-primary:visited,
.elova-hero-rotator .hero-rot-btn-primary:hover,
.elova-hero-rotator .hero-rot-btn-primary:focus,
.elova-hero-rotator .hero-rot-btn-primary:active,
.hero-rot-ctas a.hero-rot-btn-primary,
.hero-rot-ctas a.hero-rot-btn-primary:link,
.hero-rot-ctas a.hero-rot-btn-primary:visited,
.hero-rot-ctas a.hero-rot-btn-primary:hover,
.hero-rot-ctas a.hero-rot-btn-primary:focus,
.hero-rot-ctas a.hero-rot-btn-primary:active {
  color: #ffffff !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.elova-hero-rotator .hero-rot-btn-primary span,
.hero-rot-ctas a.hero-rot-btn-primary span {
  color: #ffffff !important;
}

.elova-hero-rotator .hero-rot-btn-primary svg,
.hero-rot-ctas a.hero-rot-btn-primary svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.elova-hero-rotator .hero-rot-btn-ghost,
.elova-hero-rotator .hero-rot-btn-ghost:link,
.elova-hero-rotator .hero-rot-btn-ghost:visited,
.hero-rot-ctas a.hero-rot-btn-ghost,
.hero-rot-ctas a.hero-rot-btn-ghost:link,
.hero-rot-ctas a.hero-rot-btn-ghost:visited {
  color: var(--text-primary, #1a221d) !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.elova-hero-rotator .hero-rot-btn-ghost:hover,
.elova-hero-rotator .hero-rot-btn-ghost:focus,
.elova-hero-rotator .hero-rot-btn-ghost:active,
.hero-rot-ctas a.hero-rot-btn-ghost:hover,
.hero-rot-ctas a.hero-rot-btn-ghost:focus,
.hero-rot-ctas a.hero-rot-btn-ghost:active {
  color: var(--hero-accent, #13572d) !important;
  text-decoration: none !important;
}

/* Product controls have fixed touch targets, independent of Astra button padding. */
.elova-purchase-controls .qty-stepper{box-sizing:border-box;display:grid;grid-template-columns:44px minmax(32px,1fr) 44px;width:140px;max-width:100%;padding:0!important;overflow:hidden;border-radius:8px}
.elova-purchase-controls{grid-template-columns:140px minmax(0,1fr)}
.elova-purchase-controls .qty-stepper .qty-btn{display:flex;align-items:center;justify-content:center;width:44px!important;min-width:0;height:50px!important;padding:0!important;margin:0;line-height:1;flex-shrink:0}
.elova-purchase-controls .qty-val{min-width:0!important;line-height:1}
#pdp-weight-selector-wrap>div:first-child{flex-wrap:wrap;gap:8px}
#pdp-selected-weight-label,.cart-page-row-total,.summary-total-val,.summary-line .amount{white-space:nowrap}
.cart-page-prod-col,.cart-page-meta,.summary-voucher-input{min-width:0}
.cart-page-thumb-link img.cart-page-thumb{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
.footer-credit{display:inline-block;margin-left:12px}.footer-credit a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:767px){
  body .cart-page-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:16px;position:relative}
  body .cart-page-prod-col{grid-column:1/-1;gap:12px;padding-right:28px;align-items:flex-start}
  body .cart-page-thumb-link{width:72px;height:96px;padding:5px}
  body .cart-page-title{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
  body .cart-page-category{font-size:9px;letter-spacing:.06em}
  body .cart-page-qty-col{justify-content:flex-start}
  body .cart-page-total-col{align-self:center;text-align:right}
  body .cart-page-action-col{position:absolute;top:8px;right:4px}
  body .order-summary-box{padding:24px 18px;position:static}
  .summary-voucher-input-row{flex-wrap:wrap}.summary-voucher-input-row input{width:0;min-width:120px;font-size:14px}.summary-voucher-btn{flex-shrink:0}
  .summary-total,.summary-line{gap:12px;flex-wrap:wrap}
  .footer-credit{display:block;margin:8px 0 0}
  .elova-purchase-controls{grid-template-columns:140px minmax(0,1fr)}
  .elova-purchase-controls #pdp-add-to-cart-btn{grid-column:1/-1;grid-row:2}
  body.woocommerce-checkout .elova-chat-widget,body.single-product .elova-chat-widget{position:relative;right:auto;bottom:auto;display:flex;justify-content:flex-end;margin:16px;z-index:20}
  body .elova-chat-window{position:fixed;right:12px;bottom:80px;max-width:calc(100vw - 24px)}
}
/* Order confirmation must not inherit WooCommerce's floated summary columns. */
.woocommerce-order ul.order_details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0;padding:24px;background:#fff;border:1px solid #dce5d3;border-radius:12px}
.woocommerce-order ul.order_details::before,.woocommerce-order ul.order_details::after{display:none}
.woocommerce-order ul.order_details li{float:none;width:auto;min-width:0;border:0;margin:0;padding:0;line-height:1.6;overflow-wrap:anywhere}
.woocommerce-order ul.order_details li strong{font-size:16px;line-height:1.6}
.woocommerce-order .woocommerce-customer-details address{overflow-wrap:anywhere}
.woocommerce-order .amount{white-space:nowrap}
@media(max-width:480px){
 .woocommerce-order ul.order_details{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px}
 .woocommerce-order table.shop_table{font-size:13px;table-layout:fixed}
 .woocommerce-order table.shop_table th,.woocommerce-order table.shop_table td{padding:12px 8px;overflow-wrap:anywhere}
 .woocommerce-order table.shop_table th:last-child,.woocommerce-order table.shop_table td:last-child{width:38%}
}
@media(max-width:767px){
 body.woocommerce-checkout .elova-chat-widget,body.single-product .elova-chat-widget{position:relative!important;right:auto!important;bottom:auto!important;z-index:20!important}
}

/* Navigation height follows the header at every breakpoint. */
:root{--elova-nav-height:74px;--header-height:var(--elova-nav-height)}
#main-header.site-header{height:var(--header-height)!important;flex-direction:column;justify-content:flex-start}
#main-header .header-container{height:var(--elova-nav-height);min-height:var(--elova-nav-height);position:relative}
@media(max-width:1023px){:root{--elova-nav-height:72px}}
@media(max-width:767px){:root{--elova-nav-height:70px}}
/* Keep the controls in their own tracks on tablet and desktop as well as phones. */
.elova-purchase-controls .qty-stepper{min-height:52px;align-items:center;gap:0;flex-shrink:0}
.elova-purchase-controls .qty-stepper .qty-btn{box-sizing:border-box;max-width:44px;min-height:44px;border-radius:0;position:static;transform:none}
.elova-purchase-controls .qty-val{display:block;width:100%;padding:0;margin:0}
@media(min-width:768px) and (max-width:1100px){.elova-purchase-controls{grid-template-columns:140px minmax(0,1fr)}.elova-purchase-controls #pdp-add-to-cart-btn{grid-column:1/-1;grid-row:2}}
/* Shopping actions must stay clear of the chat launcher on tablets and desktop too. */
body.woocommerce-checkout .elova-chat-widget,body.single-product .elova-chat-widget{position:relative!important;right:auto!important;bottom:auto!important;display:flex;justify-content:flex-end;margin:16px;z-index:20!important}
body.woocommerce-checkout .elova-chat-window,body.single-product .elova-chat-window{position:fixed;right:12px;bottom:80px;max-width:calc(100vw - 24px)}

/* Collection navigation keeps the centered brand clear on smaller screens. */
.nav-left .nav-collection-link { font-size: 11px; white-space: nowrap; letter-spacing: .3px; }
@media (max-width: 1100px) { .nav-left .nav-collection-link { display: none; } }
/* Keep live concierge results and homepage cards inside narrow screens. */
.concierge-result{padding:12px 0;border-top:1px solid rgba(19,87,45,.12);overflow-wrap:anywhere}
.concierge-result p{margin:6px 0 0;font-size:13px;line-height:1.65}
.elova-chat-messages{overscroll-behavior:contain;overflow-wrap:anywhere}
.elova-chat-input-area .elova-chat-input{min-width:0}
#bestsellers-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1024px){#bestsellers-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){#bestsellers-grid{grid-template-columns:1fr!important}}
@media(max-width:1024px){body .elova-chat-window{max-height:calc(100dvh - 100px);width:min(380px,calc(100vw - 24px))}}

/* Compact navigation and scrollable product thumbnails. */
.mobile-nav-links { gap: .65rem !important; }
.mobile-nav-links .mobile-nav-item { gap: .8rem !important; min-height: 44px; }
.mobile-nav-links .mobile-nav-item svg, .mobile-nav-links .nav-jar-wrapper, .mobile-nav-links .mobile-nav-account-icon-wrap { width: 24px !important; height: 24px !important; flex-shrink: 0; }
.collection-gallery-thumbs, .pdp-thumbs-row { display: flex; gap: .6rem; overflow-x: auto; padding: .5rem 0; }
.collection-gallery-thumbs button { flex: 0 0 68px; height: 68px; padding: 4px; background: #fff; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; }
.collection-gallery-thumbs button[aria-pressed="true"] { border-color: #13572d; }
.collection-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb-btn { flex-shrink: 0; }

/* Cart: allow grid tracks and WooCommerce tax notes to fit the viewport. */
body[data-page="cart"] .cart-page-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}
body[data-page="cart"] .cart-page-grid > *,
body[data-page="cart"] .cart-page-item-row > *,
body[data-page="cart"] .cart-page-meta {
  min-width: 0;
}
body[data-page="cart"] .order-summary-box {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(1rem, 2.5vw, 2rem);
}
body[data-page="cart"] .summary-line {
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}
body[data-page="cart"] .summary-total {
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
body[data-page="cart"] .summary-total-val {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  margin-left: auto;
  text-align: right;
}
body[data-page="cart"] .summary-total-val .amount {
  white-space: nowrap;
}
body[data-page="cart"] .summary-total-val .includes_tax {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary, #535e57);
  white-space: normal;
}
body[data-page="cart"] .summary-voucher-input {
  width: 0;
  min-width: 0;
  flex: 1 1 0%;
}
body[data-page="cart"] .summary-voucher-btn {
  flex-shrink: 0;
  min-height: 44px;
}
body[data-page="cart"] .cart-checkout-btn {
  height: auto;
  min-height: 52px;
  padding: 0.85rem 1rem;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  letter-spacing: 0.01em;
}
body[data-page="cart"] .cart-checkout-btn svg {
  flex-shrink: 0;
}
body[data-page="cart"] .cart-page-prod-col {
  min-width: 0;
  overflow-wrap: anywhere;
}
body[data-page="cart"] .footer-top > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
body[data-page="cart"] .footer-contacts a,
body[data-page="cart"] .footer-contacts svg {
  color: var(--off-white, #faf8f5) !important;
}
body[data-page="cart"] .footer-contacts svg {
  flex-shrink: 0;
}
body[data-page="cart"] .footer-bottom,
body[data-page="cart"] .footer-legal-links {
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 1100px) {
  body[data-page="cart"] .cart-page-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
  }
  body[data-page="cart"] .order-summary-box {
    position: static;
  }
}
@media (max-width: 1023px) {
  body[data-page="cart"] .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  body[data-page="cart"] .footer-brand-wrap,
  body[data-page="cart"] .footer-col-contact {
    grid-column: 1 / -1;
  }
  body[data-page="cart"] .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  body[data-page="cart"] .footer-legal-links {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  body[data-page="cart"] .cart-page-main {
    padding-top: calc(var(--header-height, 70px) + 1.5rem);
    padding-bottom: 3rem;
  }
  body[data-page="cart"] .cart-page-header-wrap {
    margin-bottom: 1.5rem;
  }
  body[data-page="cart"] .cart-shipping-banner {
    padding: 1rem;
  }
  body[data-page="cart"] .cart-table-header {
    display: none;
  }
  body[data-page="cart"] .cart-page-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body[data-page="cart"] .summary-voucher-input {
    font-size: 16px;
    letter-spacing: 0;
  }
  body[data-page="cart"] .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }
  body[data-page="cart"] .site-footer {
    padding-top: 2rem;
  }
}

/* Homepage ingredient story and community invitation. */
.home-ingredients-heading{text-align:center;max-width:850px;margin:0 auto 30px}
.home-ingredients-heading .heading-section{margin-bottom:14px;font-size:clamp(30px,3.5vw,48px)}
.home-ingredients-heading .body-lead{max-width:690px;margin:0 auto;font-size:15px;line-height:1.75}
.home-ingredients-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-ingredient-card{background:#fbfaf7;padding:22px 18px 25px;text-align:center}
.home-ingredient-card>img{display:block;width:min(100%,170px);height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;margin:0 auto 18px}
.home-ingredient-card h3{font-family:var(--font-serif);font-size:clamp(21px,2vw,27px);font-weight:500;line-height:1.15;margin:0 0 10px}
.home-ingredient-card .eyebrow{font-size:9px;letter-spacing:.18em;margin-bottom:12px}
.home-ingredient-card p{font-size:13px;line-height:1.7;color:var(--color-text-muted,#738078);margin:0 auto;max-width:230px}
.newsletter-community-copy{max-width:660px;margin:20px auto 0;color:var(--color-text-muted,#738078);font-size:14px;line-height:1.8}
#newsletter-form input{min-width:0}
@media(max-width:900px){.home-ingredients-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#newsletter-form{flex-direction:column}#newsletter-form .btn{justify-content:center;white-space:normal!important}.home-ingredients-grid{gap:12px}.home-ingredient-card{padding:18px 12px}.home-ingredient-card h3{font-size:22px}.home-ingredient-card p{font-size:12px}}
@media(max-width:359px){.home-ingredients-grid{grid-template-columns:1fr}}

/* Food-led collection panels: copy above the bowls, as in the reference. */
.snack-collection-panels{min-height:0;gap:6px;background:#faf8f3}
.snack-collection-panels .split-card{min-height:0;aspect-ratio:3/2;justify-content:flex-start;padding:clamp(22px,3vw,44px) 20px;gap:12px}
.snack-collection-panels .split-card-overlay,.snack-collection-panels .split-card:hover .split-card-overlay{background:linear-gradient(180deg,rgba(0,0,0,.15),transparent 65%)}
.snack-collection-panels .split-card-eyebrow{font-size:clamp(8px,.8vw,11px);letter-spacing:.22em;text-shadow:none}
.snack-collection-panels .split-card-title{font-size:clamp(30px,3.4vw,50px);line-height:1.05;margin:0 0 18px;text-shadow:0 1px 6px #0002}
.snack-collection-panels .split-card-pill-btn{padding:11px 25px;font-size:10px;letter-spacing:.17em;box-shadow:none;min-height:44px}
.snack-collection-panels .split-card-pill-btn:focus-visible{outline:2px solid #fff;outline-offset:5px}
@media(max-width:868px){.snack-collection-panels{grid-template-columns:1fr}.snack-collection-panels .split-card{aspect-ratio:3/2;padding-top:24px;gap:8px}.snack-collection-panels .split-card-title{font-size:clamp(30px,6vw,44px);margin-bottom:12px}}
@media(max-width:420px){.snack-collection-panels .split-card{aspect-ratio:5/4;padding-top:20px}.snack-collection-panels .split-card-bg{object-position:center bottom}}

/* Keep every rotating benefit inside its mobile column, including long labels. */
@media (max-width: 921px) {
  .hero-rot-feature-bar-inner { align-items: stretch !important; }
  .hero-rot-feature { flex: 1 1 0 !important; justify-content: flex-start; }
  .hero-rot-feature > div { width: 100%; min-width: 0; }
  .hero-rot-feat-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    line-height: 1.35 !important;
  }
  .hero-rot-feature-divider { align-self: center; }
}
/* Use the supplied product photography with its original print and soft finish. */

.hero-rot-packet {
  mix-blend-mode: multiply;
  filter: none;
}
/* Blend the original white studio backdrop into the hero colour at its stacking layer. */
.hero-rot-inner { mix-blend-mode: multiply; }
