@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");

/*
Theme Name: Yalo FSE
Theme URI: 
Author: Yalo
Author URI: 
Description: FSE block starter theme
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yalo-fse
Tags: 
*/
:root {
  /* ==========================================================================
     Colors
     ========================================================================== */
  /* Primary Colors */
  --color-gold: #987900;
  --color-white: #ffffff;
  --color-dark: #333;
  --color-black: #000;
  --color-off-white: #F4F0E8;
  /* Secondary Colors */
  --color-orange-yellow: #F0B336;
  --color-orange: #EA961C;
  --color-lime: #C6D219;
  --color-green: #008C55;
  --color-medium-green: #3E822A;
  --color-middle-green: #3E822A;
  --color-light-green: #5DB044;
  --color-blue: #002e64;
  --color-purple: #83428F;
  --color-red: #C1000B;
  /* Neutral Colors */
  --color-light: #FAF8F3;
  --color-grey-100: #EDEDED;
  --color-grey-200: #C8C8C8;
  --color-grey-400: #5A5A5A;
  --color-body-background: #f9f4f1;
  /* ==========================================================================
     Typography
     ========================================================================== */
  /* Font Families */
  --font-primary: "berthold-baskerville-pro", serif;
  --font-secondary: "Open Sans", Arial, sans-serif;
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-medium: 400;
  /* Base Font Sizes */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 26px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  /* Headline Sizes - Mobile First */
  --headline-xxl: 56px;
  --headline-xl: 48px;
  --headline-lg: 40px;
  --headline-md: 32px;
  --headline-sm: 26px;
  --headline-xs: 22px;
  --headline-xxs: 16px;
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.5;
  /* Letter Spacing */
  --letter-spacing-tight: 0.5px;
  --letter-spacing-normal: 1px;
  --letter-spacing-wide: 2px;
  /* ==========================================================================
     Breakpoints (for reference in CSS)
     ========================================================================== */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1400px;
  --breakpoint-xxl: 1920px;
  /* ==========================================================================
     Spacing
     ========================================================================== */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  /* ==========================================================================
     Transitions
     ========================================================================== */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

body,
.wp-site-blocks {
  font-family: var(--font-secondary);
  color: #333333;
  background-color: var(--color-body-background);
}

/* Product post type: white canvas (overrides theme.json global background when needed) */
body.single-product,
body.post-type-product,
body.post-type-archive-product,
body.single-product .wp-site-blocks,
body.post-type-product .wp-site-blocks,
body.post-type-archive-product .wp-site-blocks {
  background-color: var(--color-white) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 400;
}

h1 {
  font-size: 48px;
  line-height: 56px;
}

@media (min-width: 992px) {
  h1 {
    font-size: 60px;
    line-height: 62px;
  }
}

h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

@media (min-width: 992px) {
  h4 {
    font-size: 24px;
  }
}

p {
  font-family: var(--font-secondary);
}

@media (max-width: 991px) {
  p {
    font-size: 14px;
  }
}

@media (min-width: 992px) {
  p {
    line-height: 24px;
  }
}

.sans-serif {
  font-family: var(--font-secondary);
}

.serif {
  font-family: var(--font-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
button, a.button, p.button, .wp-block-button__link {
  box-sizing: border-box;
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.5px;
  background-color: #ffd400;
  color: #002e64;
  border: 1px solid transparent;
  height: 60px;
  padding: 0 40px;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover, a.button:hover, p.button:hover, .wp-block-button__link:hover,
button:focus, a.button:focus, p.button:focus, .wp-block-button__link:focus,
button:active, a.button:active, p.button:active, .wp-block-button__link:active {
  background-color: #fff;
  color: #002e64;
  border: 1px solid #002e64;
}
button:disabled, a.button:disabled, p.button:disabled, .wp-block-button__link:disabled {
  background-color: var(--color-grey-200);
  color: var(--color-grey-400);
}

/* Core Button block: match hero CTA + hover (block-library loads after theme) */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: #ffd400 !important;
  color: #002e64 !important;
  border: 1px solid transparent !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
  background-color: #fff !important;
  color: #002e64 !important;
  border: 1px solid #002e64 !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:active {
  background-color: #fff !important;
  color: #002e64 !important;
  border: 1px solid #002e64 !important;
}

/* Outlined “lined” buttons (e.g. <a class="button lined">) — for use on dark backgrounds */
a.button.lined,
button.lined {
  background-color: transparent;
  color: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 5px;
}

a.button.lined:hover,
a.button.lined:focus,
a.button.lined:active,
button.lined:hover,
button.lined:focus,
button.lined:active {
  background-color: #ffffff;
  color: #002e64;
  border: 4px solid #ffffff;
}

button.lined:disabled,
a.button.lined:disabled {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}

button.dark, a.button.dark {
  background-color: var(--color-white);
}
button.dark:hover, a.button.dark:hover {
  background-color: var(--color-gold);
}
button.dark:active, a.button.dark:active {
  background-color: var(--color-orange);
}
button.dark:focus, a.button.dark:focus {
  background-color: var(--color-gold);
  border: 2px solid var(--color-white);
}
button.dark:disabled, a.button.dark:disabled {
  background-color: var(--color-grey-200);
  color: var(--color-grey-400);
}
button.arrow, a.button.arrow {
  position: relative;
  padding-left: 60px;
  overflow: hidden;
}
button.arrow span, a.button.arrow span {
  position: relative;
}
button.arrow:before, a.button.arrow:before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.5rem;
  background-color: var(--color-white);
  border-radius: 50px;
  width: 34px;
  height: 34px;
  transition: all 0.4s ease-in-out;
}
button.arrow:after, a.button.arrow:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.5rem;
  width: 34px;
  height: 34px;
  background-image: url(/wp-content/themes/yalo/utility/arrow-right.svg);
  background-repeat: no-repeat;
  background-position: center;
  transition: none;
}
button.arrow:hover:before, a.button.arrow:hover:before {
  top: 50%;
  transform: translateY(-50%);
  left: -50px;
  border-radius: 1000px;
  width: calc(100% + 50px);
  height: 500px;
}
button.small, a.button.small {
  box-sizing: border-box;
  height: 48px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.link-lg.arrow {
  position: relative;
  text-decoration: none;
  width: max-content;
  background-image: linear-gradient(var(--color-dark), var(--color-dark));
  background-size: 0% 0.1em;
  background-position-y: 100%;
  background-position-x: 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease-in-out;
}
a.link-lg.arrow:hover, a.link-lg.arrow:focus, a.link-lg.arrow:active {
  background-size: 100% 0.1em;
  background-position-x: 0%;
}
a.link-lg.arrow:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0rem;
  margin-right: -48px;
  background-color: var(--color-gold);
  border-radius: 50px;
  width: 34px;
  height: 34px;
  background-image: url(/wp-content/themes/yalo/utility/arrow-right.svg);
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.2s ease-in-out;
}
a.link-lg.arrow:hover:after {
  width: 38px;
  height: 38px;
}

.link-sm.arrow {
  position: relative;
  padding-left: 48px;
  width: max-content;
  background-position-x: 48px;
}
.link-sm.arrow:hover, .link-sm.arrow:focus, .link-sm.arrow:active {
  background-position-x: calc(100% + 48px);
}
.link-sm.arrow:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0rem;
  margin-right: 48px;
  background-color: var(--color-gold);
  border-radius: 50px;
  width: 34px;
  height: 34px;
  background-image: url(/wp-content/themes/yalo/utility/arrow-right.svg);
  background-repeat: no-repeat;
  background-position: center;
}

