/*
Theme Name: EcoFlow Review Child
Template: twentytwentyfive
Version: 1.3.1
Description: Child theme for EcoFlow Review (independent review site and store).
Text Domain: ecoreview
*/

/* =========================================================================
   1. Tokens: the single source of truth for colors and sizes (rule H2)
   ========================================================================= */
:root {
	--er-font: var(--wp--preset--font-family--inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
	--er-ink: #0f172a;
	--er-ink-soft: #334155;
	--er-muted: #64748b;
	--er-bg: #ffffff;
	--er-surface: #f3f5f7;
	--er-surface-2: #e9edf1;
	--er-line: #e2e8f0;
	--er-accent: #0f766e;
	--er-accent-hover: #115e59;
	--er-accent-soft: #ccfbf1;
	--er-highlight: #f59e0b;
	--er-highlight-soft: #fef3c7;
	--er-sale: #dc2626;
	--er-buy: #3f6ae0;
	--er-dark: #0b1120;
	--er-dark-2: #1e293b;
	--er-on-dark: #f8fafc;
	--er-on-dark-muted: #cbd5e1;
	--er-overlay: rgba(11, 17, 32, 0.55);
	--er-overlay-strong: rgba(11, 17, 32, 0.78);
	--er-glass: rgba(255, 255, 255, 0.14);

	--er-radius: 16px;
	--er-radius-lg: 24px;
	--er-radius-sm: 10px;
	--er-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	--er-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
	--er-shadow-up: 0 -8px 24px rgba(15, 23, 42, 0.08);
	--er-gutter: clamp(1rem, 4vw, 2.5rem);
	--er-max: 1320px;
	--er-header-h: 68px;
	--er-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================================
   2. Base
   ========================================================================= */
body { background: var(--er-bg); color: var(--er-ink); font-family: var(--er-font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
body.er-lock { overflow: hidden; }
a { color: var(--er-accent); }
a:hover { color: var(--er-accent-hover); }
img { max-width: 100%; height: auto; }
.er-main { margin-top: 0; }
.er-main > * { margin-block-start: 0; }
.er-wrap { max-width: var(--er-max); margin-inline: auto; padding-inline: var(--er-gutter); box-sizing: border-box; width: 100%; }
.er-icon { display: block; flex: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.er-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--er-ink); cursor: pointer; padding: 0; transition: background 0.2s; }
.er-icon-btn:hover { background: var(--er-surface); }

/* Buttons */
.wp-element-button, .wp-block-button__link { background: var(--er-ink); color: var(--er-on-dark); border: 2px solid var(--er-ink); border-radius: 999px; padding: 0.8rem 1.6rem; font-weight: 600; font-size: 0.9375rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.wp-element-button:hover, .wp-block-button__link:hover { background: var(--er-accent); border-color: var(--er-accent); color: var(--er-on-dark); }
.is-style-outline .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.er-btn-ghost { display: inline-flex; align-items: center; padding: 0.8rem 1.6rem; border: 2px solid var(--er-on-dark); border-radius: 999px; color: var(--er-on-dark); font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: background 0.2s, color 0.2s; }
.er-btn-ghost:hover { background: var(--er-on-dark); color: var(--er-ink); }
.er-btn-ghost--dark { border-color: var(--er-ink); color: var(--er-ink); }
.er-btn-ghost--dark:hover { background: var(--er-ink); color: var(--er-on-dark); }
.er-link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--er-ink); text-decoration: none; }
.er-link-arrow .er-icon { width: 18px; height: 18px; transition: transform 0.2s; }
.er-link-arrow:hover .er-icon, a:hover .er-link-arrow .er-icon { transform: translateX(4px); }

/* Type helpers */
.er-eyebrow { color: var(--er-accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.5rem; }
.er-eyebrow--light { color: var(--er-accent-soft); }
.er-lead { color: var(--er-ink-soft); font-size: 1.125rem; max-width: 640px; }

/* Sections */
.er-section { padding-block: clamp(3rem, 6vw, 5rem); }
.er-section--surface { background: var(--er-surface); }
.er-shead { max-width: var(--er-max); margin: 0 auto 1.75rem; padding-inline: var(--er-gutter); box-sizing: border-box; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.er-shead__title { font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

/* =========================================================================
   3. Utility bar and header
   ========================================================================= */
.er-utility { background: var(--er-dark); color: var(--er-on-dark-muted); font-size: 0.8125rem; }
.er-utility__inner { max-width: var(--er-max); margin: 0 auto; padding: 0.5rem var(--er-gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.er-utility__msg { margin: 0; }
.er-utility__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.er-utility__links a { color: var(--er-on-dark-muted); text-decoration: none; }
.er-utility__links a:hover { color: var(--er-on-dark); }

.er-header-wrap { position: sticky; top: 0; z-index: 100; }
.er-header { background: var(--er-bg); border-bottom: 1px solid var(--er-line); position: relative; }
.er-header__inner { max-width: var(--er-max); margin: 0 auto; min-height: var(--er-header-h); padding-inline: var(--er-gutter); gap: 1rem; align-items: center; box-sizing: border-box; }
.er-logo { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.er-logo a { color: var(--er-ink); text-decoration: none; }
.er-nav-wrap { flex: 1; display: flex; justify-content: center; }
.er-header__tools { gap: 0.25rem; }
.er-header__tools .wc-block-mini-cart__button, .er-header__tools .wc-block-customer-account a { color: var(--er-ink); }
.er-secure { margin: 0; font-size: 0.875rem; color: var(--er-muted); font-weight: 600; }

/* Desktop nav */
.er-nav__toggle, .er-nav__head { display: none; }
.er-nav__list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.er-nav__link { display: inline-flex; align-items: center; gap: 0.25rem; height: var(--er-header-h); padding: 0 0.9rem; border: 0; background: none; font: inherit; font-weight: 600; font-size: 0.9375rem; color: var(--er-ink); cursor: pointer; }
.er-nav__link .er-icon { width: 16px; height: 16px; transition: transform 0.2s; }
.er-nav__item.is-open > .er-nav__link { color: var(--er-accent); }
.er-nav__item.is-open > .er-nav__link .er-icon { transform: rotate(180deg); }
.er-nav__item.has-drop { position: relative; }

.er-mega, .er-drop { position: absolute; left: 0; right: 0; top: 100%; background: var(--er-bg); border-top: 1px solid var(--er-line); box-shadow: var(--er-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s var(--er-ease), transform 0.2s var(--er-ease), visibility 0.2s; }
.er-nav__item.is-open > .er-mega, .er-nav__item.is-open > .er-drop { opacity: 1; visibility: visible; transform: none; }
.er-mega__inner { max-width: var(--er-max); margin: 0 auto; padding: 2rem var(--er-gutter); display: grid; grid-template-columns: 1fr 300px; gap: 2rem; box-sizing: border-box; }
.er-mega__inner--wide { grid-template-columns: 1fr; }
.er-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.er-mega__grid--scenes { grid-template-columns: repeat(3, 1fr); }
.er-mega__tile, .er-mega__scene { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; border-radius: var(--er-radius); color: var(--er-ink); text-decoration: none; transition: background 0.2s; }
.er-mega__tile:hover, .er-mega__scene:hover { background: var(--er-surface); color: var(--er-ink); }
.er-mega__thumb { display: block; aspect-ratio: 1; border-radius: var(--er-radius-sm); overflow: hidden; background: var(--er-surface); margin-bottom: 0.5rem; }
.er-mega__thumb img, .er-mega__scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-mega__scene img { aspect-ratio: 2 / 1; border-radius: var(--er-radius-sm); margin-bottom: 0.5rem; }
.er-mega__name { font-weight: 700; font-size: 0.9375rem; }
.er-mega__desc { font-size: 0.8125rem; color: var(--er-muted); }
.er-mega__promo { background: var(--er-surface); border-radius: var(--er-radius); padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.er-mega__promo img { border-radius: var(--er-radius-sm); }
.er-mega__promo-title { font-weight: 700; margin: 0.25rem 0 0; }
.er-mega__all { display: block; text-align: center; padding: 0.9rem; border-top: 1px solid var(--er-line); font-weight: 600; color: var(--er-ink); text-decoration: none; }
.er-drop { left: 50%; right: auto; min-width: 230px; transform: translate(-50%, -6px); list-style: none; margin: 0; padding: 0.5rem; border: 1px solid var(--er-line); border-radius: var(--er-radius); }
.er-nav__item.is-open > .er-drop { transform: translate(-50%, 0); }
.er-drop a { display: block; padding: 0.6rem 0.9rem; border-radius: var(--er-radius-sm); color: var(--er-ink); text-decoration: none; font-size: 0.9375rem; }
.er-drop a:hover { background: var(--er-surface); }

/* Search overlay */
.er-search { position: fixed; inset: 0; z-index: 200; background: var(--er-overlay); }
.er-search[hidden] { display: none; }
.er-search__inner { background: var(--er-bg); padding: 1.5rem var(--er-gutter) 2rem; box-shadow: var(--er-shadow-lg); }
.er-search__form { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid var(--er-ink); padding-bottom: 0.5rem; }
.er-search__form input { flex: 1; border: 0; font-size: 1.25rem; padding: 0.5rem 0; outline: none; background: transparent; color: var(--er-ink); }
.er-search__label { max-width: 820px; margin: 1.25rem auto 0.75rem; font-size: 0.8125rem; color: var(--er-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.er-chips { max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.er-chip { padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--er-surface); color: var(--er-ink); text-decoration: none; font-size: 0.875rem; }
.er-chip:hover { background: var(--er-ink); color: var(--er-on-dark); }

/* =========================================================================
   4. Home: hero slider
   ========================================================================= */
.er-slider { position: relative; background: var(--er-dark); color: var(--er-on-dark); }
.er-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.er-slider__track::-webkit-scrollbar { display: none; }
.er-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(460px, 62vw, 680px); display: flex; align-items: center; overflow: hidden; }
.er-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.er-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--er-overlay-strong) 0%, var(--er-overlay) 40%, transparent 70%); }
.er-slide__content { position: relative; z-index: 1; width: 100%; max-width: var(--er-max); margin: 0 auto; padding: 3rem max(var(--er-gutter), 5rem) 5rem; box-sizing: border-box; }
.er-slide__title { color: var(--er-on-dark); font-size: clamp(2.125rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 680px; margin: 0 0 1rem; }
.er-slide__text { color: var(--er-on-dark-muted); font-size: 1.125rem; max-width: 520px; margin: 0 0 1.75rem; }
.er-slide__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.er-slide .wp-element-button { background: var(--er-on-dark); color: var(--er-ink); border-color: var(--er-on-dark); }
.er-slide .wp-element-button:hover { background: var(--er-accent); border-color: var(--er-accent); color: var(--er-on-dark); }
.er-slider__prev, .er-slider__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: var(--er-glass); color: var(--er-on-dark); backdrop-filter: blur(6px); }
.er-slider__prev:hover, .er-slider__next:hover { background: var(--er-on-dark); color: var(--er-ink); }
.er-slider__prev { left: 1rem; }
.er-slider__next { right: 1rem; }
.er-slider__dots { position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 2; display: flex; justify-content: center; gap: 0.5rem; }
.er-slider__dot { width: 28px; height: 4px; border: 0; border-radius: 4px; background: var(--er-glass); cursor: pointer; padding: 0; transition: background 0.2s, width 0.2s; }
.er-slider__dot.is-active { background: var(--er-on-dark); width: 44px; }

/* Promo duo */
.er-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-top: clamp(2rem, 4vw, 3rem); }
.er-promo { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 1rem; min-height: 260px; padding: 1.75rem; border-radius: var(--er-radius-lg); background: var(--er-surface); color: var(--er-ink); text-decoration: none; overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.er-promo:hover { box-shadow: var(--er-shadow); transform: translateY(-3px); color: var(--er-ink); }
.er-promo--dark { background: var(--er-dark); color: var(--er-on-dark); }
.er-promo--dark:hover { color: var(--er-on-dark); }
.er-promo--dark .er-promo__sub { color: var(--er-on-dark-muted); }
.er-promo--dark .er-link-arrow { color: var(--er-on-dark); }
.er-promo__title { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.er-promo__sub { color: var(--er-ink-soft); font-size: 0.9375rem; margin: 0 0 1rem; }
.er-promo__img { border-radius: var(--er-radius); width: 100%; height: auto; object-fit: contain; }

/* Category tiles */
.er-cattiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.er-cattile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.25rem; padding: 1rem 1rem 1.25rem; border-radius: var(--er-radius-lg); background: var(--er-surface); color: var(--er-ink); text-decoration: none; transition: background 0.2s, transform 0.25s; }
.er-cattile:hover { background: var(--er-surface-2); transform: translateY(-3px); color: var(--er-ink); }
.er-cattile__img { width: 100%; aspect-ratio: 1; border-radius: var(--er-radius); overflow: hidden; margin-bottom: 0.5rem; }
.er-cattile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--er-ease); }
.er-cattile:hover .er-cattile__img img { transform: scale(1.05); }
.er-cattile__name { font-weight: 700; }
.er-cattile__count { font-size: 0.8125rem; color: var(--er-muted); }

/* =========================================================================
   5. Product cards (grid and carousel)
   ========================================================================= */
.wc-block-product-template .wc-block-product, .er-grid .wc-block-product { position: relative; display: flex; flex-direction: column; background: var(--er-bg); border: 1px solid var(--er-line); border-radius: var(--er-radius); padding: 1rem 1rem 1.25rem; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.wc-block-product-template .wc-block-product:hover { box-shadow: var(--er-shadow); transform: translateY(-3px); border-color: transparent; }
.wc-block-product .wc-block-components-product-image { border-radius: var(--er-radius-sm); overflow: hidden; background: var(--er-surface); margin-bottom: 0.75rem; }
.wc-block-product .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; transition: transform 0.4s var(--er-ease); }
.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }
.er-pcard__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0.25rem 0 0.35rem; }
.er-pcard__title a { color: var(--er-ink); text-decoration: none; }
.wc-block-product .wc-block-components-product-price { font-weight: 700; font-size: 1.0625rem; color: var(--er-ink); margin-bottom: 0.75rem; }
.wc-block-components-product-price del { color: var(--er-muted); font-weight: 400; font-size: 0.875rem; margin-right: 0.35rem; }
.wc-block-components-product-price ins { text-decoration: none; color: var(--er-sale); }
.wc-block-product .wp-block-button, .wc-block-product .wc-block-components-product-button { margin-top: auto; }
.wc-block-product .wp-block-button__link, .wc-block-product .wc-block-components-product-button__button { width: 100%; padding: 0.65rem 1rem; font-size: 0.875rem; }

.er-pmeta { min-height: 1.5rem; }
.er-badges { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.er-pdp .er-badges { position: static; margin-bottom: 0.75rem; }
.er-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.er-badge--new { background: var(--er-ink); color: var(--er-on-dark); }
.er-badge--hot { background: var(--er-highlight); color: var(--er-ink); }
.er-badge--sale { background: var(--er-sale); color: var(--er-on-dark); }
.er-specline { margin: 0; font-size: 0.8125rem; color: var(--er-muted); font-weight: 600; }

/* Carousel layout: horizontal scroll with snap */
.er-carousel { position: relative; }
.er-carousel .wc-block-product-template { display: flex !important; flex-wrap: nowrap !important; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0.25rem 0 1rem; margin: 0; }
.er-carousel .wc-block-product-template::-webkit-scrollbar { display: none; }
.er-carousel .wc-block-product-template > .wc-block-product { flex: 0 0 calc((100% - 3 * 1.25rem) / 4); max-width: none; scroll-snap-align: start; margin: 0; }
.er-carousel--compact .wc-block-product-template > .wc-block-product { flex-basis: calc((100% - 1.25rem) / 2.15); }
.er-carousel__nav { position: absolute; top: -4.25rem; right: var(--er-gutter); display: flex; gap: 0.5rem; }
.er-carousel--compact .er-carousel__nav { top: auto; bottom: -0.5rem; right: 0; }
.er-carousel__btn { border: 1px solid var(--er-line); background: var(--er-bg); }
.er-carousel__btn:hover { background: var(--er-ink); color: var(--er-on-dark); border-color: var(--er-ink); }
.er-section .er-shead + .er-carousel .er-carousel__nav { display: none; }

/* Category spotlight */
.er-spot + .er-spot { padding-top: 0; }
.er-spot__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1.5rem; align-items: stretch; }
.er-spot__lead { position: relative; display: flex; align-items: flex-end; min-height: 460px; border-radius: var(--er-radius-lg); overflow: hidden; color: var(--er-on-dark); text-decoration: none; }
.er-spot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--er-ease); }
.er-spot__lead:hover .er-spot__img { transform: scale(1.04); }
.er-spot__lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--er-overlay-strong) 0%, transparent 65%); }
.er-spot__text { position: relative; z-index: 1; padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.er-spot__title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.er-spot__desc { color: var(--er-on-dark-muted); font-size: 0.9375rem; max-width: 420px; }
.er-spot__lead .er-link-arrow { color: var(--er-on-dark); }
.er-spot__products { min-width: 0; padding-bottom: 2.5rem; position: relative; }

/* Help me choose */
.er-help { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; background: var(--er-dark); color: var(--er-on-dark); border-radius: var(--er-radius-lg); padding: clamp(1.75rem, 4vw, 3.5rem); margin-block: clamp(1rem, 3vw, 2rem); overflow: hidden; }
.er-help__title { color: var(--er-on-dark); font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.er-help__steps { margin: 0 0 1.75rem; padding-left: 1.25rem; color: var(--er-on-dark-muted); display: grid; gap: 0.6rem; }
.er-help__steps strong { color: var(--er-on-dark); }
.er-help__img { border-radius: var(--er-radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.er-help .wp-element-button { background: var(--er-on-dark); color: var(--er-ink); border-color: var(--er-on-dark); }

/* Value grid */
.er-values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.er-value { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.5rem 1.25rem; border: 1px solid var(--er-line); border-radius: var(--er-radius); color: var(--er-ink); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.er-value:hover { border-color: transparent; box-shadow: var(--er-shadow); color: var(--er-ink); }
.er-value__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--er-accent-soft); color: var(--er-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.er-value__title { font-weight: 700; }
.er-value__text { font-size: 0.875rem; color: var(--er-muted); }

/* Post cards */
.er-postgrid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.er-postgrid > li { display: flex; flex-direction: column; gap: 0.5rem; background: var(--er-bg); border-radius: var(--er-radius); overflow: hidden; padding-bottom: 1.25rem; border: 1px solid var(--er-line); transition: box-shadow 0.25s, transform 0.25s; }
.er-postgrid > li:hover { box-shadow: var(--er-shadow); transform: translateY(-3px); }
.er-postgrid > li > * { margin-inline: 1.25rem; margin-block: 0; }
.er-postgrid > li > .er-postcard__img { margin: 0 0 0.5rem; }
.er-postcard__img img { transition: transform 0.4s var(--er-ease); }
.er-postgrid > li:hover .er-postcard__img img { transform: scale(1.04); }
.er-postcard__cat a { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--er-accent); text-decoration: none; }
.er-postcard__title { font-size: 1.1875rem; line-height: 1.3; }
.er-postcard__title a { color: var(--er-ink); text-decoration: none; }
.er-postcard__excerpt { color: var(--er-ink-soft); font-size: 0.9375rem; }
.er-postcard__excerpt .wp-block-post-excerpt__more-text { display: none; }
.er-postcard__date { color: var(--er-muted); font-size: 0.8125rem; }

/* =========================================================================
   6. Product listing (shop and category)
   ========================================================================= */
.er-plp__hero, .er-pagehero { background: radial-gradient(circle at 85% 10%, var(--er-accent) 0%, transparent 45%), var(--er-dark); color: var(--er-on-dark); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.er-plp__title, .er-pagehero__title { color: var(--er-on-dark); font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0.5rem 0; }
.er-plp__desc, .er-pagehero__lead { color: var(--er-on-dark-muted); max-width: 640px; font-size: 1.0625rem; }
.er-plp__desc p, .er-pagehero__lead p { margin: 0; }
.er-crumbs { font-size: 0.8125rem; color: var(--er-muted); margin: 1.25rem 0; }
.er-crumbs a { color: inherit; text-decoration: none; }
.er-crumbs--light { color: var(--er-on-dark-muted); margin-top: 0; }

.er-catnav { display: flex; gap: 0.75rem; overflow-x: auto; scrollbar-width: none; padding: 1.5rem 0 0.5rem; }
.er-catnav::-webkit-scrollbar { display: none; }
.er-catnav__item { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: 104px; padding: 0.5rem; border-radius: var(--er-radius); color: var(--er-ink); text-decoration: none; font-size: 0.8125rem; font-weight: 600; text-align: center; border: 2px solid transparent; }
.er-catnav__item:hover { background: var(--er-surface); color: var(--er-ink); }
.er-catnav__item.is-active { border-color: var(--er-ink); }
.er-catnav__thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--er-surface); display: flex; align-items: center; justify-content: center; }
.er-catnav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.er-catnav__thumb--all { background: var(--er-ink); color: var(--er-on-dark); }

.er-plp__body { gap: 2rem; margin-top: 1.5rem; padding-bottom: 4rem; }
.er-plp__filters { flex: 0 0 240px !important; }
.er-plp__results { flex: 1 !important; min-width: 0; }
.er-filter__head { font-size: 1.125rem; margin: 0 0 1rem; }
.er-plp__filters h4 { font-size: 0.9375rem; margin: 1.5rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--er-line); }
.er-plp__toolbar { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--er-line); align-items: center; }
.er-plp__toolbar p, .er-plp__toolbar .woocommerce-result-count { margin: 0; color: var(--er-muted); font-size: 0.875rem; }
.er-plp__toolbar select { border: 1px solid var(--er-line); border-radius: 999px; padding: 0.5rem 1rem; background: var(--er-bg); }
.er-grid .wc-block-product-template { gap: 1.25rem; }

/* =========================================================================
   7. Single product
   ========================================================================= */
.er-pdp__top { gap: clamp(1.5rem, 4vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); align-items: flex-start; }
.er-pdp__gallery { flex: 0 0 55% !important; min-width: 0; }
.er-pdp__gallery .wp-block-woocommerce-product-image-gallery { max-width: none; }
.er-pdp__gallery .woocommerce-product-gallery { border-radius: var(--er-radius-lg); overflow: hidden; background: var(--er-surface); width: 100% !important; max-width: none !important; float: none !important; }
.er-pdp__gallery .flex-control-thumbs { display: flex; gap: 0.5rem; padding: 0.75rem; margin: 0; list-style: none; }
.er-pdp__gallery .flex-control-thumbs li { width: 72px; border-radius: var(--er-radius-sm); overflow: hidden; }
.er-pdp__title { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5rem; }
.er-pdp__price { font-size: 1.625rem; font-weight: 800; margin: 0.75rem 0; }
.er-pdp__price del { font-size: 1.125rem; }
.er-pdp__excerpt { color: var(--er-ink-soft); }
.er-buybox { margin: 1.5rem 0; padding: 1.25rem; background: var(--er-surface); border-radius: var(--er-radius); }
.er-buybox form.cart { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 0; }
.er-buybox .quantity { flex: 0 0 100%; }
.er-buybox .quantity input { width: 72px; height: 48px; border: 1px solid var(--er-line); border-radius: 999px; text-align: center; }
.er-buybox form.cart .single_add_to_cart_button, .er-buybox form.cart .er-buy-now { flex: 1 1 0; min-width: 0; height: 50px; min-height: 50px; padding: 0 1rem; border-radius: 999px; font-size: 1.0625rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, filter 0.2s; }
.er-buybox form.cart .single_add_to_cart_button { background: var(--er-bg); border: 1.5px solid var(--er-ink); color: var(--er-ink); }
.er-buybox form.cart .single_add_to_cart_button:hover { background: var(--er-ink); border-color: var(--er-ink); color: var(--er-on-dark); }
.er-buybox form.cart .er-buy-now { background: var(--er-buy); border: 1.5px solid var(--er-buy); color: var(--er-on-dark); }
.er-buybox form.cart .er-buy-now:hover { background: var(--er-buy); border-color: var(--er-buy); color: var(--er-on-dark); filter: brightness(0.9); }
.er-buybox table.variations { width: 100%; margin-bottom: 0.75rem; }
.er-buybox table.variations select { width: 100%; border: 1px solid var(--er-line); border-radius: var(--er-radius-sm); padding: 0.6rem; }
.er-assurance { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.er-assurance li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--er-ink-soft); }
.er-assurance .er-icon { width: 20px; height: 20px; color: var(--er-accent); }
.er-assurance a { color: inherit; }
.er-pdp__info .wp-block-woocommerce-product-meta { font-size: 0.8125rem; color: var(--er-muted); }
.er-pdp__info .wp-block-woocommerce-product-meta .wp-block-group { gap: 1.25rem; }

