/*
Theme Name: Inaba Foods Child
Theme URI: https://inabafoods.com/
Description: Child theme of inaba-foods. Contains Inaba-owned overrides isolated from vendor updates.
Author: Inaba Foods USA IT
Version: 1.2.0
Template: inaba-foods
Text Domain: inaba-foods-child
*/

/* Tier 1 — Fix 9a: Restore body scroll when popup slider is open.
 * Overrides parent theme's overflow:hidden on line 358 of _header.scss. */
body.popup-slider-open {
    overflow: auto !important;
}

/* HOME-SPACING-1 (Bobby 13–14 Nov, v3 approved by marketing; replaces E2.1.2's values, same selectors): Home's middle sections on
 * one rhythm, measured as VISIBLE space, content to content.
 *   orange = the gap between two sections: 64 px on computers (>= 1200), 40 px below; each section gets half above, half below;
 *   red    = the strip under the hero -> the first section's content, and the last section's content -> the testimonials:
 *            96 px on computers (>= 1200), SPINX's original 67 px below. The first section's top padding = red + 1 (it starts 1 px
 *            under the strip);
 *   Carousel: its dots add 29 px under the slides (measured), so its bottom half is 29 px smaller (never below 0);
 *   section title -> content: 24 px (16 px on phones).
 * Any order, any section hidden: a hidden section isn't printed, so "first" is always the first one shown (E2.1.2's selectors,
 * incl. E2.1.1's <style id="inaba-home-slots"> between the strip and the first section). Banner, USP strip and the testimonials'
 * own inside spacing are not changed. !important on paddings: SPINX's home.css loads after this file and .pb-0 is !important.
 * Undo: put back E2.1.2's block (package 0-undo). */
:root { --inaba-home-gap: 40px; --inaba-home-red: 67px; --inaba-home-title: 16px; }
@media (min-width: 768px) { :root { --inaba-home-title: 24px; } }
@media (min-width: 1200px) { :root { --inaba-home-gap: 64px; --inaba-home-red: 96px; } }
body.home > section:is(.quality-ingredients, .placeholder-carousel, .animals-card-section, .social-media-section, .newsletter) {
    padding-top: calc(var(--inaba-home-gap) / 2) !important;
    padding-bottom: calc(var(--inaba-home-gap) / 2) !important;
}
body.home > .usp-section + section:is(.quality-ingredients, .placeholder-carousel, .animals-card-section, .social-media-section, .newsletter),
body.home > .usp-section + style + section:is(.quality-ingredients, .placeholder-carousel, .animals-card-section, .social-media-section, .newsletter) {
    padding-top: calc(var(--inaba-home-red) + 1px) !important;
}
body.home > section.placeholder-carousel {
    padding-bottom: max(0px, calc(var(--inaba-home-gap) / 2 - 29px)) !important;
}
body.home > section.testimonial-section {
    padding-top: calc(var(--inaba-home-red) - var(--inaba-home-gap) / 2) !important;
}
body.home > section:is(.quality-ingredients, .placeholder-carousel, .social-media-section) > .container > :is(.sec-title, .social-media-title) {
    margin-bottom: var(--inaba-home-title) !important;
}

/* E2.1.3 (Bobby 16 Oct): the header keeps its size when it becomes sticky on scroll — no shrink, no slide-in.
 * SPINX's .sticky-header rules (every page stylesheet) shrink the logo and the menu spacing in one frame and replay a 0.5 s
 * slide-in; its script then moves the page up by the height difference (22 px on desktop). These rules restore the
 * non-sticky values measured on 16 Oct at 1500/1300/1100/900/700/500/390 px, so the header and the page stay put.
 * Selectors are more specific than SPINX's (home.css etc. load after this file). Undo: delete this block. */
html body header.sticky-header {
    animation: none;
}
html body header.sticky-header .lower-header .logo img,
html body header.sticky-header .logo img {
    height: 58px;
}
html body header.sticky-header .header-btn,
html body header.sticky-header .lower-header .header-btn {
    margin-left: 60px;
}
@media (min-width: 1200px) {
    html body header.sticky-header .lower-header #mega-menu-wrap-main-menu #mega-menu-main-menu > li.mega-menu-item {
        margin-right: 60px;
        padding: 31px 0;
    }
    html body header.sticky-header .lower-header #mega-menu-wrap-main-menu #mega-menu-main-menu > li.mega-menu-item:last-child {
        margin-right: 0;
    }
    html body header.sticky-header .lower-header #mega-menu-wrap-main-menu #mega-menu-main-menu > li.mega-menu-megamenu > ul.mega-sub-menu {
        top: 89px;
    }
}
@media (max-width: 1349px) {
    html body header.sticky-header .lower-header .logo img,
    html body header.sticky-header .logo img {
        height: 50px;
    }
    html body header.sticky-header .header-btn,
    html body header.sticky-header .lower-header .header-btn {
        margin-left: 40px;
    }
}
@media (max-width: 1199px) {
    html body header.sticky-header .header-btn,
    html body header.sticky-header .lower-header .header-btn {
        margin-left: auto;
    }
}
@media (max-width: 767.98px) {
    html body header.sticky-header .lower-header .logo img,
    html body header.sticky-header .logo img {
        height: 39px;
    }
}