.hero a.button {
  /* Inherits global button sizing; ensure hero overrides match */
  background-color: #ffd400;
  color: #002e64;
  border: 1px solid transparent;
  box-sizing: border-box;
  height: 60px;
  padding: 0 40px;
  border-radius: 5px;
}
.hero a.button:hover,
.hero a.button:focus,
.hero a.button:active {
  background-color: #fff;
  color: #002e64;
  border: 1px solid #002e64;
}
.hero a.button:disabled {
  background-color: var(--color-grey-200);
  color: var(--color-grey-400);
}
.hero .wp-block-button__link {
  background-color: #ffd400;
  color: #002e64;
  border: 1px solid transparent;
  box-sizing: border-box;
  height: 60px;
  padding: 0 40px;
  border-radius: 5px;
}
.hero .wp-block-button__link:hover,
.hero .wp-block-button__link:focus,
.hero .wp-block-button__link:active {
  background-color: #fff;
  color: #002e64;
  border: 1px solid #002e64;
}
.hero a.button.arrow {
  position: relative;
  padding-left: 60px;
  overflow: hidden;
}
.hero a.button.arrow span {
  position: relative;
}
.hero a.button.arrow:before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.5rem;
  background-color: var(--color-gold);
  border-radius: 50px;
  width: 34px;
  height: 34px;
  transition: all 0.4s ease-in-out;
}
.hero a.button.arrow:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.5rem;
  width: 34px;
  height: 34px;
  background-image: url(/wp-content/themes/yalo/utility/arrow-right.svg);
  background-repeat: no-repeat;
  background-position: center;
  transition: none;
}
.hero a.button.arrow:hover:before {
  top: 50%;
  transform: translateY(-50%);
  left: -50px;
  border-radius: 1000px;
  width: calc(100% + 50px);
  height: 500px;
}