/* Hide WooCommerce default sale flash: theme badges show savings instead */
.er-pdp .onsale, .er-pdp .wc-block-components-product-sale-badge { display: none; }

/* Tabs (product details) */
.er-pdp__details .wc-tabs::before, .er-pdp__details .wc-tabs li::before, .er-pdp__details .wc-tabs li::after { display: none !important; }
.er-pdp__details .wc-tabs li { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
.er-pdp__details .woocommerce-Tabs-panel > h2:first-child { display: none; }
.er-pdp__details .wc-tabs, .er-pdp__details .woocommerce-tabs ul.tabs { display: flex; gap: 0.75rem; list-style: none; margin: 0 0 1.5rem; padding: 0; overflow-x: auto; border-bottom: 1px solid var(--er-line); }
.er-pdp__details .wc-tabs li { margin: 0; }
.er-pdp__details .wc-tabs li a { display: block; padding: 0.85rem 1.1rem !important; font-size: 0.9375rem; color: var(--er-muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.er-pdp__details .wc-tabs li.active a { color: var(--er-ink); border-bottom-color: var(--er-ink); }
.er-pdp__details .woocommerce-Tabs-panel { background: var(--er-bg); border-radius: var(--er-radius); padding: clamp(1.25rem, 3vw, 2.5rem); }
.er-pdp__details table.shop_attributes { width: 100%; border-collapse: collapse; }
.er-pdp__details table.shop_attributes th, .er-pdp__details table.shop_attributes td { border-bottom: 1px solid var(--er-line); padding: 0.85rem 0.5rem; text-align: left; }
.er-pdp__details table.shop_attributes th { width: 35%; color: var(--er-muted); font-weight: 600; }
.er-pdp__details table.shop_attributes td p { margin: 0; }

/* Sticky buy bar */
.er-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--er-bg); border-top: 1px solid var(--er-line); box-shadow: var(--er-shadow-up); transform: translateY(100%); transition: transform 0.3s var(--er-ease); }
.er-sticky-buy.is-visible { transform: none; }
.er-sticky-buy__inner { max-width: var(--er-max); margin: 0 auto; padding: 0.75rem var(--er-gutter); display: flex; align-items: center; gap: 1rem; box-sizing: border-box; }
.er-sticky-buy__img { width: 48px; height: 48px; border-radius: var(--er-radius-sm); object-fit: cover; }
.er-sticky-buy__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.er-sticky-buy__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-sticky-buy__price { font-size: 0.9375rem; }

/* =========================================================================
   8. Pages, articles, cart and checkout
   ========================================================================= */
.er-prose { padding-block: clamp(2rem, 5vw, 3.5rem); padding-inline: var(--er-gutter); }
.er-prose h2 { font-size: 1.625rem; letter-spacing: -0.01em; margin-top: 2.25rem; }
.er-updated { color: var(--er-muted); font-size: 0.875rem; margin-top: 2rem; }
.er-updated::before { content: "Last updated: "; }

.er-article__head { padding: clamp(2rem, 5vw, 3.5rem) var(--er-gutter) 1.5rem; }
.er-article__cat a { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--er-accent); text-decoration: none; }
.er-article__title { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0.5rem 0 1rem; }
.er-article__lead { font-size: 1.1875rem; color: var(--er-ink-soft); }
.er-byline { gap: 1rem 1.5rem; align-items: center; font-size: 0.875rem; color: var(--er-muted); margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--er-line); }
.er-byline .wp-block-post-author { align-items: center; }
.er-byline .wp-block-post-author__avatar img { border-radius: 50%; }
.er-byline__date::before { content: "Published "; }
.er-byline__updated::before { content: "Updated "; }
.er-article__media { padding-inline: var(--er-gutter); }
.er-article__img img { border-radius: var(--er-radius-lg); }
.er-authorbox { margin-top: 3rem; padding: 1.5rem; background: var(--er-surface); border-radius: var(--er-radius); }
.er-authorbox .wp-block-post-author__avatar img { border-radius: 50%; }
.er-tags a { font-size: 0.8125rem; padding: 0.25rem 0.75rem; background: var(--er-surface); border-radius: 999px; color: var(--er-ink-soft); text-decoration: none; }

