/**
 * Aroha — theme stylesheet
 * Plain modern CSS: token-driven (theme.json), BEM, mobile first, no build step.
 * All tokens come from theme.json (--wp--preset--* / --wp--custom--*).
 *
 * Organized: 1) base  2) controls  3) shared components.
 */

/* ---------------------------------------------------------------------------
   Breakpoints — media queries cannot read custom properties, so these are a
   convention, not tokens. Mobile first, em-based.
       30em  480   sm
       48em  768   md
       64em  1024  lg
       80em  1280  xl
      100em  1600  2xl
   The design covers 390 and 1920 only; everything between is our decision.
   --------------------------------------------------------------------------- */

:root {
	--wp--custom--control--border: 1px solid var(--c-line);

	/* Contextual colors. Components read these, never the palette directly, so
	   a dark section can flip them in one place. */
	--c-fg: var(--wp--preset--color--black);
	--c-bg: var(--wp--preset--color--white);
	--c-line: var(--wp--preset--color--black);
	--c-muted: var(--wp--preset--color--muted);
	--c-focus: var(--wp--preset--color--black);

	--c-gutter: clamp(1.25rem, 8.3vw, 10rem);
	--c-icon-size: 1em;
}

/* Figma 390: 16 px gutter on phones. */
@media (max-width: 47.99em) {
	:root {
		--c-gutter: 1rem;
	}
}

/* Breakpoints are documented here; CSS uses the literals in media queries.
   sm 480px · md 768px · lg 1024px · xl 1280px · 2xl 1600px
   The design covers 390 and 1920 only — the middle is ours to decide. */

/* =========================================================================
   Base
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--body);
    line-height: var(--wp--custom--line-height--normal);
    color: var(--c-fg);
    background-color: var(--c-bg);
}

h1,
h2,
h3 {
    font-family: var(--wp--preset--font-family--display);
    font-weight: 600;
    line-height: var(--wp--custom--line-height--display);
    letter-spacing: var(--wp--custom--letter-spacing--display);
    text-transform: uppercase;
    text-wrap: balance;
}

h1 {
    font-size: var(--wp--preset--font-size--display);
}

h2 {
    font-size: var(--wp--preset--font-size--section);
}

h3 {
    font-size: var(--wp--preset--font-size--heading);
}

/* Spock Pro Bold (700 normal) is not licensed yet — browsers synthesise it. */
h4,
h5,
h6 {
    font-family: var(--wp--preset--font-family--text);
    font-weight: 700;
    line-height: var(--wp--custom--line-height--tight);
}

h4 {
    font-size: var(--wp--preset--font-size--title);
}

h5 {
    font-size: var(--wp--preset--font-size--lead);
}

h6 {
    font-size: var(--wp--preset--font-size--small);
    letter-spacing: var(--wp--custom--letter-spacing--label);
    text-transform: uppercase;
}

a {
    color: inherit;
    transition: color var(--wp--custom--transition);
}

:focus-visible {
    outline: 2px solid var(--wp--preset--color--ink);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================================
   Layout — section, container, grid
   ========================================================================= */

.c-section {
    padding-block: var(--wp--preset--spacing--80);
    background-color: var(--c-bg);
    color: var(--c-fg);
}

@media (min-width: 64em) {
    .c-section {
        padding-block: var(--wp--preset--spacing--90);
    }
}

.c-section--tight {
    padding-block: var(--wp--preset--spacing--70);
}

.c-section--flush {
    padding-block: 0;
}

.c-section--bone {
    --c-bg: var(--wp--preset--color--bone);
}

/* Dark ground: header, footer, announcement bar, Brocast banner. Flips the
   contextual colors so components need no dark-specific rules. */
.c-section--dark,
.c-invert {
    --c-fg: var(--wp--preset--color--white);
    --c-bg: var(--wp--preset--color--black);
    --c-line: rgba(255, 255, 255, 0.25);
    --c-muted: rgba(255, 255, 255, 0.65);
    --c-focus: var(--wp--preset--color--white);

    background-color: var(--c-bg);
    color: var(--c-fg);
}

.c-container {
    width: 100%;
    max-width: calc(1600px + 2 * var(--c-gutter));
    margin-inline: auto;
    padding-inline: var(--c-gutter);
}

/* GeneratePress' page grid is our content container; it only lacks gutters. */
.site.grid-container {
    max-width: calc(1600px + 2 * var(--c-gutter));
    padding-inline: var(--c-gutter);
}

.c-grid {
    display: grid;
    gap: var(--wp--preset--spacing--50);
}

.c-grid--2,
.c-grid--3,
.c-grid--4,
.c-grid--6 {
    grid-template-columns: 1fr;
}

@media (min-width: 48em) {
    .c-grid--2,
    .c-grid--3,
    .c-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .c-grid--6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 64em) {
    .c-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .c-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .c-grid--6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* =========================================================================
   Icons and utilities
   ========================================================================= */

.c-icon {
    width: var(--c-icon-size);
    height: var(--c-icon-size);
    flex: none;
    color: inherit;
}

.c-icon--lg {
    --c-icon-size: 2rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.c-stack > * + * {
    margin-top: var(--wp--preset--spacing--50);
}

/* GeneratePress colors bare <button> elements, which turns our unstyled
   buttons white on white. Everything we style starts from the text color. */
.c-chip,
.c-stepper__btn,
.c-header__burger,
.c-header__search-toggle,
.c-announcement__nav {
    color: inherit;
}

/* =========================================================================
   Button
   ========================================================================= */

.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wp--preset--spacing--50);
    min-height: var(--wp--custom--control--md);
    padding: 0 var(--wp--custom--control--px);
    border: 1px solid transparent;
    border-radius: var(--wp--custom--radius--none);
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    line-height: 1;
    letter-spacing: var(--wp--custom--letter-spacing--label);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition);
}

.c-btn:hover,
.c-btn:focus-visible {
    background-color: var(--wp--preset--color--ink);
}

.c-btn:disabled,
.c-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.c-btn--accent {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--black);
}

.c-btn--accent:hover,
.c-btn--accent:focus-visible {
    background-color: #76ad99;
}

.c-btn--outline {
    background-color: transparent;
    border-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--black);
}

.c-btn--outline:hover,
.c-btn--outline:focus-visible {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.c-btn--lg {
    min-height: var(--wp--custom--control--lg);
}

.c-btn--sm {
    min-height: var(--wp--custom--control--sm);
    font-size: var(--wp--preset--font-size--micro);
}

.c-btn--block {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

/* Text link with trailing arrow — „Zjistit víc →" */
.c-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
    font-weight: 700;
    font-size: var(--wp--preset--font-size--small);
    letter-spacing: var(--wp--custom--letter-spacing--label);
    text-transform: uppercase;
    text-decoration: none;
}

.c-link-arrow:hover .c-link-arrow__icon {
    transform: translateX(0.25rem);
}

.c-link-arrow__icon {
    transition: transform var(--wp--custom--transition);
}

/* =========================================================================
   Form fields
   ========================================================================= */

.c-field {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--10);
}

.c-field__label {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.4;
}

.c-field__control,
.c-form input[type="text"],
.c-form input[type="email"],
.c-form input[type="tel"],
.c-form input[type="password"],
.c-form input[type="number"],
.c-form input[type="search"],
.c-form select,
.c-form textarea {
    width: 100%;
    min-height: var(--wp--custom--control--md);
    padding: 0 var(--wp--custom--control--px);
    border: var(--wp--custom--control--border);
    border-radius: var(--wp--custom--radius--none);
    background-color: var(--c-bg);
    color: var(--c-fg);
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--small);
    transition: border-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.c-form textarea {
    min-height: 8rem;
    padding: var(--wp--preset--spacing--40) var(--wp--custom--control--px);
    line-height: var(--wp--custom--line-height--normal);
    resize: vertical;
}

.c-form select {
    appearance: none;
    padding-right: var(--wp--preset--spacing--70);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--wp--custom--control--px) center;
}

.c-form ::placeholder {
    color: var(--wp--custom--color--placeholder);
    opacity: 1;
}

.c-form :focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--wp--preset--color--black);
}

.c-field--error .c-field__control {
    border-color: var(--wp--preset--color--sale);
}

.c-field__error {
    color: var(--wp--preset--color--sale);
    font-size: var(--wp--preset--font-size--micro);
}

/* =========================================================================
   Choice card — delivery and payment options
   ========================================================================= */

.c-choice {
    display: block;
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
    border: var(--wp--custom--control--border);
    background-color: var(--wp--preset--color--white);
    cursor: pointer;
    transition: background-color var(--wp--custom--transition);
}

.c-choice--selected,
.c-choice:has(input:checked) {
    background-color: var(--wp--preset--color--bone);
}

.c-choice__head {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
    font-weight: 700;
}

.c-choice__price {
    margin-left: auto;
    font-weight: 700;
}

.c-choice__note {
    display: block;
    margin-top: var(--wp--preset--spacing--20);
    padding-left: var(--wp--preset--spacing--60);
    font-size: var(--wp--preset--font-size--small);
}

.c-choice input[type="radio"] {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    border: var(--wp--custom--control--border);
    border-radius: var(--wp--custom--radius--pill);
    background-color: var(--wp--preset--color--white);
    appearance: none;
    cursor: pointer;
}

.c-choice input[type="radio"]:checked {
    box-shadow: inset 0 0 0 3px var(--wp--preset--color--white);
    background-color: var(--wp--preset--color--black);
}

/* =========================================================================
   Checkbox and radio
   ========================================================================= */

.c-check {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--wp--preset--spacing--20);
    cursor: pointer;
}

.c-check input[type="checkbox"],
.c-check input[type="radio"] {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.15rem 0 0;
    border: var(--wp--custom--control--border);
    background-color: var(--wp--preset--color--white);
    appearance: none;
    cursor: pointer;
}

.c-check input[type="radio"] {
    border-radius: var(--wp--custom--radius--pill);
}

.c-check input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--black);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.c-check input[type="radio"]:checked {
    box-shadow: inset 0 0 0 3px var(--wp--preset--color--white);
    background-color: var(--wp--preset--color--black);
}

/* =========================================================================
   Quantity stepper and filter chip
   ========================================================================= */

.c-stepper {
    display: inline-flex;
    align-items: center;
    min-height: var(--wp--custom--control--lg);
    border: var(--wp--custom--control--border);
}

.c-stepper__btn {
    width: 3rem;
    align-self: stretch;
    border: 0;
    background: none;
    color: inherit;
    font-size: var(--wp--preset--font-size--lead);
    line-height: 1;
    cursor: pointer;
}

/* GeneratePress paints buttons dark on hover and focus. */
.c-stepper .c-stepper__btn:hover,
.c-stepper .c-stepper__btn:focus {
    background: none;
    color: inherit;
}

/* Two classes: GeneratePress styles input[type="number"] with a border and padding. */
.c-stepper .c-stepper__input {
    width: 3rem;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: var(--wp--preset--font-size--small);
}

.c-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
    min-height: var(--wp--custom--control--sm);
    padding: 0 var(--wp--preset--spacing--50);
    border: var(--wp--custom--control--border);
    background-color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--micro);
    font-weight: 700;
    letter-spacing: var(--wp--custom--letter-spacing--label);
    text-transform: uppercase;
    cursor: pointer;
}

.c-chip[aria-expanded="true"],
.c-chip--active {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

/* =========================================================================
   Header — announcement bar 50 px, main row 91 px, nav row 67 px (design @1920)
   ========================================================================= */

.c-announcement {
    font-size: var(--wp--preset--font-size--xs);
}

.c-announcement__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wp--preset--spacing--40);
    min-height: 2.25rem;
}

@media (min-width: 64em) {
    .c-announcement__inner {
        min-height: 3.125rem;
    }
}

.c-announcement__text {
    margin: 0;
}

.c-announcement__nav {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.c-header__main {
    background-color: var(--wp--preset--color--white);
    border-bottom: 1px solid var(--wp--custom--color--line-soft);
}

.c-header__main-inner {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--50);
    min-height: 4.25rem;
}

@media (min-width: 64em) {
    .c-header__main-inner {
        min-height: 5.6875rem;
    }
}

.c-header__logo {
    flex: 0 1 auto;
    min-width: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--lead);
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: var(--wp--custom--letter-spacing--display);
}

.c-header__search {
    display: none;
    position: relative;
    flex: 1 1 auto;
    max-width: 35rem;
}

.c-header__search input {
    width: 100%;
    min-height: var(--wp--custom--control--sm);
    padding: 0 var(--wp--custom--control--md) 0 var(--wp--custom--control--px);
    border: var(--wp--custom--control--border);
    border-radius: var(--wp--custom--radius--none);
    background-color: var(--c-bg);
    font-size: var(--wp--preset--font-size--small);
}

.c-header__search-submit {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: var(--wp--custom--control--md);
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.c-header__search-toggle {
    --c-icon-size: 1.5rem;

    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

@media (min-width: 64em) {
    .c-header__search {
        display: block;
    }

    .c-header__search-toggle {
        display: none;
    }
}

.c-header__tools {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
    margin-inline-start: auto;
}

@media (min-width: 64em) {
    .c-header__tools {
        gap: var(--wp--preset--spacing--40);
    }

    .c-header__logo {
        font-size: var(--wp--preset--font-size--title);
    }
}

.c-header__links {
    display: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    text-transform: uppercase;
}

.c-header__links a {
    text-decoration: none;
}

.c-header__currency {
    display: none;
    align-items: center;
    gap: var(--wp--preset--spacing--10);
    font-size: var(--wp--preset--font-size--small);
}

/* Design draws both currencies alike; the active one is only announced. */
.c-header__currency-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-fg);
    font: inherit;
    cursor: pointer;
}

@media (min-width: 64em) {
    .c-header__links,
    .c-header__currency {
        display: flex;
    }

    /* Design keeps the links clearly away from the currency switch. */
    .c-header__links {
        margin-inline-end: var(--wp--preset--spacing--80);
    }
}

.c-header__icon,
.c-header__burger {
    flex: none;
}

.c-header__icon {
    --c-icon-size: 1.5rem;

    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: inherit;
    text-decoration: none;
}

.c-header__icon--cart {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.c-header__badge {
    position: absolute;
    inset-block-start: 0.25rem;
    inset-inline-end: 0.25rem;
    min-width: 1.125rem;
    padding: 0 0.25rem;
    border-radius: var(--wp--custom--radius--pill);
    background-color: var(--wp--preset--color--sale);
    color: var(--wp--preset--color--white);
    font-size: 0.6875rem;
    line-height: 1.125rem;
    text-align: center;
}

.c-header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.c-burger,
.c-burger::before,
.c-burger::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: currentcolor;
}

.c-burger {
    position: relative;
}

.c-burger::before,
.c-burger::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
}

.c-burger::before {
    inset-block-start: -0.4375rem;
}

.c-burger::after {
    inset-block-start: 0.4375rem;
}

@media (min-width: 64em) {
    .c-header__burger {
        display: none;
    }
}

.c-header__nav {
    display: none;
    background-color: var(--wp--preset--color--white);
}

@media (min-width: 64em) {
    .c-header__nav {
        display: block;
    }
}

.c-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--50);
    min-height: 4.1875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--10);
    font-size: var(--wp--preset--font-size--small);
    text-decoration: none;
}

.c-nav > .menu-item-has-children > a::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1px solid currentcolor;
    border-bottom: 1px solid currentcolor;
    transform: translateY(-0.125rem) rotate(45deg);
}

/* Mega menu — full-width panel under the bar (brainmarket.cz style): level 2
   are bold group links, level 3 the grey links under them, flowed in 6 columns. */
.c-header__nav {
    position: relative;
}

/* Full bar height, so the pointer never leaves the item on its way to the panel. */
.c-nav > li {
    display: flex;
    align-items: center;
    align-self: stretch;
}

.c-nav > li > a {
    margin-inline: -0.75rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    transition: background-color var(--wp--custom--transition);
}

.c-nav > li:hover > a,
.c-nav > li:focus-within > a,
.c-nav > li.is-open > a {
    background-color: var(--wp--preset--color--bone);
}

.c-nav .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-nav > li > .sub-menu {
    position: absolute;
    inset: 100% 0 auto;
    z-index: var(--wp--custom--z--dropdown);
    padding: 2.5rem max(var(--c-gutter), (100% - 1600px) / 2) 3rem;
    border-top: 1px solid var(--wp--custom--color--line-soft);
    background-color: var(--wp--preset--color--white);
    column-count: 6;
    column-gap: 1.875rem;
    opacity: 0;
    visibility: hidden;
    /* Close fast, open after a beat so a pass over the bar does not flash panels. */
    transition: opacity 120ms ease, visibility 0s linear 120ms;
}

