/*
 * Styles for the parts of the theme that are built from WordPress and
 * WooCommerce blocks (header, menu, hero, home sections, footer, product
 * page, cart and checkout). main.css holds the shared components.
 */

/* ---------- icons on blocks ---------- */

/* A paragraph, menu item or button with an "ihf-i-…" class shows that icon before its text. */
p[class*="ihf-i-"] { display: flex; align-items: center; gap: 0.5rem; }
p[class*="ihf-i-"]::before,
.wp-block-button[class*="ihf-i-"] .wp-block-button__link::before,
.wp-block-navigation-item[class*="ihf-i-"] > .wp-block-navigation-item__content::before,
.ihf-link a::after {
  content: "";
  flex: none;
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: transform 0.2s;
}
p[class*="ihf-i-"]:empty { display: none; }

/* ---------- header ---------- */

/* The header template part must not box in the sticky header bar. */
.wp-site-blocks > .wp-block-template-part { display: contents; }

.ihf-announce p { justify-content: center; }
.ihf-header__inner { flex-wrap: nowrap; }
.ihf-logo { gap: 0.55rem; }
.ihf-logo .wp-block-site-logo { line-height: 0; }
.ihf-logo .wp-block-site-logo img { width: auto; height: 42px; transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ihf-logo:hover .wp-block-site-logo img { transform: rotate(-8deg) scale(1.08); }
.ihf-logo__text a { color: inherit; text-decoration: none; }

/* Menu */
.ihf-header .wp-block-navigation { flex: 1; }
.ihf-header .wp-block-navigation__container { gap: 2rem; }
.ihf-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 60px;
  padding: 0;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.ihf-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::before { width: 18px; height: 18px; }
/* Line under the current item; it also slides in on hover. */
.ihf-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  inset: auto 0 14px;
  height: 2px;
  background: var(--wp--preset--color--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.ihf-header .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.ihf-header .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
.ihf-header .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.ihf-header .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after { transform: none; }
.ihf-header .wp-block-navigation__submenu-icon { margin-left: 0.15rem; color: var(--wp--preset--color--ink); }

/* Dropdown */
.ihf-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  top: calc(100% - 8px);
  left: 50%;
  min-width: 200px;
  padding: 0.4rem;
  color: var(--wp--preset--color--ink);
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--md);
  box-shadow: var(--wp--custom--shadow--card);
  transform: translateX(-50%);
}
.ihf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  border-radius: var(--wp--custom--radius--sm);
}
.ihf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--ice); }
/* Category items: icon on a circle tinted with the category colour. */
.ihf-cat-all { --icon: var(--ihf-icon-grid); }
/* Fixed padding: the icon is positioned from the link's left edge, in the dropdown and in the phone menu alike. */
.wp-block-navigation-item.ihf-cat > .wp-block-navigation-item__content { position: relative; padding: 0.4rem 0.6rem !important; }
.wp-block-navigation-item.ihf-cat > .wp-block-navigation-item__content::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: color-mix(in srgb, var(--tint, var(--wp--preset--color--frost)) 24%, #fff);
  border-radius: 50%;
}
.wp-block-navigation-item.ihf-cat > .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: calc(0.6rem + 6px);
  width: 16px;
  height: 16px;
  background: color-mix(in srgb, var(--tint, var(--wp--preset--color--primary)) 55%, var(--wp--preset--color--ink));
  -webkit-mask: var(--icon, var(--ihf-icon-cat-default)) center / contain no-repeat;
  mask: var(--icon, var(--ihf-icon-cat-default)) center / contain no-repeat;
}

/* Phone menu (WordPress's own overlay) */
.ihf-header .wp-block-navigation__responsive-container-open,
.ihf-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--ink); }
.ihf-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem var(--wp--custom--gutter); }
.ihf-header .is-menu-open .wp-block-navigation__responsive-container-content,
.ihf-header .is-menu-open .wp-block-navigation__container,
.ihf-header .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start; }
.ihf-header .is-menu-open .wp-block-navigation__container { gap: 0.25rem; width: 100%; }
.ihf-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { height: auto; padding: 0.6rem 0; font-size: var(--wp--preset--font-size--large); }
.ihf-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after { display: none; }
.ihf-header .is-menu-open .has-child .wp-block-navigation__submenu-container {
  position: static;
  min-width: 0;
  padding: 0 0 0.5rem 0.5rem;
  border: 0;
  border-left: 2px solid var(--wp--preset--color--frost);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.ihf-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: var(--wp--preset--font-size--medium); }