/* Comparison tables: horizontal scroll on small screens (rule H4) */
.er-table-wrap, .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { min-width: 640px; border-collapse: collapse; }
.wp-block-table th { background: var(--er-surface); text-align: left; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--er-line); padding: 0.75rem; }

/* Disclosure / disclaimer box */
.er-disclosure { background: var(--er-accent-soft); border-left: 4px solid var(--er-accent); border-radius: var(--er-radius-sm); padding: 1rem 1.25rem; font-size: 0.9375rem; color: var(--er-ink-soft); }
.er-pagehero__search { max-width: 520px; margin-top: 1rem; }

.er-shopflow { padding-bottom: 4rem; }
.er-shopflow__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin: 2rem 0 1.5rem; }
.er-shopflow .wc-block-cart, .er-shopflow .wc-block-checkout { max-width: none; }
.er-shopflow .wc-block-components-sidebar { background: var(--er-surface); border-radius: var(--er-radius); padding: 1.5rem; }
.er-shopflow .wc-block-components-text-input input, .er-shopflow .wc-block-components-combobox input, .er-shopflow .wc-blocks-components-select select { border-radius: var(--er-radius-sm); }
.er-shopflow .wc-block-components-button:not(.is-link) { background: var(--er-ink); color: var(--er-on-dark); border-radius: 999px; min-height: 52px; }
.er-shopflow .wc-block-components-button:not(.is-link):hover { background: var(--er-accent); }