/* Dims the page below; no pointer events, so it never keeps the panel open. */
.c-nav > li > .sub-menu::after {
    content: "";
    position: absolute;
    inset: 100% 0 auto;
    height: 100vh;
    background-color: rgb(0 0 0 / 30%);
    pointer-events: none;
}

.c-nav > li:hover > .sub-menu,
.c-nav > li:focus-within > .sub-menu,
.c-nav > li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 150ms ease 150ms, visibility 0s linear 150ms;
}

/* A closed panel must not swallow the next hover (keyboard and taps use is-open). */
.c-nav > li.is-closed > .sub-menu {
    opacity: 0;
    visibility: hidden;
    transition: none;
}

.c-nav > li > .sub-menu > li {
    break-inside: avoid;
    padding-bottom: 1.5rem;
}

.c-nav > li > .sub-menu > li > a {
    display: inline-block;
    padding: 0.125rem 0;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.c-nav .sub-menu .sub-menu {
    margin-top: 0.375rem;
}

.c-nav .sub-menu .sub-menu a {
    display: inline-block;
    padding: 0.1875rem 0;
    color: #666;
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.4;
    text-decoration: none;
}

.c-nav .sub-menu a:hover,
.c-nav .sub-menu a:focus-visible {
    color: var(--wp--preset--color--black);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Narrow desktops: fewer, wider columns. */
@media (max-width: 85em) {
    .c-nav > li > .sub-menu {
        column-count: 4;
    }
}

/* =========================================================================
   Footer
   ========================================================================= */

/* Shared footer grid. Column starts match the design: 162, 464, 698, 910,
   1167, 1549 — so the newsletter input lines up with the social column and the
   button with the promo image. */
:root {
	--c-footer-grid:
		minmax(0, 1.88fr) minmax(0, 1.41fr) minmax(0, 1.26fr)
		minmax(0, 1.57fr) minmax(0, 2.31fr) minmax(0, 1.55fr);
}


.c-footer {
    position: relative;
    overflow: hidden;
    padding-block-start: 3.75rem;
}

@media (min-width: 64em) {
    .c-footer {
        padding-block-start: 6.25rem;
    }
}

.c-newsletter {
    display: grid;
    gap: var(--wp--preset--spacing--50);
    padding-block-end: 3.75rem;
}

.c-newsletter__intro {
    display: grid;
    gap: var(--wp--preset--spacing--30);
}

.c-newsletter__note::before {
    content: "";
    display: block;
    width: 3.125rem;
    margin-block-end: var(--wp--preset--spacing--30);
    border-block-start: 1px solid var(--wp--preset--color--white);
}

@media (min-width: 64em) {
    .c-newsletter__note::before {
        display: none;
    }
}

@media (min-width: 64em) {
    .c-newsletter {
        grid-template-columns: var(--c-footer-grid);
        align-items: center;
        gap: var(--wp--preset--spacing--50);
    }

    .c-newsletter__intro {
        grid-column: 1 / 5;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 2.5rem;
    }

    .c-newsletter .c-newsletter__form {
        display: contents;
    }

    .c-form.c-newsletter__form input {
        grid-column: 5;
    }

    .c-newsletter__form .c-btn {
        grid-column: 6;
    }
}

.c-newsletter__title {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1;
}

@media (min-width: 64em) {
    .c-newsletter__title {
        font-size: 3.75rem;
    }
}

.c-newsletter__note {
    margin: 0;
    max-width: 27.1875rem;
    font-size: var(--wp--preset--font-size--small);
}

@media (min-width: 64em) {
    .c-newsletter__note {
        padding-inline-start: var(--wp--preset--spacing--70);
        border-inline-start: 1px solid var(--wp--preset--color--white);
    }
}

.c-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--30);
}

@media (min-width: 64em) {
    .c-newsletter__form {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.c-form.c-newsletter__form input {
    min-width: 0;
    flex: none;
    min-height: 3.1875rem;
    border-color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: 0.01em;
}

/* Figma: 14px bold, no tracking, 30px gap, 25px padding — fits the column. */
.c-newsletter__form .c-btn {
    min-width: 0;
    min-height: 3.1875rem;
    gap: 1.875rem;
    padding: 0 1.5625rem;
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: normal;
}

.c-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.c-btn--light {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

.c-btn--light:hover,
.c-btn--light:focus-visible {
    background-color: var(--wp--preset--color--bone);
}

.c-footer__columns {
    display: grid;
    gap: var(--wp--preset--spacing--50);
    padding-block-end: 3.75rem;
}

@media (min-width: 48em) {
    .c-footer__columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64em) {
    .c-footer__columns {
        grid-template-columns: var(--c-footer-grid);
    }

    .c-footer__follow {
        display: contents;
    }
}

.c-footer__heading {
    margin: 0 0 var(--wp--preset--spacing--40);
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--title-lg);
    font-weight: 600;
    text-transform: uppercase;
}

.c-footer__links,
.c-footer__social-links,
.c-footer__legal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-footer__links {
    font-size: var(--wp--preset--font-size--xs);
    line-height: 1.4;
}

.c-footer__links li + li {
    margin-block-start: var(--wp--preset--spacing--30);
}

.c-footer__links a,
.c-footer__legal a,
.c-footer__top {
    font-size: inherit;
    line-height: 1.4;
    text-decoration: none;
}

.c-footer__links a:hover,
.c-footer__legal a:hover {
    text-decoration: underline;
}

.c-footer__brand .c-header__logo {
    display: inline-block;
    margin-block-end: var(--wp--preset--spacing--50);
    font-size: var(--wp--preset--font-size--title);
}


.c-footer__widget {
    font-size: var(--wp--preset--font-size--xs);
}

.c-footer__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--40);
}

.c-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
    padding-block: var(--wp--preset--spacing--80);
    font-size: var(--wp--preset--font-size--micro);
}

.c-footer__copy {
    margin: 0;
}

.c-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--50);
}

.c-footer__top {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
    margin-inline-start: auto;
    letter-spacing: var(--wp--custom--letter-spacing--label);
    text-transform: uppercase;
}

.c-footer__top .c-icon {
    transform: rotate(-90deg);
}


.c-footer__social-link {
    --c-icon-size: 1.5rem;

    display: inline-flex;
}

/* Same width as the newsletter button; both sit in the last column. */
.c-footer__promo {
    display: block;
    width: 100%;
    height: auto;
}

.c-footer__logo {
    --c-icon-size: auto;

    display: block;
    width: 10rem;
    height: auto;
    margin-block-end: var(--wp--preset--spacing--50);
}

.c-footer__badges {
    display: grid;
    align-items: center;
    gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
    padding-block: 1.875rem;
    border-block: 1px solid var(--wp--preset--color--white);
}

.c-footer__badges-middle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp--preset--spacing--50);
}

@media (min-width: 64em) {
    .c-footer__badges {
        grid-template-columns: auto 1fr auto;
    }

    .c-footer__badges-middle {
        justify-content: center;
    }
}

.c-footer__badge-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp--preset--spacing--50);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Thin rule between carriers and payments; must come after the list reset. */
.c-footer__badges .c-footer__badge-group--payments {
    padding-inline-start: var(--wp--preset--spacing--60);
    border-inline-start: 1px solid var(--wp--preset--color--white);
}

.c-footer__badge-group img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.c-footer__watermark {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    opacity: 0.6;
}

.c-footer__brocast {
    display: block;
    width: 8rem;
    height: auto;
    margin-block-end: var(--wp--preset--spacing--40);
}

.c-footer__top {
    gap: var(--wp--preset--spacing--30);
}

.c-footer__top .c-icon:first-child {
    transform: rotate(-90deg);
}

.c-footer__top .c-icon:last-child {
    transform: rotate(-90deg);
}

.c-review {
    display: grid;
    gap: 0.125rem;
    font-size: var(--wp--preset--font-size--micro);
}

.c-review__logo {
    display: block;
    width: auto;
    height: auto;
}

.c-review__logo--text {
    font-weight: 700;
}

.c-review__score {
    --c-icon-size: 1.2125rem;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.c-review__count {
    color: #797979;
}

/* =========================================================================
   Footer on phones — Figma 390: 16px gutter, stacked badges, paired columns
   ========================================================================= */

@media (max-width: 63.999em) {
    .c-footer .c-container {
        --c-gutter: 1rem;
    }

    /* Figma 390: first column 108px, 80px gutter, rest to the long column. */
    .c-footer__columns {
        grid-template-columns: 6.75rem 1fr;
        gap: var(--wp--preset--spacing--60) 5rem;
    }

    /* Brand, social and promo span the pair; link columns sit side by side. */
    .c-footer__brand {
        grid-column: 1 / -1;
    }

    /* Figma: first two link columns stack, the long one sits beside them. */
    .c-footer__column--1 {
        grid-column: 1;
        grid-row: 2;
    }

    .c-footer__column--2 {
        grid-column: 1;
        grid-row: 3;
    }

    .c-footer__column--3 {
        grid-column: 2;
        grid-row: 2 / span 2;
    }

    .c-footer__follow {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 4;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--wp--preset--spacing--40);
    }

    /* Figma 390: seven icons across 211 px. */
    .c-footer__social-links {
        flex-wrap: nowrap;
        gap: 0.4375rem;
    }

    .c-footer__social-link {
        --c-icon-size: 1.5rem;
    }

    .c-footer__promo-column {
        flex: none;
    }

    .c-footer__promo {
        width: 8.5rem;
    }

    .c-footer__badges {
        gap: var(--wp--preset--spacing--70);
        justify-items: start;
    }

    .c-footer__badges-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--wp--preset--spacing--40);
    }

    /* Divider turns horizontal between the stacked carrier and payment rows. */
    .c-footer__badges .c-footer__badge-group--payments {
        padding-inline-start: 0;
        padding-block-start: var(--wp--preset--spacing--40);
        border-inline-start: 0;
        border-block-start: 1px solid var(--wp--preset--color--white);
    }

    /* Legal links stack above a row of copyright + back to top. */
    .c-footer__bottom {
        display: grid;
        grid-template-areas:
            "legal legal"
            "copy  top";
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: var(--wp--preset--spacing--50);
        padding-block: var(--wp--preset--spacing--60);
    }

    .c-footer__legal {
        grid-area: legal;
        flex-direction: column;
        gap: 0.375rem;
    }

    .c-footer__copy {
        grid-area: copy;
    }

    .c-footer__top {
        grid-area: top;
        margin-inline-start: 0;
    }
}

/* =========================================================================
   Header on phones — design 390: 70 px row, 27 px icons 20 px apart, 16 px gutter
   ========================================================================= */

@media (max-width: 63.999em) {
    .c-header__main .c-container,
    .c-announcement .c-container {
        --c-gutter: 1rem;
    }

    .c-announcement {
        font-size: var(--wp--preset--font-size--micro);
    }

    /* Design 390 has no rule under the header. The row stays pinned; the
       announcement above it scrolls away. */
    .c-header__main {
        position: sticky;
        top: 0;
        z-index: var(--wp--custom--z--header);
        border-bottom: 0;
    }

    .c-header__main-inner {
        min-height: 4.375rem;
        gap: 1.25rem;
    }

    .c-header__icon,
    .c-header__search-toggle {
        --c-icon-size: 1.6875rem;

        width: auto;
        height: 2.75rem;
    }

    .c-header__icon--cart {
        --c-icon-size: 1.5rem;

        width: 2.75rem;
    }

    .c-header__burger {
        width: auto;
        height: 2.75rem;
    }

    .c-burger,
    .c-burger::before,
    .c-burger::after {
        width: 2.1875rem;
        height: 1.5px;
    }

    .c-burger::before {
        inset-block-start: -0.75rem;
    }

    .c-burger::after {
        inset-block-start: 0.75rem;
    }
}

/* =========================================================================
   Off-canvas menu — no design reference; follows the dark section styling
   ========================================================================= */

.c-offcanvas {
    position: fixed;
    inset: 0;
    z-index: var(--wp--custom--z--offcanvas);
}

.c-offcanvas[hidden] {
    display: none;
}

.c-offcanvas__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 60%);
    opacity: 0;
    transition: opacity var(--wp--custom--transition);
}

.c-offcanvas__panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    inset-block: 0;
    inset-inline-end: 0;
    width: 100%;
    background-color: var(--c-bg);
    color: var(--c-fg);
    transform: translateX(100%);
    transition: transform var(--wp--custom--transition);
}

/* Phones: full width, a backdrop strip only reads as a gap. */
@media (min-width: 36em) {
    .c-offcanvas__panel {
        width: 22rem;
    }
}

.c-offcanvas.is-open .c-offcanvas__backdrop {
    opacity: 1;
}

.c-offcanvas.is-open .c-offcanvas__panel {
    transform: translateX(0);
}

.c-offcanvas__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--wp--preset--spacing--40) 1rem;
    border-block-end: 1px solid var(--c-line);
}

.c-offcanvas__logo {
    width: 8rem;
    height: auto;
}

.c-offcanvas__close {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.c-offcanvas__cross,
.c-lightbox__cross {
    display: block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-inline: auto;
}

.c-offcanvas__cross::before,
.c-offcanvas__cross::after,
.c-lightbox__cross::before,
.c-lightbox__cross::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background-color: currentcolor;
}

.c-offcanvas__cross::before,
.c-lightbox__cross::before {
    transform: rotate(45deg);
}

.c-offcanvas__cross::after,
.c-lightbox__cross::after {
    transform: rotate(-45deg);
}

/* Each level fills the body; deeper levels slide in from the right. */
.c-offcanvas__body {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
}

.c-offcanvas__level {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: var(--wp--preset--spacing--40) 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    background-color: var(--c-bg);
    transform: translateX(100%);
    transition: transform var(--wp--custom--transition);
    visibility: hidden;
}

.c-offcanvas__level.is-current {
    transform: translateX(0);
    visibility: visible;
}

.c-offcanvas__level a,
.c-offcanvas__parent,
.c-offcanvas__back button {
    display: flex;
    gap: var(--wp--preset--spacing--30);
    align-items: center;
    width: 100%;
    padding: var(--wp--preset--spacing--30) 1rem;
    border: 0;
    background: none;
    color: inherit;
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--title);
    text-align: start;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.c-offcanvas__parent {
    justify-content: space-between;
}

.c-offcanvas__back button {
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--xs);
    text-transform: none;
    color: var(--c-muted);
}

.c-offcanvas__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--40);
    padding: var(--wp--preset--spacing--40) 1rem;
    border-block-start: 1px solid var(--c-line);
}

.c-offcanvas__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--40);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--wp--preset--font-size--xs);
}

.c-offcanvas__links a {
    text-decoration: none;
}

.c-offcanvas__foot .c-header__currency {
    display: flex;
}

@media (min-width: 64em) {
    .c-offcanvas {
        display: none;
    }
}

/* =========================================================================
   Product — top of the single product page
   Design @1920: 1596 container, two 793 columns, 30 px vertical rhythm.
   ========================================================================= */

.c-product {
    /* The summary column repeats 30 px between its blocks. */
    --c-product-gap: 1.875rem;

    padding-block: var(--wp--preset--spacing--50) 5rem;
}

/* Breadcrumb -------------------------------------------------------------- */

.c-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    font-size: var(--wp--preset--font-size--xs);
    line-height: normal;
}

.c-breadcrumb a {
    color: inherit;
}

.c-breadcrumb__home {
    display: inline-flex;
}

.c-breadcrumb__home .c-icon {
    --c-icon-size: 0.875rem;
}

.c-breadcrumb__link {
    font-weight: 700;
    text-decoration: underline;
}

/* Layout ------------------------------------------------------------------ */

.c-product__layout {
    display: grid;
    gap: var(--wp--preset--spacing--60);
    margin-top: var(--c-product-gap);
}

/* Grid items default to min-width:auto, which the thumbnail row would blow up. */
.c-product__layout > * {
    min-width: 0;
}

@media (min-width: 64em) {
    .c-product__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }
}

/* Media ------------------------------------------------------------------- */

.c-product__media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-content: start;
}

.c-product__stage {
    position: relative;
}

