/**
 * Custom Mobile Carts: WooCommerce
 *
 * Loaded on every WooCommerce page, the cart, checkout and account pages
 * and the front page. It sits on top of WooCommerce's own stylesheets, so
 * selectors here match or beat the plugin's specificity on purpose. Tokens
 * only, phone first. Buttons read the .btn custom properties with the
 * primary look as the fallback, so a WooCommerce button that also carries
 * .btn--outline (or sets the variables itself) still gets its variant.
 *
 * Sections: buttons, notices, product cards, toolbar and pagination, shop
 * layout and sidebar, single product, forms, cart, checkout, account,
 * order received, reduced motion.
 *
 * @package CustomMobileCarts
 */

/* ==========================================================================
   Buttons
   --------------------------------------------------------------------------
   Every WooCommerce button, classic and block, becomes the theme's primary
   button: forest background, ivory text, 10px radius, Fraunces, 44px tall.
   The :is(.alt, :not(.alt)) and :is(*, :hover) pieces add specificity so
   WooCommerce's .alt, :hover and .disabled rules do not win on a tie.
   ========================================================================== */

.woocommerce :is(a, button, input).button:is(.alt, :not(.alt)),
.woocommerce #respond input#submit:is(.alt, :not(.alt)),
.woocommerce .button.alt,
.single_add_to_cart_button,
.checkout-button,
.woocommerce-button,
.woocommerce .wc-forward,
.added_to_cart,
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.woocommerce .wp-element-button,
[class*="wp-block-woocommerce-"] .wp-element-button,
.wc-block-grid .wp-element-button,
.wc-block-mini-cart__footer-actions .wc-block-components-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    margin: 0;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    color: var(--btn-fg, var(--color-text-white));
    background-color: var(--btn-bg, var(--color-primary));
    background-image: none;
    border: 1px solid var(--btn-border, transparent);
    border-radius: var(--radius-md);
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

/* Hover keeps ivory text on forest-700 (or ink on brass for the dark
   surface variant); WooCommerce's hover otherwise turns the text dark. */
.woocommerce :is(a, button, input).button:is(.alt, :not(.alt)):is(:hover, :focus-visible),
.woocommerce #respond input#submit:is(.alt, :not(.alt)):is(:hover, :focus-visible),
.woocommerce .button.alt:is(:hover, :focus-visible),
.single_add_to_cart_button:is(:hover, :focus-visible),
.checkout-button:is(:hover, :focus-visible),
.woocommerce-button:is(:hover, :focus-visible),
.woocommerce .wc-forward:is(:hover, :focus-visible),
.added_to_cart:is(:hover, :focus-visible),
.wc-block-components-button:not(.is-link):is(:hover, :focus, :focus-visible),
.wc-block-cart__submit-button:is(:hover, :focus, :focus-visible),
.wc-block-components-checkout-place-order-button:is(:hover, :focus, :focus-visible),
.woocommerce .wp-element-button:is(:hover, :focus-visible),
[class*="wp-block-woocommerce-"] .wp-element-button:is(:hover, :focus-visible),
.wc-block-grid .wp-element-button:is(:hover, :focus-visible),
.wc-block-mini-cart__footer-actions .wc-block-components-button:is(:hover, :focus, :focus-visible) {
    color: var(--btn-fg-hover, var(--btn-fg, var(--color-text-white)));
    background-color: var(--btn-bg-hover, var(--color-primary-hover));
    border-color: var(--btn-border-hover, var(--btn-border, transparent));
    text-decoration: none;
}

.woocommerce :is(a, button, input).button:is(.alt, :not(.alt)):active,
.woocommerce #respond input#submit:active,
.single_add_to_cart_button:active,
.checkout-button:active,
.woocommerce-button:active,
.woocommerce .wc-forward:active,
.added_to_cart:active,
.wc-block-components-button:not(.is-link):active,
.woocommerce .wp-element-button:active,
[class*="wp-block-woocommerce-"] .wp-element-button:active {
    color: var(--btn-fg-hover, var(--btn-fg, var(--color-text-white)));
    background-color: var(--btn-bg-hover, var(--color-primary-hover));
    transform: scale(0.98);
}

.woocommerce :is(a, button, input).button:is(.alt, :not(.alt)):focus-visible,
.woocommerce #respond input#submit:focus-visible,
.single_add_to_cart_button:focus-visible,
.checkout-button:focus-visible,
.woocommerce-button:focus-visible,
.woocommerce .wc-forward:focus-visible,
.added_to_cart:focus-visible,
.wc-block-components-button:not(.is-link):focus-visible,
.woocommerce .wp-element-button:focus-visible,
[class*="wp-block-woocommerce-"] .wp-element-button:focus-visible {
    outline: 2px solid transparent;
    box-shadow: var(--focus-ring);
}

/* Disabled, including WooCommerce's .disabled class and its hover rule */
.woocommerce :is(a, button, input).button:is(.alt, :not(.alt)):is(:disabled, .disabled, [disabled]):is(*, :hover),
.woocommerce #respond input#submit:is(:disabled, .disabled):is(*, :hover),
.single_add_to_cart_button:is(:disabled, .disabled):is(*, :hover),
.wc-block-components-button:not(.is-link):is(:disabled, .disabled):is(*, :hover),
.woocommerce .wp-element-button:is(:disabled, .disabled):is(*, :hover) {
    color: var(--btn-fg, var(--color-text-white));
    background-color: var(--btn-bg, var(--color-primary));
    border-color: var(--btn-border, transparent);
    padding: 0.625rem 1.25rem;
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Inner spans of block buttons inherit, so the hover colour reaches the text */
.wc-block-components-button .wc-block-components-button__text,
.wc-block-components-button .wc-block-components-spinner {
    color: inherit;
}

/* Block buttons that WooCommerce draws outlined (mini cart "View my cart") */
.wc-block-components-button:not(.is-link).outlined,
.wc-block-mini-cart__footer-cart.wc-block-components-button {
    --btn-bg: transparent;
    --btn-fg: var(--color-primary);
    --btn-border: var(--color-primary);
    --btn-bg-hover: var(--color-surface-hover);
    --btn-fg-hover: var(--color-primary);
    --btn-border-hover: var(--color-primary);
}

/* Secondary actions take the outline variant: the coupon and update
   buttons, the price filter, the empty cart's return link. */
.woocommerce .coupon .button,
.woocommerce button[name="update_cart"],
.woocommerce .widget_price_filter .button,
.woocommerce .return-to-shop .button,
.woocommerce .woocommerce-MyAccount-content .woocommerce-button:not(.pay) {
    --btn-bg: transparent;
    --btn-fg: var(--color-primary);
    --btn-border: var(--color-primary);
    --btn-bg-hover: var(--color-surface-hover);
    --btn-fg-hover: var(--color-primary);
    --btn-border-hover: var(--color-primary);
}

/* Full width where the action is the only thing to do */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-form-register .woocommerce-form-register__submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0.8125rem 1.625rem;
    font-size: var(--font-size-md);
}

/* Loading and added states from the AJAX add to cart. WooCommerce draws
   these with its icon font; this swaps in a small ring spinner. */
.woocommerce a.button.loading:is(.alt, :not(.alt)) {
    position: relative;
    padding-right: 2.75rem;
    opacity: 0.8;
}

.woocommerce a.button.loading:is(.alt, :not(.alt))::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    font-family: inherit;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: var(--radius-full);
    animation: cmc-wc-spin 0.8s linear infinite;
}

.woocommerce a.button.added:is(.alt, :not(.alt))::after {
    display: none;
}