.er-404__inner { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.er-404__title { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
.er-404 .er-slide__ctas { justify-content: center; }

/* Mini cart drawer */
.wc-block-mini-cart__drawer .components-modal__content { border-radius: var(--er-radius-lg) 0 0 var(--er-radius-lg); }
.wc-block-mini-cart__footer-actions .wc-block-components-button { border-radius: 999px; }

/* =========================================================================
   9. Footer
   ========================================================================= */
.er-prefooter { background: var(--er-accent); color: var(--er-on-dark); }
.er-prefooter__inner { max-width: var(--er-max); margin: 0 auto; padding: 2rem var(--er-gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; box-sizing: border-box; }
.er-prefooter__title { font-size: 1.375rem; font-weight: 800; margin: 0 0 0.25rem; }
.er-prefooter__text { margin: 0; color: var(--er-accent-soft); }
.er-prefooter .wp-element-button { background: var(--er-on-dark); color: var(--er-ink); border-color: var(--er-on-dark); }
.er-prefooter .wp-element-button:hover { background: var(--er-ink); color: var(--er-on-dark); border-color: var(--er-ink); }

.er-footer { background: var(--er-dark); color: var(--er-on-dark-muted); font-size: 0.9375rem; margin: 0; }
.er-footer__inner { max-width: var(--er-max); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--er-gutter) 2rem; box-sizing: border-box; }
.er-footer__cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.er-footer__logo { color: var(--er-on-dark); font-size: 1.25rem; font-weight: 800; margin: 0 0 0.75rem; }
.er-footer__brand p:last-child { max-width: 320px; }
.er-footer__col summary { color: var(--er-on-dark); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; list-style: none; margin-bottom: 1rem; cursor: default; pointer-events: none; }
.er-footer__col summary::-webkit-details-marker { display: none; }
.er-footer ul { list-style: none; padding: 0; margin: 0; }
.er-footer li { margin: 0 0 0.6rem; }
.er-footer a { color: var(--er-on-dark-muted); text-decoration: none; }
.er-footer a:hover { color: var(--er-on-dark); }
.er-footer__pay { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.er-footer__pay span { border: 1px solid var(--er-dark-2); border-radius: 6px; padding: 0.25rem 0.6rem; font-size: 0.75rem; font-weight: 700; color: var(--er-on-dark); }
.er-footer__legal { border-top: 1px solid var(--er-dark-2); margin-top: 1.5rem; padding-top: 1.5rem; font-size: 0.8125rem; }
.er-footer__legal p { margin: 0 0 0.5rem; }

/* =========================================================================
   10. Responsive: ~1080 / 760 / 480 (rule H4)
   ========================================================================= */
/* =========================================================================
   Product long description (pattern: ecoreview/pdp-rich-content)
   ========================================================================= */
.er-pd { padding-top: 0; }
.er-pd__content { max-width: none; }
.er-pd__content > * { margin-block: 0 clamp(2.5rem, 5vw, 4.5rem); }
.er-pd__content > :last-child { margin-bottom: 0; }
.er-pd-h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); letter-spacing: -0.02em; line-height: 1.15; text-align: center; margin-bottom: 1.75rem !important; }

.er-pd-hero { position: relative; border-radius: var(--er-radius-lg); overflow: hidden; background: var(--er-dark); color: var(--er-on-dark); min-height: clamp(360px, 42vw, 560px); display: flex; align-items: flex-end; }
.er-pd-hero__img { position: absolute; inset: 0; margin: 0; }
.er-pd-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.er-pd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--er-overlay-strong) 0%, var(--er-overlay) 40%, transparent 70%); }
.er-pd-hero__body { position: relative; z-index: 1; max-width: 560px; padding: clamp(1.5rem, 5vw, 4rem); }
.er-pd-hero__title { color: var(--er-on-dark); font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.er-pd-hero__lead { color: var(--er-on-dark-muted); font-size: 1.0625rem; margin: 0; }

.er-pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--er-line); border: 1px solid var(--er-line); border-radius: var(--er-radius); overflow: hidden; margin-bottom: 0.75rem !important; }
/* Grid children: cancel the flow-layout top margin WordPress adds to siblings */
.er-pd-stats > *, .er-pd-uses > *, .er-pd-fit > * { margin-block: 0 !important; }
.er-pd-stat { background: var(--er-bg); padding: 1.5rem 1rem; text-align: center; }
.er-pd-stat > * { margin: 0; }
.er-pd-stat__value { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; color: var(--er-ink); }
.er-pd-stat__label { color: var(--er-muted); font-size: 0.875rem; margin-top: 0.25rem !important; }
.er-pd-note { color: var(--er-muted); font-size: 0.8125rem; text-align: center; }