/* Scroll-snap track: swiping and the thumbnail links work without JS. */
.c-product__track {
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.c-product__track::-webkit-scrollbar {
    display: none;
}

.c-product__track:focus-visible {
    outline: 2px solid var(--c-focus);
    outline-offset: -2px;
}

.c-product__slide {
    display: flex;
    flex: 0 0 100%;
    aspect-ratio: 1;
    background-color: var(--wp--preset--color--bone);
    scroll-snap-align: start;
}

/* Percentages do not resolve against an aspect-ratio height, so the photo is
   sized by flex stretch instead. */
.c-product__slide-img {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    max-width: none;
    object-fit: cover;
}

/* Cut-outs sit on the brand panel; scale-down keeps small sources sharp. */
.c-product__slide--pack {
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.c-product__slide--pack .c-product__slide-img {
    object-fit: scale-down;
}

/* Sits on the edge of the photo, mostly in the gutter next to it. */
.c-product__step {
    display: grid;
    position: absolute;
    inset-block-start: 50%;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    transform: translateY(-50%);
    cursor: pointer;
}

.c-product__step[hidden] {
    display: none;
}

.c-product__step--prev {
    inset-inline-start: 0;
}

.c-product__step--next {
    inset-inline-end: 0;
}

@media (min-width: 64em) {
    .c-product__step--prev {
        inset-inline-start: -2.25rem;
    }

    .c-product__step--next {
        inset-inline-end: -2.25rem;
    }
}

.c-product__step .c-icon {
    --c-icon-size: 1.75rem;

    height: 1.625rem;
}

.c-product__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-product__thumb {
    display: flex;
    aspect-ratio: 266 / 305;
}

.c-product__thumb-btn {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}

/* Same flex stretch as the slides: a percentage height would not resolve
   against the aspect-ratio box, leaving each thumbnail its own size. */
.c-product__thumb-img {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    max-width: none;
    object-fit: cover;
    transition: opacity var(--wp--custom--transition);
}

.c-product__thumb-btn:hover .c-product__thumb-img,
.c-product__thumb-btn[aria-current] .c-product__thumb-img {
    opacity: 0.65;
}

.c-product__count {
    display: none;
}

/* Relative keeps the hidden label inside the track, or it widens the page. */
.c-product__zoom {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    cursor: zoom-in;
}

/* Lightbox ---------------------------------------------------------------- */

.c-lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

.c-lightbox::backdrop {
    background-color: var(--wp--preset--color--white);
}

html:has(.c-lightbox[open]) {
    overflow: hidden;
}

.c-lightbox__track {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.c-lightbox__track::-webkit-scrollbar {
    display: none;
}

.c-lightbox__track:focus-visible {
    outline: 0;
}

/* Clicking around the photo closes, so the image keeps its own size. */
.c-lightbox__slide {
    display: grid;
    flex: 0 0 100%;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    padding: clamp(3.5rem, 6vw, 5rem) clamp(0.5rem, 6vw, 6rem);
    scroll-snap-align: start;
    cursor: zoom-out;
}

.c-lightbox__img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    cursor: default;
}

.c-lightbox__step,
.c-lightbox__close {
    display: grid;
    position: absolute;
    place-items: center;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.c-lightbox__step {
    inset-block-start: 50%;
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    transform: translateY(-50%);
}

.c-lightbox__step[hidden] {
    display: none;
}

.c-lightbox__step--prev {
    inset-inline-start: clamp(0.5rem, 2vw, 2rem);
}

.c-lightbox__step--next {
    inset-inline-end: clamp(0.5rem, 2vw, 2rem);
}

.c-lightbox__step .c-icon {
    --c-icon-size: 1.25rem;

    height: 1.125rem;
}

.c-lightbox__close {
    inset-block-start: 0.5rem;
    inset-inline-end: 0.5rem;
    width: 2.75rem;
    height: 2.75rem;
    background: none;
    color: inherit;
}

/* GeneratePress paints buttons on hover and focus. */
.c-lightbox .c-lightbox__step:hover,
.c-lightbox .c-lightbox__step:focus {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.c-lightbox .c-lightbox__close:hover,
.c-lightbox .c-lightbox__close:focus {
    background: none;
    color: inherit;
}

.c-lightbox__count {
    position: absolute;
    inset-block-end: 1rem;
    inset-inline-start: 50%;
    margin: 0;
    font-size: var(--wp--preset--font-size--micro);
    line-height: 1;
    transform: translateX(-50%);
}

/* Summary ----------------------------------------------------------------- */

.c-product__summary {
    display: flex;
    flex-direction: column;
    gap: var(--c-product-gap);
}

@media (min-width: 64em) {
    .c-product__summary {
        padding-left: 5rem;
    }
}

.c-product__head {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.c-product__heading {
    display: flex;
    flex-direction: column;
}

.c-product__title {
    margin: 0;
    font-size: clamp(2.5rem, 4.7vw, 5.625rem);
    line-height: 1;
    /* Balancing re-breaks the name against the design's own line break. */
    text-wrap: wrap;
}

.c-rating {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    margin: 0;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
}

.c-rating__stars {
    display: inline-flex;
    color: var(--wp--preset--color--star);
}

.c-rating__stars .c-icon {
    --c-icon-size: 1.2125rem;
}

.c-rating__count {
    color: inherit;
    text-decoration: none;
}

/* Tag — the small uppercase label used for claims, discounts and promos. */
.c-tag {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 5px;
    background-color: var(--wp--preset--color--bone);
    font-size: var(--wp--preset--font-size--xs);
    line-height: 1.3;
    text-transform: uppercase;
}

.c-tag--accent,
.c-tag--sale {
    padding: 2px 6px;
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--mini);
    letter-spacing: 0.1em;
}

.c-tag--accent {
    background-color: var(--wp--preset--color--accent);
    font-weight: 700;
}

.c-tag--sale {
    background-color: var(--wp--preset--color--sale);
}

.c-product__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Figma sets the paragraph to the font's own leading, not our body rhythm. */
.c-product__excerpt {
    font-size: var(--wp--preset--font-size--body);
    line-height: normal;
}

.c-product__excerpt p {
    margin: 0;
}

.c-product__facts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: var(--wp--preset--font-size--xs);
    line-height: normal;
}

.c-product__facts p {
    margin: 0;
}

/* Purchase options -------------------------------------------------------- */

.c-product__buy {
    display: flex;
    flex-direction: column;
    gap: var(--c-product-gap);
    margin: 0;
}

.c-product__purchase {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.c-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.c-option {
    background-color: var(--wp--preset--color--bone);
}

.c-option__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 26px 15px;
    cursor: pointer;
}

.c-option__row input[type="radio"] {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: var(--wp--custom--radius--pill);
    background-color: var(--wp--preset--color--white);
    appearance: none;
    cursor: pointer;
}

/* 4px of white leaves the 12px accent dot the design has. */
.c-option__row input[type="radio"]:checked {
    box-shadow: inset 0 0 0 4px var(--wp--preset--color--white);
    background-color: var(--wp--preset--color--accent);
}

.c-option__label {
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--title-md);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Design puts 20 px between the label and its discount tag. */
.c-option__label + .c-tag {
    margin-left: 10px;
}

.c-option__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    font-size: var(--wp--preset--font-size--body);
    font-weight: 700;
}

.c-option__price del {
    font-size: var(--wp--preset--font-size--mini);
}

.c-option__price ins {
    background: none;
    color: inherit;
    text-decoration: none;
}

.c-option__price .woocommerce-Price-currencySymbol {
    font-weight: inherit;
}

/* Subscription row — bordered, with the explainer and the four perks. */
.c-option--featured {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--wp--preset--color--accent);
}

.c-option--featured .c-option__row {
    padding: 0 0 10px;
    /* One-off divider inside the card; not a site-wide line color. */
    border-bottom: 1px solid #c7bda9;
}

.c-option--featured .c-option__label + .c-tag {
    margin-left: auto;
}

.c-option--featured .c-option__price {
    margin-left: 1.25rem;
}

.c-option__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--40);
    margin: 0;
    font-size: var(--wp--preset--font-size--xs);
}

.c-option__note-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-block: 10px;
}

.c-option__note-text .c-icon {
    --c-icon-size: 1rem;
}

.c-option__note .c-link-arrow {
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: 0;
}

.c-option__perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 48em) {
    .c-option__perks {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.c-option__perk {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 20px 10px;
    background-color: var(--wp--preset--color--bone-dark);
    font-size: var(--wp--preset--font-size--mini);
    line-height: 1.3;
}

.c-option__perk .c-icon {
    --c-icon-size: 1.75rem;
}

/* Stock ------------------------------------------------------------------- */

.c-stock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: var(--wp--preset--font-size--xs);
    line-height: normal;
}

.c-stock__dot {
    width: 7px;
    height: 7px;
    border-radius: var(--wp--custom--radius--pill);
    background-color: var(--wp--preset--color--stock);
}

.c-stock__state {
    color: var(--wp--preset--color--stock);
}

.c-stock--out .c-stock__dot,
.c-stock--out .c-stock__state {
    background-color: transparent;
    color: var(--wp--preset--color--sale);
}

.c-stock--out .c-stock__dot {
    background-color: var(--wp--preset--color--sale);
}

/* Quantity and add to cart ------------------------------------------------ */

.c-product__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.25rem;
}

.c-product__actions .c-stepper {
    background-color: var(--wp--preset--color--white);
}

.c-product__actions .c-stepper__btn,
.c-product__actions .c-stepper__input {
    font-size: var(--wp--preset--font-size--body);
}

.c-product__actions .c-stepper__btn {
    width: 2.875rem;
}

.c-product__actions .c-stepper__input {
    width: 2.625rem;
    appearance: textfield;
    background: none;
}

.c-stepper__input::-webkit-outer-spin-button,
.c-stepper__input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

/* Figma has no tracking here; with it the label outgrows the button. */
.c-product__submit {
    gap: 30px;
    padding-inline: 25px;
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: 0;
}

.c-product__submit,
.c-product-nav__submit {
    --c-icon-size: 0.875rem;
}

/* Cross-sell strip -------------------------------------------------------- */

.c-offer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 15px;
    background-color: var(--wp--preset--color--accent);
}

.c-offer__media {
    flex: none;
    width: 133px;
}

.c-offer__media img {
    display: block;
    width: 100%;
    height: 139px;
    object-fit: cover;
}

.c-offer__body {
    display: flex;
    flex: 1 1 15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.c-offer__body .c-tag--sale {
    margin-bottom: 5px;
}

.c-offer__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--title-md);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.c-offer__text {
    margin: 0;
    font-size: var(--wp--preset--font-size--xs);
}

.c-offer .c-link-arrow {
    margin-top: 15px;
}

.c-link-arrow--underline {
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    font-size: var(--wp--preset--font-size--mini);
    letter-spacing: 0;
}

/* Trust bar --------------------------------------------------------------- */

.c-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--40);
    min-height: 78px;
    margin: 0;
    padding: 0;
    padding-block: 10px;
    border-block: 1px solid var(--wp--preset--color--black);
    list-style: none;
}

.c-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--wp--preset--font-size--mini);
    line-height: 1.3;
}

.c-trust__item .c-icon {
    --c-icon-size: 1.75rem;
}

.c-trust__text strong {
    display: block;
}

@media (min-width: 64em) {
    .c-trust__item:not(:last-child)::after {
        content: ">>>";
        margin-left: var(--wp--preset--spacing--40);
        letter-spacing: 1rem;
    }
}

/* Phones — design 390: one photo with a counter, no thumbnails, 10 px rhythm. */
@media (max-width: 47.99em) {
    .c-product {
        padding-top: 0;
    }

    /* GeneratePress adds 20 px above the main column on phones. */
    .single-product .site-main {
        margin-top: 0;
    }

    .c-product__excerpt {
        font-size: var(--wp--preset--font-size--xs);
        line-height: 1.28;
    }

    .c-breadcrumb {
        flex-wrap: nowrap;
        gap: 0.5625rem;
        font-size: 0.625rem;
        white-space: nowrap;
    }

    .c-breadcrumb > :last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .c-product__layout {
        gap: 10px;
        margin-top: 10px;
    }

    .c-product__thumbs {
        display: none;
    }

    .c-product__count {
        display: block;
        position: absolute;
        inset-block-end: 0.75rem;
        inset-inline-start: 1rem;
        margin: 0;
        padding: 0.3125rem 0.5rem;
        background-color: var(--wp--preset--color--white);
        font-size: var(--wp--preset--font-size--micro);
        line-height: 1;
    }

    .c-product__step {
        width: 1.75rem;
        height: 1.6875rem;
    }

    .c-product__step--prev {
        inset-inline-start: -0.5625rem;
    }

    .c-product__step--next {
        inset-inline-end: -0.5625rem;
    }

    .c-product__step .c-icon {
        --c-icon-size: 0.875rem;

        height: 0.8125rem;
    }

    .c-product__title {
        line-height: 1.2;
    }

    .c-option__note {
        flex-wrap: nowrap;
    }

    .c-option__note-text {
        flex: 1 1 auto;
    }

    .c-option__perk {
        min-height: 10.3125rem;
        font-size: var(--wp--preset--font-size--micro);
    }

    .c-option__note .c-link-arrow {
        white-space: nowrap;
    }

    /* Stepper and button share one 44 px row. */
    .c-product__actions {
        flex-wrap: nowrap;
    }

    .c-product__actions .c-stepper {
        flex: none;
        min-height: 2.75rem;
    }

    .c-product__submit {
        flex: 1 1 0;
        min-width: 0;
        min-height: 2.75rem;
        gap: 15px;
        padding-inline: 17px;
    }

    .c-offer {
        flex-wrap: nowrap;
        align-items: center;
        gap: 21px;
    }

    .c-offer__body {
        flex: 1 1 0;
    }

    /* Trust bar stacks: 46 px icons, 16 px text starting 88 px in. */
    .c-trust {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding-block: 25px 30px;
    }

    .c-trust__item {
        gap: 28px;
        padding-inline-start: 10px;
        font-size: var(--wp--preset--font-size--small);
    }

    .c-trust__item .c-icon {
        --c-icon-size: 2.875rem;

        flex: none;
        width: 3.125rem;
    }
}

/* Long description --------------------------------------------------------- */

.c-product__description {
    margin-top: 6.25rem;
}

/* A section may still opt into full width; inner width comes from its layout. */
.c-product__description > .alignfull {
    width: auto;
    max-width: none;
    margin-inline: calc(-1 * var(--c-gutter));
    padding-inline: var(--c-gutter);
}

.c-product__description > * {
    margin-block: 0;
}

/* Design keeps a constant 100 px between sections and no padding inside them. */
.c-product__description > * + * {
    margin-block-start: 6.25rem;
}

/* Core button. GeneratePress hardcodes padding on `:not(.has-background)`,
   which outranks theme.json, so the size is settled here. */
.wp-block-button .wp-block-button__link {
    padding: 1rem 1.5625rem;
    border-radius: var(--wp--custom--radius--none);
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
}

/* Checklist — list markers replaced by the check icon, recoloured by mask. */
/* blockGap does not reach <li>, so the rows are spaced here (design: 43 px
   pitch = 23 px row + 20 px gap). */
.is-style-aroha-checklist {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-inline-start: 0;
    list-style: none;
}

.is-style-aroha-checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--wp--preset--spacing--50);
}

.is-style-aroha-checklist li::before {
    content: "";
    flex: none;
    width: 1.5625rem;
    height: 1.25rem;
    margin-top: 0.15em;
    background-color: currentcolor;
    mask: url("../icons/check-double.svg") no-repeat center / contain;
}

/* Dash bullets — used for warnings and legal notes. */
.is-style-aroha-dash {
    padding-inline-start: 0;
    list-style: none;
}

/* Design: 28 px rows, wrapped lines hang under the text. */
.c-product__description .is-style-aroha-dash li {
    display: flex;
    gap: 0.5em;
    line-height: 1.5556;
    letter-spacing: 0.01em;
}

.is-style-aroha-dash li::before {
    content: "–";
    flex: none;
}

/* Arrow sits after the label, like the buttons in the header and footer. */
.is-style-aroha-button-arrow .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 1.875rem;
}

.is-style-aroha-button-arrow .wp-block-button__link::after {
    content: "";
    width: 1rem;
    height: 0.8125rem;
    background-color: currentcolor;
    mask: url("../icons/arrow-right-thin.svg") no-repeat center / contain;
}

/* Phones — design 390: 16 px text, 40 px headings, 40 px between sections,
   photo above its panel with 10 px between. Inline block spacing needs !important. */