button .secondary, a.button.secondary {
  background-color: var(--color-white);
}
button .secondary:active, a.button.secondary:active {
  background-color: var(--color-light);
}
button .secondary.arrow:before, a.button.secondary.arrow:before {
  background-color: var(--color-off-white);
}
button .secondary.arrow.yellow:before, a.button.secondary.arrow.yellow:before {
  background-color: var(--color-gold);
}

a.nostyle:link {
  text-decoration: inherit;
  color: inherit;
}

a.nostyle:visited {
  text-decoration: inherit;
  color: inherit;
}

.new-tag {
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  background: var(--color-medium-green);
  color: var(--color-white);
  width: max-content;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
   .headline-xl {
    font-size: 48px;
  }

  @media (min-width: 992px) {
    .headline-xl {
      font-size: 60px;
    }
  }
  


/* ==========================================================================
  Global Container
  ========================================================================== */
.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Constrain only typography/content blocks, not layout/hero blocks */
.wp-block-post-content > .wp-block-heading,
.wp-block-post-content > .wp-block-paragraph,
.wp-block-post-content > .wp-block-list,
.wp-block-post-content > .wp-block-quote,
.wp-block-post-content > .wp-block-preformatted,
.wp-block-post-content > .wp-block-table {
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }

  .wp-block-post-content > .wp-block-heading,
  .wp-block-post-content > .wp-block-paragraph,
  .wp-block-post-content > .wp-block-list,
  .wp-block-post-content > .wp-block-quote,
  .wp-block-post-content > .wp-block-preformatted,
  .wp-block-post-content > .wp-block-table {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }

  .wp-block-post-content > .wp-block-heading,
  .wp-block-post-content > .wp-block-paragraph,
  .wp-block-post-content > .wp-block-list,
  .wp-block-post-content > .wp-block-quote,
  .wp-block-post-content > .wp-block-preformatted,
  .wp-block-post-content > .wp-block-table {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }

  .wp-block-post-content > .wp-block-heading,
  .wp-block-post-content > .wp-block-paragraph,
  .wp-block-post-content > .wp-block-list,
  .wp-block-post-content > .wp-block-quote,
  .wp-block-post-content > .wp-block-preformatted,
  .wp-block-post-content > .wp-block-table {
    width: 1170px;
  }
}

/* ==========================================================================
  Header/Nav Recovery
  ========================================================================== */
.ci-header {
  --ci-header-row-height: 52px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

body.admin-bar .ci-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ci-header {
    top: 46px;
  }
}

.ci-header-mobile,
.ci-header-desktop-top {
  background: rgba(255, 255, 255, 0.9);
}

.ci-header-mobile {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  padding: 0 20px;
  padding-right: 112px;
  overflow: visible;
  z-index: 0;
}

.ci-header-mobile-actions {
  position: absolute;
  top: 0;
  right: 20px;
  height: 60px;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: center;
  margin: 0 !important;
  z-index: 2;
}