.er-pd-feature, .er-pd-box { gap: clamp(1.5rem, 5vw, 4rem); align-items: center; grid-template-columns: 50% 1fr; }
.er-pd-feature.has-media-on-the-right, .er-pd-box.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.er-pd-feature .wp-block-media-text__media img, .er-pd-box .wp-block-media-text__media img { border-radius: var(--er-radius-lg); width: 100%; height: auto; }
.er-pd-feature .wp-block-media-text__content, .er-pd-box .wp-block-media-text__content { padding: 0; }
.er-pd-feature h3 { font-size: clamp(1.375rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
.er-pd-feature p:not(.er-eyebrow) { color: var(--er-ink-soft); font-size: 1.0625rem; }

.er-pd-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.er-pd-use { background: var(--er-surface); border-radius: var(--er-radius); overflow: hidden; padding-bottom: 1.25rem; }
.er-pd-use figure { margin: 0 0 1rem; }
.er-pd-use img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.er-pd-use h3 { font-size: 1.125rem; margin: 0 1.25rem 0.4rem; }
.er-pd-use p { color: var(--er-ink-soft); font-size: 0.9375rem; margin: 0 1.25rem; }

.er-pd-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.er-pd-fit__col { border-radius: var(--er-radius); padding: 1.5rem 1.75rem; }
.er-pd-fit__col--yes { background: var(--er-accent-soft); }
.er-pd-fit__col--no { background: var(--er-highlight-soft); }
.er-pd-fit__col h3 { font-size: 1.125rem; margin: 0 0 0.75rem; }
.er-pd-fit__col ul, .er-pd-box ul { margin: 0; padding-left: 1.2rem; font-size: 1rem; }
.er-pd-fit__col li + li { margin-top: 0.4rem; }

.er-pd-table { margin-inline: auto; max-width: 880px; }
.er-pd-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.er-pd-table th, .er-pd-table td { border: 0; border-bottom: 1px solid var(--er-line); padding: 0.85rem 0.75rem; text-align: left; vertical-align: top; }
.er-pd-table tbody th { width: 38%; color: var(--er-muted); font-weight: 600; }
.er-pd-table figcaption { color: var(--er-muted); font-size: 0.8125rem; margin-top: 0.75rem; }
.er-pd-table--compare { max-width: none; }
.er-pd-table--compare table { min-width: 640px; }
.er-pd-table--compare thead th { font-weight: 800; border-bottom: 2px solid var(--er-ink); }
.er-pd-table--compare tbody th { width: 22%; }
.er-pd-table--compare td:nth-child(2), .er-pd-table--compare thead th:nth-child(2) { background: var(--er-surface); }

.er-pd-box { background: var(--er-surface); border-radius: var(--er-radius-lg); padding: clamp(1.25rem, 4vw, 2.5rem); }
.er-pd-box h3 { font-size: 1.5rem; margin: 0 0 0.75rem; }

.er-pd-faq { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--er-line); }
.er-pd-faq .wp-block-details { border-bottom: 1px solid var(--er-line); padding: 0; margin: 0; }
.er-pd-faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; }
.er-pd-faq summary::-webkit-details-marker { display: none; }
.er-pd-faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--er-muted); }
.er-pd-faq details[open] summary::after { content: "\2212"; }
.er-pd-faq details p { color: var(--er-ink-soft); margin: 0 0 1.1rem; }