@keyframes cmc-wc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Selects
   --------------------------------------------------------------------------
   No WooCommerce screen shows the native dropdown. Every select, the
   SelectWoo (Select2) country and state pickers and the block selects get
   the .form__select treatment: no native appearance, the input border and
   radius, 44px tall, and the same chevron data URI style.css draws for
   .form__select (an SVG cannot read a custom property, so the muted stroke
   is written into the image there and repeated here).
   ========================================================================== */

.woocommerce select,
.woocommerce-page select,
.woocommerce-ordering select,
select.orderby,
.woocommerce .quantity select,
.woocommerce form .form-row select,
select#billing_country,
select#shipping_country,
select#billing_state,
select#shipping_state,
.woocommerce div.product form.cart table.variations select,
.woocommerce .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single,
.wc-block-components-select .components-custom-select-control__button,
.wc-block-components-select .wc-block-components-select__select,
.wc-block-components-form .wc-block-components-select select,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-country-input select,
.wc-block-components-country-input .components-combobox-control__input,
.wc-block-components-state-input select,
.wc-block-components-state-input .components-combobox-control__input {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.5625rem 2.75rem 0.5625rem 0.875rem;
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    line-height: 1.4;
    color: var(--color-input-text);
    background-color: var(--color-input-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B635B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.125rem;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Internet Explorer era arrow and Firefox's focus ring inside the text */
.woocommerce select::-ms-expand,
.woocommerce-page select::-ms-expand {
    display: none;
}

.woocommerce select:-moz-focusring,
.woocommerce-page select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--color-input-text);
}

.woocommerce select:hover,
.woocommerce-page select:hover,
select.orderby:hover,
.woocommerce .select2-container--default .select2-selection--single:hover,
.wc-block-components-select .wc-block-components-select__select:hover,
.wc-block-components-combobox .components-combobox-control__input:hover {
    border-color: var(--color-border-strong);
}

.woocommerce select:focus-visible,
.woocommerce-page select:focus-visible,
select.orderby:focus-visible,
.woocommerce div.product form.cart table.variations select:focus-visible,
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.wc-block-components-select .wc-block-components-select__select:focus,
.wc-block-components-select .components-custom-select-control__button:focus,
.wc-block-components-combobox .components-combobox-control__input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.woocommerce select:disabled,
.woocommerce-page select:disabled,
.wc-block-components-select .wc-block-components-select__select:disabled,
.woocommerce .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--color-bg-subtle);
    cursor: not-allowed;
    opacity: 0.75;
}

/* Select2: the selection box above takes the chevron, so the plugin's
   own CSS triangle goes, and the text lines up with the inputs. */
.woocommerce .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single {
    height: auto;
    padding: 0;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 2.75rem 0 0.875rem;
    line-height: 42px;
    color: var(--color-input-text);
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--color-input-placeholder);
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 2.25rem;
    color: var(--color-text-muted);
}