.ci-header-desktop-top {
  display: none !important;
  position: relative;
  height: var(--ci-header-row-height);
  padding: 0 20px;
  justify-content: flex-end !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.ci-header-desktop-top .ci-header-logo {
  position: absolute;
  top: 14px;
  left: 10px;
  z-index: 30;
  margin: 0;
}

.ci-header-desktop-top .ci-header-logo img {
  width: 120px !important;
  height: auto;
}

.ci-header-mobile .ci-header-logo {
  position: relative;
  left: auto;
  top: auto;
  margin: 0;
  max-width: 120px;
  z-index: 40;
  flex-shrink: 0;
  align-self: center;
}

.ci-header-mobile .ci-header-logo img {
  max-width: 120px;
  width: auto;
  height: auto;
}

.ci-header-desktop-actions {
  height: 100%;
  gap: 14px;
  align-items: center !important;
  margin-left: auto;
}

.ci-header-desktop-actions > * {
  display: flex;
  align-items: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ci-header-desktop-nav-wrap {
  display: none !important;
  background-color: #002e64;
  margin-top: 0 !important;
}

.ci-header-desktop-nav {
  min-height: var(--ci-header-row-height);
  padding: 0 20px;
  margin-top: 0 !important;
}

.ci-header-desktop-nav .wp-block-navigation__container {
  min-height: var(--ci-header-row-height);
  align-items: center;
  gap: 64px;
}

.ci-header-desktop-nav .wp-block-navigation-item__content {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2px;
  position: relative;
}

.ci-desktop-megamenu {
  display: none;
}

.ci-header-social {
  gap: 8px;
  display: flex;
  align-items: center;
  margin: 0 !important;
  line-height: 1;
}

.ci-header-social li,
.ci-header-social .wp-social-link {
  display: flex;
  align-items: center;
}

.ci-header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #002e64;
  line-height: 1;
}

/* Prevent global button styles from breaking nav/search controls */
.wp-block-search__button,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  background: transparent !important;
  border: 0 !important;
  color: #002e64 !important;
  height: auto !important;
  min-width: auto !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 0 !important;
}

.wp-block-search__inside-wrapper {
  border: 0 !important;
  padding: 0 !important;
}

/* Mobile-only search popover shell (hidden by default on desktop). */
.ci-mobile-search-popover {
  display: none !important;
}

/* Desktop-only search popover shell (hidden by default). */
.ci-desktop-search-popover {
  display: none !important;
}

.ci-header-desktop-top .ci-header-search,
.ci-header-desktop-top .ci-header-buy {
  display: flex;
  align-items: center;
  margin: 0 !important;
}