/* =========================================================================
   Bundle options and add-ons (inc/bundle-options.php)
   ========================================================================= */
.er-buybox .er-bundle { flex: 1 0 100%; min-width: 0; margin: 0 0 0.5rem; }
.er-bundle__h { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.75rem; }
.er-bundle__h--addons { margin-top: 1.5rem; }
.er-opts, .er-addons { display: grid; gap: 0.75rem; }
.er-opt { position: relative; display: block; background: var(--er-bg); border: 1px solid var(--er-line); border-radius: var(--er-radius-sm); padding: 1rem; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.er-opt:hover { border-color: var(--er-muted); }
.er-opt.is-active, .er-opt.is-active:hover { border-color: var(--er-accent); box-shadow: 0 0 0 1px var(--er-accent); }
.er-opt__radio { position: absolute; opacity: 0; pointer-events: none; }
.er-opt:has(.er-opt__radio:focus-visible) { outline: 2px solid var(--er-accent); outline-offset: 2px; }
.er-opt__ribbon { position: absolute; top: 0; right: 0; background: var(--er-highlight-soft); color: var(--er-ink); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 0 var(--er-radius-sm) 0 var(--er-radius-sm); }
.er-opt__ribbon ~ .er-opt__row { padding-top: 0.75rem; }
.er-opt__row { display: flex; gap: 0.875rem; align-items: flex-start; }
.er-opt__img { width: 64px; height: 64px; object-fit: contain; flex: none; background: var(--er-surface); border-radius: var(--er-radius-sm); }
.er-opt__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-width: 0; flex: 1; }
.er-opt__tag { background: var(--er-ink); color: var(--er-on-dark); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 4px; }
.er-opt.is-active .er-opt__tag { background: var(--er-accent); }
.er-opt__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.er-opt__sub { font-size: 0.8125rem; color: var(--er-muted); }
.er-opt__badge { background: var(--er-accent-soft); color: var(--er-accent-hover); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 4px; }
.er-opt__price strong, .er-addon__price strong { font-size: 1rem; font-weight: 800; }
.er-opt__price del, .er-addon__price del { color: var(--er-muted); font-size: 0.8125rem; margin-left: 0.35rem; }
.er-opt__check { width: 20px; height: 20px; flex: none; border: 2px solid var(--er-line); border-radius: 999px; box-sizing: border-box; transition: border 0.15s; }
.er-opt.is-active .er-opt__check { border: 6px solid var(--er-accent); }
.er-opt__note { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px solid var(--er-line); font-size: 0.8125rem; color: var(--er-ink-soft); }
.er-opt__note .er-icon { width: 18px; height: 18px; color: var(--er-accent); }