/* Select2 dropdown, appended to <body> so it sits outside .woocommerce */
.select2-container--default .select2-dropdown,
.select2-dropdown {
    margin-top: 0.25rem;
    font-family: var(--font-body);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.select2-container--default .select2-dropdown--above {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.select2-container--default .select2-search--dropdown {
    padding: 0.5rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.5625rem 0.875rem;
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    line-height: 1.4;
    color: var(--color-input-text);
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    appearance: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 16rem;
    padding: 0.25rem 0;
}

.select2-container--default .select2-results__option {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: var(--color-text-white);
    background-color: var(--color-primary);
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: var(--color-text-muted);
}

.select2-container--default .select2-results__message {
    color: var(--color-text-muted);
}

/* Block selects: the floating label needs the taller top padding WooCommerce
   gives it, and its own expand icon goes in favour of the chevron. */
.wc-block-components-select .wc-block-components-select__select,
.wc-block-components-form .wc-block-components-select select,
.wc-block-components-select .components-custom-select-control__button {
    min-height: 3.5rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.wc-block-components-select .wc-block-components-select__expand,
.wc-block-components-combobox .components-combobox-control__suggestions-container ~ svg {
    display: none;
}

.wc-block-components-country-input .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-state-input .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
    min-height: 3.5rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

/* ==========================================================================
   Section spacing and the archive header
   ========================================================================== */

.woocommerce-section {
    padding-block: var(--spacing-2xl) var(--spacing-4xl);
}

.woocommerce-products-header {
    max-width: 46rem;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-light);
}

.woocommerce-products-header:empty {
    display: none;
}

.woocommerce-products-header > :last-child {
    margin-bottom: 0;
}

/* Ivory page, no stray body backgrounds from WooCommerce */
.woocommerce-page,
.woocommerce .woocommerce {
    background: transparent;
}

/* ==========================================================================
   Notices
   --------------------------------------------------------------------------
   Status colours from the theme. WooCommerce's icon font is replaced by a
   masked SVG in the notice colour, in the space its padding left for it.
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice,
.wc-block-components-notice-banner {
    --notice-accent: var(--color-info);
    --notice-bg: var(--color-primary-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
    margin: 0 0 var(--spacing-lg);
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    list-style: none;
    color: var(--color-text);
    background-color: var(--notice-bg);
    border: 1px solid transparent;
    border-left: 3px solid var(--notice-accent);
    border-radius: var(--radius-md);
    word-wrap: break-word;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
    --notice-accent: var(--color-success);
    --notice-bg: var(--color-success-light);
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
    --notice-accent: var(--color-error);
    --notice-bg: var(--color-error-light);
}

.wc-block-components-notice-banner.is-warning {
    --notice-accent: var(--color-warning);
    --notice-bg: var(--color-warning-light);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-notice::before {
    content: '';
    position: absolute;
    top: 0.9375rem;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    font-family: inherit;
    color: var(--notice-accent);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-message::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E");
}

.woocommerce-error::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}

.woocommerce-error li {
    list-style: none;
    margin: 0;
}

.woocommerce-error li + li {
    flex-basis: 100%;
}

/* The button inside a notice ("View cart") sits at the end of the row */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    order: 1;
    float: none;
    margin-left: auto;
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) {
    color: var(--color-link);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.woocommerce-notices-wrapper:empty {
    display: none;
}

/* ==========================================================================
   Product grid and cards
   --------------------------------------------------------------------------
   Used by the shop, category pages, related and upsell rows and the
   WooCommerce shortcodes on the homepage. WooCommerce floats the items;
   the grid takes over and its clearfix pseudo elements are removed so
   they do not become grid cells.
   ========================================================================== */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none;
}

/* Two compact columns on phones, like most shops; one column only on the
   narrowest screens */
@media (min-width: 360px) {
    .woocommerce ul.products[class*="columns-"],
    .woocommerce-page ul.products[class*="columns-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce ul.products.columns-1,
    .woocommerce-page ul.products.columns-1 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        gap: var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products.columns-3,
    .woocommerce-page ul.products.columns-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .woocommerce ul.products.columns-4,
    .woocommerce-page ul.products.columns-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .woocommerce ul.products.columns-5,
    .woocommerce ul.products.columns-6,
    .woocommerce-page ul.products.columns-5,
    .woocommerce-page ul.products.columns-6 {
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    }
}

/* The card. :nth-child(n) matches WooCommerce's small screen width rule. */
.woocommerce ul.products[class*="columns-"] li.product:nth-child(n),
.woocommerce-page ul.products[class*="columns-"] li.product:nth-child(n),
.woocommerce ul.products li.product:nth-child(n),
.woocommerce-page ul.products li.product:nth-child(n) {
    position: relative;
    display: flex;
    flex-direction: column;
    float: none;
    clear: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

@media (hover: hover) {
    .woocommerce ul.products li.product:hover,
    .woocommerce-page ul.products li.product:hover {
        transform: translateY(-3px);
        border-color: var(--color-primary-20);
        box-shadow: var(--shadow-lg);
    }

    .woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
    .woocommerce ul.products li.product:hover .woocommerce-loop-category__title {
        color: var(--color-link);
    }

    /* A slow, quiet zoom on the photo */
    .woocommerce ul.products li.product:hover a img {
        transform: scale(1.04);
    }
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce ul.products li.product a.woocommerce-loop-category__link,
.woocommerce ul.products li.product-category > a {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

/* The photo sits in its own clipped frame so the zoom stays inside the card */
.woocommerce ul.products li.product a.woocommerce-loop-product__link::before,
.woocommerce ul.products li.product a.woocommerce-loop-category__link::before {
    content: none;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce ul.products li.product-category > a {
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* A hairline between the product details and the button */
.woocommerce ul.products li.product:not(.product-category) a.woocommerce-loop-product__link {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-light);
}

/* The category eyebrow printed by cmc_wc_loop_product_eyebrow() */
.woocommerce ul.products li.product .product-card__eyebrow {
    margin: 1.125rem 1.25rem 0;
    padding: 0;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-eyebrow);
}

.woocommerce ul.products li.product .product-card__eyebrow + .woocommerce-loop-product__title,
.woocommerce ul.products li.product .product-card__eyebrow + h2,
.woocommerce ul.products li.product .product-card__eyebrow + h3 {
    padding-top: 0.375rem;
}

/* The whole card rings on keyboard focus. An outline, not a shadow: the
   card rule above sets its own shadow with a stronger selector, and the
   card clips overflow, so a shadow or the link's own ring never showed.
   Browsers without :has() keep the link's own ring. */
.woocommerce ul.products li.product:has(a:focus-visible) {
    outline: 2px solid var(--color-link);
    outline-offset: 3px;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    margin: 0;
    object-fit: cover;
    background-color: var(--color-bg-light);
    box-shadow: none;
    transition: transform 600ms var(--ease-out);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    padding: 1.125rem 1.25rem 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--color-heading);
    transition: color var(--transition-fast);
}

@media (max-width: 479.98px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product h3 {
        padding-inline: 0.875rem;
        font-size: var(--font-size-md);
    }

    .woocommerce ul.products li.product .product-card__eyebrow {
        margin-inline: 0.875rem;
        font-size: 0.625rem;
        letter-spacing: 0.08em;
    }
}

.woocommerce ul.products li.product .woocommerce-loop-category__title mark.count {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
    background: none;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    margin: 0.5rem 0 0;
    padding: 0 1.25rem;
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--color-primary);
}

/* The struck price reads second and quieter */
.woocommerce ul.products li.product .price del {
    order: 2;
    font-size: var(--font-size-sm);
}

.woocommerce ul.products li.product .price ins {
    order: 1;
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price ins {
    display: inline;
}

@media (max-width: 479.98px) {
    .woocommerce ul.products li.product .price {
        padding-inline: 0.875rem;
        font-size: var(--font-size-md);
    }
}

.woocommerce ul.products li.product .star-rating {
    margin: 0.5rem 1.25rem 0;
}

/* Add to cart: outline on the card, fills forest on hover. Pushed to the
   bottom so every card in a row ends on the same line. */
.woocommerce ul.products li.product .button:is(.alt, :not(.alt)) {
    --btn-bg: transparent;
    --btn-fg: var(--color-primary);
    --btn-border: var(--color-primary);
    --btn-bg-hover: var(--color-primary);
    --btn-fg-hover: var(--color-text-white);
    --btn-border-hover: var(--color-primary);
    align-self: stretch;
    justify-content: center;
    width: auto;
    margin: var(--spacing-md) 1.25rem 1.25rem;
    border: 1px solid var(--btn-border);
    background-color: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: none;
}

.woocommerce ul.products li.product .button:is(.alt, :not(.alt)):hover,
.woocommerce ul.products li.product .button:is(.alt, :not(.alt)):focus-visible {
    background-color: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
    color: var(--btn-fg-hover);
}

@media (max-width: 479.98px) {
    .woocommerce ul.products li.product .button:is(.alt, :not(.alt)) {
        min-height: 40px;
        margin: 0.75rem 0.875rem 0.875rem;
        padding-block: 0.5rem;
        font-size: var(--font-size-sm);
    }
}

/* The "View cart" link WooCommerce appends after an AJAX add. It carries
   the button classes, so every button property is reset to a text link. */
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product .added_to_cart.wc-forward,
.woocommerce ul.products li.product a.added_to_cart:hover {
    --btn-bg: transparent;
    --btn-fg: var(--color-link);
    --btn-bg-hover: transparent;
    --btn-fg-hover: var(--color-link-hover);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: center;
    min-height: 0;
    margin: calc(-1 * var(--spacing-sm)) 1.25rem 1rem;
    padding: 0.25rem 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-link);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.woocommerce ul.products li.product a.added_to_cart:hover {
    color: var(--color-link-hover);
}

.woocommerce ul.products li.product a.added_to_cart:focus-visible {
    color: var(--color-link-hover);
    box-shadow: var(--focus-ring);
}

/* Short descriptions a shortcode may print, and the category tile text.
   The category eyebrow is excluded: this selector would otherwise outrank
   its own rule above. */
.woocommerce ul.products li.product p:not(.price):not(.product-card__eyebrow) {
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Category tiles end with their title */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    padding-bottom: 1.25rem;
}

/* Sale badge: brass pill with ink text, top left of the image */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce div.product .onsale {
    position: absolute;
    top: 0.875rem;
    right: auto;
    left: 0.875rem;
    z-index: 2;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0.3125rem 0.75rem;
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--palette-ink);
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

/* Star rating in brass, empty stars in the strong border tone */
.woocommerce .star-rating,
.woocommerce .star-rating span {
    color: var(--color-accent);
}

.woocommerce .star-rating::before {
    color: var(--color-border-strong);
}

.woocommerce p.stars a {
    color: var(--color-accent);
}

.woocommerce p.stars a:hover ~ a::before,
.woocommerce p.stars:hover a::before {
    color: var(--color-accent);
}

/* Prices: sale strikes stay quiet, the new price stands */
.woocommerce .price del,
.woocommerce del .amount,
.wc-block-components-product-price__regular {
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
    opacity: 1;
}

.woocommerce .price ins,
.woocommerce ins .amount {
    text-decoration: none;
    font-weight: inherit;
}

/* ==========================================================================
   Results bar and pagination
   ========================================================================== */

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

/* Notices printed by the before_shop_loop hook take the full row */
.shop-toolbar .woocommerce-notices-wrapper {
    flex-basis: 100%;
}

.shop-toolbar .woocommerce-notices-wrapper > :last-child {
    margin-bottom: var(--spacing-sm);
}

.woocommerce .shop-toolbar .woocommerce-result-count,
.woocommerce-page .shop-toolbar .woocommerce-result-count {
    float: none;
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.woocommerce .shop-toolbar .woocommerce-ordering,
.woocommerce-page .shop-toolbar .woocommerce-ordering {
    position: relative;
    float: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    margin-left: auto;
}

.woocommerce .shop-toolbar .woocommerce-ordering label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-light);
}

/* The sort select takes the shared select look (see Selects above); it
   only needs to be compact and shrink to its contents. */
.woocommerce .shop-toolbar .woocommerce-ordering select.orderby {
    width: auto;
    min-height: 44px;
    padding-block: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

/* Jump to the filters, which sit below the products on small screens */
.shop-toolbar__filters {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.shop-toolbar__filters:hover {
    color: var(--color-primary);
    background-color: var(--color-surface-hover);
}

@media (min-width: 1024px) {
    .shop-toolbar__filters {
        display: none;
    }
}

/* Pagination mapped onto the theme's .pagination look */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination {
    margin-top: var(--spacing-3xl);
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce-page nav.woocommerce-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
    border: 0;
    white-space: normal;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li {
    float: none;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li :is(a, span).page-numbers,
.woocommerce-page nav.woocommerce-pagination ul li :is(a, span).page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.875rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-decoration: none;
    color: var(--color-heading);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus-visible {
    color: var(--color-link);
    background-color: var(--color-bg);
    border-color: var(--color-primary-40);
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current,
.woocommerce-page nav.woocommerce-pagination ul li span.page-numbers.current {
    color: var(--color-text-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.page-numbers.dots {
    min-width: auto;
    padding-inline: 0.25rem;
    background-color: transparent;
    border-color: transparent;
}

.woocommerce-pagination .pagination__icon {
    display: inline-flex;
}

.woocommerce-pagination .pagination__icon--prev svg {
    transform: scaleX(-1);
}

@media (max-width: 479.98px) {
    .woocommerce-pagination .pagination__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* ==========================================================================
   Shop layout and sidebar
   --------------------------------------------------------------------------
   Products first in the markup, sidebar after. From 1024px the sidebar
   moves to the left column.
   ========================================================================== */

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-3xl);
    align-items: start;
}

@media (min-width: 1024px) {
    .shop-layout {
        grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
        column-gap: var(--spacing-3xl);
    }
}

/* The sidebar is printed before the products in the markup, so the visual
   order and the tab order agree at every width: on phones and tablets the
   filters sit above the grid as a closed panel (JS closes it; without JS
   it stays open); from 1024px they are a card in the left column. The card
   is not sticky on purpose: with the search, categories, price slider and
   the custom build note it is taller than most windows, and a sticky card
   that scrolls inside itself looks cut off at the bottom. */
.shop-sidebar {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.shop-filters {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.shop-filters__summary {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 52px;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
    list-style: none;
    cursor: pointer;
    border-radius: var(--radius-lg);
}

.shop-filters__summary::-webkit-details-marker {
    display: none;
}

.shop-filters__summary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.shop-filters__summary-count {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
}

.shop-filters__chevron {
    flex: none;
    color: var(--color-text-muted);
    transition: transform var(--transition-base);
}

.shop-filters[open] .shop-filters__chevron {
    transform: rotate(180deg);
}

.shop-filters__body {
    padding: 0 1.25rem 1.25rem;
}

@media (min-width: 1024px) {
    /* The card is always open on desktop, so the toggle row becomes a title.
       The script takes it out of the tab order and reopens the panel if
       anything closes it. */
    .shop-filters__summary {
        pointer-events: none;
        padding-bottom: 0.25rem;
    }

    .shop-filters__chevron,
    .shop-filters__summary-count {
        display: none;
    }
}

.shop-sidebar__block {
    padding-block: 1.25rem;
    border-top: 1px solid var(--color-border-light);
}

.shop-sidebar__block:first-child {
    border-top: 0;
}

.shop-sidebar__title,
.shop-sidebar .widget-title {
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-eyebrow);
}

/* Product search: one rounded field with the icon inside and the submit
   as an icon button on the right */
.shop-search {
    position: relative;
    display: flex;
    align-items: center;
}

.shop-search__icon {
    position: absolute;
    left: 0.875rem;
    display: inline-flex;
    color: var(--color-text-muted);
    pointer-events: none;
}

.shop-search__field {
    width: 100%;
    min-height: 46px;
    padding: 0.5625rem 3rem 0.5625rem 2.625rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--color-input-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-full);
    appearance: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.shop-search__field::placeholder {
    color: var(--color-input-placeholder);
    opacity: 1;
}

.shop-search__field:hover {
    border-color: var(--color-border-strong);
}

.shop-search__field:focus-visible {
    background-color: var(--color-input-bg);
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.shop-search__field::-webkit-search-decoration,
.shop-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.shop-search__submit {
    position: absolute;
    right: 0.3125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--color-text-white);
    background-color: var(--color-primary);
    border: 0;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.shop-search__submit:hover {
    background-color: var(--color-primary-hover);
}

.shop-search__submit:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Categories: full width rows, the count in a small pill, the active row
   marked with a gold bar on the left */
.shop-categories,
.shop-categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-categories li {
    margin: 0;
}

/* Rows sit flush with the heading, no indent. The active row is marked by
   weight and colour rather than a background, so nothing shifts. */
.shop-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    min-height: 44px;
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-light);
    transition: color var(--transition-fast);
}

.shop-categories > li:last-child > a {
    border-bottom: 0;
}

.shop-categories a:hover {
    color: var(--color-primary);
}

.shop-categories a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-xs);
}

.shop-categories li.current-cat > a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.shop-categories__count {
    flex: none;
    min-width: 1.75rem;
    padding: 0.125rem 0.5rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--color-text-muted);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-full);
}

.shop-categories li.current-cat > a .shop-categories__count {
    color: var(--color-text-white);
    background-color: var(--color-primary);
}

.shop-categories .children {
    margin-left: 0.875rem;
    padding-left: 0.625rem;
    border-left: 1px solid var(--color-border);
}

.shop-categories .children a {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
}

/* Price slider in forest and gold */
.woocommerce .widget_price_filter .price_slider_wrapper {
    padding-top: 0.5rem;
}

.woocommerce .widget_price_filter .price_slider {
    margin-bottom: 1.25rem;
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    height: 4px;
    background-color: var(--color-bg-subtle);
    border: 0;
    border-radius: var(--radius-full);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    top: -8px;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    background-color: var(--color-secondary);
    border: 3px solid var(--color-bg-card);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 1px var(--color-secondary), var(--shadow-sm);
    cursor: ew-resize;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:hover,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
    background-color: var(--color-secondary-hover);
    box-shadow: 0 0 0 1px var(--color-secondary-hover), var(--shadow-md);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.woocommerce .widget_price_filter .price_slider_amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
    --btn-bg: transparent;
    --btn-fg: var(--color-primary);
    --btn-border: var(--color-primary);
    --btn-bg-hover: var(--color-primary);
    --btn-fg-hover: var(--color-text-white);
    float: none;
    order: 1;
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    color: var(--btn-fg);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-border);
    box-shadow: none;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover,
.woocommerce .widget_price_filter .price_slider_amount .button:focus-visible {
    color: var(--btn-fg-hover);
    background-color: var(--btn-bg-hover);
}

.woocommerce .widget_price_filter .price_slider_amount .price_label {
    float: none;
    text-align: left;
    color: var(--color-text-muted);
}

.woocommerce .widget_price_filter .price_slider_amount .price_label span {
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

/* Widgets dropped into the Shop sidebar area */
.shop-sidebar .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-sidebar .widget li {
    padding-block: 0.375rem;
    font-size: 0.9375rem;
}

.shop-sidebar .widget li a {
    color: var(--color-text);
}

.shop-sidebar .widget li a:hover {
    color: var(--color-link);
}

.shop-sidebar .widget .chosen,
.shop-sidebar .widget .chosen a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

/* The custom build nudge at the foot of the panel: a soft linen callout */
.shop-sidebar__cta {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background-color: var(--color-bg-tint);
    border: 1px solid var(--palette-gold-100);
    border-radius: var(--radius-md);
}

.shop-sidebar__cta .icon-chip {
    width: 40px;
    height: 40px;
    margin-bottom: 0.25rem;
    background-color: var(--color-bg-card);
}

.shop-sidebar__cta h3 {
    margin: 0;
    font-size: var(--font-size-lg);
}

.shop-sidebar__cta p {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-text-light);
}

.shop-sidebar__cta .link-arrow {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--font-size-sm);
}

/* The results bar no longer needs its own Filters link; the panel's own
   toggle sits above the grid on small screens */
.shop-toolbar__filters {
    display: none;
}

/* ==========================================================================
   Product cards drawn by WooCommerce blocks (empty cart "New in store",
   cross sells, product collections) get the same look as the loop cards
   ========================================================================== */

.wc-block-grid__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .wc-block-grid__products {
        gap: var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .wc-block-grid.has-4-columns .wc-block-grid__products,
    .wc-block-grid__products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wc-block-grid.has-3-columns .wc-block-grid__products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* WooCommerce sizes these as flex items (flex: 1 0 25%, max-width: 25%)
   with selectors like .wc-block-grid.has-4-columns .wc-block-grid__product.
   Inside our grid that shrank each card to a quarter of its column, so
   the override needs the column class in the selector to outrank it. */
.wc-block-grid .wc-block-grid__products .wc-block-grid__product,
.wc-block-grid.has-1-columns .wc-block-grid__product,
.wc-block-grid.has-2-columns .wc-block-grid__product,
.wc-block-grid.has-3-columns .wc-block-grid__product,
.wc-block-grid.has-4-columns .wc-block-grid__product,
.wc-block-grid.has-5-columns .wc-block-grid__product,
.wc-block-grid.has-6-columns .wc-block-grid__product {
    flex: none;
    width: auto;
    max-width: none;
}

.wc-block-grid__products .wc-block-grid__product,
.wc-block-product-template .wc-block-product {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

@media (hover: hover) {
    .wc-block-grid__products .wc-block-grid__product:hover,
    .wc-block-product-template .wc-block-product:hover {
        transform: translateY(-3px);
        border-color: var(--color-primary-20);
        box-shadow: var(--shadow-lg);
    }
}

.wc-block-grid .wc-block-grid__product-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.wc-block-grid__product-image,
.wc-block-components-product-image {
    margin: 0;
}

.wc-block-grid__product-image img,
.wc-block-components-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    background-color: var(--color-bg-light);
}

.wc-block-grid .wc-block-grid__product-title,
.wc-block-product-template .wp-block-post-title {
    display: block;
    margin: 0;
    padding: 1.125rem 1.25rem 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--color-heading);
    text-decoration: none;
}

.wc-block-grid__product-title a,
.wc-block-product-template .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}

.wc-block-grid .wc-block-grid__product-price,
.wc-block-product-template .wc-block-components-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5rem;
    margin: 0.5rem 0 0;
    padding: 0 1.25rem;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
}

/* Sale price first, old price after it, like the loop cards */
.wc-block-grid__product-price del,
.wc-block-product-template .wc-block-components-product-price del {
    order: 2;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
}

.wc-block-grid__product-price ins,
.wc-block-product-template .wc-block-components-product-price ins {
    text-decoration: none;
}

.wc-block-grid .wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    right: auto;
    z-index: 2;
    padding: 0.3125rem 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--palette-ink);
    background-color: var(--color-accent);
    border: 0;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.wc-block-grid .wc-block-grid__product-add-to-cart,
.wc-block-product-template .wc-block-components-product-button {
    margin: auto 1.25rem 1.25rem;
    padding: var(--spacing-md) 0 0;
    border-top: 1px solid var(--color-border-light);
}

.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-product-template .wc-block-components-product-button .wp-block-button__link {
    --btn-bg: transparent;
    --btn-fg: var(--color-primary);
    --btn-bg-hover: var(--color-primary);
    --btn-fg-hover: var(--color-text-white);
    display: flex;
    justify-content: center;
    width: 100%;
    border: 1px solid var(--color-primary);
    color: var(--btn-fg);
    background-color: var(--btn-bg);
    box-shadow: none;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible,
.wc-block-product-template .wc-block-components-product-button .wp-block-button__link:hover,
.wc-block-product-template .wc-block-components-product-button .wp-block-button__link:focus-visible {
    color: var(--btn-fg-hover);
    background-color: var(--btn-bg-hover);
}

/* The empty cart's "New in store" heading reads like a section title */
.wc-block-cart__empty-cart__title + p,
.wp-block-woocommerce-empty-cart-block h2.has-text-align-center {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid {
    margin-top: var(--spacing-lg);
}

/* ==========================================================================
   Single product
   --------------------------------------------------------------------------
   Gallery and summary side by side from 1024px, tabs and related products
   underneath spanning both columns. WooCommerce floats the two halves;
   the grid replaces that.
   ========================================================================== */

.product-breadcrumbs {
    margin-bottom: var(--spacing-xl);
}

.woocommerce div.product {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-2xl);
}

.woocommerce div.product::before,
.woocommerce div.product::after {
    display: none;
}

@media (min-width: 1024px) {
    .woocommerce div.product {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: var(--spacing-3xl);
        align-items: start;
    }
}

.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
    float: none;
    width: auto;
    margin: 0;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product section.related,
.woocommerce div.product section.upsells,
.woocommerce div.product .woocommerce-notices-wrapper,
.woocommerce div.product > .woocommerce-message,
.woocommerce div.product > .woocommerce-info,
.woocommerce div.product > .woocommerce-error {
    grid-column: 1 / -1;
}

/* Gallery */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    margin: 0;
    overflow: hidden;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce div.product div.images img {
    width: 100%;
    display: block;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: var(--color-bg-light);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
    border-color: var(--color-primary);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after {
    background-color: var(--color-primary);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.woocommerce div.product div.images .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0 0;
    padding: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    float: none;
    width: auto;
    margin: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Summary */
.woocommerce div.product .product_title {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-4xl);
}

.woocommerce div.product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: var(--spacing-md);
}

.woocommerce div.product .woocommerce-product-rating .star-rating {
    float: none;
    margin: 0;
}

.woocommerce div.product .woocommerce-review-link {
    font-size: var(--font-size-sm);
    color: var(--color-link);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--color-heading);
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    font-size: 0.7em;
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.woocommerce div.product .woocommerce-product-details__short-description > :last-child {
    margin-bottom: 0;
}

/* Stock lines */
.woocommerce div.product p.stock {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.woocommerce div.product .stock.in-stock {
    color: var(--color-success);
}

.woocommerce div.product .stock.out-of-stock {
    color: var(--color-error);
}

/* Quantity and add to cart: one row from 480px, the same height each */
.woocommerce div.product form.cart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: var(--spacing-lg) 0;
}

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
    display: none;
}

@media (min-width: 480px) {
    .woocommerce div.product form.cart {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button {
        flex: 1 1 14rem;
    }
}

.woocommerce div.product form.cart div.quantity,
.woocommerce div.product form.cart .button {
    float: none;
    margin: 0;
}

/* Variable products: the attribute table, then the quantity row */
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .single_variation_wrap,
.woocommerce div.product form.cart .reset_variations {
    flex-basis: 100%;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1 1 14rem;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    padding: 0 0 0.75rem;
    vertical-align: middle;
    border: 0;
}

.woocommerce div.product form.cart .variations th.label {
    padding-right: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.woocommerce div.product form.cart .reset_variations {
    font-size: var(--font-size-sm);
}

.woocommerce div.product form.cart .woocommerce-variation-price {
    margin-bottom: var(--spacing-md);
}

.woocommerce div.product form.cart .group_table td {
    vertical-align: middle;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border: 0;
}

/* Shared quantity field: the same height as the buttons beside it */
.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
    width: 5.5rem;
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
    text-align: center;
    color: var(--color-input-text);
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    appearance: textfield;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce .quantity input.qty:hover {
    border-color: var(--color-border-strong);
}

.woocommerce .quantity input.qty:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.woocommerce .quantity {
    display: inline-flex;
}

/* Meta: SKU, categories, tags */
.woocommerce div.product .product_meta {
    padding-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

.woocommerce div.product .product_meta > span {
    display: block;
}

.woocommerce div.product .product_meta a {
    color: var(--color-link);
    font-weight: var(--font-weight-medium);
}

.woocommerce div.product .product_meta a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Tabs: an underlined row, no boxes, no corner shadows */
.woocommerce div.product .woocommerce-tabs {
    margin-top: var(--spacing-md);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: var(--spacing-lg);
    margin: 0 0 var(--spacing-xl);
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--color-border);
    scrollbar-width: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    flex: none;
    margin: 0 0 -1px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0.125rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-border-strong);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: none;
    border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-xs);
}

.woocommerce div.product .woocommerce-tabs .panel {
    max-width: 48rem;
    margin: 0;
    padding: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text);
    box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
}