/* Search, account and cart icons */
.ihf-header__actions { gap: 0.15rem; }
.ihf-header__actions .wp-block-search__inside-wrapper { align-items: center; padding: 0; border: 0; }
.ihf-header__actions .wp-block-search__button,
.ihf-header__actions .wc-block-mini-cart__button,
.ihf-header__actions .wp-block-woocommerce-customer-account a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  color: var(--wp--preset--color--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transition: background-color 0.15s, color 0.15s;
}
.ihf-header__actions .wp-block-search__button:hover,
.ihf-header__actions .wc-block-mini-cart__button:hover,
.ihf-header__actions .wp-block-woocommerce-customer-account a:hover { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--ice); transform: none; }
.ihf-header__actions .wp-block-search__button svg { width: 26px; height: 26px; min-width: 0; fill: currentColor; }
.ihf-header__actions .wp-block-search__input {
  padding: 0.45rem 0.9rem;
  font-size: var(--wp--preset--font-size--small);
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--pill);
}
.ihf-header__actions .wp-block-woocommerce-customer-account .icon { width: 24px; height: 24px; }
.ihf-header__actions .wc-block-mini-cart__icon { width: 24px; height: 24px; }
.ihf-header__actions .wc-block-mini-cart__button { position: relative; }
.ihf-header__actions .wc-block-mini-cart__quantity-badge { display: grid; place-items: center; }
.ihf-header__actions .wc-block-mini-cart__badge {
  position: absolute;
  top: 0;
  right: -4px;
  left: auto;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  color: #fff !important;
  background: var(--wp--preset--color--berry) !important;
  border-radius: var(--wp--custom--radius--pill);
  transform: none;
}
.ihf-header__actions .wc-block-mini-cart__badge:empty { display: none; }

/* ---------- buttons ---------- */