@media (max-width: 47.99em) {
    .c-product__description,
    .c-product__description .has-body-font-size {
        font-size: var(--wp--preset--font-size--small) !important;
    }

    .c-product__description .is-layout-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 18px;
    }

    .c-product__description .wp-block-media-text h3.has-title-xl-font-size {
        font-size: 1.375rem !important;
    }

    .c-product__description .is-style-aroha-checklist li {
        align-items: center;
        gap: 20px;
    }

    /* Photo covers: text on the bone panel, the photo underneath fading in from it. */
    .c-product__description .wp-block-cover:is(.is-style-aroha-photo-inset, .is-style-aroha-photo-gradient) {
        flex-direction: column;
        align-items: stretch;
        min-height: 0 !important;
        padding: 0 !important;
        background-color: var(--wp--preset--color--bone);
    }

    .c-product__description .wp-block-cover:is(.is-style-aroha-photo-inset, .is-style-aroha-photo-gradient) > .wp-block-cover__inner-container {
        order: 1;
        padding: 30px 20px 10px;
    }

    .c-product__description .wp-block-cover:is(.is-style-aroha-photo-inset, .is-style-aroha-photo-gradient) > .wp-block-cover__image-background {
        position: relative;
        order: 2;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 358 / 388;
        mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    }

    .c-product__description .wp-block-cover.is-style-aroha-photo-gradient > .wp-block-cover__image-background {
        aspect-ratio: 358 / 410;
    }

    .c-product__description .wp-block-cover:is(.is-style-aroha-photo-inset, .is-style-aroha-photo-gradient) > .wp-block-cover__background {
        display: none;
    }

    /* Lab photo rises 150 px under the text, as in the design. */
    .c-product__description .wp-block-cover.is-style-aroha-photo-gradient > .wp-block-cover__image-background {
        margin-top: -150px;
        object-position: 89% 50% !important;
    }

    .c-product__description .wp-block-cover.is-style-aroha-photo-gradient > .wp-block-cover__inner-container {
        position: relative;
        z-index: 1;
    }

    .c-product__description strong.has-lead-font-size {
        font-size: var(--wp--preset--font-size--small) !important;
    }

    .c-product__description .is-style-aroha-dash {
        margin-left: 0;
    }

    .c-product__description .is-style-aroha-dash li {
        line-height: 28px;
    }

    /* Brand: heading, photo, text, button — the photo moves between heading and text. */
    .c-product__description .wp-block-media-text.has-media-on-the-right {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .c-product__description .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content,
    .c-product__description .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content > .wp-block-group {
        display: contents;
    }

    .c-product__description .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
        order: 1;
        margin-block: 30px 20px;
    }

    .c-product__description .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content .wp-block-heading {
        order: 0;
    }

    .c-product__description .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content p {
        order: 2;
        margin-block-start: 0;
    }

    .c-product__description .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content .wp-block-buttons {
        order: 3;
        margin-top: 16px;
    }

    .c-product__description .has-title-md-font-size {
        font-size: var(--wp--preset--font-size--lead) !important;
    }

    /* Form cards: 40 px title, narrow text column leaving the product photo visible. */
    .c-product__description .wp-block-cover.is-position-top-left h3 {
        font-size: 2.5rem;
    }

    .c-product__description .wp-block-cover.is-position-top-left p {
        max-width: 14.5rem;
    }

    /* Lab table: 14 px text in 32 px rows, 209 px first column. */
    .c-product__description .is-style-aroha-lab table {
        width: 307px;
    }

    .c-product__description .is-style-aroha-lab th,
    .c-product__description .is-style-aroha-lab td {
        padding: 6px 7px;
        font-size: var(--wp--preset--font-size--xs);
        line-height: 18px;
    }

    .c-product__description .is-style-aroha-lab th:first-child,
    .c-product__description .is-style-aroha-lab td:first-child {
        width: 209px;
    }

    .c-product__description .is-layout-grid > .wp-block-group > * + * {
        margin-block-start: 10px;
    }

    .c-product__description .wp-block-separator {
        margin-top: 30px !important;
    }

    .c-product__description .wp-block-separator:not(:last-child) {
        margin-bottom: 30px !important;
    }

    .c-product__description > * + * {
        margin-block-start: 2.5rem;
    }

    .c-product__description h2 {
        line-height: 1 !important;
    }

    .c-product__description .has-hero-font-size {
        line-height: 0.93 !important;
    }

    .c-product__description .wp-block-media-text.is-stacked-on-mobile {
        row-gap: 10px;
    }

    /* The gap between photo and panel stays white: the panel carries the colour. */
    .c-product__description .wp-block-media-text.is-stacked-on-mobile.has-background {
        background-color: transparent !important;
    }

    .c-product__description .wp-block-media-text.is-stacked-on-mobile.has-bone-background-color > .wp-block-media-text__content {
        background-color: var(--wp--preset--color--bone);
    }

    .c-product__description .wp-block-media-text__content .wp-block-heading {
        margin-bottom: 0;
    }

    /* Icon rows (benefits): 36 px icons, text 31 px after them, rows 19 px apart. */
    .c-product__description .wp-block-media-text .wp-block-group:has(> .is-layout-flex > .wp-block-image) > * + * {
        margin-block-start: 19px;
    }

    .c-product__description .wp-block-media-text .wp-block-heading + .wp-block-group:has(> .is-layout-flex > .wp-block-image) {
        margin-block-start: 12px;
    }

    .c-product__description .wp-block-media-text .is-layout-flex:has(> .wp-block-image) {
        gap: 31px;
    }

    .c-product__description .wp-block-media-text .is-layout-flex > .wp-block-image {
        flex: none;
    }

    .c-product__description .wp-block-media-text .is-layout-flex > .wp-block-image img {
        width: 36px !important;
        height: 36px !important;
    }

    .c-product__description .wp-block-media-text.is-image-fill .wp-block-media-text__media {
        aspect-ratio: 1;
        min-height: 0;
    }

    .c-product__description .wp-block-media-text__content > .wp-block-group {
        padding: 30px 20px !important;
    }

    /* Design 390 buttons are 38 px tall. */
    .c-product__description .wp-block-button .wp-block-button__link {
        padding: 10px 20px;
        white-space: normal;
    }

    /* Section headers with a side note: the vertical rule becomes a 50 px line above the note. */
    .c-product__description .is-layout-flex:has(> .wp-block-heading + p) {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .c-product__description .is-layout-flex > .wp-block-heading + p {
        padding: 0 !important;
        border: 0 !important;
        font-size: var(--wp--preset--font-size--xs) !important;
    }

    .c-product__description .is-layout-flex > .wp-block-heading + p br {
        display: none;
    }

    .c-product__description .is-layout-flex > .wp-block-heading + p::before {
        content: "";
        display: block;
        width: 50px;
        height: 1px;
        margin-block: 9px 12px;
        background-color: currentcolor;
    }

    .c-product__description .wp-block-group:has(> .is-layout-flex > .wp-block-heading + p) {
        gap: 20px;
    }

    .c-product__description .wp-block-group:has(> .is-layout-flex > .wp-block-heading + p) > * + * {
        margin-block-start: 20px;
    }

    /* Review cards: 20 px padding, smaller stars and date, name 15 px under the text. */
    .c-product__description .wp-block-column.has-background {
        padding: 20px !important;
    }

    .c-product__description .wp-block-column.has-background > .wp-block-group:first-child > * + * {
        margin-block-start: 11px;
    }

    .c-product__description .wp-block-column.has-background > .wp-block-group:last-child > * + * {
        margin-block-start: 15px;
    }

    .c-product__description .wp-block-column img[src*="stars-5"] {
        width: 110px !important;
        height: 22px !important;
    }

    .c-product__description .wp-block-column .has-xs-font-size {
        font-size: var(--wp--preset--font-size--micro) !important;
    }
}

/* Details block — the FAQ rows. Native <details>, works without JS. */
.wp-block-details {
    border-bottom: 1px solid var(--c-line);
}

.wp-block-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--40);
    padding-block: 20px;
    font-size: var(--wp--preset--font-size--lead);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    list-style: none;
    cursor: pointer;
}

.wp-block-details > summary::-webkit-details-marker,
.wp-block-details > summary::marker {
    display: none;
    content: "";
}

.wp-block-details > summary::after {
    content: "";
    position: relative;
    flex: none;
    width: 13px;
    height: 13px;
    background:
        linear-gradient(currentcolor, currentcolor) center / 100% 1px no-repeat,
        linear-gradient(currentcolor, currentcolor) center / 1px 100% no-repeat;
}

.wp-block-details[open] > summary::after {
    background: linear-gradient(currentcolor, currentcolor) center / 100% 1px no-repeat;
}

.wp-block-details > :not(summary) {
    margin-block: 0 var(--wp--preset--spacing--50);
}

/* Margin gets reset by layout rules; pad the row instead. */
.wp-block-details[open] {
    padding-bottom: var(--wp--preset--spacing--50);
}

/* White button with arrow, for use on top of a photo. */
.wp-block-button.is-style-aroha-button-light .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 1.875rem;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-aroha-button-light .wp-block-button__link::after {
    content: "";
    width: 1rem;
    height: 0.8125rem;
    background-color: currentcolor;
    mask: url("../icons/arrow-right-thin.svg") no-repeat center / contain;
}

.wp-block-button.is-style-aroha-button-light .wp-block-button__link:hover,
.wp-block-button.is-style-aroha-button-light .wp-block-button__link:focus-visible {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

/* Photo cards: text at the top, button pinned to the bottom, tint multiplied over the photo. */
.c-product__description .wp-block-cover.is-position-top-left > .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.c-product__description .wp-block-cover.is-position-top-left .wp-block-cover__inner-container > .wp-block-buttons {
    margin-top: auto;
}

.c-product__description .wp-block-cover.is-position-top-left .wp-block-cover__background {
    mix-blend-mode: multiply;
}

/* Design leaves a 10 px gutter between the photo and the panel. */
.c-product__description .wp-block-media-text {
    column-gap: 10px;
}

/* Core gives the content column its own 8 % padding; the panel box is ours. */
.c-product__description .wp-block-media-text__content {
    padding: 0;
}

/* Figma: 100 px / 79 px; 75 px keeps one-line headings with a scrollbar. */
.c-product__description .wp-block-media-text__content > .wp-block-group {
    padding: 100px 75px;
}

/* Figma's "normal" leading for Spock Pro is 1.28 (browsers compute 1.3). */
.c-product__description :where(p, li, th, td) {
    line-height: 1.28;
}

.c-product__description .has-display-font-size {
    line-height: 1.111;
}

/* Balancing shrinks the line box and breaks headings the design keeps on one
   line; `normal` is not a valid text-wrap value, it has to be `wrap`. */
.c-product__description :where(h2, h3) {
    text-wrap: wrap;
}

/* Lead paragraph under a section heading does not run the full container.
   Constrained layout centres children with !important auto margins. */
.c-product__description > .wp-block-group > .wp-block-heading + p {
    max-width: 1254px;
    margin-inline-start: 0 !important;
}

/* Photo section with the brand panel fading over it (design: 0 → 32 % solid,
   transparent by 70 %). */
.wp-block-cover.is-style-aroha-photo-gradient .wp-block-cover__background,
.wp-block-cover.is-style-aroha-photo-inset .wp-block-cover__background {
    background-color: transparent;
    background-image: linear-gradient(
        90deg,
        var(--wp--preset--color--bone) 0%,
        var(--wp--preset--color--bone) 32.2%,
        color-mix(in srgb, var(--wp--preset--color--bone) 40%, transparent) 57.7%,
        transparent 69.7%
    );
    opacity: 1;
}

/* Inset variant: the photo starts under the solid part of the panel (design 28.69 %). */
.wp-block-cover.is-style-aroha-photo-inset .wp-block-cover__image-background {
    left: 28.69%;
    width: 71.31%;
}

/* Lab table — header tinted, the result column carries the accent.
   GeneratePress adds a bottom margin to tables, core a 3 px rule under thead. */
.is-style-aroha-lab table {
    width: 410px;
    max-width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.is-style-aroha-lab thead {
    border-bottom: 0;
}

.is-style-aroha-lab th,
.is-style-aroha-lab td {
    padding: 10px;
    border: 1px solid var(--wp--preset--color--black);
    background-color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--body);
    line-height: 21px;
    letter-spacing: 0.01em;
    text-align: left;
}

.is-style-aroha-lab th:first-child,
.is-style-aroha-lab td:first-child {
    width: 280px;
}

.is-style-aroha-lab thead th {
    background-color: var(--wp--preset--color--bone-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.is-style-aroha-lab tbody td:last-child {
    background-color: var(--wp--preset--color--accent);
}

/* Inline highlight — the black label used throughout the long description. */
.c-product__description mark {
    padding: 0 2px;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.c-product__description :where(h2, h3, h4) {
    margin-block-end: var(--wp--preset--spacing--40);
}

/* Accordions -------------------------------------------------------------- */

.c-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--c-product-gap);
}

.c-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--40);
    list-style: none;
    cursor: pointer;
}

.c-accordion__head::-webkit-details-marker {
    display: none;
}

.c-accordion__title {
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--title-lg);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.c-accordion__sign {
    position: relative;
    flex: none;
    width: 13px;
    height: 13px;
}

.c-accordion__sign::before,
.c-accordion__sign::after {
    content: "";
    position: absolute;
    background-color: currentColor;
}

.c-accordion__sign::before {
    inset: 50% 0 auto 0;
    height: 1px;
}

.c-accordion__sign::after {
    inset: 0 auto 0 50%;
    width: 1px;
    transition: opacity var(--wp--custom--transition);
}

.c-accordion__item[open] .c-accordion__sign::after {
    opacity: 0;
}

.c-accordion__body {
    padding-top: var(--wp--preset--spacing--40);
    font-size: var(--wp--preset--font-size--small);
}

.c-accordion__body > :first-child {
    margin-top: 0;
}

.c-accordion__body > :last-child {
    margin-bottom: 0;
}

.c-accordion__body p {
    margin-block: 0 0.75em;
}

.c-accordion__body ul {
    margin-block: 0 0.75em;
    padding-inline-start: 1.25rem;
    list-style: disc;
}

@media (max-width: 47.99em) {
    .c-accordion__title {
        font-size: var(--wp--preset--font-size--title-md);
    }
}

.c-accordion__body table {
    width: 100%;
    margin-block: 0 0.75em;
    border-collapse: collapse;
}

.c-accordion__body th,
.c-accordion__body td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--wp--custom--color--line-soft);
    text-align: left;
}

/* =========================================================================
   Section tabs (block) and the bar pinned once they scroll away
   Design @1920: chips 50 px tall, 10 px apart, centred, 60 px above the next section.
   ========================================================================= */

.c-product-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.c-product__description > .c-product-tabs + * {
    margin-block-start: 3.75rem;
}

.c-product-nav__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.c-product-nav__thumb {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 4.25rem;
}

.c-product-nav__thumb img {
    width: 2.25rem;
    height: 4.25rem;
    object-fit: contain;
}

.c-product-nav__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.c-product-nav__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--lead);
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
}

/* One row; chips that do not fit scroll sideways. */
.c-product-nav__links {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.c-product-nav__links::-webkit-scrollbar {
    display: none;
}

.c-product-nav__chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5625rem;
    background-color: var(--wp--preset--color--bone);
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    line-height: 1.357;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition);
}