.woocommerce div.product .woocommerce-tabs .panel > :last-child {
    margin-bottom: 0;
}

/* Additional information table */
.woocommerce table.woocommerce-product-attributes {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.woocommerce table.woocommerce-product-attributes th,
.woocommerce table.woocommerce-product-attributes td {
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce table.woocommerce-product-attributes th {
    width: 10rem;
    padding-right: var(--spacing-md);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
}

.woocommerce table.woocommerce-product-attributes td p {
    margin: 0;
}

/* Reviews */
.woocommerce #reviews #comments ol.commentlist {
    margin: 0 0 var(--spacing-xl);
    padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li {
    margin-bottom: var(--spacing-lg);
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
    width: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--radius-full);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    margin-left: 60px;
    padding: 1.25rem 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta strong {
    color: var(--color-heading);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description > :last-child {
    margin-bottom: 0;
}

.woocommerce #review_form #respond {
    padding: 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce #review_form #respond .comment-reply-title {
    display: block;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.woocommerce #review_form #respond p {
    margin-bottom: var(--spacing-md);
}

.woocommerce #review_form #respond label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.woocommerce #review_form #respond .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.woocommerce #review_form #respond .comment-form-cookies-consent label {
    margin: 0;
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
}

.woocommerce #review_form #respond .comment-form-cookies-consent input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
}