/* E2.1.3: every homepage category card picture has the same shape (614 × 800, the cards' design size) and fills its card,
 * whatever the uploaded image's own shape (16 Oct: "Premium Cat Meals" was 1122 × 1402 and left a 17 px strip). Undo: delete. */
body.home > section.animals-card-section .animals-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 614 / 800;
    object-fit: cover;
}

/* HERO-LAYOUT-2.2 tiles (Bobby 12 Nov): on phones, where the category tiles sit in two columns (351–767 px), the gap between the
 * columns and between the rows equals the side margin (16 px), by closing the gaps (were 32 / 30 px; side margin unchanged).
 * SPINX: --bs-gutter-x 32px on phones (home.css: @media (max-width:767.98px){.row{--bs-gutter-x:32px}}) and
 * .animals-card-section .row{gap:30px 0} below 992 px. Tablets and computers unchanged. Undo: delete this block. */
@media (min-width: 351px) and (max-width: 767.98px) {
    body.home > section.animals-card-section .row {
        --bs-gutter-x: 16px;
        row-gap: 16px;
    }
}

/* BANNER-2 (Bobby 28 Oct): the banner's slide dots are easy to see and tap on any picture. A white pill behind them (readable
   on light and dark photos); the current slide is a longer red bar, the others navy rings (shape + colour, not colour alone);
   every dot has a 32 px tap area. Centred under the slides, where carousels usually put them. The parent theme sizes and places
   the dots with !important, hence the same here. */