.c-product-nav__chip:hover,
.c-product-nav__chip:focus-visible,
.c-product-nav__chip.is-active {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.c-product-nav__links .c-product-nav__chip {
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: var(--wp--preset--font-size--micro);
}

/* The shared arrow points right; the bar scrolls down. */
.c-product-nav__arrow {
    --c-icon-size: 0.5625rem;

    transform: rotate(90deg);
}

.c-product-nav__buy {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 1.25rem;
    margin: 0;
}

.c-product-nav__price {
    align-self: center;
    margin: 0;
    font-size: var(--wp--preset--font-size--lead);
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
}

.c-product-nav__price .woocommerce-Price-amount {
    font-size: inherit;
}

/* Only the docked mobile bar shows the name. */
.c-product-nav__name {
    display: none;
}

.c-product-nav__buy .c-stepper {
    min-height: 3rem;
    padding-inline: 1.125rem;
    gap: 1.6875rem;
    background-color: var(--wp--preset--color--white);
}

.c-product-nav__buy .c-stepper__btn {
    width: auto;
    padding: 0;
    font-size: var(--wp--preset--font-size--body);
}

.c-product-nav__buy .c-stepper__input {
    width: 1.5rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: var(--wp--preset--font-size--body);
}

.c-product-nav__submit {
    min-height: 3rem;
    gap: 1.875rem;
    padding-inline: 1.5625rem;
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: normal;
}

/* Desktop: the whole bar slides in from the top (product.js sets is-shown). */
@media (min-width: 64em) {
    .c-product-nav {
        position: fixed;
        inset: 0 0 auto;
        z-index: var(--wp--custom--z--header);
        padding: 0.75rem var(--c-gutter);
        background-color: var(--wp--preset--color--bone-dark);
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 0s 220ms;
    }

    .admin-bar .c-product-nav {
        top: var(--wp-admin--admin-bar--height, 0px);
    }

    .c-product-nav.is-shown {
        transform: none;
        visibility: visible;
        transition: transform 220ms ease;
    }
}

/* Below desktop only the buy form remains, docked to the bottom once the main
   form scrolls away (product.js): name over price and stepper, button right. */
@media (max-width: 63.999em) {
    .c-product-nav__thumb,
    .c-product-nav__body {
        display: none;
    }

    .c-product-nav__buy {
        display: grid;
        position: fixed;
        inset: auto 0 0;
        z-index: var(--wp--custom--z--header);
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 4px 0.75rem;
        padding: 8px var(--c-gutter) calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--wp--custom--color--line-soft);
        background-color: var(--wp--preset--color--white);
        box-shadow: 0 -4px 16px rgb(0 0 0 / 8%);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 0s 220ms;
    }

    .c-product-nav__buy.is-docked {
        transform: none;
        visibility: visible;
        transition: transform 220ms ease;
    }

    .c-product-nav__name {
        display: block;
        grid-column: 1 / span 2;
        margin: 0;
        overflow: hidden;
        font-family: var(--wp--preset--font-family--display);
        font-size: var(--wp--preset--font-size--body);
        font-weight: 600;
        line-height: 1.1;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .c-product-nav__buy .c-product-nav__price {
        grid-column: 1;
        font-size: var(--wp--preset--font-size--small);
    }

    /* Compact stepper next to the price; the hit area reaches past the 28 px box. */
    .c-product-nav__buy .c-stepper {
        grid-column: 2;
        justify-self: start;
        min-height: 1.75rem;
        padding-inline: 0;
        gap: 0;
    }

    .c-product-nav__buy .c-stepper__btn {
        position: relative;
        width: 1.75rem;
        font-size: var(--wp--preset--font-size--small);
    }

    .c-product-nav__buy .c-stepper__btn::before {
        content: "";
        position: absolute;
        inset: -8px -2px;
    }

    .c-product-nav__buy .c-stepper__input {
        width: 1.75rem;
        font-size: var(--wp--preset--font-size--xs);
    }

    .c-product-nav__buy .c-btn__text--full {
        display: none;
    }

    .c-product-nav__buy .c-btn__text--short {
        display: block;
    }

    .c-product-nav__buy .c-product-nav__submit {
        grid-column: 3;
        grid-row: 1 / span 2;
        min-height: 2.5rem;
        gap: 0.625rem;
        padding-inline: 14px;
        font-size: var(--wp--preset--font-size--micro);
    }

    body.has-buybar {
        padding-bottom: 4.25rem;
    }
}

/* Phones — design 390: the tab row scrolls sideways to the screen edge. */
@media (max-width: 47.99em) {
    .c-product__description {
        margin-top: 2.5rem;
    }

    .c-product-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-inline-end: calc(-1 * var(--c-gutter));
        padding-inline-end: var(--c-gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .c-product-tabs::-webkit-scrollbar {
        display: none;
    }

    .c-product__description > .c-product-tabs + * {
        margin-block-start: 1.875rem;
    }

    .c-product-tabs .c-product-nav__chip {
        padding: 0.6875rem 1.0625rem;
        font-size: 0.6875rem;
        line-height: 1.2;
    }
}

.c-product__description > *,
.c-accordion__item {
    scroll-margin-top: 1.875rem;
}

/* Below 64em the header row is pinned (70 px). */
@media (max-width: 63.999em) {
    .c-product__description > *,
    .c-accordion__item {
        scroll-margin-top: calc(4.375rem + 1.25rem);
    }
}

/* Logged in: the admin bar is fixed from 601 px up, the pinned header sits under it. */
@media (min-width: 37.5625em) and (max-width: 63.999em) {
    .admin-bar .c-header__main {
        top: var(--wp-admin--admin-bar--height, 0px);
    }
}

/* --c-nav-h comes from product.js; the pinned bar covers whatever we scroll to. */
@media (min-width: 64em) {
    .c-product__description > * {
        scroll-margin-top: calc(var(--c-nav-h, 0px) + 1.875rem);
    }
}

/* =========================================================================
   Recommended products and the Instagram strip under the description
   Design @1920: cards 4 × 392 (444 photo), tiles 6 × 258×322, 10 px gaps.
   ========================================================================= */

.c-recommended,
.c-instagram {
    margin-top: 6.25rem;
}

.c-recommended__title,
.c-instagram__title {
    margin: 0;
    line-height: 1.2;
}

.c-recommended__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

/* Product card ------------------------------------------------------------ */

.c-card {
    display: flex;
    position: relative;
    flex-direction: column;
    text-align: center;
}

.c-card__media {
    display: flex;
    position: relative;
    aspect-ratio: 392 / 444;
    /* Without it a tall cut-out stretches the box past its ratio. */
    min-height: 0;
    background-color: var(--wp--preset--color--bone);
}

.c-card__img {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    max-width: none;
    object-fit: cover;
}

/* Cut-outs sit on the panel at the size of the design jars. */
.c-card__media--pack {
    padding: 14% 20%;
}

.c-card__media--pack .c-card__img {
    object-fit: contain;
}

/* Second photo over the first, shown on hover once card.js has loaded it. */
.c-card__media .c-card__hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    background-color: var(--wp--preset--color--bone);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.c-card__media .c-card__hover--pack {
    padding: 14% 20%;
    object-fit: contain;
}

@media (hover: hover) {
    .c-card:hover .c-card__hover.is-ready {
        opacity: 1;
    }
}

.c-card__tagline {
    margin: 0.75rem 0 0;
    color: var(--wp--custom--color--placeholder);
    font-size: var(--wp--preset--font-size--xs);
    line-height: 1.3;
}

.c-card__title {
    margin: 0.125rem 0 0;
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--body);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.c-card__link {
    color: inherit;
    text-decoration: none;
}

/* The name link covers the whole card; the cart button sits above it. */
.c-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.c-card__price {
    margin: 0.125rem 0 0;
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.2;
}

.c-card__price .woocommerce-Price-amount {
    font-size: inherit;
}

.c-card__price del {
    margin-inline-end: 0.375rem;
    color: var(--wp--custom--color--placeholder);
}

.c-card__price ins {
    text-decoration: none;
}

.c-card__add {
    position: absolute;
    inset: auto 0.5rem 0.5rem auto;
    z-index: 1;
    margin: 0;
}

.c-card .c-card__cart {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    cursor: pointer;
    transition: opacity var(--wp--custom--transition), background-color var(--wp--custom--transition);
}

.c-card .c-card__cart:hover,
.c-card .c-card__cart:focus {
    background-color: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--white);
}

.c-card .c-card__cart.is-added {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--black);
}

.c-card .c-card__cart.is-loading {
    opacity: 0.6;
}

.c-card__cart .c-icon {
    --c-icon-size: 1.25rem;
}

/* Woo's own product lists (shortcodes, blocks): bone frame like the cards. */
.woocommerce ul.products li.product a img {
    aspect-ratio: 392 / 444;
    padding: 14% 20%;
    background-color: var(--wp--preset--color--bone);
    object-fit: contain;
}

/* Instagram --------------------------------------------------------------- */

.c-instagram {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head more" "list list";
    align-items: center;
    row-gap: 2.5rem;
}

.c-instagram__head {
    display: flex;
    flex-wrap: wrap;
    grid-area: head;
    align-items: center;
    gap: 2.5rem;
}

.c-instagram__text {
    margin: 0;
    padding: 4px 0 4px 2.5rem;
    border-left: 1px solid var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--small);
}

.c-instagram__more {
    grid-area: more;
}

.c-instagram__list {
    display: grid;
    grid-area: list;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-instagram__item,
.c-instagram__link {
    display: flex;
    aspect-ratio: 258 / 322;
}

.c-instagram__link {
    flex: 1 1 0;
    min-width: 0;
}

.c-instagram__img {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    max-width: none;
    object-fit: cover;
    transition: opacity var(--wp--custom--transition);
}

.c-instagram__link:hover .c-instagram__img {
    opacity: 0.85;
}

/* Phones — design 390: both rows scroll sideways to the screen edge. */
@media (max-width: 47.99em) {
    .c-recommended,
    .c-instagram {
        margin-top: 2.5rem;
    }

    .c-recommended__list,
    .c-instagram__list {
        display: flex;
        margin-inline-end: calc(-1 * var(--c-gutter));
        padding-inline-end: var(--c-gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .c-recommended__list::-webkit-scrollbar,
    .c-instagram__list::-webkit-scrollbar {
        display: none;
    }

    .c-recommended__title,
    .c-instagram__title {
        line-height: 1;
    }

    .c-recommended__list {
        margin-top: 1.875rem;
    }

    .c-card {
        flex: 0 0 9.6875rem;
        scroll-snap-align: start;
    }

    .c-card__media--pack {
        padding: 12% 18%;
    }

    .c-card__tagline {
        margin-top: 0.5rem;
        font-size: var(--wp--preset--font-size--micro);
    }

    .c-card__title,
    .c-card__price {
        font-size: var(--wp--preset--font-size--small);
    }

    .c-card .c-card__cart {
        width: 1.75rem;
        height: 1.75rem;
    }

    .c-card__cart .c-icon {
        --c-icon-size: 1rem;
    }

    .c-instagram {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head" "list" "more";
        row-gap: 1.25rem;
    }

    .c-instagram__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    /* Same header as the description sections: a 50 px rule over the text. */
    .c-instagram__text {
        padding: 0;
        border: 0;
        font-size: var(--wp--preset--font-size--xs);
    }

    .c-instagram__text br {
        display: none;
    }

    .c-instagram__text::before {
        content: "";
        display: block;
        width: 50px;
        height: 1px;
        margin-block: 9px 12px;
        background-color: currentcolor;
    }

    .c-instagram__list {
        gap: 4px;
    }

    .c-instagram__item {
        flex: 0 0 7.625rem;
        scroll-snap-align: start;
    }

    .c-instagram__more {
        justify-self: center;
    }

    .c-instagram__more .wp-block-button__link {
        padding: 10px 20px;
    }
}

/* =========================================================================
   Slide-out cart — design @1920: 520 px panel, 30 px from the window edges,
   23 px inner padding, items on bone, totals pinned to the bottom.
   ========================================================================= */

.c-minicart {
    position: fixed;
    inset: 1.875rem 1.875rem 1.875rem auto;
    width: 32.5rem;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    translate: calc(100% + 1.875rem) 0;
    transition: translate 260ms ease, overlay 260ms allow-discrete, display 260ms allow-discrete;
}

.c-minicart[open] {
    translate: 0 0;
}

@starting-style {
    .c-minicart[open] {
        translate: calc(100% + 1.875rem) 0;
    }
}

/* The panel itself takes focus on open (minicart.js). */
.c-minicart:focus {
    outline: 0;
}

.c-minicart::backdrop {
    background-color: rgb(0 0 0 / 40%);
}

html.has-minicart {
    overflow: hidden;
}

.c-minicart__close {
    display: grid;
    position: absolute;
    inset: 1.875rem 1.375rem auto auto;
    z-index: 1;
    place-items: center;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--wp--preset--color--bone);
    color: var(--wp--preset--color--black);
    cursor: pointer;
}

.c-minicart .c-minicart__close:hover,
.c-minicart .c-minicart__close:focus {
    background-color: var(--wp--preset--color--bone-dark);
    color: var(--wp--preset--color--black);
}

.c-minicart__cross {
    position: relative;
    width: 0.75rem;
    height: 0.75rem;
}

.c-minicart__cross::before,
.c-minicart__cross::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background-color: currentcolor;
    transform: rotate(45deg);
}

.c-minicart__cross::after {
    transform: rotate(-45deg);
}

.c-minicart__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.c-minicart__head {
    display: flex;
    align-items: center;
    gap: 1.9375rem;
    padding: 1.5rem 4.5rem 0 1.25rem;
}

.c-minicart__icon {
    --c-icon-size: 1.875rem;
}

.c-minicart__title {
    position: relative;
    margin: 0;
    font-family: var(--wp--preset--font-family--text);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.c-minicart__count {
    position: absolute;
    inset: -0.25rem -1.5rem auto auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding-inline: 0.25rem;
    border-radius: var(--wp--custom--radius--pill);
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.c-minicart__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.8125rem 1.4375rem 1.4375rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.c-minicart__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity var(--wp--custom--transition);
}

.c-minicart__inner.is-busy .c-minicart__items {
    opacity: 0.6;
    pointer-events: none;
}

.c-minicart__item {
    display: grid;
    grid-template-columns: 4.0625rem minmax(0, 1fr);
    gap: 1.125rem;
    padding: 1.875rem 1.875rem 1.875rem 1.6875rem;
    background-color: var(--wp--preset--color--bone);
}

.c-minicart__thumb,
.c-suggest__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-minicart__thumb {
    height: 7.1875rem;
}

/* Scoped twice: Woo sets `.woocommerce img { height: auto }` on shop pages. */
.c-minicart .c-minicart__img,
.c-minicart .c-suggest__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.c-minicart__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.c-minicart__name,
.c-suggest__name {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.c-minicart__name {
    font-size: var(--wp--preset--font-size--body);
}

.c-minicart__name a,
.c-suggest__link {
    color: inherit;
    text-decoration: none;
}

.c-minicart__tagline,
.c-suggest__tagline {
    margin: 0.375rem 0 0;
    color: var(--wp--custom--color--placeholder);
    font-size: var(--wp--preset--font-size--xs);
    line-height: 1.3;
}

.c-minicart__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.c-minicart__stepper {
    min-height: 1.9375rem;
    padding-inline: 0.625rem;
    gap: 0.75rem;
    border: 1px solid var(--wp--preset--color--black);
    background-color: var(--wp--preset--color--white);
}

.c-minicart__stepper .c-stepper__btn {
    width: auto;
    padding: 0;
    font-size: var(--wp--preset--font-size--small);
}

.c-minicart__stepper .c-stepper__input {
    width: 1.75rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: var(--wp--preset--font-size--body);
}

.c-minicart__price {
    margin: 0;
    font-size: var(--wp--preset--font-size--body);
    font-weight: 700;
    white-space: nowrap;
}

.c-minicart__price .woocommerce-Price-amount,
.c-suggest__price .woocommerce-Price-amount,
.c-minicart__total-value .woocommerce-Price-amount {
    font-size: inherit;
}

/* Suggestions — cards run off the right edge of the panel. */
.c-minicart__more {
    margin-top: 2rem;
}

.c-minicart__more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.c-minicart__more-title {
    margin: 0;
    font-size: var(--wp--preset--font-size--lead);
    line-height: 1;
}

.c-minicart__arrows {
    display: flex;
    gap: 0.5rem;
}

.c-minicart .c-minicart__arrow {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wp--preset--color--black);
    cursor: pointer;
}

.c-minicart__arrow .c-icon {
    --c-icon-size: 1rem;
}

.c-minicart__track {
    display: flex;
    gap: 10px;
    margin: 0.9375rem -1.4375rem 0 0;
    padding: 0 1.4375rem 0 0;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 0;
    scrollbar-width: none;
}

.c-minicart__track::-webkit-scrollbar {
    display: none;
}

.c-suggest {
    display: grid;
    position: relative;
    flex: 0 0 21.6875rem;
    grid-template-columns: 8.125rem minmax(0, 1fr);
    min-height: 9.625rem;
    background-color: var(--wp--preset--color--bone);
    scroll-snap-align: start;
}

.c-suggest__thumb {
    padding: 1.125rem 1.5rem 1.125rem 2.1875rem;
}

.c-suggest__info {
    display: flex;
    flex-direction: column;
    padding: 1.375rem 3.75rem 1.5rem 0;
}

.c-suggest__tagline {
    margin: 0;
}

.c-suggest__name {
    margin-top: 0.375rem;
    font-size: var(--wp--preset--font-size--lead);
}

/* The name link covers the card; the cart button sits above it. */
.c-suggest__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.c-suggest__price {
    margin: auto 0 0;
    padding-top: 0.75rem;
    font-size: var(--wp--preset--font-size--body);
}

.c-suggest__add {
    position: absolute;
    inset: auto 0.5625rem 0.5625rem auto;
    z-index: 1;
    margin: 0;
}

.c-minicart .c-suggest__cart {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    cursor: pointer;
}

.c-minicart .c-suggest__cart:hover,
.c-minicart .c-suggest__cart:focus {
    background-color: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--white);
}

.c-minicart .c-suggest__cart.is-loading {
    opacity: 0.6;
}

.c-suggest__cart .c-icon {
    --c-icon-size: 1.375rem;
}

/* Totals ------------------------------------------------------------------ */

.c-minicart__foot {
    padding: 1.4375rem;
    border-top: 1px solid var(--wp--preset--color--black);
}

.c-minicart__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0;
    padding-bottom: 1.125rem;
    /* Row of small chevrons, as in the design. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.5' height='5'%3E%3Cpath d='M1 .5 3 2.5 1 4.5' fill='none' stroke='%23000' stroke-width='.7'/%3E%3C/svg%3E") repeat-x left bottom / 9.5px 5px;
}

.c-minicart__total-label {
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--lead);
    font-weight: 600;
    text-transform: uppercase;
}

.c-minicart__total-value {
    font-size: 1.375rem;
    font-weight: 700;
}

.c-minicart__shipping {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 1.625rem;
    margin-top: 1.25rem;
}

.c-minicart__truck {
    --c-icon-size: 2rem;
}

.c-minicart__shipping-text {
    margin: 0;
    font-size: var(--wp--preset--font-size--mini);
    font-weight: 500;
    line-height: 1.3;
}

.c-minicart__bar {
    display: block;
    height: 5px;
    margin-top: 0.5rem;
    background-color: var(--wp--preset--color--bone);
}

.c-minicart__bar-fill {
    display: block;
    height: 100%;
    background-color: var(--wp--preset--color--accent);
    transition: width 300ms ease;
}

.c-minicart__checkout {
    display: block;
    margin-top: 1.25rem;
}

.c-minicart__checkout .wp-block-button__link {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.c-minicart__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.8125rem 1.4375rem;
}

.c-minicart__empty p {
    margin: 0;
}

/* Phones: the whole screen, 16 px gutter. */
@media (max-width: 47.99em) {
    .c-minicart {
        inset: 0;
        width: 100%;
        translate: 100% 0;
    }

    @starting-style {
        .c-minicart[open] {
            translate: 100% 0;
        }
    }

    .c-minicart__close {
        inset: 1rem 1rem auto auto;
    }

    .c-minicart__head {
        gap: 1rem;
        padding: 1rem 4rem 0 1rem;
    }

    .c-minicart__title {
        font-size: 2rem;
    }

    .c-minicart__body {
        padding: 1.5rem 1rem 1rem;
    }

    .c-minicart__item {
        padding: 1.25rem;
    }

    .c-minicart__track {
        margin-inline-end: -1rem;
        padding-inline-end: 1rem;
    }

    .c-suggest {
        flex-basis: 85%;
        grid-template-columns: 6.25rem minmax(0, 1fr);
    }

    .c-suggest__thumb {
        padding: 1rem 1rem 1rem 1.25rem;
    }

    .c-minicart__foot {
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    }

    .c-minicart__empty {
        padding: 1.5rem 1rem;
    }
}

/* Add to cart — the success state swaps the label in place. */
.c-btn__label {
    display: grid;
}

.c-btn__text {
    grid-area: 1 / 1;
    transition: opacity var(--wp--custom--transition);
}

.c-btn__text--done {
    opacity: 0;
}

/* Short label only where the docked phone bar asks for it. */
.c-btn__text--short {
    display: none;
}

.c-btn.is-added,
.c-btn.is-added:hover {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--black);
}