.ci-header-desktop-top .ci-header-search .wp-block-search__inside-wrapper,
.ci-header-desktop-top .ci-header-search .wp-block-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Keep native desktop field hidden; JS controls the custom expanding input. */
.ci-header-desktop-top .ci-header-search .wp-block-search__input,
.ci-header-desktop-top .ci-header-search .wp-block-search__inside-wrapper input[type="search"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ci-header-desktop-top .ci-header-search .wp-block-search__button svg,
.ci-header-social svg {
  width: 16px;
  height: 16px;
}

.ci-header-buy .wp-block-button__link {
  box-sizing: border-box;
  background-color: #ffd400;
  color: #002e64;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.2;
  height: 36px;
  padding: 0 15px;
  min-height: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.ci-header-buy .wp-block-button__link:hover,
.ci-header-buy .wp-block-button__link:focus,
.ci-header-buy .wp-block-button__link:active {
  background: #fff;
  border: 1px solid #002e64;
}

/* —— Mobile: sticky bar (fixed), search + hamburger, full-screen menu overlay —— */
@media (max-width: 991px) {
  /* Hybrid PHP + template parts: avoid clipping the nav overlay; keep stacking above page content. */
  header.wp-site-header,
  header.wp-site-header .wp-block-template-part,
  header.wp-site-header .wp-block-template-part > * {
    overflow: visible !important;
  }

  .ci-header-mobile-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
    z-index: 200000 !important;
  }

  .ci-header-mobile {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .ci-header.is-scrolled .ci-header-mobile {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  }

  .ci-header-mobile .ci-header-search {
    display: flex;
    align-items: center;
    margin: 0 !important;
    position: relative;
    z-index: 3;
  }

  .ci-header-mobile .ci-header-search form {
    display: flex;
    align-items: center;
    margin: 0;
  }

  .ci-header-mobile .ci-header-search .wp-block-search__inside-wrapper {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: auto;
    min-width: 0;
    position: relative;
  }

  .ci-header-mobile .ci-header-search .wp-block-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    width: 28px;
    min-width: 28px;
  }

  .ci-header-mobile .ci-header-search .wp-block-search__button svg {
    width: 22px;
    height: 22px;
  }

  .ci-header-mobile-nav .wp-block-navigation__responsive-container-open svg {
    width: 26px;
    height: 26px;
  }

  .ci-header-mobile-nav .wp-block-navigation__responsive-container-close svg {
    width: 28px;
    height: 28px;
  }

  /* Full-screen white overlay behind primary links + extras */
  .ci-header-mobile-nav .wp-block-navigation__responsive-container.is-menu-open {
    background-color: #ffffff !important;
  }

  .ci-header-mobile-nav .wp-block-navigation__responsive-dialog {
    margin-top: 0;
    padding: 28px 22px 48px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .ci-header-mobile-nav .wp-block-navigation__responsive-dialog .wp-block-navigation__container {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100%;
  }

  .ci-header-mobile-nav .wp-block-navigation__responsive-dialog .wp-block-navigation-item {
    width: 100%;
  }

  .ci-header-mobile-nav .wp-block-navigation__responsive-dialog .wp-block-navigation-item__content {
    font-family: var(--font-secondary);
    font-size: clamp(22px, 5.5vw, 30px);
    font-weight: 400;
    color: #333333;
    padding: 16px 0 !important;
    line-height: 1.25;
    width: 100%;
    box-sizing: border-box;
  }

  .ci-header-mobile-nav .wp-block-navigation__responsive-dialog .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size: clamp(18px, 4.5vw, 22px);
    padding: 10px 0 !important;
  }

  .ci-mobile-nav-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
    margin-top: 12px;
    padding-top: 8px;
  }

  .ci-mobile-nav-extras .ci-header-buy {
    margin: 0 !important;
  }

  .ci-mobile-nav-extras .ci-header-buy .wp-block-button__link {
    min-width: 220px;
    justify-content: center;
    border-radius: 6px !important;
    font-size: 16px;
    height: auto;
    min-height: 44px;
    padding: 12px 24px;
  }

  .ci-mobile-nav-extras .ci-header-social {
    margin: 0 !important;
    gap: 18px;
    justify-content: flex-start !important;
  }

  .ci-mobile-nav-extras .ci-header-social svg {
    width: 22px;
    height: 22px;
  }

  /* Keep native header search field hidden on mobile; custom popover input is used. */
  .ci-header-mobile .ci-header-search .wp-block-search__input,
  .ci-header-mobile .ci-header-search input[type="search"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .ci-header-mobile .ci-header-search .wp-block-search__label {
    display: none !important;
  }

  .ci-mobile-search-popover {
    display: block !important;
    position: fixed;
    right: 20px;
    top: calc(60px + 10px);
    width: 0;
    max-width: 420px;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: width 0.28s ease, opacity 0.2s ease;
    z-index: 1001;
  }

  .ci-header.is-mobile-search-open .ci-mobile-search-popover {
    width: min(66vw, calc(100vw - 40px));
    opacity: 1;
    pointer-events: auto;
  }

  .ci-mobile-search-popover__form {
    margin: 0;
    padding: 0;
  }

  .ci-mobile-search-popover__input {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 14px 18px;
    background-color: #ffffff;
    color: #002e64;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.3;
    box-sizing: border-box;
  }

  .ci-mobile-search-popover__input::placeholder {
    color: rgba(0, 46, 100, 0.45);
  }

  .ci-mobile-search-popover__input:focus {
    outline: 2px solid #002e64;
    outline-offset: 2px;
  }

  body.admin-bar .ci-mobile-search-popover {
    top: calc(32px + 60px + 10px);
  }

  @media screen and (max-width: 782px) {
    body.admin-bar .ci-mobile-search-popover {
      top: calc(46px + 60px + 10px);
    }
  }

  /* Search control becomes close (×) while open */
  .ci-header.is-mobile-search-open .ci-header-mobile .ci-header-search .wp-block-search__button svg {
    display: none !important;
  }

  .ci-header.is-mobile-search-open .ci-header-mobile .ci-header-search .wp-block-search__button::after {
    content: "\00d7";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #002e64;
  }
}

.page main,
.page main.wp-block-group {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

@media (min-width: 992px) {
  .ci-header-mobile {
    display: none !important;
  }

  .ci-header-desktop-top .ci-header-search {
    position: relative;
  }

  .ci-header-desktop-nav-wrap,
  .ci-header-desktop-nav,
  .ci-header-desktop-nav .wp-block-navigation__container {
    overflow: visible;
  }

  .ci-header-desktop-nav .wp-block-navigation__container > .wp-block-navigation-item {
    position: relative;
  }

  .ci-header-desktop-nav .wp-block-navigation__container > .wp-block-navigation-item.ci-has-megamenu > .wp-block-navigation-item__content {
    z-index: 2;
  }

  .ci-header-desktop-nav .wp-block-navigation__container > .wp-block-navigation-item .ci-desktop-megamenu {
    display: block;
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(1060px, calc(100vw - 56px));
    padding: 30px 34px;
    background: #ffffff;
    border: 1px solid rgba(0, 46, 100, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .ci-header-desktop-nav .wp-block-navigation__container > .wp-block-navigation-item.is-megamenu-open .ci-desktop-megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .ci-desktop-megamenu__inner {
    width: 100%;
  }

  .ci-desktop-megamenu__heading {
    margin: 0 0 18px;
    font-family: var(--font-primary);
    font-size: 28px;
    line-height: 1.1;
    color: #002e64;
  }

  .ci-desktop-megamenu__products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .ci-desktop-megamenu__product-card {
    display: block;
    color: #002e64;
    text-decoration: none;
  }

  .ci-desktop-megamenu__product-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    overflow: hidden;
    max-height: 140px;
    margin: 0 auto;
    }

  .ci-desktop-megamenu__product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ci-desktop-megamenu__product-name {
    display: block;
    margin-top: 10px;
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.35;
    color: #002e64;
    text-align: center;
  }

  .ci-desktop-megamenu__product-card:hover .ci-desktop-megamenu__product-name,
  .ci-desktop-megamenu__product-card:focus .ci-desktop-megamenu__product-name {
    text-decoration: underline;
  }

  .ci-desktop-megamenu__product-card--view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #002e64;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
  }

  .ci-desktop-megamenu__product-card--view-all:hover,
  .ci-desktop-megamenu__product-card--view-all:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
  }

  .ci-desktop-megamenu__product-view-all-text {
    font-family: var(--font-primary);
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.1;
    font-weight: 400;
    text-align: center;
    padding: 12px;
  }

  .ci-desktop-megamenu__inner--recipes {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(380px, 2fr);
    gap: 32px 40px;
    align-items: stretch;
  }

  .ci-desktop-megamenu__recipes-list {
    min-width: 0;
  }

  .ci-desktop-megamenu__heading--recipe-collections {
    margin: 0 0 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 46, 100, 0.12);
    font-family: var(--font-primary);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 400;
    color: #002e64;
  }

  .ci-desktop-megamenu__recipes-categories {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ci-desktop-megamenu__recipes-categories li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .ci-desktop-megamenu__recipes-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 4px 16px 0;
    font-family: var(--font-secondary);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 400;
    color: #002e64;
    text-decoration: none;
  }

  .ci-desktop-megamenu__recipes-link-label {
    flex: 1;
    min-width: 0;
  }

  .ci-desktop-megamenu__recipes-link::after {
    content: ">";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1;
    color: #002e64;
    opacity: 0.55;
  }

  .ci-desktop-megamenu__recipes-link:hover,
  .ci-desktop-megamenu__recipes-link:focus {
    color: #002e64;
    text-decoration: none;
  }

  .ci-desktop-megamenu__recipes-link:hover .ci-desktop-megamenu__recipes-link-label,
  .ci-desktop-megamenu__recipes-link:focus .ci-desktop-megamenu__recipes-link-label {
    text-decoration: underline;
  }

  .ci-desktop-megamenu__recipe-featured {
    position: relative;
    display: block;
    min-height: 320px;
    height: 100%;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    background: #d9d9d9;
  }

  .ci-desktop-megamenu__recipe-featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ci-desktop-megamenu__recipe-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 26px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.06) 72%, transparent 100%);
    box-sizing: border-box;
  }

  .ci-desktop-megamenu__recipe-title {
    font-family: var(--font-primary);
    font-size: clamp(22px, 2.1vw, 32px);
    line-height: 1.12;
    font-weight: 400;
    color: #ffffff;
  }

  .ci-desktop-megamenu__recipe-meta {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.35;
    color: #ffffff;
    opacity: 0.95;
  }

  .ci-desktop-megamenu__recipe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 4px;
    padding: 10px 22px;
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: #002e64;
    background: #ffd400;
    border-radius: 4px;
    border: 1px solid transparent;
    box-sizing: border-box;
  }

  /* FSE / default: popover stays in the search block (original layout). */
  .ci-header-desktop-top .ci-desktop-search-popover {
    display: block !important;
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    max-width: 360px;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: width 0.28s ease, opacity 0.2s ease;
  }

  .ci-header.is-desktop-search-open .ci-header-desktop-top .ci-desktop-search-popover {
    width: min(26vw, 360px);
    opacity: 1;
    pointer-events: auto;
  }

  /* Hybrid PHP: `wp-site-header` + template-part wrappers can clip the desktop popover.
     Allow overflow on the full chain; keep actions above the centered logo. */
  header.wp-site-header,
  header.wp-site-header .wp-block-template-part,
  header.wp-site-header .wp-block-template-part > *,
  header.wp-site-header .ci-header,
  header.wp-site-header .ci-header-desktop-top,
  header.wp-site-header .ci-header-desktop-actions,
  header.wp-site-header .ci-header-search,
  header.wp-site-header .ci-header-search form,
  header.wp-site-header .ci-header-search .wp-block-search__inside-wrapper {
    overflow: visible !important;
  }

  header.wp-site-header .ci-header-desktop-top .ci-header-desktop-actions {
    position: relative;
    z-index: 35;
  }

  /* PHP only: popover is a direct child of `header.wp-site-header` (see header-logo-home.js).
     Match FSE look (no panel chrome); open state uses :has() because the class stays on .ci-header. */
  header.wp-site-header > .ci-desktop-search-popover.ci-desktop-search-popover--php-shell {
    display: block !important;
    position: fixed;
    left: auto;
    transform: translateY(-50%);
    width: 0;
    max-width: 360px;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1002;
    transition: width 0.28s ease, opacity 0.2s ease;
  }

  header.wp-site-header.is-ci-php-desktop-search-open
    > .ci-desktop-search-popover.ci-desktop-search-popover--php-shell {
    width: min(26vw, 360px);
    opacity: 1;
    pointer-events: auto;
  }

  .ci-desktop-search-popover__form {
    margin: 0;
    padding: 6px 10px 8px;
    box-sizing: border-box;
  }

  .ci-desktop-search-popover__input {
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 4px 2px;
    background: transparent;
    color: #002e64;
    border: 0;
    border-bottom: 2px solid #002e64;
    border-radius: 0;
    box-shadow: none;
    font-family: var(--font-secondary);
    font-size: 18px;
    line-height: 1.2;
    box-sizing: border-box;
  }

  .ci-desktop-search-popover__input::placeholder {
    color: rgba(0, 46, 100, 0.45);
  }

  .ci-desktop-search-popover__input:focus {
    outline: none;
    border-bottom-color: #002e64;
  }

  .ci-header.is-desktop-search-open .ci-header-desktop-top .ci-header-search .wp-block-search__button svg {
    display: none !important;
  }

  .ci-header.is-desktop-search-open .ci-header-desktop-top .ci-header-search .wp-block-search__button::after {
    content: "\00d7";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #002e64;
  }

  .ci-header-desktop-top {
    display: flex !important;
    overflow: visible;
    transition: height 0.24s ease, opacity 0.24s ease, background-color 0.24s ease;
  }

  .ci-header-desktop-nav-wrap {
    display: block !important;
    transition: transform 0.24s ease;
  }

  .ci-header-desktop-actions {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .ci-header.is-scrolled .ci-header-desktop-top {
    height: 0;
    min-height: 0;
    opacity: 1;
    background: transparent;
  }

  .ci-header.is-scrolled .ci-header-desktop-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .ci-header.is-scrolled .ci-header-desktop-top .ci-header-logo {
    top: 4px;
  }

  .ci-header.is-scrolled .ci-header-desktop-nav-wrap {
    transform: translateY(0);
  }

  .ci-header-desktop-nav .current-menu-item > .wp-block-navigation-item__content::after,
  .ci-header-desktop-nav .current-menu-ancestor > .wp-block-navigation-item__content::after,
  .ci-header-desktop-nav .current_page_item > .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #ffffff;
    pointer-events: none;
  }
}