/* Related and upsells */
.woocommerce div.product section.related,
.woocommerce div.product section.upsells {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
}

.woocommerce div.product section.related > h2,
.woocommerce div.product section.upsells > h2 {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-3xl);
}

/* ==========================================================================
   Forms shared by checkout, account and the review form
   ========================================================================== */

.woocommerce form .form-row {
    margin-bottom: 1.25rem;
    padding: 0;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: var(--color-heading);
}

.woocommerce form .form-row .required {
    color: var(--color-error);
    text-decoration: none;
}

.woocommerce form .form-row .optional {
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .woocommerce-form input.input-text,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"],
.woocommerce #review_form #respond textarea,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-address-fields input.input-text {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.6875rem 0.875rem;
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    line-height: 1.4;
    color: var(--color-input-text);
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    appearance: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder {
    color: var(--color-input-placeholder);
    opacity: 1;
}

.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row textarea:hover,
.woocommerce form .form-row select:hover {
    border-color: var(--color-border-strong);
}

.woocommerce form .form-row input.input-text:focus-visible,
.woocommerce form .form-row textarea:focus-visible,
.woocommerce form .form-row select:focus-visible,
.woocommerce .woocommerce-form input.input-text:focus-visible,
.woocommerce #review_form #respond textarea:focus-visible,
.woocommerce #review_form #respond input:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.woocommerce form .form-row textarea,
.woocommerce #review_form #respond textarea {
    min-height: 8rem;
    line-height: 1.55;
    resize: vertical;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border-color: var(--color-error);
}