.c-btn.is-added .c-btn__text {
    opacity: 0;
}

.c-btn.is-added .c-btn__text--done {
    opacity: 1;
}

/* The button is disabled while the request runs; the spinner must stay legible. */
.c-btn.is-loading,
.c-btn.is-loading:disabled {
    opacity: 1;
    cursor: wait;
}

/* Icon slot: cart, spinner and check share one box, so nothing shifts. */
.c-btn__icon {
    position: relative;
    display: inline-flex;
    flex: none;
    width: var(--c-icon-size);
    height: var(--c-icon-size);
}

.c-btn__icon > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity var(--wp--custom--transition);
}

.c-btn__spinner,
.c-btn__check {
    opacity: 0;
}

.c-btn.is-loading .c-icon,
.c-btn.is-added .c-icon,
.c-btn.is-added .c-btn__spinner {
    opacity: 0;
}

.c-btn.is-loading .c-btn__spinner {
    opacity: 1;
    animation: aroha-spin 0.7s linear infinite;
}

.c-btn.is-added .c-btn__check {
    opacity: 1;
}

/* The tick draws itself, so the spinner hands over instead of popping. */
.c-btn__check path {
    stroke-dasharray: 25;
    stroke-dashoffset: 25;
}

.c-btn.is-added .c-btn__check path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 260ms ease 60ms;
}

@keyframes aroha-spin {
    to {
        rotate: 360deg;
    }
}

/* Video block — a fixed design-height box (1586×706) on black; posters and
   clips of any shape, upright reels included, sit whole inside it. */
/* Zero specificity, so the description's section spacing still applies. */
:where(.c-video) {
    margin: 0;
}

.c-video {
    position: relative;
    min-height: 15rem;
    overflow: hidden;
    aspect-ratio: 1596 / 706;
    background-color: var(--wp--preset--color--black);
}

/* Class on the poster beats Woo's `.woocommerce img { height: auto }`. */
.c-video > :is(.c-video__poster, video, iframe) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

/* The poster fills the box like the design photo; only the playing clip letterboxes. */
.c-video > .c-video__poster {
    object-fit: cover;
}

.c-video__notice {
    position: absolute;
    inset: auto 1rem 1rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    background-color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--xs);
}

.c-video-play {
    --c-icon-size: 10.625rem;

    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-video-play .c-icon {
    transition: transform var(--wp--custom--transition);
}

.c-video-play:hover .c-icon,
.c-video-play:focus-visible .c-icon {
    transform: scale(1.06);
}

/* Plain Video / YouTube blocks get the same capped box, in case one is used instead. */
.c-product__description .wp-block-video video,
.c-product__description .wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 15rem;
    aspect-ratio: 1596 / 706;
    object-fit: contain;
    background-color: var(--wp--preset--color--black);
}

/* Core sizes embeds with a padding hack (9:16 → 178 % of the width); the box replaces it. */
.c-product__description .wp-block-embed.is-type-video .wp-block-embed__wrapper::before {
    content: none;
}

.c-product__description .wp-block-embed.is-type-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 48em) {
    .c-product__description .wp-block-video video,
    .c-product__description .wp-block-embed.is-type-video .wp-block-embed__wrapper {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    /* Full width, capped height — a ratio box would shrink sideways instead. */
    .c-product__description .wp-block-embed.is-type-video:is(.wp-embed-aspect-9-16, .wp-embed-aspect-1-2) .wp-block-embed__wrapper {
        height: min(70svh, 40rem);
        aspect-ratio: auto;
    }

    /* Design 390: one 358 × 251 box; a portrait video plays inside it on black. */
    .c-video,
    .c-video.is-portrait {
        height: auto;
        min-height: 0;
        aspect-ratio: 358 / 251;
    }

    .c-video-play {
        --c-icon-size: 5rem;
    }
}

/* =========================================================================
   Cart and checkout — Woo blocks restyled
   Design @1920: 905 | rule | 611 columns, 40 px either side of the rule,
   54 px fields with the label above, bone cards, chevron rows in the totals.
   `body` prefixes beat Woo's own block CSS without !important.
   ========================================================================= */

.is-checkout-flow {
    --c-flow-side: 40.8%;
    --c-flow-title: var(--wp--preset--font-size--hero);
    --c-flow-title-gap: 3.75rem;
    --c-flow-chevrons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.5' height='5'%3E%3Cpath d='M1 .5 3 2.5 1 4.5' fill='none' stroke='%23000' stroke-width='.7'/%3E%3C/svg%3E") repeat-x left bottom / 9.5px 5px;
}

.c-header__main--focused {
    border-bottom: 0;
}

/* Steps -------------------------------------------------------------------- */

.c-steps {
    margin-block: clamp(2rem, 4.7vw, 5.6rem) clamp(1.5rem, 3.1vw, 3.75rem);
}

.c-steps__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem clamp(1.5rem, 3.3vw, 3.9rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-steps__item,
.c-steps__link {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    color: inherit;
    font-size: var(--wp--preset--font-size--body);
    text-decoration: none;
}

.c-steps__link:hover .c-steps__label {
    text-decoration: underline;
}

.c-steps__num {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--micro);
    font-weight: 700;
}

.c-steps__item.is-current .c-steps__num {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
}

.c-steps__sep {
    font-size: var(--wp--preset--font-size--small);
    word-spacing: 1.25rem;
}

/* Phones: both steps on one row. */
@media (max-width: 47.99em) {
    .c-steps__list {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .c-steps__item,
    .c-steps__link {
        gap: 0.625rem;
        font-size: var(--wp--preset--font-size--small);
    }

    .c-steps__num {
        width: 1.875rem;
        height: 1.875rem;
    }

    .c-steps__sep {
        font-size: var(--wp--preset--font-size--micro);
        word-spacing: 0.125rem;
    }

    .is-checkout-flow {
        --c-flow-title-gap: 1.5rem;
    }
}

/* Title and the two columns ------------------------------------------------ */

.is-checkout-flow .entry-header {
    margin: 0;
}

.is-checkout-flow .entry-title {
    margin: 0 0 var(--c-flow-title-gap);
    font-size: var(--c-flow-title);
    line-height: 1;
}

body.is-checkout-flow .wc-block-components-sidebar-layout {
    position: relative;
    gap: 0;
    margin: 0;
}

/* Two columns only where Woo keeps them (its container classes), else stacked. */
body.is-checkout-flow .wc-block-components-sidebar-layout:not(.is-medium, .is-small, .is-mobile) {
    --c-flow-lift: calc(-1 * (var(--c-flow-title) + var(--c-flow-title-gap)));

    flex-wrap: nowrap;
}

body.is-checkout-flow .wc-block-components-sidebar-layout:not(.is-medium, .is-small, .is-mobile) > .wc-block-components-main {
    flex: 1 1 auto;
    width: auto;
    padding: 0 2.5rem 0 0;
}

body.is-checkout-flow .wc-block-components-sidebar-layout:not(.is-medium, .is-small, .is-mobile) > .wc-block-components-sidebar {
    flex: none;
    width: var(--c-flow-side);
    margin: 0;
    padding: 0 0 0 2.5rem;
}

/* The rule between the columns runs the full height. */
body.is-checkout-flow .wc-block-components-sidebar-layout:not(.is-medium, .is-small, .is-mobile)::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: var(--c-flow-side);
    width: 1px;
    background-color: var(--wp--preset--color--black);
}

/* Checkout: the summary rises level with the title, the rule with it. */
body.woocommerce-checkout .wc-block-components-sidebar-layout:not(.is-medium, .is-small, .is-mobile) > .wc-block-checkout__sidebar {
    margin-top: var(--c-flow-lift);
}

body.woocommerce-checkout .wc-block-components-sidebar-layout:not(.is-medium, .is-small, .is-mobile)::before {
    inset-block-start: var(--c-flow-lift);
}

body.is-checkout-flow .wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) > :is(.wc-block-components-main, .wc-block-components-sidebar) {
    width: 100%;
    padding: 0;
}

body.is-checkout-flow .wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) > .wc-block-cart__sidebar {
    margin-top: var(--wp--preset--spacing--70);
}

/* Headings ----------------------------------------------------------------- */

body.is-checkout-flow .wc-block-cart-items__header-image > span,
body.is-checkout-flow .wc-block-cart__totals-title,
body.is-checkout-flow .wc-block-components-checkout-order-summary__title-text {
    margin: 0;
    padding: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--heading);
    font-weight: 600;
    line-height: 1;
    letter-spacing: var(--wp--custom--letter-spacing--display);
    text-transform: uppercase;
}

body.is-checkout-flow .wc-block-components-checkout-step__title,
body.is-checkout-flow .wc-block-components-totals-coupon .wc-block-components-panel__button {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--title-lg);
    font-weight: 600;
    line-height: 1;
    letter-spacing: var(--wp--custom--letter-spacing--display);
    text-transform: uppercase;
}

/* Not in the design; the fieldset legend still names the group. */
body.is-checkout-flow .wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading-container,
body.is-checkout-flow .wc-block-checkout__order-fields .wc-block-components-checkout-step__heading-container,
body.is-checkout-flow .wc-block-checkout__guest-checkout-notice {
    display: none;
}

/* Fields: label above, 54 px box ------------------------------------------- */

body.is-checkout-flow .wc-block-components-text-input,
body.is-checkout-flow .wc-blocks-components-select__container {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: 0;
    border: 0;
    background: none;
}

body.is-checkout-flow .wc-block-components-text-input label,
body.is-checkout-flow .wc-block-components-text-input.is-active label,
body.is-checkout-flow .wc-blocks-components-select__label {
    position: static;
    order: -1;
    max-width: none;
    margin: 0 0 0.8125rem;
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.2;
    transform: none;
}

body.is-checkout-flow .wc-block-components-text-input input[type],
body.is-checkout-flow .wc-block-components-form .wc-block-components-text-input input[type],
body.is-checkout-flow .wc-block-components-form .wc-block-components-text-input.is-active input[type],
body.is-checkout-flow .wc-blocks-components-select .wc-blocks-components-select__select {
    height: 3.375rem;
    min-height: 0;
    padding: 0 1.5rem;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--body);
    line-height: 1;
    box-shadow: none;
}

body.is-checkout-flow .wc-block-components-text-input input[type]:focus,
body.is-checkout-flow .wc-blocks-components-select .wc-blocks-components-select__select:focus {
    outline: 2px solid var(--wp--preset--color--black);
    outline-offset: -2px;
}

body.is-checkout-flow .wc-block-components-text-input.has-error input[type] {
    border-color: var(--wp--preset--color--sale);
}

body.is-checkout-flow .wc-blocks-components-select .wc-blocks-components-select__expand {
    top: auto;
    bottom: 1rem;
}

body.is-checkout-flow .wc-block-components-address-form {
    column-gap: 0.625rem;
    row-gap: 0.875rem;
}

body.is-checkout-flow .wc-block-components-address-form > * {
    margin-top: 0;
}

/* Narrow columns stack as blocks, where row-gap does nothing. */
body.is-checkout-flow :is(.is-mobile, .is-small) .wc-block-components-address-form > * + * {
    margin-top: 0.875rem;
}

body.is-checkout-flow .wc-block-components-checkout-step {
    margin-bottom: 0;
    padding-top: clamp(2.5rem, 3.6vw, 4.375rem);
}

body.is-checkout-flow .wc-block-checkout__contact-fields {
    padding-top: 0;
}

body.is-checkout-flow .wc-block-components-checkout-step__heading {
    margin: 0 0 1.75rem;
}

body.is-checkout-flow .wc-block-components-checkout-step__container::after,
body.is-checkout-flow .wc-block-components-checkout-step::after {
    display: none;
}

/* Checkboxes --------------------------------------------------------------- */

body.is-checkout-flow .wc-block-components-checkbox {
    margin-top: 1rem;
}

body.is-checkout-flow .wc-block-components-checkbox label {
    align-items: flex-start;
}

body.is-checkout-flow .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.5rem 0 0;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
    background-color: var(--wp--preset--color--white);
}

/* Bold centred tick from the design instead of Woo's thin corner mark. */
body.is-checkout-flow .wc-block-components-checkbox .wc-block-components-checkbox__mark {
    display: none;
}

body.is-checkout-flow .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
    background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' fill='none'%3E%3Cpath d='M1.5 4.5 4.5 7.5 10.5 1.5' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 0.75rem auto;
}

body.is-checkout-flow .wc-block-components-checkbox__label {
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.3;
}

body.is-checkout-flow .wc-block-components-checkbox__label a {
    color: inherit;
}