.er-addon { display: flex; align-items: center; gap: 0.75rem; background: var(--er-bg); border: 1px solid var(--er-line); border-radius: var(--er-radius-sm); padding: 0.875rem; transition: opacity 0.15s; }
.er-addon:has(.er-addon__cb:checked) { border-color: var(--er-accent); }
.er-addon.is-disabled { opacity: 0.55; }
.er-addon__cb { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--er-accent); }
.er-addon__img { width: 56px; height: 56px; object-fit: contain; flex: none; background: var(--er-surface); border-radius: var(--er-radius-sm); }
.er-addon__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.er-addon__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
.er-addon__more { font-size: 0.8125rem; }
.er-addon__limit { font-size: 0.75rem; color: var(--er-sale); }
.er-qty { display: flex; align-items: center; background: var(--er-surface); border-radius: 999px; flex: none; }
.er-qty__btn { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.125rem; line-height: 1; cursor: pointer; color: var(--er-ink); border-radius: 999px; }
.er-qty__btn:hover:not(:disabled) { background: var(--er-surface-2); }
.er-qty__btn:disabled { color: var(--er-muted); opacity: 0.5; cursor: default; }
.er-buybox .er-qty__input { width: 32px; height: 34px; border: 0; background: transparent; text-align: center; font-weight: 600; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.er-qty__input::-webkit-outer-spin-button, .er-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.er-bundle__total { display: flex; justify-content: space-between; align-items: baseline; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--er-line); font-weight: 600; }
.er-bundle__total-val { font-size: 1.25rem; font-weight: 800; }
.er-bundle__total-val ins, .er-sticky-buy__price ins, .er-pdp__price ins { text-decoration: none; }
.er-bundle__total-val del { color: var(--er-muted); font-size: 0.9375rem; font-weight: 500; margin-right: 0.5rem; }