.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select {
    border-color: var(--color-success);
}

.woocommerce form .form-row .woocommerce-input-wrapper {
    display: block;
}

/* Checkboxes and radios in forms */
.woocommerce form .form-row .input-checkbox,
.woocommerce form .form-row .input-radio,
.woocommerce .woocommerce-form__input-checkbox,
.woocommerce #payment ul.payment_methods li input[type="radio"],
.woocommerce #shipping_method li input[type="radio"],
.woocommerce .woocommerce-shipping-methods input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0 0.5rem 0 0;
    vertical-align: middle;
    accent-color: var(--color-primary);
}

.woocommerce form .form-row .woocommerce-form__label-for-checkbox,
.woocommerce .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
}

/* Checkout and account selects stand as tall as the text inputs beside them */
.woocommerce form .form-row select,
.woocommerce select#billing_country,
.woocommerce select#shipping_country,
.woocommerce select#billing_state,
.woocommerce select#shipping_state,
.woocommerce .select2-container .select2-selection--single {
    min-height: 48px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
}

/* ==========================================================================
   Tables: cart, order review, account orders
   ========================================================================== */

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
    width: 100%;
    margin: 0 0 var(--spacing-xl);
    font-size: 0.9375rem;
    text-align: left;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 0.875rem 1rem;
    line-height: 1.5;
    vertical-align: middle;
    border: 0;
    border-top: 1px solid var(--color-border-light);
}

.woocommerce table.shop_table thead th {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
    background-color: var(--color-bg-light);
    border-top: 0;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot th {
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    font-weight: var(--font-weight-normal);
    border-top: 1px solid var(--color-border);
}

.woocommerce table.shop_table tfoot .order-total th,
.woocommerce table.shop_table tfoot .order-total td,
.woocommerce table.shop_table .cart-subtotal th,
.woocommerce table.shop_table .order-total td .amount {
    font-weight: var(--font-weight-semibold);
}

.woocommerce table.shop_table .order-total td .amount {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-heading);
}

.woocommerce table.shop_table .product-name a {
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.woocommerce table.shop_table .product-name a:hover {
    color: var(--color-link);
}

.woocommerce table.shop_table .product-thumbnail img,
.woocommerce-cart table.cart img {
    width: 64px;
    border-radius: var(--radius-md);
}

.woocommerce table.shop_table .variation {
    margin: 0.25rem 0 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.woocommerce table.shop_table .variation dt,
.woocommerce table.shop_table .variation dd {
    display: inline;
    margin: 0;
    font-weight: var(--font-weight-normal);
}

.woocommerce table.shop_table .variation dd p {
    display: inline;
    margin: 0;
}

/* Remove line item: WooCommerce forces red with !important */
.woocommerce a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.375rem;
    font-weight: var(--font-weight-normal);
    line-height: 1;
    color: var(--color-text-muted) !important;
    background: none;
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.woocommerce a.remove:hover,
.woocommerce a.remove:focus-visible {
    color: var(--color-text-white) !important;
    background-color: var(--color-error);
    outline: none;
}

/* Phones: WooCommerce stacks rows into cards with data-title labels */
@media (max-width: 767.98px) {
    .woocommerce table.shop_table_responsive tr,
    .woocommerce-page table.shop_table_responsive tr {
        display: block;
        padding: 0.5rem 0;
        border-top: 1px solid var(--color-border-light);
    }

    .woocommerce table.shop_table_responsive tr:first-child {
        border-top: 0;
    }

    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-md);
        padding: 0.5rem 1rem;
        text-align: right;
        border: 0;
        background: none;
    }

    .woocommerce table.shop_table_responsive tr td::before,
    .woocommerce-page table.shop_table_responsive tr td::before {
        float: none;
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        color: var(--color-text-muted);
    }

    .woocommerce table.shop_table_responsive tr td.product-remove,
    .woocommerce table.shop_table_responsive tr td.actions {
        display: block;
        text-align: left;
    }

    .woocommerce table.shop_table_responsive tr td.product-remove::before {
        display: none;
    }

    .woocommerce table.shop_table_responsive tr:nth-child(2n) td,
    .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
        background-color: transparent;
    }
}