/* ==========================================================================
   Footer (mobile: stacked / 3-col nav; desktop: nav + actions row, legal row)
   ========================================================================== */

/* Core block / theme.json spacing often uses margin-block-start on the template part or group */
footer.wp-block-template-part {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

.ci-footer {
  background-color: #002e64;
  color: #ffffff;
  font-family: var(--font-secondary);
  padding: 48px 15px 40px;
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  box-sizing: border-box;
}

.ci-footer__inner {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.ci-footer a {
  color: #ffffff;
  text-decoration: none;
}

.ci-footer a:hover,
.ci-footer a:focus {
  text-decoration: underline;
}

.ci-footer p {
  margin: 0;
}

/* —— Top: primary nav + social + Join Us —— */
.ci-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ci-footer__primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
  justify-items: start;
}

.ci-footer__primary a {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.ci-footer__primary a:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.ci-footer__primary a:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.ci-footer__primary a:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.ci-footer__primary a:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.ci-footer__primary a:nth-child(5) {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

.ci-footer__actions.is-layout-flex,
.ci-footer__actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
  flex-wrap: nowrap !important;
}

.ci-footer .ci-footer-social .wp-block-social-link-anchor,
.ci-footer .ci-footer-social .wp-block-social-link-anchor svg {
  color: #ffffff;
  fill: #ffffff;
}

.ci-footer .ci-footer-social .wp-block-social-link {
  color: #ffffff;
}

.ci-footer__join-wrap {
  margin: 0;
}

.ci-footer__join .wp-block-button__link {
  box-sizing: border-box;
  background-color: #ffd400;
  color: #002e64;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  height: auto;
  min-height: 48px;
  padding: 14px 40px;
  text-decoration: none;
}

.ci-footer__join .wp-block-button__link:hover,
.ci-footer__join .wp-block-button__link:focus,
.ci-footer__join .wp-block-button__link:active {
  background-color: #ffffff;
  color: #002e64;
  border: 1px solid #002e64;
}

/* —— Bottom: legal + copyright —— */
.ci-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 36px;
  text-align: center;
}

.ci-footer__legal-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 100%;
}