/* Account box from the design. */
body.is-checkout-flow .wc-block-checkout__create-account {
    margin-top: 0.625rem;
    padding: 1.5rem;
    border: 1px solid var(--wp--preset--color--black);
    background-color: var(--wp--preset--color--bone);
}

body.is-checkout-flow .wc-block-checkout__create-account .wc-block-components-checkbox__label {
    font-weight: 600;
}

/* Benefits and "Zdarma" (checkout-account.js). */
body.is-checkout-flow .wc-block-checkout__create-account {
    position: relative;
}

body.is-checkout-flow .wc-block-checkout__create-account label {
    padding-right: 5rem;
}

.c-account-offer__free {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-weight: 700;
    line-height: 1.5rem;
}

.c-account-offer__text {
    margin: 1.25rem 0 0;
    font-size: var(--wp--preset--font-size--small);
}

.c-account-offer__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 3rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
}

.c-account-offer__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.c-account-offer__icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    background-color: currentColor;
    mask: var(--icon) no-repeat center / contain;
}

.c-account-offer__icon--history {
    --icon: url("../icons/order-history.svg");
}

.c-account-offer__icon--heart {
    --icon: url("../icons/heart.svg");
}

.c-account-offer {
    line-height: 1.4; /* Woo zeroes it on the checkbox wrapper */
}

/* Password + repeat join the box, side by side from tablet up. */
body.is-checkout-flow #contact:has(.c-password-confirm) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

body.is-checkout-flow :is(.is-mobile, .is-small) #contact:has(.c-password-confirm) {
    grid-template-columns: 1fr;
}

body.is-checkout-flow #contact > * {
    grid-column: 1 / -1;
}

body.is-checkout-flow #contact > :is(.wc-block-components-address-form__password, .c-password-confirm) {
    grid-column: auto;
}

body.is-checkout-flow .wc-block-checkout__create-account:has(+ .wc-block-components-address-form__password) {
    padding-bottom: 1.5rem;
    border-bottom: 0;
}

body.is-checkout-flow #contact .wc-block-components-address-form__password,
body.is-checkout-flow #contact .c-password-confirm {
    min-width: 0;
    margin-top: 0;
    padding: 0 1.5rem 1.5rem;
    border: 1px solid var(--wp--preset--color--black);
    border-top: 0;
    background-color: var(--wp--preset--color--bone);
}

body.is-checkout-flow #contact .wc-block-components-address-form__password {
    padding-right: 0.3125rem;
    border-right: 0;
}

body.is-checkout-flow #contact .c-password-confirm {
    padding-left: 0.3125rem;
    border-left: 0;
}

body.is-checkout-flow :is(.is-mobile, .is-small) #contact .wc-block-components-address-form__password {
    margin-top: 0;
    padding: 0 1.5rem;
    border-right: 1px solid var(--wp--preset--color--black);
    border-bottom: 0;
}

body.is-checkout-flow :is(.is-mobile, .is-small) #contact .c-password-confirm {
    margin-top: 0;
    padding: 0.875rem 1.5rem 1.5rem;
    border-left: 1px solid var(--wp--preset--color--black);
}

body.is-checkout-flow #contact :is(.wc-block-components-address-form__password, .c-password-confirm) input[type] {
    background-color: transparent;
}

/* Radio cards: delivery and payment ---------------------------------------- */

body.is-checkout-flow .wc-block-components-radio-control--highlight-checked {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 0;
}

body.is-checkout-flow .wc-block-components-radio-control--highlight-checked::after,
body.is-checkout-flow .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option::after,
body.is-checkout-flow .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option::after {
    display: none;
}

body.is-checkout-flow .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option,
body.is-checkout-flow .wc-block-components-radio-control-accordion-option {
    margin: 0;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
    box-shadow: none;
}

body.is-checkout-flow .wc-block-components-radio-control__option {
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
}

body.is-checkout-flow .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
    border: 0;
}

body.is-checkout-flow .wc-block-components-radio-control__option-checked,
body.is-checkout-flow .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
    background-color: var(--wp--preset--color--bone);
    box-shadow: none;
}

/* Level with the first line of the label, not centred on the whole card. */
body.is-checkout-flow .wc-block-components-radio-control .wc-block-components-radio-control__input,
body.is-checkout-flow .wp-block-woocommerce-checkout .wc-block-components-shipping-rates-control__package .wc-block-components-radio-control .wc-block-components-radio-control__input {
    top: 1.5rem;
    left: 1.5rem;
    transform: none;
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--wp--preset--color--black);
}

body.is-checkout-flow .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
    width: 0.75rem;
    min-width: 0.75rem;
    height: 0.75rem;
    background: var(--wp--preset--color--black);
}

body.is-checkout-flow .wc-block-components-radio-control__label,
body.is-checkout-flow .wc-block-components-radio-control__secondary-label {
    font-size: var(--wp--preset--font-size--body);
    font-weight: 600;
    line-height: 1.3;
}

body.is-checkout-flow .wc-block-components-radio-control__secondary-label .wc-block-checkout__shipping-option--free {
    text-transform: none;
}

body.is-checkout-flow .wc-block-components-radio-control__description,
body.is-checkout-flow .wc-block-components-radio-control__secondary-description,
body.is-checkout-flow .wc-block-components-radio-control-accordion-content {
    margin-top: 0.75rem;
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.3;
}

body.is-checkout-flow .wc-block-components-radio-control-accordion-content {
    margin: 0;
    padding: 0 1.5rem 1.5rem 3.5rem;
}

/* Cart items: one bone card per line --------------------------------------- */

body.is-checkout-flow table.wc-block-cart-items {
    border: 0;
    border-collapse: separate;
    border-spacing: 0 1.25rem;
    margin: -1.25rem 0 0;
}

body.is-checkout-flow .wc-block-cart-items__header {
    font-size: var(--wp--preset--font-size--xs);
    text-transform: uppercase;
}

body.is-checkout-flow .wc-block-cart-items__header th {
    padding: 0;
    line-height: 1;
    border: 0;
    vertical-align: bottom;
}

body.is-checkout-flow .wc-block-cart-items__header-total {
    text-align: end;
}

/* Woo clears cell backgrounds with !important, so the row paints the card. */
body.is-checkout-flow table.wc-block-cart-items tr.wc-block-cart-items__row {
    background-color: var(--wp--preset--color--bone);
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row td {
    padding: 1.875rem 0;
    border: 0;
    vertical-align: top;
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    width: 6.875rem;
    padding-left: 1.875rem;
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
    width: 3.75rem;
    height: 7.25rem;
    object-fit: contain;
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    padding-left: 1.25rem;
}

/* Woo makes this cell flex, so it stops filling the row; a real cell can sit at the bottom. */
body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    display: table-cell;
    align-self: end;
    padding-right: 1.875rem;
    vertical-align: bottom;
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.is-checkout-flow .wc-block-components-product-name,
body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    color: var(--wp--preset--color--black);
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--body);
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}

/* Unit price and the long blurb are not in the design; the tagline is. */
body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
body.is-checkout-flow .wc-block-components-product-metadata__description,
body.is-checkout-flow .wc-block-components-order-summary-item__individual-prices {
    display: none;
}

body.is-checkout-flow .wc-block-components-product-metadata,
body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata {
    margin: 0.375rem 0 0;
    color: var(--wp--preset--color--muted);
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.3;
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: auto;
    padding-top: 1.875rem;
}

body.is-checkout-flow .wc-block-components-quantity-selector {
    width: 6.0625rem;
    height: 1.9375rem;
    margin: 0;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
    background-color: var(--wp--preset--color--white);
}

body.is-checkout-flow .wc-block-components-quantity-selector::after {
    display: none;
}

body.is-checkout-flow .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: var(--wp--preset--font-size--body);
}

body.is-checkout-flow .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    min-width: 1.75rem;
    padding: 0;
    background: none;
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--small);
    opacity: 1;
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__remove-link {
    margin: 0;
    padding: 0;
    background: none;
    color: var(--wp--preset--color--black);
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__remove-link svg {
    width: 1.75rem;
    height: 1.75rem;
}

body.is-checkout-flow table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-product-price,
body.is-checkout-flow .wc-block-components-order-summary-item__total-price {
    font-size: var(--wp--preset--font-size--body);
    font-weight: 700;
}

/* Checkout summary items: card, quantity as "Počet: 1 ks" ------------------ */

body.is-checkout-flow .wp-block-woocommerce-checkout-order-summary-block {
    border: 0;
    border-radius: 0;
}

body.is-checkout-flow .wc-block-components-checkout-order-summary__title {
    margin: 0 0 1.375rem;
    padding: 0;
}

body.is-checkout-flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
    margin: 0;
    padding: 0;
    font-size: var(--wp--preset--font-size--heading);
}

body.is-checkout-flow .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
    padding: 0;
}

body.is-checkout-flow .wc-block-components-checkout-order-summary__content-container {
    padding: 0;
}

body.is-checkout-flow .wc-block-components-order-summary-item .wc-block-components-product-name {
    margin: 0;
    line-height: 1.3;
}

body.is-checkout-flow .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span {
    min-width: 0;
    padding: 0;
    color: inherit;
}

body.is-checkout-flow .wc-block-components-order-summary {
    padding: 0;
}

body.is-checkout-flow .wc-block-components-order-summary .wc-block-components-order-summary-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    margin: 0 0 1.25rem;
    padding: 1.875rem;
    background-color: var(--wp--preset--color--bone);
}

/* Static, so the quantity below positions against the whole card. */
body.is-checkout-flow .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
    position: static;
    width: 3.75rem;
    margin: 0;
    padding: 0;
}

body.is-checkout-flow .wc-block-components-order-summary-item__image img {
    width: 3.75rem;
    max-width: none;
    height: 7.25rem;
    object-fit: contain;
}

body.is-checkout-flow .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    display: block;
    flex: 1 1 auto;
    padding: 0 0 2.5rem;
}

body.is-checkout-flow .wc-block-components-order-summary-item__quantity {
    position: absolute;
    inset: auto auto 1.875rem 6.875rem;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--small);
    transform: none;
}

body.is-checkout-flow .wc-block-components-order-summary-item__quantity::before {
    content: "Počet: ";
    white-space: pre;
}

body.is-checkout-flow .wc-block-components-order-summary-item__quantity::after {
    content: " ks";
    white-space: pre;
}

body.is-checkout-flow .wc-block-components-order-summary-item__total-price {
    align-self: flex-end;
}

/* Totals with chevron rows ------------------------------------------------- */

body.is-checkout-flow .wc-block-components-totals-wrapper,
body.is-checkout-flow .wp-block-woocommerce-cart-order-summary-block,
body.is-checkout-flow .wp-block-woocommerce-cart-order-summary-totals-block,
body.is-checkout-flow .wp-block-woocommerce-checkout-order-summary-totals-block {
    padding: 0;
    border: 0;
}

body.is-checkout-flow .wc-block-components-totals-wrapper::after {
    display: none;
}

body.is-checkout-flow .wc-block-components-totals-item {
    margin: 0;
    padding: 1.25rem 0;
    background: var(--c-flow-chevrons);
    font-size: var(--wp--preset--font-size--small);
}

body.is-checkout-flow .wc-block-components-totals-item__description {
    font-size: var(--wp--preset--font-size--xs);
}

body.is-checkout-flow .wc-block-components-totals-footer-item {
    padding-bottom: 0;
    background: none;
    font-size: var(--wp--preset--font-size--lead);
    font-weight: 700;
}

body.is-checkout-flow .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.375rem;
}

body.is-checkout-flow .wc-block-components-totals-footer-item :is(.wc-block-components-totals-item__label, .wc-block-components-totals-item__value) {
    font-weight: 700;
}

/* Long label wraps itself on phones; the price stays on its line. */
body.is-checkout-flow .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    flex: 1 1 0;
    min-width: 0;
}

body.is-checkout-flow .wc-block-components-totals-shipping .wc-block-components-totals-item__value strong {
    font-weight: 700;
    text-transform: uppercase;
}

/* VAT rows (totals-tax.js) render after the total; flex order lifts them above. */
body.is-checkout-flow :is(.wp-block-woocommerce-cart-order-summary-block, .wc-block-components-checkout-order-summary__content-container):has(.c-totals-tax) {
    display: flex;
    flex-direction: column;
}

body.is-checkout-flow :is(.wp-block-woocommerce-cart-order-summary-block, .wc-block-components-checkout-order-summary__content-container) > .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) {
    order: 1;
}

body.is-checkout-flow :is(.wp-block-woocommerce-cart-order-summary-block, .wc-block-components-checkout-order-summary__content-container):has(.c-totals-tax) .wc-block-components-totals-footer-item-tax {
    display: none;
}

/* Checkout: "Cena bez DPH" sits right above the total, no rule between. */
body.is-checkout-flow .wc-block-components-checkout-order-summary__content-container .c-totals-tax__item {
    padding-bottom: 0;
    background: none;
}

body.is-checkout-flow .wc-block-components-checkout-order-summary__content-container:has(.c-totals-tax) .wc-block-components-totals-footer-item {
    padding-top: 0.5rem;
}

/* Coupon ------------------------------------------------------------------- */

body.is-checkout-flow .wc-block-components-totals-coupon {
    margin: 0;
    padding: 2.5rem 0 1rem;
}

body.is-checkout-flow .wc-block-components-totals-coupon .wc-block-components-panel__button {
    margin: 0 0 1.25rem;
    padding: 0;
    background: none;
    color: inherit;
}

body.is-checkout-flow .wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
    display: none;
}

body.is-checkout-flow .wc-block-components-totals-coupon .wc-block-components-panel__content {
    padding: 0;
}

body.is-checkout-flow .wc-block-components-totals-coupon__form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
}

body.is-checkout-flow .wc-block-components-totals-coupon__form .wc-block-components-text-input {
    flex: 1 1 auto;
    min-width: 0;
}

/* The design shows no label, the box holds the hint. */
body.is-checkout-flow .wc-block-components-totals-coupon__form .wc-block-components-text-input label {
    display: block;
    position: absolute;
    top: 1.0625rem;
    left: 1.5rem;
    margin: 0;
    pointer-events: none;
}

body.is-checkout-flow .wc-block-components-totals-coupon__form .wc-block-components-text-input.is-active label {
    display: none;
}

body.is-checkout-flow .wc-block-components-button.wc-block-components-totals-coupon__button[aria-disabled="true"] {
    opacity: 1;
}

/* Buttons ------------------------------------------------------------------ */

body.is-checkout-flow .wc-block-components-button:not(.is-link) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.875rem;
    min-height: 3.375rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 0;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    letter-spacing: var(--wp--custom--letter-spacing--label);
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
}

body.is-checkout-flow .wc-block-components-button:not(.is-link)::after {
    content: "";
    flex: none;
    width: 1rem;
    height: 0.8125rem;
    background-color: currentcolor;
    mask: url("../icons/arrow-right-thin.svg") no-repeat center / contain;
}

body.is-checkout-flow .wc-block-components-totals-coupon__button {
    flex: none;
    width: 9.375rem;
    height: 3.375rem;
}

body.is-checkout-flow .wc-block-components-button.wc-block-cart__submit-button,
body.is-checkout-flow .wc-block-components-button.wc-block-components-checkout-place-order-button {
    width: 100%;
    min-height: 3.625rem;
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--lead);
    font-weight: 600;
}

body.is-checkout-flow .wc-block-components-button.wc-block-cart__submit-button:hover,
body.is-checkout-flow .wc-block-components-button.wc-block-components-checkout-place-order-button:hover {
    background-color: #76ad99;
    color: var(--wp--preset--color--black);
}

body.is-checkout-flow .wc-block-cart__submit {
    margin: 2.875rem 0 0;
}

body.is-checkout-flow .wc-block-checkout__actions {
    padding-top: 2.5rem;
}

body.is-checkout-flow .wc-block-checkout__terms {
    margin: 2.5rem 0 0;
    padding: 0;
    border: 0;
}

body.is-checkout-flow .wc-block-checkout__terms--with-separator::before {
    display: none;
}

.is-checkout-flow .site-content {
    padding-bottom: 6.25rem;
}

/* =========================================================================
   Account dialog — login / registration (inc/account-dialog.php)
   ========================================================================= */

.c-account {
    display: none;
    width: min(62.5rem, 100% - 2rem);
    max-width: none;
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
}

.c-account[open] {
    display: grid;
}

.c-account:focus {
    outline: 0;
}

.c-account::backdrop {
    background-color: rgb(0 0 0 / 40%);
}

html.has-account-dialog {
    overflow: hidden;
}