/* ==========================================================================
   Cart (classic shortcode)
   ========================================================================== */

.woocommerce-cart table.cart td.actions {
    padding: 1rem;
    background-color: var(--color-bg-light);
}

.woocommerce-cart table.cart td.actions .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    float: none;
}

.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-page table.cart td.actions .coupon .input-text {
    flex: 1 1 10rem;
    width: auto;
    min-width: 0;
    margin: 0;
}

.woocommerce-cart table.cart td.actions .coupon .button {
    flex: none;
}

@media (min-width: 768px) {
    .woocommerce-cart table.cart td.actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-md);
    }

    .woocommerce-cart table.cart td.actions .coupon {
        flex: 0 1 24rem;
    }

    .woocommerce-cart table.cart td.actions > .button {
        float: none;
        margin-left: auto;
    }
}

.woocommerce-cart .cart-collaterals {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-xl);
}

.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after {
    display: none;
}

@media (min-width: 1024px) {
    .woocommerce-cart .cart-collaterals {
        grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        grid-column: 2;
    }
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    float: none;
    width: auto;
    padding: 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce-cart .cart-collaterals .cart_totals > h2 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
    margin-bottom: var(--spacing-lg);
    border: 0;
    border-radius: 0;
    background: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border-light);
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:first-child th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:first-child td {
    border-top: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
    width: auto;
    padding-right: var(--spacing-md);
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    text-align: right;
}

.woocommerce-cart .cart-collaterals .cross-sells > h2 {
    font-size: var(--font-size-2xl);
}

.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0;
}

.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .woocommerce-shipping-calculator {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.woocommerce-cart .woocommerce-shipping-calculator .shipping-calculator-button {
    color: var(--color-link);
    font-weight: var(--font-weight-medium);
}

/* Empty cart */
.woocommerce .cart-empty.woocommerce-info {
    margin-bottom: var(--spacing-lg);
}

.woocommerce .return-to-shop {
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   Cart and checkout blocks
   --------------------------------------------------------------------------
   The block versions mostly inherit the theme's fonts. Buttons are handled
   above; this adjusts panels, fields, totals and the quantity stepper.
   ========================================================================== */

.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-components-order-summary__button-text,
.wc-block-cart__totals-title,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-product-name {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

.wc-block-cart__totals-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    text-transform: none;
    letter-spacing: var(--letter-spacing-heading);
}

.wc-block-components-product-name {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

/* Sidebar panels in the cart and checkout blocks */
.wc-block-cart .wc-block-cart__sidebar,
.wc-block-checkout .wc-block-checkout__sidebar {
    padding: 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    padding-right: 0;
}

@media (min-width: 1024px) {
    .wc-block-components-sidebar-layout .wc-block-components-main {
        padding-right: var(--spacing-2xl);
    }
}

.wc-block-components-panel__button,
.wc-block-components-totals-coupon-link {
    color: var(--color-link);
    font-weight: var(--font-weight-medium);
}

.wc-block-components-totals-coupon-link:hover,
.wc-block-components-panel__button:hover {
    color: var(--color-link-hover);
}

/* Fields */
.wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"]),
.wc-block-components-textarea textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-select .components-custom-select-control__button,
.wc-block-components-select .wc-block-components-select__select,
.wc-block-components-form .wc-block-components-text-input input {
    font-family: var(--font-body);
    color: var(--color-input-text);
    background-color: var(--color-input-bg);
    border-color: var(--color-input-border);
    border-radius: var(--radius-md);
}

.wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"]):focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-select .wc-block-components-select__select:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-textarea label {
    font-family: var(--font-body);
    color: var(--color-text-muted);
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    border-color: var(--color-input-border);
    border-radius: var(--radius-xs);
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
    fill: var(--color-text-white);
}

.wc-block-components-radio-control__input:checked {
    border-color: var(--color-primary);
}

.wc-block-components-radio-control__input:checked::before {
    background: var(--color-primary);
}

.wc-block-components-radio-control__input:focus,
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option {
    font-family: var(--font-body);
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: inset 0 0 0 2px var(--color-primary);
    border-radius: var(--radius-md);
}

/* Quantity stepper in the cart block: the same height as the buttons */
.wc-block-components-quantity-selector {
    min-height: 44px;
    margin: 0;
    background-color: var(--color-input-bg);
    border-radius: var(--radius-md);
}

.wc-block-components-quantity-selector::after {
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    opacity: 1;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    min-height: 44px;
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--color-input-text);
    background: transparent;
    border: 0;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    min-width: 36px;
    min-height: 44px;
    color: var(--color-primary);
    opacity: 1;
    cursor: pointer;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
    color: var(--color-primary-hover);
    background-color: var(--color-surface-hover);
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus {
    box-shadow: var(--focus-ring);
    outline: none;
}

.wc-block-cart-item__remove-link,
.wc-block-cart-item__remove-link:hover {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.wc-block-cart-item__remove-link:hover {
    color: var(--color-error);
}

.wc-block-cart-items__row .wc-block-cart-item__image img {
    border-radius: var(--radius-md);
}

.wc-block-components-order-summary-item__image img,
.wc-block-components-order-summary-item__image > img {
    border-radius: var(--radius-sm);
}

.wc-block-components-order-summary-item__quantity {
    color: var(--color-text-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Sale badge in the block carts */
.wc-block-components-sale-badge {
    color: var(--palette-ink);
    background-color: var(--color-accent);
    border: 0;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Mini cart drawer */
.wc-block-mini-cart__drawer .components-modal__content {
    font-family: var(--font-body);
}

.wc-block-mini-cart__title,
.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

.wc-block-mini-cart__footer {
    border-top-color: var(--color-border);
}

.wc-block-mini-cart__footer-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ==========================================================================
   Checkout (classic shortcode)
   ========================================================================== */

.woocommerce-checkout .woocommerce .col2-set {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-xl);
}

.woocommerce-checkout .woocommerce .col2-set::before,
.woocommerce-checkout .woocommerce .col2-set::after {
    display: none;
}

.woocommerce-checkout .woocommerce .col2-set .col-1,
.woocommerce-checkout .woocommerce .col2-set .col-2 {
    float: none;
    width: auto;
}

@media (min-width: 768px) {
    .woocommerce-checkout .woocommerce .col2-set {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .woocommerce-checkout form.checkout.woocommerce-checkout {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: var(--spacing-3xl);
        align-items: start;
    }

    .woocommerce-checkout form.checkout.woocommerce-checkout .col2-set {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr);
    }

    .woocommerce-checkout form.checkout.woocommerce-checkout #order_review_heading,
    .woocommerce-checkout form.checkout.woocommerce-checkout #order_review {
        grid-column: 2;
    }

    .woocommerce-checkout form.checkout.woocommerce-checkout #order_review_heading {
        grid-row: 1;
    }

    .woocommerce-checkout form.checkout.woocommerce-checkout #order_review {
        grid-row: 2;
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
    }

    .woocommerce-checkout form.checkout.woocommerce-checkout .col2-set {
        grid-row: 1 / span 3;
    }
}

.woocommerce-checkout .woocommerce h3,
.woocommerce-checkout #order_review_heading {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    margin-bottom: var(--spacing-xl);
}

.woocommerce-checkout #ship-to-different-address {
    font-size: var(--font-size-md);
}

.woocommerce-checkout #ship-to-different-address label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-medium);
}

.woocommerce-checkout #order_review {
    padding: 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce-checkout #order_review table.shop_table {
    margin-bottom: var(--spacing-lg);
    border: 0;
    border-radius: 0;
    background: none;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
    padding: 0.75rem 0;
    background: none;
}