header .header-popup-slider .slick-dots {
	display: flex !important;
	align-items: center;
	gap: 2px;
	width: max-content !important;
	max-width: none !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	margin: 0 0 40px !important;
	padding: 2px 8px !important;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
header .header-popup-slider .slick-dots li {
	width: auto !important;
	min-width: 32px;
	height: 32px !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}
header .header-popup-slider .slick-dots li button {
	width: 14px !important;
	height: 14px !important;
	padding: 0 !important;
	border: 2px solid #0032a0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	transition: width 0.2s ease, background-color 0.2s ease;
}
header .header-popup-slider .slick-dots li button::before {
	display: none !important;
}
header .header-popup-slider .slick-dots li button:hover {
	background: #0032a0 !important;
}
header .header-popup-slider .slick-dots li.slick-active button {
	width: 32px !important;
	background: #e4002b !important;
	border-color: #e4002b !important;
}
header .header-popup-slider .slick-dots li button:focus-visible {
	outline: 3px solid #1fa1db;
	outline-offset: 2px;
}
@media (max-width: 767.98px) {
	header .header-popup-slider .slick-dots {
		margin-bottom: 16px !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	header .header-popup-slider .slick-dots li button {
		transition: none;
	}
}

/* PERF-7 (3 Nov 2026): Safari shows the page while it loads, instead of nothing until everything has loaded.
   1. The parent theme fades every page in: body { animation: load 1s } (0–20 % at opacity 0), in each page-type stylesheet.
      Safari (WebKit) does not start painting while the body is transparent, and the fade only advances once it paints, so on a
      phone network the page stayed blank until the load event (WebKit test on production, Slow 4G: first paint 37.5 s → 12–14 s
      on a fresh visit, 28.7 s → 7.8 s on reload, with this rule). Chrome runs the fade, which is why it never showed there.
      Effect: pages appear at once instead of fading in over 1 s.
   2. The parent theme's CSS declares a carousel font "slick" (fonts/slick.woff / .ttf / .svg) that was never part of the
      theme; every carousel arrow and dot uses it in a ::before. Safari can ask for it even for hidden arrows and dots: three
      uncached WordPress 404 pages of 138 KB, 1.8–2.5 s each on production. These ::before glyphs are hidden on every page
      (checked 3 Nov), so nothing visible changes.
   Undo: delete this block. */
body {
	animation: none !important;
}
.slick-prev::before,
.slick-next::before,
.slick-dots li button::before {
	font-family: inherit !important;
}

/* HERO-LAYOUT-1 (Bobby 10 Nov): home hero layout presets chosen in wp-admin (Home page → Hero → "Layout (Inaba)").
   inc/hero-layout.php prints the classes on <section class="home-banner">; nothing prints at the defaults, so the standard
   layout is untouched. Selectors carry "section." so they beat SPINX's home.css and GTranslate's .translated-ltr rule at
   the same class count. Undo: delete this block. */
@media (min-width: 992px) {
	/* P2: picture left / text right (the text box moves to the left edge of its column) */
	section.home-banner.inaba-hero--pic-left .row { flex-direction: row-reverse; }
	section.home-banner.inaba-hero--pic-left .banner-content { margin-left: 0; margin-right: auto; padding-right: 0; padding-left: 70px; }
	/* P3–P5: text over the picture. Both columns share one grid cell: the hero is 21:9 of the width (height known before
	   the picture arrives), or taller when the text needs it (e.g. a 5-line French headline), so the panel never spills
	   over the header or the strip below. The picture fills the cell, cropped toward the chosen focus. */
	section.home-banner[class*="inaba-hero--over-"] .row { display: grid; grid-template-columns: 100%; }
	section.home-banner[class*="inaba-hero--over-"] .row > .col-lg-6 { grid-area: 1 / 1; align-self: stretch; width: 100%; max-width: 100%; padding: 0; }
	section.home-banner[class*="inaba-hero--over-"] .row > .col-lg-6:first-child { z-index: 1; display: flex; align-items: center; padding: 24px 40px; pointer-events: none; }
	/* picture column: a 21:9 spacer sets the minimum height (padding % = of the width); the picture fills the column */
	section.home-banner[class*="inaba-hero--over-"] .row > .col-lg-6:last-child { position: relative; }
	section.home-banner[class*="inaba-hero--over-"] .row > .col-lg-6:last-child::before { content: ""; display: block; padding-top: 42.857143%; }
	section.home-banner[class*="inaba-hero--over-"] .banner-img { position: absolute; inset: 0; aspect-ratio: auto; height: auto; }
	section.home-banner[class*="inaba-hero--over-"] .home-banner-slider,
	section.home-banner[class*="inaba-hero--over-"] .home-banner-slider .slick-list,
	section.home-banner[class*="inaba-hero--over-"] .home-banner-slider .slick-track,
	section.home-banner[class*="inaba-hero--over-"] .home-banner-slider .slick-slide,
	section.home-banner[class*="inaba-hero--over-"] .home-banner-slider .item { height: 100%; }
	section.home-banner[class*="inaba-hero--over-"] .home-banner-slider .item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--inaba-hero-focus, 50% 50%); }
	section.home-banner[class*="inaba-hero--over-"] .banner-content { margin: 0; max-width: 645px; padding: 28px 32px; border-radius: 16px; animation: none; pointer-events: auto; }
	section.home-banner.inaba-hero--over-left .row > .col-lg-6:first-child { justify-content: flex-start; }
	section.home-banner.inaba-hero--over-center .row > .col-lg-6:first-child { justify-content: center; }
	section.home-banner.inaba-hero--over-center .banner-content { text-align: center; }
	section.home-banner.inaba-hero--over-center .banner-content .banner-review { justify-content: center; }
	section.home-banner.inaba-hero--over-right .row > .col-lg-6:first-child { justify-content: flex-end; }
	/* shade: always one of the two on an over-picture preset (contrast measured: light ≥ 11:1, dark ≥ 5.6:1 on the current picture) */
	section.home-banner.inaba-hero--scrim-light .banner-content { background: rgba(255, 255, 255, 0.86); }
	section.home-banner.inaba-hero--scrim-dark .banner-content { background: rgba(18, 15, 64, 0.66); }
	section.home-banner.inaba-hero--scrim-dark .banner-content .banner-title,
	section.home-banner.inaba-hero--scrim-dark .banner-content .banner-desc,
	section.home-banner.inaba-hero--scrim-dark .banner-content .banner-desc p,
	section.home-banner.inaba-hero--scrim-dark .banner-content .banner-review h2,
	section.home-banner.inaba-hero--scrim-dark .banner-content .banner-review .h2 { color: #fff; }
}
/* picture focus, every width (centre = the browser default 50% 50%) */
section.home-banner.inaba-hero--focus-left { --inaba-hero-focus: 30% 50%; }
section.home-banner.inaba-hero--focus-right { --inaba-hero-focus: 70% 50%; }
/* phones and tablets: every preset stacks. Picture first if chosen. With a "text over picture" preset the picture is a wide 21:9
   one, while the stacked box keeps the standard shape, so it is cropped toward the focus instead of squashed. */
@media (max-width: 991px) {
	section.home-banner.inaba-hero--m-picture-first .row { flex-direction: column-reverse; }
	section.home-banner[class*="inaba-hero--over-"] .home-banner-slider .item img { object-fit: cover; object-position: var(--inaba-hero-focus, 50% 50%); }
}
/* no entrance animation on the hero for people who asked for less motion (any preset) */
@media (prefers-reduced-motion: reduce) {
	section.home-banner .banner-content,
	section.home-banner .banner-img img { animation: none; }
}
/* end HERO-LAYOUT-1 */
/* HERO-LAYOUT-2 (Bobby 11 Nov): marketing's banner = text straight on the picture, no panel, on computers and phones; optional
   phone picture (<picture>, inc/hero-layout.php). Classes come from the Hero group's allow-list; nothing prints at the defaults.
   Sizes follow marketing's 2100 × 900 render (headline 3.1 % of the width, Regular; description 0.53 × the headline; text block
   ≈ 32 % wide, vertically centred) and start at the logo's left edge: the header container is 960 / 1180 / 1300 / 1350 px wide
   from 992 / 1200 / 1350 / 1400 px, with 15 px padding. cqw = 1 % of the hero's own width (no scrollbar error). Undo: delete. */
section.home-banner.inaba-hero--scrim-none,
section.home-banner.inaba-hero--m-over { container-type: inline-size; }
@media (min-width: 992px) {
	section.home-banner.inaba-hero--scrim-none { --inaba-hero-c: 960px; }
	section.home-banner.inaba-hero--scrim-none .row > .col-lg-6:first-child { padding: 32px 24px 32px max(15px, calc((100cqw - var(--inaba-hero-c)) / 2 + 15px)); }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--over-right .row > .col-lg-6:first-child { padding: 32px max(15px, calc((100cqw - var(--inaba-hero-c)) / 2 + 15px)) 32px 24px; }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--over-center .row > .col-lg-6:first-child { padding: 32px 24px; }
	section.home-banner.inaba-hero--scrim-none .banner-content { background: none; border-radius: 0; padding: 0;
		max-width: min(34cqw, calc(47cqw - max(15px, calc((100cqw - var(--inaba-hero-c)) / 2 + 15px)))); }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--over-center .banner-content { max-width: 46cqw; }
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-title { font-size: clamp(32px, 3.1cqw, 56px); line-height: 1.2; margin-bottom: 0.6em; }
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-desc,
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-desc p { font-size: clamp(18px, 1.64cqw, 30px); line-height: 1.3; }
}
@media (min-width: 1200px) { section.home-banner.inaba-hero--scrim-none { --inaba-hero-c: 1180px; } }
@media (min-width: 1350px) { section.home-banner.inaba-hero--scrim-none { --inaba-hero-c: 1300px; } }
@media (min-width: 1400px) { section.home-banner.inaba-hero--scrim-none { --inaba-hero-c: 1350px; } }
/* no shade: Regular headline (Lato 400, already loaded) unless Bold is chosen; white text unless navy. Only where the text sits on
   the picture: computers (≥ 992 px), and phones/tablets with "Text over the picture". Stacked phones keep today's dark text and
   weight on the white page, whatever the computer setting (Bobby 11 Nov: white text was invisible there). */
@media (min-width: 992px) {
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-title { font-weight: 400; }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--head-bold .banner-content .banner-title { font-weight: 700; }
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-review { margin-bottom: 0; }
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-title,
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-desc,
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-desc p,
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-review h2 { color: #fff; }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--text-navy .banner-content .banner-title,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--text-navy .banner-content .banner-desc,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--text-navy .banner-content .banner-desc p,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--text-navy .banner-content .banner-review h2 { color: #120f40; }
}
@media (max-width: 991px) {
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over .banner-content .banner-title { font-weight: 400; }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over.inaba-hero--head-bold .banner-content .banner-title { font-weight: 700; }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over .banner-content .banner-title,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over .banner-content .banner-desc,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over .banner-content .banner-desc p,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over .banner-content .banner-review h2 { color: #fff; }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over.inaba-hero--text-navy .banner-content .banner-title,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over.inaba-hero--text-navy .banner-content .banner-desc,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over.inaba-hero--text-navy .banner-content .banner-desc p,
	section.home-banner.inaba-hero--scrim-none.inaba-hero--m-over.inaba-hero--text-navy .banner-content .banner-review h2 { color: #120f40; }
	/* stacked phones/tablets with a phone picture: the picture spans the full width at its own shape (SPINX's box is the
	   desktop picture's 1.42 : 1 and sized the square phone picture by its height, so it sat left at 2/3 width). The hero carries
	   --inaba-hero-m-ratio only when a phone picture is set. */
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .banner-img,
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .home-banner-slider,
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .home-banner-slider .slick-list,
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .home-banner-slider .slick-track,
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .home-banner-slider .slick-slide,
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .home-banner-slider .item,
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .inaba-hero-pic { height: auto; aspect-ratio: auto; }
	section.home-banner[style*="--inaba-hero-m-ratio"]:not(.inaba-hero--m-over) .home-banner-slider .item img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: initial; }
}
/* the <picture> around the first hero picture fills the slide like the <img> did. It must have a real box: WP Rocket measures a
   <picture> by its own size and skips the <img> inside, so "display: contents" (zero size) made it pick the logo (fast test 11 Nov) */
section.home-banner .inaba-hero-pic { display: block; width: 100%; height: 100%; }
/* phones and tablets, "Text over the picture": text at the top of the picture, centred. One grid cell: the box is the phone
   picture's own shape (--inaba-hero-m-ratio, from its width/height; 21:9 without one), and at least the text + the bottom
   62 % of the width, which is kept for the subject. Longer text (French) makes the box taller; the picture fills it, anchored at
   the bottom, so the text never covers the subject, the menu or the strip below. */
@media (max-width: 991px) {
	section.home-banner.inaba-hero--m-over .row { display: grid; grid-template-columns: 100%; flex-direction: initial; }
	section.home-banner.inaba-hero--m-over .row > .col-lg-6 { grid-area: 1 / 1; width: 100%; max-width: 100%; padding: 0; margin: 0; }
	section.home-banner.inaba-hero--m-over .row > .col-lg-6:first-child { z-index: 1; align-self: start; pointer-events: none;
		padding: 12cqw max(24px, 6cqw) 62cqw; }
	section.home-banner.inaba-hero--m-over .row > .col-lg-6:last-child { position: relative; align-self: stretch; }
	section.home-banner.inaba-hero--m-over .row > .col-lg-6:last-child::before { content: ""; display: block; padding-top: var(--inaba-hero-m-ratio, 42.857143%); }
	section.home-banner.inaba-hero--m-over .banner-img { position: absolute; inset: 0; aspect-ratio: auto; height: auto; }
	section.home-banner.inaba-hero--m-over .home-banner-slider,
	section.home-banner.inaba-hero--m-over .home-banner-slider .slick-list,
	section.home-banner.inaba-hero--m-over .home-banner-slider .slick-track,
	section.home-banner.inaba-hero--m-over .home-banner-slider .slick-slide,
	section.home-banner.inaba-hero--m-over .home-banner-slider .item { height: 100%; }
	section.home-banner.inaba-hero--m-over .home-banner-slider .item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
	section.home-banner.inaba-hero--m-over .banner-content { margin: 0 auto; max-width: 640px; padding: 0; text-align: center; animation: none; pointer-events: auto; }
	section.home-banner.inaba-hero--m-over .banner-content .banner-review { justify-content: center; margin-bottom: 0; }
	section.home-banner.inaba-hero--m-over .banner-content .banner-title { font-size: clamp(26px, 7.4cqw, 40px); line-height: 1.15; margin-bottom: 0.5em; }
	section.home-banner.inaba-hero--m-over .banner-content .banner-desc,
	section.home-banner.inaba-hero--m-over .banner-content .banner-desc p { font-size: clamp(16px, 4.1cqw, 20px); line-height: 1.35; }
	/* with a shade chosen, the same panel as on computers */
	section.home-banner.inaba-hero--m-over.inaba-hero--scrim-light .banner-content,
	section.home-banner.inaba-hero--m-over.inaba-hero--scrim-dark .banner-content { padding: 16px 20px; border-radius: 12px; }
	section.home-banner.inaba-hero--m-over.inaba-hero--scrim-light .banner-content { background: rgba(255, 255, 255, 0.86); }
	section.home-banner.inaba-hero--m-over.inaba-hero--scrim-dark .banner-content { background: rgba(18, 15, 64, 0.66); }
	section.home-banner.inaba-hero--m-over.inaba-hero--scrim-dark .banner-content .banner-title,
	section.home-banner.inaba-hero--m-over.inaba-hero--scrim-dark .banner-content .banner-desc,
	section.home-banner.inaba-hero--m-over.inaba-hero--scrim-dark .banner-content .banner-desc p { color: #fff; }
}
/* end HERO-LAYOUT-2 */
/* HERO-LAYOUT-2.2 (Bobby 12 Nov): phones and tablets (< 992 px) get the computer's type proportions when the hero uses "no shade"
   (text straight on the picture on computers), in both phone modes: stacked, and "Text over the picture". Measured on production
   at 1400 / 1920: headline Regular (400), line height 1.2; description 0.53 × the headline, line height 1.3; gap 0.6 × the
   headline; the text block ≈ 11 × the headline wide, so the English headline breaks into the same two lines everywhere. Here the
   headline is 8.4 % of the hero's width (32.8 px at 390, capped at 40 px from 476 px up), the description 0.53 × that (16 px
   minimum), the block at most 11 × the headline (stacked), centred as before. The default settings and the shaded presets keep their
   style (on computers they use SPINX's). Stacked phones keep the dark text on the white page. Undo: delete this block. */
@media (max-width: 991px) {
	/* stacked only: "Text over the picture" keeps HERO-LAYOUT-2's wider block (a narrower one makes the text taller, over the subject) */
	section.home-banner.inaba-hero--scrim-none:not(.inaba-hero--m-over) .banner-content { max-width: min(92.4cqw, 440px); }
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-title { font-size: clamp(28px, 8.4cqw, 40px); font-weight: 400; line-height: 1.2; margin-bottom: 0.6em; }
	section.home-banner.inaba-hero--scrim-none.inaba-hero--head-bold .banner-content .banner-title { font-weight: 700; }
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-review { margin-bottom: 0; }
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-desc,
	section.home-banner.inaba-hero--scrim-none .banner-content .banner-desc p { font-size: clamp(16px, 4.452cqw, 21.2px); line-height: 1.3; }
}
/* end HERO-LAYOUT-2.2 */

/* LISTING-GRID-1 (Bobby 13 Nov): product listings on phones (≤ 575 px): the gap between product cards, across and down, equals the
   outer margin (16 px), by closing the gaps (were 30 across / 20 down; SPINX products.css .large-gutter.row {gap:30px 0} with 15 px
   column padding below 1200 px, {gap:20px 0} below 576 px). The outer margin (the page container's 16 px) is unchanged; cards get 7 px
   wider (164 → 171 at 390). Scoped to the product grid (#products-container): Shop, categories, search, the AJAX filter results, every
   "Show 12 / 24 / 48 / 96" size. The News listing shares .large-gutter and is not affected. The pictures' `sizes` follows
   (inc/product-image-sizes.php). Tablets and computers unchanged. Undo: delete this block (and restore the sizes line). */
@media (max-width: 575.98px) {
	#products-container.row.large-gutter { margin-left: -8px; margin-right: -8px; row-gap: 16px; }
	#products-container.row.large-gutter > * { padding-left: 8px; padding-right: 8px; }
}

/* RELATED-HEIGHT-1 (Bobby 16 Nov, freeze exception): product page "You May Also Like" slider: every card as tall as the tallest one in
   the row, so a 3-line title no longer ends one line short of a 4-line neighbour (Bobby's phone test 16 Nov; 243 vs 261 px at 390).
   SPINX's Slick slider floats each slide (height = own content); this makes the track a flex row, so the slides stretch, and the card
   (h-100) fills its slide. The card's own background is the blue title panel, so it reaches the bottom; the title bar grows and keeps
   SPINX's vertical centring. Scoped to .related-products-slider (product pages only), after Slick has started (.slick-track exists).
   Slide widths, swipe, arrows and looping copies are Slick's and unchanged. Undo: delete this block. */
.related-products-section .related-products-slider .slick-track { display: flex; }
.related-products-section .related-products-slider .slick-track .slick-slide { float: none; height: auto; }
.related-products-section .related-products-slider .slick-slide .product-box { display: flex; flex-direction: column; }
.related-products-section .related-products-slider .slick-slide .product-box > .product-image { flex: 0 0 auto; }
.related-products-section .related-products-slider .slick-slide .product-box > .product-info-bar { flex: 1 0 auto; }
/* end RELATED-HEIGHT-1 */