.c-account__close {
    display: grid;
    position: absolute;
    inset: 1.25rem 1.25rem auto auto;
    z-index: 1;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    cursor: pointer;
}

.c-account .c-account__close:hover,
.c-account .c-account__close:focus-visible {
    background-color: var(--wp--preset--color--bone);
    color: var(--wp--preset--color--black);
}

.c-account__main {
    padding: 3.75rem 3.125rem;
}

.c-account__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.c-account__form[hidden] {
    display: none;
}

.c-account__title {
    margin: 0 0 0.75rem;
    font-size: var(--wp--preset--font-size--heading);
}

.c-account .c-field {
    margin: 0;
}

.c-account .c-form .c-field__control {
    min-height: 3.125rem;
}

.c-account__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.c-account__forgot {
    color: inherit;
    font-size: var(--wp--preset--font-size--xs);
}

.c-account__submit,
.c-account__switch {
    font-size: var(--wp--preset--font-size--xs);
}

.c-account__submit {
    align-self: flex-start;
    min-height: 3.125rem;
}

.c-account__note {
    margin: 0;
    font-size: var(--wp--preset--font-size--small);
}

.c-account__errors {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--wp--preset--color--sale);
    background-color: var(--wp--preset--color--bone);
    font-size: var(--wp--preset--font-size--small);
}

.c-account .woocommerce-privacy-policy-text p {
    margin: 0;
    font-size: var(--wp--preset--font-size--xs);
    line-height: 1.4;
}

.c-account .woocommerce-privacy-policy-text a {
    color: inherit;
}

.c-account__errors p {
    margin: 0;
}

.c-account__errors a {
    color: inherit;
}

/* "— nebo —" between the form and social sign-in. */
.c-account__or {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 1rem 0 0.5rem;
    font-size: var(--wp--preset--font-size--xs);
}

.c-account__or::before,
.c-account__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--wp--preset--color--black);
}

.c-account__social {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-account__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    border: 1px solid var(--wp--preset--color--black);
    color: inherit;
    font-size: var(--wp--preset--font-size--small);
    text-decoration: none;
}

.c-account__social-btn:hover {
    background-color: var(--wp--preset--color--bone);
}

.c-account__social-icon {
    --c-icon-size: 1.5rem;
}

.c-account__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.375rem;
}

.c-account__aside-title {
    margin: 0 0 1.75rem;
    font-size: var(--wp--preset--font-size--heading);
}

.c-account__benefits {
    display: grid;
    gap: 1.25rem;
    margin: 0 0 3.75rem;
    padding: 0;
    list-style: none;
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.2;
}

.c-account__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0;
}

.c-account__benefit-icon {
    --c-icon-size: 1.25rem;
    flex: none;
}

.c-account__switch {
    align-self: flex-start;
    min-height: 3.25rem;
}

.c-account[data-mode="login"] .c-account__switch[data-aroha-account-mode="login"],
.c-account[data-mode="register"] .c-account__switch[data-aroha-account-mode="register"] {
    display: none;
}

@media (min-width: 48em) {
    .c-account[open] {
        grid-template-columns: 1fr 1fr;
        min-height: min(43.75rem, 100dvh - 2rem);
    }
}

@media (max-width: 47.99em) {
    .c-account__main,
    .c-account__aside {
        padding: 3.75rem 1.25rem 2.5rem;
    }

    .c-account__benefits {
        margin-bottom: 2.5rem;
        font-size: var(--wp--preset--font-size--small);
    }

    /* Close sits on the white half here; fixed, so a scrolled dialog keeps it. */
    .c-account .c-account__close {
        position: fixed;
        inset: 1.5rem 1.5rem auto auto;
        background-color: var(--wp--preset--color--bone);
    }
}

/* =========================================================================
   Catalog — shop, category, tag (inc/catalog.php)
   Design @1920: tiles 5 × 311×82, filter buttons 50 high, grid 4 × 392.
   ========================================================================= */

.c-catalog {
    padding-bottom: 6.25rem;
}

.c-catalog__title {
    margin: 1.5rem 0 0;
    font-size: var(--wp--preset--font-size--display);
    line-height: 1;
}

.c-catalog__description {
    max-width: 50rem;
    margin-top: 2rem;
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.28;
}

.c-catalog__description p {
    margin: 0;
}

.c-catalog__description p + p {
    margin-top: 1.4em;
}

/* Subcategory tiles ------------------------------------------------------- */

.c-catalog__tiles {
    margin-top: clamp(2.5rem, 5.2vw, 6.25rem);
}

.c-catalog__head:not(:has(.c-catalog__description)) + .c-catalog__tiles {
    margin-top: 2.5rem;
}

.c-tiles {
    display: grid;
    /* Five per row at full width; fewer stay that size. */
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-tile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    min-height: 5.125rem;
    padding: 0.75rem 1.375rem;
    background-color: var(--wp--preset--color--bone);
    color: inherit;
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.25;
    text-decoration: none;
    transition: background-color var(--wp--custom--transition);
}

.c-tile:hover {
    background-color: var(--wp--preset--color--bone-dark);
}

.c-tile__icon {
    --c-icon-size: 2.875rem;

    flex: none;
}

/* Toolbar: "Filtrace", filter buttons, sort ------------------------------- */

/* No subcategory tiles: more room under the title or description. */
.c-catalog__head + .c-catalog__toolbar {
    margin-top: 3.75rem;
}

.c-catalog__toolbar {
    margin-top: 2.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--wp--preset--color--black);
}

.c-catalog__toolbar-label {
    margin: 0 0 1.25rem;
    font-size: var(--wp--preset--font-size--small);
}

.c-catalog__controls {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.c-catalog__filters {
    min-width: 0;
}

/* One look for filter headers, "Všechny filtry" and "Seřadit podle". */
.c-dropdown__toggle,
.c-catalog__filters .wpc-filter-title {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 3.125rem;
    margin: 0;
    padding: 0 1.5rem;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    line-height: 1;
    letter-spacing: var(--wp--custom--letter-spacing--label);
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.c-catalog .c-dropdown__toggle:hover,
.c-catalog .c-dropdown__toggle:focus,
.c-catalog .c-dropdown__toggle[aria-expanded="true"],
.c-dropdown[open] > .c-dropdown__toggle {
    background-color: var(--wp--preset--color--bone);
    color: var(--wp--preset--color--black);
}

.c-dropdown__toggle::-webkit-details-marker {
    display: none;
}

.c-dropdown__icon {
    --c-icon-size: 1.125rem;
}

.c-sort .c-dropdown__icon {
    --c-icon-size: 1.375rem;
}

.c-dropdown {
    position: relative;
}

.c-dropdown__panel {
    position: absolute;
    inset: calc(100% + 0.375rem) 0 auto auto;
    z-index: 30;
    min-width: 16rem;
    margin: 0;
    padding: 0.5rem 0;
    border: 1px solid var(--wp--preset--color--black);
    background-color: var(--wp--preset--color--white);
    list-style: none;
}

.c-sort {
    margin-left: auto;
}

.c-sort__link {
    display: block;
    padding: 0.625rem 1.25rem;
    color: inherit;
    font-size: var(--wp--preset--font-size--small);
    text-decoration: none;
}

.c-sort__link:hover,
.c-sort__link[aria-current] {
    background-color: var(--wp--preset--color--bone);
}

.c-sort__link[aria-current] {
    font-weight: 700;
}

/* Filter Everything: hide its own chrome, keep the sections. */
/* The plugin also drops its own "Filtry" button above the list; ours opens the sheet. */
.c-catalog > .wpc-filters-open-button-container,
.c-catalog__filters .wpc-filters-open-button-container,
.c-catalog__filters .wpc-posts-found,
.c-catalog__filters .wpc-filters-widget-top-container,
.c-catalog__filters .wpc-filter-set-widget-title {
    display: none !important;
}

.c-catalog__filters .widget_wpc_filters_widget,
.c-catalog__filters .wpc-filters-main-wrap {
    margin: 0;
    padding: 0;
}

.c-catalog__filters .wpc-filters-section {
    margin: 0;
    padding: 0;
    border: 0;
}

.c-catalog__filters .wpc-filter-header {
    margin: 0;
    padding: 0;
}

.c-catalog__filters .wpc-filter-title::after {
    content: "";
    width: 1.125rem;
    height: 1.125rem;
    background-color: currentColor;
    mask: url("../icons/chevron-down.svg") no-repeat center / contain;
    transition: rotate var(--wp--custom--transition);
}

.c-catalog__filters .wpc-filters-section.is-open .wpc-filter-title::after {
    rotate: 180deg;
}

/* A selected filter shows on its button too. */
.c-catalog__filters .wpc-filter-has-selected .wpc-filter-title {
    background-color: var(--wp--preset--color--bone);
}

.c-catalog__filters .wpc-filters-ul-list {
    max-height: 20rem;
    margin: 0;
    padding: 0;
}

.c-catalog__filters .wpc-term-item {
    padding: 0.3125rem 0;
}

.c-catalog__filters .wpc-term-item-content-wrapper {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.c-catalog__filters .wpc-term-item input[type="checkbox"] {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
    background-color: var(--wp--preset--color--white);
    appearance: none;
    cursor: pointer;
}

.c-catalog__filters .wpc-term-item input[type="checkbox"]:checked {
    background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' fill='none'%3E%3Cpath d='M1.5 4.5 4.5 7.5 10.5 1.5' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 0.6875rem auto;
}

.c-catalog__filters .wpc-term-item label,
.c-catalog__filters .wpc-filter-link {
    color: inherit;
    font-size: var(--wp--preset--font-size--small);
    text-decoration: none;
}

.c-catalog__filters .wpc-term-count {
    margin-left: 0.25rem;
    color: #8a8a8a;
    font-size: var(--wp--preset--font-size--xs);
}

.c-catalog__filters .wpc-filters-range-inputs input[type="number"] {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
}

/* Desktop: each section is a button with a panel under it. */
@media (min-width: 769px) {
    .c-catalog__filters .wpc-filters-widget-content {
        display: block !important;
    }

    .c-catalog__filters .wpc-widget-close-container {
        display: none;
    }

    .c-catalog__filters .wpc-filters-widget-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
    }

    .c-catalog__filters .wpc-filters-section {
        position: relative;
    }

    .c-catalog__filters .wpc-filter-content {
        display: none;
        position: absolute;
        inset: calc(100% + 0.375rem) auto auto 0;
        z-index: 30;
        width: max-content;
        min-width: 100%;
        max-width: 22rem;
        padding: 1.25rem;
        border: 1px solid var(--wp--preset--color--black);
        background-color: var(--wp--preset--color--white);
    }

    .c-catalog__filters .wpc-filters-section.is-open .wpc-filter-content {
        display: block;
    }

    /* "Všechny filtry": the same sections stacked in a side panel. */
    .c-catalog__filters.is-all .wpc-filters-widget-content {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1000;
        width: min(28rem, 100%);
        overflow-y: auto;
        padding: 1.875rem;
        background-color: var(--wp--preset--color--white);
    }

    .c-catalog__filters.is-all .wpc-widget-close-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        margin-bottom: 1.5rem;
    }

    .c-catalog__filters.is-all .wpc-widget-popup-title {
        font-family: var(--wp--preset--font-family--display);
        font-size: var(--wp--preset--font-size--title-xl);
        font-weight: 600;
        text-transform: uppercase;
    }

    .c-catalog__filters.is-all .wpc-filters-widget-wrapper {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1.75rem;
    }

    .c-catalog__filters.is-all .wpc-filter-title {
        width: 100%;
        justify-content: space-between;
        padding: 0 0 0.75rem;
        border: 0;
        border-bottom: 1px solid var(--wp--preset--color--black);
        min-height: 0;
        background: none;
        cursor: default;
    }

    .c-catalog__filters.is-all .wpc-filter-title::after {
        display: none;
    }

    .c-catalog__filters.is-all .wpc-filter-content {
        display: block;
        position: static;
        min-width: 0;
        padding: 1rem 0 0;
        border: 0;
    }
}

.c-catalog__backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgb(0 0 0 / 40%);
}

html.has-catalog-panel {
    overflow: hidden;
}

.c-catalog__chips:empty,
.c-catalog__chips:has(.wpc-empty-chips-container) {
    display: none;
}

.c-catalog__chips {
    margin-top: 1rem;
}

.c-catalog__chips .wpc-filter-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-catalog__chips .wpc-filter-chip a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 0;
    background-color: var(--wp--preset--color--bone);
    color: inherit;
    font-size: var(--wp--preset--font-size--xs);
    text-decoration: none;
}

/* Product grid ------------------------------------------------------------ */

.c-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.125rem 10px;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

/* Back to top, load more, pages ------------------------------------------- */

.c-catalog__pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
    margin-top: 6rem;
}

.c-catalog__top {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    justify-self: start;
    color: inherit;
    font-size: var(--wp--preset--font-size--micro);
    font-weight: 700;
    letter-spacing: var(--wp--custom--letter-spacing--label);
    text-transform: uppercase;
    text-decoration: none;
}

.c-catalog__top .c-icon {
    --c-icon-size: 1.125rem;

    transform: rotate(-90deg);
}

.c-catalog__more {
    grid-column: 2;
    gap: 2.25rem;
    min-height: 3.125rem;
    font-size: var(--wp--preset--font-size--xs);
}

.c-catalog__more .c-icon {
    --c-icon-size: 1.25rem;
}

.c-catalog__more.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.c-pagination {
    grid-column: 3;
    justify-self: end;
}

.c-pagination__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.25rem;
    border: 1px solid transparent;
    color: inherit;
    font-size: var(--wp--preset--font-size--micro);
    font-weight: 700;
    text-decoration: none;
}

.c-pagination .page-numbers.current {
    border-color: var(--wp--preset--color--black);
}

.c-pagination a.page-numbers:hover {
    border-color: var(--wp--preset--color--line, #ccc);
}

.c-pagination .c-icon {
    --c-icon-size: 1.25rem;
}

/* Proof bar --------------------------------------------------------------- */

.c-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    margin: 6.25rem 0 0;
    padding: 2.4375rem 0;
    border-block: 1px solid var(--wp--preset--color--black);
    list-style: none;
    font-size: var(--wp--preset--font-size--body);
}

.c-proof__item {
    display: flex;
    align-items: center;
    gap: 1.375rem;
    margin: 0;
}

.c-proof__icon {
    --c-icon-size: 3.75rem;

    flex: none;
}

@media (max-width: 63.99em) {
    .c-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .c-proof {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Phones: only "Všechny filtry" and sort; sections live in the plugin's sheet. */
    .c-catalog__filters {
        order: 3;
    }

    .c-catalog__controls {
        flex-wrap: wrap;
    }

    .c-catalog__all,
    .c-sort {
        flex: 1 1 0;
        min-width: 0;
    }

    .c-catalog__all,
    .c-sort .c-dropdown__toggle {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0 1rem;
        font-size: var(--wp--preset--font-size--micro);
    }

    /* Plugin's bottom sheet: plain headings over the options, like the side panel. */
    .c-catalog__filters .wpc-filters-section + .wpc-filters-section {
        margin-top: 1.75rem;
    }

    .c-catalog__filters .wpc-filter-title {
        width: 100%;
        min-height: 0;
        padding: 0 0 0.75rem;
        border: 0;
        border-bottom: 1px solid var(--wp--preset--color--black);
        background: none !important;
    }

    .c-catalog__filters .wpc-filter-title::after {
        display: none;
    }

    .c-catalog__filters .wpc-filter-content {
        padding-top: 1rem;
    }

    .c-tiles {
        display: flex;
        overflow-x: auto;
        margin-inline: calc(-1 * var(--c-gutter));
        padding-inline: var(--c-gutter);
        scrollbar-width: none;
    }

    .c-tiles > li {
        flex: 0 0 auto;
    }

    .c-tile {
        min-height: 4rem;
        white-space: nowrap;
    }

    .c-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 10px;
    }

    .c-catalog__pager {
        grid-template-columns: 1fr;
        justify-items: center;
        margin-top: 3.5rem;
    }

    .c-catalog__more,
    .c-pagination {
        grid-column: 1;
        justify-self: center;
    }

    .c-catalog__top {
        order: 3;
        justify-self: center;
    }

    .c-proof {
        grid-template-columns: 1fr;
        margin-top: 4rem;
        padding: 1.75rem 0;
        font-size: var(--wp--preset--font-size--small);
    }

    .c-proof__icon {
        --c-icon-size: 2.75rem;
    }
}