.ci-footer__legal-links a {
  font-weight: 400;
  opacity: 0.95;
}

.ci-footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
}

.ci-footer__sep {
  opacity: 0.85;
  user-select: none;
}

.ci-footer__copyright {
  font-size: 14px;
  line-height: 1.45;
  color: #ffffff;
  opacity: 0.95;
}

@media (min-width: 992px) {
  .ci-footer {
    padding: 56px 15px 48px;
  }

  .ci-footer__top > .wp-block-html {
    flex: 1;
    min-width: 0;
  }

  .ci-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }

  .ci-footer__primary {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    max-width: none;
    width: auto;
    margin: 0;
    justify-content: flex-start;
  }

  .ci-footer__primary a {
    font-size: 15px;
  }

  .ci-footer__primary a:nth-child(n) {
    grid-column: unset;
    grid-row: unset;
  }

  .ci-footer__actions.is-layout-flex,
  .ci-footer__actions {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 24px !important;
  }

  .ci-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    text-align: left;
  }

  .ci-footer__copyright {
    order: -1;
    flex: 0 0 auto;
    max-width: 340px;
  }

  .ci-footer__legal-links {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    align-content: flex-start;
    gap: 6px 10px;
    text-align: right;
  }

  .ci-footer__legal-row {
    display: contents;
  }
}