.wp-block-button__link { text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link { padding: 0.75rem 1.5rem; color: var(--wp--preset--color--primary); background: transparent; border: 2px solid var(--wp--preset--color--primary); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { color: #fff; background: var(--wp--preset--color--primary); }
.wp-block-button.is-style-light > .wp-block-button__link { color: var(--wp--preset--color--primary); background: #fff; border-color: #fff; }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--wp--preset--color--frost); border-color: var(--wp--preset--color--frost); }
.wp-block-button.is-small > .wp-block-button__link { padding: 0.5rem 1.1rem; font-size: var(--wp--preset--font-size--small); }
.wp-block-button.is-wide > .wp-block-button__link { min-width: 11rem; }
.wp-block-button[class*="ihf-i-"] .wp-block-button__link:hover::before { transform: scale(1.15) rotate(-6deg); }

/* ---------- hero ---------- */

.ihf-hero__pouch { margin: 0; }
.ihf-hero__pouch img { width: 100%; height: auto; }
.ihf-hero__pouch.is-left { left: -9%; top: 6%; width: 66%; transform: rotate(-11deg); }
.ihf-hero__pouch.is-right { right: -9%; top: 6%; width: 66%; transform: rotate(11deg); }
.ihf-hero__pouch.is-center { left: 50%; top: -9%; width: 78%; transform: translateX(-50%); }
@media (hover: hover) {
  .ihf-hero__art:hover .ihf-hero__pouch.is-left { transform: translateX(-9%) rotate(-17deg); }
  .ihf-hero__art:hover .ihf-hero__pouch.is-right { transform: translateX(9%) rotate(17deg); }
  .ihf-hero__art:hover .ihf-hero__pouch.is-center { transform: translate(-50%, -4%) scale(1.05); }
}
/* Two watermarks: the logo, very faint, bottom left; a tilted white snowflake top centre */
.ihf-hero::before, .ihf-hero::after {
  content: "";
  position: absolute;
  background: #fff;
  -webkit-mask: var(--ihf-icon-snowflake) center / contain no-repeat;
  mask: var(--ihf-icon-snowflake) center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgba(38, 58, 150, 0.12));
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* The logo itself, very faint; its lower edge fades out so it melts into the background. It rocks very slowly, all the time. */
.ihf-hero::before { left: -40px; bottom: -60px; width: 374px; height: 327px; opacity: 0.04; transform: rotate(-12deg); animation: ihf-logo-drift 14s ease-in-out infinite; background: url(../images/logo.webp) center / contain no-repeat; filter: none; transition: none; -webkit-mask: linear-gradient(to bottom, #000 50%, transparent 100%); mask: linear-gradient(to bottom, #000 50%, transparent 100%); }
.ihf-hero::after { left: 44%; top: -50px; width: 190px; height: 190px; opacity: 0.4; transform: rotate(22deg); }
.ihf-hero:hover::after { transform: rotate(-38deg); }
/* A slow rock between -16° and -8°, with a slight rise and fall, like something adrift on water. */
@keyframes ihf-logo-drift { 0%, 100% { transform: rotate(-16deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-10px); } }

/* ---------- selling points ---------- */

.ihf-usps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--lg);
  box-shadow: var(--wp--custom--shadow--card);
}
.ihf-usps__item { position: relative; min-height: 76px; padding: 1rem 1.5rem 1rem calc(1.5rem + 44px + 0.85rem); display: flex; flex-direction: column; justify-content: center; }
.ihf-usps__item + .ihf-usps__item { border-left: 1px solid var(--wp--preset--color--line); }
.ihf-usps__item::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  background: var(--wp--preset--color--ice);
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.ihf-usps__item::after {
  content: "";
  position: absolute;
  left: calc(1.5rem + 10px);
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  background: var(--wp--preset--color--primary);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.ihf-usps__item:hover::before { background: var(--wp--preset--color--primary); transform: scale(1.1); }
.ihf-usps__item:hover::after { background: #fff; transform: scale(1.1) rotate(-8deg); }
.ihf-usps__item p:first-child { line-height: 1.3; }
.ihf-usps__item p + p { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* ---------- section heading row ---------- */

.ihf-section__head { flex-wrap: nowrap; align-items: baseline; }
p.ihf-link a { display: inline-flex; align-items: center; gap: 0.35rem; }
p.ihf-link a::after { --icon: var(--ihf-icon-arrow); width: 1em; height: 1em; }
p.ihf-link a:hover::after { transform: translateX(4px); }

/* ---------- why freeze-dried ---------- */

.ihf-why h2 { color: #fff; }
.ihf-why__copy > p:last-child { margin-top: 0.9rem; color: #d3dcf7; }
.ihf-why__item {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--wp--custom--radius--md);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}
.ihf-why__item:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-4px); }
.ihf-why__list .ihf-why__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.9rem !important;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  background: #fff;
  border-radius: 50%;
}
.ihf-why__item strong { font-size: var(--wp--preset--font-size--large); font-weight: 600; }
.ihf-why__item p:last-child { margin-top: 0.25rem; font-size: var(--wp--preset--font-size--small); color: #d3dcf7; }

/* ---------- reviews ---------- */

.ihf-reviews__track { align-items: stretch; }
.ihf-review .ihf-stars { display: flex; align-items: center; justify-content: space-between; }
.ihf-review .ihf-stars::before {
  content: "“";
  height: 2rem;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--wp--preset--color--frost);
  transition: color 0.2s;
}
.ihf-review:hover .ihf-stars::before { color: var(--wp--preset--color--accent); }
.ihf-review__quote { line-height: 1.5; }
p.ihf-review__who {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: var(--wp--preset--font-size--x-small);
  line-height: 1.3;
  color: var(--wp--preset--color--muted);
  border-top: 1px solid var(--wp--preset--color--line);
}
.ihf-review__who br { display: none; }
.ihf-review__who strong { grid-column: 2; font-size: var(--wp--preset--font-size--medium); font-weight: 600; color: var(--wp--preset--color--ink); }
/* The initial badge is filled in from the reviewer's name. */
.ihf-review__who[data-initial]::before {
  content: attr(data-initial);
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.1rem;
  color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--ice);
  border-radius: 50%;
}
.ihf-review__who[data-initial] { grid-template-rows: auto auto; }

/* ---------- banner ---------- */

.ihf-cta__box { flex-wrap: wrap; }
.ihf-cta__copy p { margin-top: 0.4rem; color: #e3ebff; }

/* ---------- footer ---------- */

.ihf-footer a { color: inherit; text-decoration: none; }
.ihf-footer h3 {
  margin-bottom: 0.8rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.ihf-footer .wp-block-buttons { margin-top: 0.9rem; }
.ihf-footer__bar-inner { gap: 0.5rem 1.5rem; }

/* ---------- standard pages ---------- */

.ihf-pagehead .wp-block-post-title, .ihf-pagehead .wp-block-query-title { margin: 0.5rem 0 0.25rem; }
/* Text pages keep a readable column; WooCommerce pages (cart, checkout, account) and wide blocks use the full width. */
.wp-block-post-content.ihf-prose:has(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .ihf-contact, .ihf-grid, .alignwide, .alignfull) { max-width: none; }
.wp-block-post-content.ihf-prose > .alignwide, .wp-block-post-content.ihf-wide > .alignwide { padding-inline: 0; }
.wp-block-post-content a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact page ---------- */

.ihf-contact { display: grid; grid-template-columns: 1.35fr 1fr; align-items: start; gap: 2rem; }
.ihf-contact__side { display: grid; gap: 1.5rem; }
.ihf-contact h2 { font-size: 1.4rem; }
.ihf-panel h2, .ihf-panel h3 { margin-bottom: 1rem; }
.ihf-panel p[class*="ihf-i-"] { align-items: flex-start; }
.ihf-panel p[class*="ihf-i-"] + p[class*="ihf-i-"] { margin-top: 0.9rem; }
.ihf-panel p[class*="ihf-i-"]::before { width: 22px; height: 22px; margin-top: 0.1rem; color: var(--wp--preset--color--primary); }
.ihf-contact .wp-block-details { padding: 0.9rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.ihf-contact .wp-block-details summary { font-weight: 600; cursor: pointer; }
.ihf-contact .wp-block-details p { margin-top: 0.6rem; color: #3c4353; }
/* Contact Form 7 */
.wpcf7-form p { margin: 0 0 1rem; }
.wpcf7-form label { display: block; font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7-form select, .wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 400;
  background: #fff;
  border: 1px solid #cfd7e4;
  border-radius: var(--wp--custom--radius--sm);
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { border-color: var(--wp--preset--color--accent); outline: 0; box-shadow: 0 0 0 3px rgba(0, 137, 247, 0.2); }
.wpcf7-form input[type="submit"] {
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--primary);
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--pill);
  cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); border-color: var(--wp--preset--color--primary-dark); }

/* ---------- product cards rendered by the theme ---------- */

/* Faded category art behind the card's content: a few large, very soft copies of the category's icon. */
.wc-block-product { isolation: isolate; }
.wc-block-product::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--tint, var(--wp--preset--color--frost)) 16%, #fff);
  border-radius: inherit;
  -webkit-mask: var(--art) -30px -24px / 180px 180px, var(--art) 60px 66px / 180px 180px;
  mask: var(--art) -30px -24px / 180px 180px, var(--art) 60px 66px / 180px 180px;
  pointer-events: none;
}


.wc-block-product a, .ihf-chip, .ihf-cats a, .ihf-crumbs a { color: inherit; text-decoration: none; }
.wc-block-product .ihf-card__add, .wc-block-product .ihf-card__add:hover { color: #fff; text-decoration: none; }
.ihf-card__add.loading { opacity: 0.6; pointer-events: none; }
.ihf-card__add.added { background: #1fa971; }
/* WooCommerce adds a "View cart" link after a product is added; the cart drawer opens instead. */
.wc-block-product .added_to_cart { display: none !important; }
.ihf-card__foot .price del { margin-right: 0.3rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.ihf-card__foot .price ins { text-decoration: none; }

/* A wide block inside a wide section must not add a second gutter. */
.alignwide .alignwide { padding-inline: 0; }

/* ---------- product page (WooCommerce blocks) ---------- */

.ihf-product .woocommerce-breadcrumb { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); }
.ihf-product .woocommerce-breadcrumb a { color: inherit; text-decoration: none; }
.ihf-product .woocommerce-breadcrumb a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.wp-block-columns.ihf-product__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; margin-top: 0; }
.ihf-product__grid > .wp-block-column { min-width: 0; }

/* Gallery */
.ihf-gallery .woocommerce-product-gallery { position: relative; width: 100%; margin: 0; float: none; }
.ihf-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.ihf-gallery .flex-viewport, .ihf-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
  background: radial-gradient(circle at 50% 40%, #fff, var(--wp--preset--color--ice) 70%);
  border-radius: var(--wp--custom--radius--lg);
  overflow: hidden;
}
.ihf-gallery .woocommerce-product-gallery__image img { width: 100%; height: auto; transform: scale(1.12); }
.ihf-gallery .flex-control-thumbs { display: flex; gap: 0.6rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.ihf-gallery .flex-control-thumbs li { width: 76px; margin: 0; float: none; }
.ihf-gallery .flex-control-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  padding: 4px;
  background: var(--wp--preset--color--ice);
  border: 2px solid transparent;
  border-radius: var(--wp--custom--radius--sm);
  opacity: 1;
  cursor: pointer;
}
.ihf-gallery .flex-control-thumbs img.flex-active { border-color: var(--wp--preset--color--primary); }
.ihf-gallery .woocommerce-product-gallery__trigger { top: 1rem; right: 1rem; }

/* Buy box */
.ihf-buy > * { margin-block: 0; }
.ihf-buy .ihf-eyebrow a { color: inherit; }
.ihf-buy .wp-block-post-title { margin-top: 0.5rem; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.ihf-buy__price { margin-top: 0.6rem; }
.ihf-buy__price .wc-block-components-product-price { font-size: 1.75rem; font-weight: 700; color: var(--wp--preset--color--ink); }
.ihf-buy__price del { margin-right: 0.4rem; font-size: 1.1rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.ihf-buy__price ins { text-decoration: none; }
.ihf-buy__lead { margin-top: 0.9rem; color: #3c4353; }
.ihf-buy__lead p { margin: 0; }
.ihf-buy .wp-block-add-to-cart-form, .ihf-buy .wp-block-woocommerce-add-to-cart-form { margin-top: 1.5rem; }
.ihf-buy form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; margin: 0; }
.ihf-buy form.cart .quantity {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  box-sizing: border-box;
  width: auto;
  height: 52px;
  min-height: 0;
  margin: 0 !important;
  padding: 0;
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--pill);
  overflow: hidden;
}
/* WooCommerce draws its own outline with a pseudo-element; ours replaces it. */
.ihf-buy form.cart .quantity::after, .ihf-buy form.cart .quantity::before { display: none; }
.ihf-buy form.cart .quantity input.qty {
  width: 2.75rem;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  text-align: center;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  appearance: textfield;
  -moz-appearance: textfield;
}
.ihf-buy form.cart .quantity input.qty::-webkit-outer-spin-button, .ihf-buy form.cart .quantity input.qty::-webkit-inner-spin-button { appearance: none; margin: 0; }
.ihf-buy form.cart .quantity button {
  width: 44px;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--wp--preset--color--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
}
.ihf-buy form.cart .quantity button:hover { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--ice); }
.ihf-buy form.cart .single_add_to_cart_button {
  flex: 1;
  min-width: 10rem;
  height: 52px;
  margin: 0;
  padding: 0 1.75rem;
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--primary);
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--pill);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ihf-buy form.cart .single_add_to_cart_button:hover { background: var(--wp--preset--color--primary-dark); border-color: var(--wp--preset--color--primary-dark); box-shadow: 0 8px 18px rgba(38, 58, 150, 0.28); transform: translateY(-2px); }
.ihf-buy .stock { margin: 0 0 0.75rem; font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.ihf-buy .stock.out-of-stock { color: var(--wp--preset--color--berry); }
.ihf-buy__perks p::before { width: 18px; height: 18px; color: var(--wp--preset--color--primary); }

/* Tabs (description, reviews) under the product */
.ihf-product__details { margin-top: var(--wp--preset--spacing--60); }
.ihf-product__details .woocommerce-tabs ul.wc-tabs { display: flex; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; border-bottom: 1px solid var(--wp--preset--color--line); }
.ihf-product__details .woocommerce-tabs ul.wc-tabs::before, .ihf-product__details .woocommerce-tabs ul.wc-tabs li::before, .ihf-product__details .woocommerce-tabs ul.wc-tabs li::after { display: none; }
.ihf-product__details .woocommerce-tabs ul.wc-tabs li { margin: 0 0 -1px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.ihf-product__details .woocommerce-tabs ul.wc-tabs li.active { border-bottom-color: var(--wp--preset--color--primary); }
.ihf-product__details .woocommerce-tabs ul.wc-tabs li a { display: block; padding: 0.6rem 0.25rem; margin-right: 1rem; font-weight: 600; color: var(--wp--preset--color--muted); text-decoration: none; }
.ihf-product__details .woocommerce-tabs ul.wc-tabs li.active a { color: var(--wp--preset--color--primary); }
.ihf-product__details .woocommerce-Tabs-panel { max-width: var(--wp--style--global--content-size); }
.ihf-product__details .woocommerce-Tabs-panel > h2:first-child { display: none; }
.ihf-product__details input[type="text"], .ihf-product__details input[type="email"], .ihf-product__details textarea { padding: 0.6rem 0.8rem; font: inherit; border: 1px solid #cfd7e4; border-radius: var(--wp--custom--radius--sm); }

/* ---------- loyalty points message (WPLoyalty) ---------- */

/* On cards the message is a small gold pill under the product name, not part of the price. */
.ihf-card__points {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding: 0.12rem 0.6rem 0.12rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: #7a5200;
  background: color-mix(in srgb, var(--wp--preset--color--sun) 22%, #fff);
  border-radius: var(--wp--custom--radius--pill);
}
.ihf-card__points .ihf-icon { width: 12px; height: 12px; color: var(--wp--preset--color--sun); fill: currentColor; }
[data-view="compact"] .ihf-card__points { display: none; }
/* On the product page it becomes a small pill under the price. The plugin sets its own inline padding, hence !important. */
.ihf-buy__price .wlr-product-message {
  display: table !important;
  margin-top: 0.6rem;
  padding: 0.25rem 0.8rem !important;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
  line-height: 1.4 !important;
  color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--ice);
  border-radius: var(--wp--custom--radius--pill) !important;
}

/* ---------- product page: accordions under the buy box ---------- */

.ihf-buy__info { margin-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); }
.ihf-buy__info details { margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.ihf-buy__info summary { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0; font-weight: 600; list-style: none; cursor: pointer; }
.ihf-buy__info summary::-webkit-details-marker { display: none; }
.ihf-buy__info summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ihf-icon-chevron) center / contain no-repeat;
  mask: var(--ihf-icon-chevron) center / contain no-repeat;
  transition: transform 0.2s;
}
.ihf-buy__info details[open] summary::after { transform: rotate(180deg); }
.ihf-buy__info details > :not(summary) { margin: 0 0 1.1rem; color: #3c4353; }
.ihf-buy__info details > p + p { margin-top: -0.4rem; }

/* Label on sample content shown before launch. */
.ihf-sample { padding: 0.35rem 0.7rem; font-size: var(--wp--preset--font-size--x-small); color: #6b4e00 !important; background: #fff6dc; border: 1px dashed var(--wp--preset--color--sun); border-radius: var(--wp--custom--radius--sm); }
.ihf-buy__info details > .ihf-sample { margin-bottom: 0.6rem; }

/* ---------- product page: add-to-cart bar on phones ---------- */

.ihf-stickybuy { display: none; }
@media (max-width: 760px) {
  .ihf-stickybuy {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem var(--wp--custom--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--wp--preset--color--line);
    box-shadow: 0 -6px 20px rgba(22, 25, 34, 0.08);
    transform: translateY(110%);
    transition: transform 0.25s;
  }
  .ihf-stickybuy.is-visible { transform: none; }
  .ihf-stickybuy strong { display: block; line-height: 1.2; }
  .ihf-stickybuy span { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
  .ihf-stickybuy .wp-block-button__link { flex: none; padding: 0.65rem 1.25rem; cursor: pointer; }
  /* Room at the bottom of the page so the bar never covers the footer's last line. */
  .has-stickybuy .ihf-footer { padding-bottom: 4.5rem; }
}

/* ---------- cart drawer: free-shipping progress ---------- */

.ihf-ship { margin: 0 0 0.5rem; padding: 0.9rem 1.25rem 1rem; background: var(--wp--preset--color--ice); border-radius: var(--wp--custom--radius--md); }
.wc-block-mini-cart__drawer .ihf-ship { margin: 0 16px 8px; }
.ihf-ship__text { margin: 0; font-size: var(--wp--preset--font-size--small); font-weight: 500; }
.ihf-ship__bar { height: 8px; margin-top: 0.5rem; background: var(--wp--preset--color--frost); border-radius: var(--wp--custom--radius--pill); overflow: hidden; }
.ihf-ship__bar span { display: block; width: 0; height: 100%; background: var(--wp--preset--color--accent); border-radius: inherit; transition: width 0.3s; }
.ihf-ship.is-free .ihf-ship__bar span { background: #1fa971; }

/* ---------- cart, checkout, account (WooCommerce blocks) ---------- */

.ihf-main--checkout { padding-top: 2rem; background: linear-gradient(180deg, var(--wp--preset--color--ice), #fff 14rem); }
.ihf-main--checkout .wp-block-post-title { margin: 0 0 1.5rem; }
.ihf-header--checkout { position: static; }
p.ihf-link--back a::after { display: none; }
p.ihf-link--back a::before {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--ihf-icon-chevron-left) center / contain no-repeat;
  mask: var(--ihf-icon-chevron-left) center / contain no-repeat;
  transition: transform 0.2s;
}
p.ihf-link--back a:hover::before { transform: translateX(-4px); }
.ihf-footer--mini p { margin: 0; }
.ihf-footer--mini .ihf-footer__bar-inner { padding-block: 1rem; }

.wc-block-cart, .wc-block-checkout { font-size: var(--wp--preset--font-size--medium); }
.wc-block-components-product-name { font-weight: 600; color: var(--wp--preset--color--ink); text-decoration: none; }
.wc-block-components-product-name:hover { color: var(--wp--preset--color--primary); }
.wc-block-cart .wc-block-cart__sidebar, .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block {
  background: var(--wp--preset--color--ice);
  border: 0;
  border-radius: var(--wp--custom--radius--lg);
}
.wc-block-cart .wc-block-cart__sidebar { padding: 1.25rem 1.5rem; }
.wp-block-woocommerce-checkout-order-summary-block { padding-top: 0.75rem; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--wp--preset--color--primary); }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--pill);
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.wc-block-components-button:not(.is-link):hover { color: #fff; background: var(--wp--preset--color--primary-dark); box-shadow: 0 8px 18px rgba(38, 58, 150, 0.28); transform: translateY(-2px); }
.wc-block-components-button.outlined:not(.is-link), .wc-block-mini-cart__footer-cart { color: var(--wp--preset--color--primary); background: transparent; box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary); }
.wc-block-components-button.outlined:not(.is-link):hover, .wc-block-mini-cart__footer-cart:hover { color: #fff; background: var(--wp--preset--color--primary); }
.wc-block-components-text-input input, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-form .wc-block-components-text-input input { border-radius: var(--wp--custom--radius--sm); }
.wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option { border-radius: var(--wp--custom--radius--sm); }
.wc-block-mini-cart__title { font-size: 1.5rem; }
.wc-block-mini-cart__drawer .wc-block-components-product-name { text-decoration: none; }

/* Account pages */
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 0.6rem 0.8rem; font-weight: 500; color: var(--wp--preset--color--ink); text-decoration: none; border-radius: var(--wp--custom--radius--sm); }
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--wp--preset--color--ice); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { color: #fff; background: var(--wp--preset--color--primary); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 0.7rem 0.9rem; font: inherit; border: 1px solid #cfd7e4; border-radius: var(--wp--custom--radius--sm); }
.woocommerce form.login, .woocommerce form.register { padding: 1.5rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--lg); }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #fff;
  background: var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--pill);
}
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover { color: #fff; background: var(--wp--preset--color--primary-dark); }

/* WooCommerce notices ("added to your cart", errors) */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: var(--wp--custom--radius--md); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .ihf-header .wp-block-navigation__container { gap: 1.25rem; }
}
@media (max-width: 760px) {
  .ihf-logo__text { display: none; }
  /* Menu button sits with the other icons on the right. */
  .ihf-header .wp-block-navigation { justify-content: flex-end; }
  .wp-block-columns.ihf-product__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .ihf-contact { grid-template-columns: 1fr; }
  .ihf-hero::before { left: -30px; bottom: -34px; width: 221px; height: 193px; }
  .ihf-hero::after { left: auto; right: -50px; top: -40px; width: 150px; height: 150px; }
  .ihf-usps__list { grid-template-columns: 1fr; border-radius: var(--wp--custom--radius--md); }
  .ihf-usps__item { min-height: 62px; padding: 0.7rem 1rem 0.7rem calc(1rem + 38px + 0.85rem); }
  .ihf-usps__item + .ihf-usps__item { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); }
  .ihf-usps__item::before { left: 1rem; width: 38px; height: 38px; margin-top: -19px; }
  .ihf-usps__item::after { left: calc(1rem + 9px); width: 20px; height: 20px; margin-top: -10px; }
  .ihf-why__item { display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; padding: 1rem; }
  .ihf-why__list .ihf-why__num { grid-row: span 2; margin: 0 !important; }
}