.woocommerce-checkout #order_review table.shop_table thead th {
    padding-top: 0;
    border-top: 0;
}

.woocommerce-checkout #order_review table.shop_table .product-total,
.woocommerce-checkout #order_review table.shop_table tfoot td {
    text-align: right;
}

.woocommerce-checkout #order_review table.shop_table tfoot th {
    padding-right: var(--spacing-md);
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: none;
    border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    margin: 0 0 var(--spacing-lg);
    padding: 0;
    border-bottom: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 0.5rem;
    padding: 0.875rem 1rem;
    line-height: 1.5;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline;
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.woocommerce-checkout #payment ul.payment_methods li img {
    display: inline-block;
    max-height: 24px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.woocommerce-checkout #payment div.payment_box {
    margin: 0.75rem 0 0;
    padding: 0.875rem 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

.woocommerce-checkout #payment div.payment_box p:last-child {
    margin-bottom: 0;
}

.woocommerce-checkout #payment div.form-row.place-order {
    padding: 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-privacy-policy-text {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
    color: var(--color-text);
}

.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout .woocommerce-terms-and-conditions-link {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Coupon and login prompts above the form */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    margin-bottom: var(--spacing-md);
}

.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout form.woocommerce-form-login {
    margin-bottom: var(--spacing-xl);
    padding: 1.25rem 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce-checkout form.checkout_coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--spacing-sm) var(--spacing-md);
}

.woocommerce-checkout form.checkout_coupon p:first-child {
    flex-basis: 100%;
    margin-bottom: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.woocommerce-checkout form.checkout_coupon .form-row {
    float: none;
    width: auto;
    margin: 0;
}

.woocommerce-checkout form.checkout_coupon .form-row-first {
    flex: 1 1 12rem;
}

/* Thin "shipping method" list on the classic checkout */
.woocommerce ul#shipping_method,
.woocommerce .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul#shipping_method li,
.woocommerce .woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.375rem;
    padding: 0;
    text-indent: 0;
}

/* ==========================================================================
   Account
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: auto;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
        display: grid;
        grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
        gap: var(--spacing-2xl);
        align-items: start;
    }

    .woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper,
    .woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-message,
    .woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-info,
    .woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-error {
        grid-column: 1 / -1;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0 0 var(--spacing-xl);
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
        margin-bottom: 0;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    color: var(--color-primary);
    background-color: var(--color-surface-hover);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    background-color: var(--color-primary-light);
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content legend {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
    margin: var(--spacing-xl) 0;
    padding: 0;
    border: 0;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
    margin-bottom: var(--spacing-md);
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.woocommerce-account table.my_account_orders td.woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* Addresses */
.woocommerce-account .woocommerce-Addresses {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-lg);
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
    display: none;
}

@media (min-width: 640px) {
    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
    float: none;
    width: auto;
    max-width: none;
    padding: 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce-account .woocommerce-Address-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
    margin: 0;
    font-size: var(--font-size-xl);
}

.woocommerce-account .woocommerce-Address-title .edit {
    float: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-link);
}

.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Login, register and lost password forms */
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.woocommerce-ResetPassword.lost_reset_password {
    max-width: 30rem;
    margin: 0 0 var(--spacing-xl);
    padding: 1.5rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce form.login .form-row,
.woocommerce form.register .form-row {
    float: none;
    width: auto;
}

.woocommerce form.login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-normal);
}

.woocommerce form.login .lost_password {
    margin: var(--spacing-md) 0 0;
    font-size: var(--font-size-sm);
}

.woocommerce form.login .lost_password a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.woocommerce .u-columns.col2-set#customer_login {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-xl);
}

.woocommerce .u-columns.col2-set#customer_login::before,
.woocommerce .u-columns.col2-set#customer_login::after {
    display: none;
}

.woocommerce .u-columns.col2-set#customer_login .u-column1,
.woocommerce .u-columns.col2-set#customer_login .u-column2 {
    float: none;
    width: auto;
}

@media (min-width: 768px) {
    .woocommerce .u-columns.col2-set#customer_login {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.woocommerce .u-columns.col2-set#customer_login h2 {
    font-size: var(--font-size-2xl);
}

.woocommerce .woocommerce-password-strength {
    padding: 0.375rem 0;
    font-size: var(--font-size-sm);
    text-align: left;
}

.woocommerce .woocommerce-password-strength.strong {
    color: var(--color-success);
}

.woocommerce .woocommerce-password-strength.short,
.woocommerce .woocommerce-password-strength.bad {
    color: var(--color-error);
}

.woocommerce .woocommerce-password-strength.good {
    color: var(--color-warning);
}

.woocommerce .woocommerce-password-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.woocommerce .show-password-input {
    color: var(--color-text-muted);
}

/* ==========================================================================
   Order received and order details
   ========================================================================== */

.woocommerce-order .woocommerce-thankyou-order-received,
.woocommerce-order .woocommerce-notice--success {
    margin-bottom: var(--spacing-lg);
    padding: 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--color-heading);
    background: none;
    border: 0;
}

.woocommerce-order .woocommerce-notice--success::before {
    display: none;
}

.woocommerce ul.order_details,
.woocommerce ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: var(--spacing-md) var(--spacing-lg);
    margin: 0 0 var(--spacing-2xl);
    padding: 1.5rem;
    list-style: none;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after {
    display: none;
}

.woocommerce ul.order_details li {
    float: none;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: 0;
}

.woocommerce ul.order_details li strong {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    letter-spacing: var(--letter-spacing-heading);
    text-transform: none;
    color: var(--color-heading);
}

.woocommerce .woocommerce-order-details,
.woocommerce .woocommerce-customer-details {
    margin-bottom: var(--spacing-2xl);
}

.woocommerce .woocommerce-order-details__title,
.woocommerce .woocommerce-column__title,
.woocommerce .woocommerce-customer-details h2 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
}

.woocommerce .woocommerce-customer-details address {
    padding: 1.25rem 1.5rem;
    font-style: normal;
    line-height: 1.6;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email {
    margin-top: 0.5rem;
    padding-left: 0;
}

.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email::before {
    display: none;
}

/* Block based order confirmation */
.wc-block-order-confirmation-status {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    color: var(--color-heading);
}

.wc-block-order-confirmation-summary-list,
.wc-block-order-confirmation-totals-wrapper,
.wc-block-order-confirmation-billing-wrapper,
.wc-block-order-confirmation-shipping-wrapper {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.wc-block-order-confirmation-summary-list {
    padding: 1.25rem 1.5rem;
}

.wc-block-order-confirmation-summary-list-item__key {
    color: var(--color-text-muted);
}

.wc-block-order-confirmation-summary-list-item__value {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

.wc-block-order-confirmation-totals-wrapper,
.wc-block-order-confirmation-billing-wrapper,
.wc-block-order-confirmation-shipping-wrapper {
    padding: 1.5rem;
}

.wc-block-order-confirmation-totals table {
    border: 0;
}

/* ==========================================================================
   Reduced motion
   --------------------------------------------------------------------------
   style.css already zeroes every transition and animation. This removes
   the movements that would still jump without a transition.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .woocommerce ul.products li.product:hover,
    .woocommerce-page ul.products li.product:hover {
        transform: none;
    }

    .woocommerce :is(a, button, input).button:is(.alt, :not(.alt)):active,
    .wc-block-components-button:not(.is-link):active {
        transform: none;
    }

    .woocommerce a.button.loading:is(.alt, :not(.alt))::after {
        animation: none;
        border-right-color: currentColor;
        opacity: 0.6;
    }

    .shop-sidebar {
        scroll-behavior: auto;
    }
}