@media (max-width: 1080px) {
	:root { --er-header-h: 60px; }
	/* Off-canvas drawer */
	.er-nav-wrap { flex: 0 0 auto; order: -1; justify-content: flex-start; }
	.er-header__inner { gap: 0.25rem; }
	.er-logo { flex: 1; font-size: 1.125rem; }
	.er-nav__toggle { display: inline-flex; }
	.er-nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 300; width: min(88vw, 380px); background: var(--er-bg); transform: translateX(-100%); transition: transform 0.3s var(--er-ease); overflow-y: auto; box-shadow: var(--er-shadow-lg); }
	.er-nav.is-open { transform: none; }
	.er-nav__backdrop { position: fixed; inset: 0; z-index: 250; background: var(--er-overlay); }
	.er-nav__backdrop[hidden] { display: none; }
	.er-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--er-line); }
	.er-nav__title { font-weight: 800; }
	.er-nav__list { flex-direction: column; gap: 0; padding: 0.5rem 0; }
	.er-nav__link { width: 100%; height: auto; padding: 1rem 1.25rem; justify-content: space-between; font-size: 1rem; }
	.er-mega, .er-drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; display: none; min-width: 0; }
	.er-nav__item.is-open > .er-mega, .er-nav__item.is-open > .er-drop { display: block; transform: none; }
	.er-mega__inner { grid-template-columns: 1fr; padding: 0 1rem 1rem; gap: 1rem; }
	.er-mega__grid, .er-mega__grid--scenes { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
	.er-mega__promo, .er-mega__desc { display: none; }
	.er-mega__all { border: 0; text-align: left; padding: 0 1.25rem 1rem; }
	.er-drop { padding: 0 0.75rem 0.75rem; }

	.er-cattiles { grid-template-columns: repeat(3, 1fr); }
	.er-values { grid-template-columns: repeat(3, 1fr); }
	.er-carousel .wc-block-product-template > .wc-block-product { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
	.er-spot__grid { grid-template-columns: 1fr; }
	.er-spot__lead { min-height: 360px; }
	.er-carousel--compact .wc-block-product-template > .wc-block-product { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
	.er-footer__cols { grid-template-columns: repeat(4, 1fr); }
	.er-footer__brand { grid-column: 1 / -1; }
	.er-plp__filters { flex-basis: 200px !important; }
	/* Hero slider: keep copy on the dark half and clear of the arrows */
	.er-slide__title { font-size: clamp(2.125rem, 4.6vw, 3.25rem); max-width: 52%; }
	.er-slide__text { max-width: 46%; }
	.er-slide::after { background: linear-gradient(90deg, var(--er-overlay-strong) 0%, var(--er-overlay) 50%, transparent 80%); }
	.er-pd-uses { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

@media (max-width: 760px) {
	.er-utility__links { display: none; }
	.er-utility__inner { justify-content: center; text-align: center; }
	.er-slider__prev, .er-slider__next { display: none; }
	.er-slide__content { padding-inline: var(--er-gutter); }
	.er-slide__title, .er-slide__text { max-width: none; }
	.er-slide { min-height: 520px; align-items: flex-end; }
	.er-slide__bg { object-position: 70% center; }
	.er-slide::after { background: linear-gradient(0deg, var(--er-overlay-strong) 0%, var(--er-overlay) 55%, transparent 100%); }
	.er-promos { grid-template-columns: 1fr; }
	.er-help { grid-template-columns: 1fr; }
	.er-help__img { order: -1; }
	.er-postgrid { grid-template-columns: repeat(2, 1fr); }
	.er-carousel .wc-block-product-template > .wc-block-product, .er-carousel--compact .wc-block-product-template > .wc-block-product { flex-basis: calc((100% - 1.25rem) / 2.2); }
	.er-carousel__nav { display: none; }
	.er-plp__body.wp-block-columns { flex-direction: column; }
	.er-plp__filters { flex-basis: auto !important; width: 100%; }
	.er-pdp__gallery { position: static; flex-basis: 100% !important; }
	.er-pdp__top.wp-block-columns { flex-wrap: wrap !important; }
	.er-pdp__info { flex-basis: 100% !important; }
	.er-footer__cols { grid-template-columns: 1fr 1fr; }
	.er-prefooter__inner { flex-direction: column; align-items: flex-start; }
	.er-pd-stats { grid-template-columns: repeat(2, 1fr); }
	.er-pd-feature, .er-pd-feature.has-media-on-the-right, .er-pd-box, .er-pd-box.has-media-on-the-right { grid-template-columns: 100% !important; }
	.er-pd-feature .wp-block-media-text__media, .er-pd-box .wp-block-media-text__media { grid-row: 1 !important; }
	.er-pd-feature .wp-block-media-text__content, .er-pd-box .wp-block-media-text__content { grid-row: 2 !important; }
	.er-pd-uses { grid-template-columns: 1fr; }
	.er-pd-use { display: grid; grid-template-columns: 40% 1fr; align-items: center; padding-bottom: 0; }
	.er-pd-use figure { grid-row: 1 / span 2; margin: 0; height: 100%; }
	.er-pd-use img { height: 100%; aspect-ratio: auto; }
	.er-pd-use h3 { margin: 1rem 1rem 0.25rem; align-self: end; }
	.er-pd-use p { margin: 0 1rem 1rem; align-self: start; }
	.er-pd-fit { grid-template-columns: 1fr; }
	.er-pd-hero::after { background: linear-gradient(0deg, var(--er-overlay-strong) 0%, var(--er-overlay) 50%, transparent 85%); }
}

@media (max-width: 480px) {
	.er-header__tools .wc-block-customer-account { display: none; }
	.er-shead { flex-direction: column; align-items: flex-start; }
	.er-slide__ctas { flex-direction: column; align-items: stretch; }
	.er-slide__ctas a { justify-content: center; }
	.er-promo { grid-template-columns: 1fr; }
	.er-promo__img { order: -1; }
	.er-cattiles { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
	.er-values { grid-template-columns: repeat(2, 1fr); }
	.er-postgrid { grid-template-columns: 1fr; }
	.er-carousel .wc-block-product-template > .wc-block-product, .er-carousel--compact .wc-block-product-template > .wc-block-product { flex-basis: 78%; }
	.er-grid .wc-block-product-template { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem; }
	.er-grid .wc-block-product { padding: 0.6rem 0.6rem 0.9rem; }
	.er-badges { top: 1rem; left: 1rem; }
	.er-footer__cols { grid-template-columns: 1fr; gap: 0; }
	.er-footer__col { border-bottom: 1px solid var(--er-dark-2); }
	.er-footer__col summary { pointer-events: auto; cursor: pointer; margin: 0; padding: 1rem 0; }
	.er-footer__col ul { padding-bottom: 1rem; }
	.er-footer__brand { margin-bottom: 1rem; }
	.er-sticky-buy__img { display: none; }
	.er-addon { flex-wrap: wrap; }
	.er-addon .er-qty { margin-left: calc(18px + 0.75rem); }
	.er-opt__img { width: 52px; height: 52px; }
	.er-pd-hero { min-height: 420px; }
	.er-pd-hero__img img { object-position: 75% center; }
	.er-pd-stat { padding: 1.1rem 0.5rem; }
	.er-pd-use { grid-template-columns: 1fr; }
	.er-pd-use figure { grid-row: auto; }
	.er-pd-use img { aspect-ratio: 16 / 9; }
	.er-pd-table tbody th { width: 45%; }
}

@media (max-width: 420px) {
	.er-buybox form.cart .single_add_to_cart_button, .er-buybox form.cart .er-buy-now { flex: 0 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
