/**
 * Storefront styles.
 *
 * Theme-adaptive. The shop does NOT impose a palette: its surfaces and borders
 * are drawn from the current text colour, so inside a light theme it is light,
 * inside a dark theme it is dark, and it inherits the site's font, links and
 * spacing. A colour scheme can be forced in Shop settings; otherwise the
 * semantic colours (stock levels, warnings) adjust themselves for contrast.
 *
 * Scoped to the shop's own blocks so it never leaks into the theme. The
 * management screens keep zbm-admin.css.
 */

.zbm-shop,
.zbm-product,
.zbm-cart,
.zbm-checkout,
.zbm-checkout-return,
.zbm-account,
.zbm-account-orders,
.zbm-account-order {
    /* The only fixed colours are the accent and the glass-dark ink used by
       buttons, where the pairing is deliberate. Everything else is derived. */
    --zbm-amber: #e0a33e;
    --zbm-ink: #0a0c0b;

    --zbm-surface: color-mix(in srgb, currentColor 6%, transparent);
    --zbm-surface-strong: color-mix(in srgb, currentColor 10%, transparent);
    --zbm-border: color-mix(in srgb, currentColor 18%, transparent);
    --zbm-muted: color-mix(in srgb, currentColor 62%, transparent);

    --zbm-ok: #15803d;
    --zbm-low: #b45309;
    --zbm-out: #b91c1c;

    color: inherit;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.55;
}

/* Surfaces and borders are mixed from the current text colour, which needs
   color-mix(). Where it is missing the same layers are drawn in a neutral
   grey that reads on a light and a dark surface, so the cards do not lose
   their backgrounds and their borders entirely. */
@supports not (color: color-mix(in srgb, red, red)) {
    .zbm-shop,
    .zbm-product,
    .zbm-cart,
    .zbm-checkout,
    .zbm-checkout-return,
    .zbm-account,
    .zbm-account-orders,
    .zbm-account-order {
        --zbm-surface: rgba(127, 127, 127, 0.08);
        --zbm-surface-strong: rgba(127, 127, 127, 0.14);
        --zbm-border: rgba(127, 127, 127, 0.32);
        --zbm-muted: rgba(127, 127, 127, 0.95);
    }
}

/* Semantic colours are chosen by what the SHOP is rendered on, never by the
   operating system's preference. A light site opened on a machine set to dark
   must not turn "In stock" into pale mint on white; the dark palette is
   applied only where a dark theme actually announces itself, below. */

/* Themes that signal dark mode with a body class or an attribute. Preluence
   News uses [data-color-scheme="dark"] on the root; the others are common
   enough to cover. */
[data-color-scheme="dark"] .zbm-shop,
[data-color-scheme="dark"] .zbm-product,
[data-color-scheme="dark"] .zbm-cart,
[data-color-scheme="dark"] .zbm-checkout,
[data-color-scheme="dark"] .zbm-checkout-return,
[data-color-scheme="dark"] .zbm-account,
[data-color-scheme="dark"] .zbm-account-orders,
[data-color-scheme="dark"] .zbm-account-order,
body.dark .zbm-shop, body.dark .zbm-product, body.dark .zbm-cart,
body.dark .zbm-checkout, body.dark .zbm-checkout-return, body.dark .zbm-account,
body.dark .zbm-account-orders, body.dark .zbm-account-order,
body.dark-mode .zbm-shop, body.dark-mode .zbm-product, body.dark-mode .zbm-cart,
body.dark-mode .zbm-checkout, body.dark-mode .zbm-checkout-return, body.dark-mode .zbm-account,
body.dark-mode .zbm-account-orders, body.dark-mode .zbm-account-order,
body.dark-theme .zbm-shop, body.dark-theme .zbm-product,
body.dark-theme .zbm-cart, body.dark-theme .zbm-checkout,
[data-theme="dark"] .zbm-shop, [data-theme="dark"] .zbm-product,
[data-theme="dark"] .zbm-cart, [data-theme="dark"] .zbm-checkout {
    --zbm-ok: #7fe3c0;
    --zbm-low: #e0a33e;
    --zbm-out: #f87171;
}

/* Our own full-page routes (a product, the cart when there is no page) render
   outside the theme's container, so they carry their own gutters. The width is
   fluid — 100% of the space available, never a fixed pixel cap — so the shop
   fills the viewport on any screen. */
.zbm-route .zbm-shop,
.zbm-route .zbm-product,
.zbm-route .zbm-cart,
.zbm-route .zbm-checkout,
.zbm-route .zbm-checkout-return,
.zbm-route .zbm-account,
.zbm-route .zbm-account-orders,
.zbm-route .zbm-account-order {
    width: 100%;
    max-width: none;
    padding-inline: var(--pn-gutter, clamp(1rem, 3vw, 1.5rem));
}

/* Forced schemes from Shop settings. Light sets an explicit ink; dark sets an
   explicit bone, because forcing a scheme while inheriting the opposite
   theme's text colour would be unreadable. */
.zbm-scheme-light .zbm-shop,
.zbm-scheme-light .zbm-product,
.zbm-scheme-light .zbm-cart,
.zbm-scheme-light .zbm-checkout,
.zbm-scheme-light .zbm-checkout-return,
.zbm-scheme-light .zbm-account,
.zbm-scheme-light .zbm-account-orders,
.zbm-scheme-light .zbm-account-order {
    color: #1a1a1a;
}

.zbm-scheme-dark .zbm-shop,
.zbm-scheme-dark .zbm-product,
.zbm-scheme-dark .zbm-cart,
.zbm-scheme-dark .zbm-checkout,
.zbm-scheme-dark .zbm-checkout-return,
.zbm-scheme-dark .zbm-account,
.zbm-scheme-dark .zbm-account-orders,
.zbm-scheme-dark .zbm-account-order {
    color: #f2efe6;
    --zbm-ok: #7fe3c0;
    --zbm-low: #e0a33e;
    --zbm-out: #f87171;
}

/* Full-page mode: a standalone document. The blocks fill it; there is no theme
   header or footer to share the space with. */
.zbm-standalone {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    padding-block: clamp(1rem, 3vw, 2rem);
    padding-inline: var(--pn-gutter, clamp(1rem, 3vw, 1.5rem));
}

.zbm-standalone > .zbm-shop,
.zbm-standalone > .zbm-product,
.zbm-standalone > .zbm-cart,
.zbm-standalone > .zbm-checkout,
.zbm-standalone > .zbm-checkout-return,
.zbm-standalone > .zbm-account,
.zbm-standalone > .zbm-account-orders,
.zbm-standalone > .zbm-account-order {
    width: 100%;
    max-width: none;
    margin-block: 0;
    padding-inline: 0;
}

.zbm-standalone-back {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    opacity: 0.75;
}

.zbm-standalone-back:hover {
    opacity: 1;
}

.zbm-shop a,
.zbm-product a {
    color: inherit;
}

.zbm-shop-hero h1,
.zbm-product-title,
.zbm-cart h1,
.zbm-checkout h1,
.zbm-checkout-return h1,
.zbm-account h1,
.zbm-account-orders h1,
.zbm-account-order h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

.zbm-shop-lead {
    color: var(--zbm-muted);
    margin: 0 0 1.5rem;
}

.zbm-shop-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--zbm-surface);
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
}

.zbm-shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.zbm-shop-field input,
.zbm-shop-field select,
.zbm-product-order input[type="number"] {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--zbm-border);
    background: transparent;
    color: inherit;
    font: inherit;
}

.zbm-shop-button {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--zbm-amber) 60%, transparent);
    background: var(--zbm-amber);
    color: var(--zbm-ink);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.zbm-shop-button-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
}

/* A secondary action beside a primary button - "View invoice" next to
   "View your order". */
.zbm-shop-button--quiet {
    margin-left: 0.5rem;
    border-color: var(--zbm-border);
    background: transparent;
    color: inherit;
}

.zbm-button-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.zbm-button-quiet {
    background: transparent;
    color: inherit;
    border-color: var(--zbm-border);
}

.zbm-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 1.25rem;
    width: 100%;
}

.zbm-card {
    display: flex;
    flex-direction: column;
    background: var(--zbm-surface);
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.zbm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.zbm-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--zbm-surface-strong);
}

.zbm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zbm-card-noimage,
.zbm-product-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 160px;
    color: color-mix(in srgb, currentColor 32%, transparent);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, currentColor 10%, transparent),
        color-mix(in srgb, currentColor 3%, transparent)
    );
}

.zbm-card-flag {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: var(--zbm-amber);
    color: var(--zbm-ink);
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.zbm-card-body {
    padding: 0.9rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.zbm-card-title {
    font-size: 1.02rem;
    line-height: 1.3;
    margin: 0;
}

.zbm-card-price {
    margin: 0;
    font-size: 1.1rem;
}

.zbm-from {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--zbm-muted);
}

.zbm-card-sizes,
.zbm-card-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--zbm-muted);
}

.zbm-card-stock,
.zbm-product-stock {
    margin: 0;
    font-size: 0.82rem;
}

.zbm-stock-ok { color: var(--zbm-ok); }
.zbm-stock-low { color: var(--zbm-low); }
.zbm-stock-out { color: var(--zbm-out); }

/* The facts row: category, sizes and stock as quiet chips, so they read as one
   line of metadata rather than three stacked paragraphs. */
.zbm-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
}

.zbm-card-tag {
    display: inline-block;
    max-width: 100%;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--zbm-border);
    border-radius: 999px;
    background: var(--zbm-surface);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--zbm-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zbm-card-tag--stock {
    font-weight: 600;
}

.zbm-card-tag--stock.zbm-stock-ok {
    color: var(--zbm-ok);
    border-color: color-mix(in srgb, var(--zbm-ok) 32%, transparent);
    background: color-mix(in srgb, var(--zbm-ok) 12%, transparent);
}

.zbm-card-tag--stock.zbm-stock-low {
    color: var(--zbm-low);
    border-color: color-mix(in srgb, var(--zbm-low) 32%, transparent);
    background: color-mix(in srgb, var(--zbm-low) 12%, transparent);
}

.zbm-card-tag--stock.zbm-stock-out {
    color: var(--zbm-out);
    border-color: color-mix(in srgb, var(--zbm-out) 32%, transparent);
    background: color-mix(in srgb, var(--zbm-out) 12%, transparent);
}

.zbm-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
}

@media (max-width: 760px) {
    .zbm-product-layout {
        grid-template-columns: 1fr;
    }
}

.zbm-product-image {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.zbm-product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.zbm-gallery-thumb {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.zbm-gallery-thumb.is-active,
.zbm-gallery-thumb:hover,
.zbm-gallery-thumb:focus-visible {
    border-color: var(--zbm-amber);
}

.zbm-gallery-thumb img {
    width: 100%;
    border-radius: 8px;
}

.zbm-product-sizes {
    border: 0;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zbm-size-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    cursor: pointer;
}

.zbm-size-option:hover {
    border-color: var(--zbm-amber);
}

.zbm-size-price {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.zbm-product-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.zbm-product-live-price {
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    margin: 0.5rem 0 1rem;
}

.zbm-live-total {
    font-size: 0.95rem;
    color: var(--zbm-muted);
    margin-left: 0.5rem;
}

.zbm-product-description {
    margin-top: 1.5rem;
}

.zbm-pour {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.zbm-pour-canvas {
    width: 160px;
    height: 240px;
    display: block;
    cursor: ns-resize;
    touch-action: none;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
}

.zbm-pour-static .zbm-pour-canvas {
    display: none;
}

.zbm-pour-caption {
    font-size: 0.8rem;
    color: var(--zbm-muted);
}

.zbm-shop-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.zbm-shop-empty {
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--zbm-border);
    border-radius: 14px;
    color: var(--zbm-muted);
}

.zbm-muted {
    color: var(--zbm-muted);
}

.zbm-shop-notice {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--zbm-border);
    background: var(--zbm-surface);
}

.zbm-cart-table,
.zbm-table {
    width: 100%;
    border-collapse: collapse;
}

.zbm-cart-table th,
.zbm-cart-table td,
.zbm-table th,
.zbm-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--zbm-border);
    text-align: left;
}

.zbm-cart-totals {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
    max-width: 420px;
    margin: 1.5rem 0;
}

.zbm-cart-totals dt {
    color: var(--zbm-muted);
}

.zbm-cart-totals dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.zbm-cart-grand {
    font-weight: 700;
    font-size: 1.1rem;
}

.zbm-cart-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.zbm-cart-qty input {
    width: 5rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--zbm-border);
    border-radius: 8px;
    background: transparent;
    color: inherit;
}

.zbm-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
}

@media (max-width: 820px) {
    .zbm-checkout-layout {
        grid-template-columns: 1fr;
    }
}

.zbm-checkout-summary {
    background: var(--zbm-surface);
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    padding: 1.25rem;
    align-self: start;
}

.zbm-checkout-lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.zbm-checkout-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--zbm-border);
}

.zbm-checkout-methods {
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zbm-account-links {
    list-style: none;
    padding: 0;
}

.zbm-account-links li {
    margin-bottom: 0.4rem;
}

.zbm-chip {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--zbm-border);
    font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
    .zbm-card,
    .zbm-card:hover {
        transition: none;
        transform: none;
    }
}

/* ------------------------------------------------------------------ *
 * Product and category widgets.
 *
 * These render on any page — a home page, a landing page, a sidebar — so they
 * are OUTSIDE the shop's own block and carry the same tokens themselves. Once
 * more: surfaces are drawn from the current text colour, so a widget is light on
 * a light page and dark on a dark one without being told which.
 * ------------------------------------------------------------------ */

.zbm-widget {
    --zbm-amber: #e0a33e;
    --zbm-ink: #0a0c0b;
    --zbm-surface: color-mix(in srgb, currentColor 6%, transparent);
    --zbm-surface-strong: color-mix(in srgb, currentColor 10%, transparent);
    --zbm-border: color-mix(in srgb, currentColor 18%, transparent);
    --zbm-muted: color-mix(in srgb, currentColor 62%, transparent);
    --zbm-ok: #15803d;
    --zbm-low: #b45309;
    --zbm-out: #b91c1c;
    color: inherit;
    margin: 2rem 0;
}

/* The same colour-mix() fallback the shop block carries. It is defined AFTER
   the widget token block on purpose: a custom property keeps its token stream
   even when the value is unsupported, so an earlier fallback would be
   overwritten. Without this a widget lost its surfaces and borders on a
   browser that has no color-mix(). */
@supports not (color: color-mix(in srgb, red, red)) {
    .zbm-widget {
        --zbm-surface: rgba(127, 127, 127, 0.08);
        --zbm-surface-strong: rgba(127, 127, 127, 0.14);
        --zbm-border: rgba(127, 127, 127, 0.32);
        --zbm-muted: rgba(127, 127, 127, 0.95);
    }
}

/* Semantic colours follow the surface the widget is rendered on, never the
   operating system's preference — a light page on a machine set to dark must
   not turn "In stock" into pale mint on white. The dark palette is applied
   only where a dark theme actually announces itself, below. (This replaces the
   old prefers-color-scheme override, which disagreed with the shop block.) */
[data-color-scheme="dark"] .zbm-widget,
body.dark .zbm-widget,
body.dark-mode .zbm-widget,
body.dark-theme .zbm-widget,
[data-theme="dark"] .zbm-widget {
    --zbm-ok: #7fe3c0;
    --zbm-low: #e0a33e;
    --zbm-out: #f87171;
}

.zbm-scheme-light .zbm-widget {
    color: #1a1a1a;
}

.zbm-scheme-dark .zbm-widget {
    color: #f2efe6;
    --zbm-ok: #7fe3c0;
    --zbm-low: #e0a33e;
    --zbm-out: #f87171;
}

.zbm-widget-title {
    margin: 0 0 1rem;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

/* A search-and-filter bar above a product grid or list: the search grows, the
   selects sit beside it and one button applies them. One row on a wide screen,
   a tidy stack on a narrow one. */
.zbm-widget-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    padding: 0.7rem;
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    background: var(--zbm-surface);
}

.zbm-widget-field {
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
}

.zbm-widget-field--search {
    flex: 1 1 15rem;
}

.zbm-widget-field input,
.zbm-widget-field select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--zbm-border);
    border-radius: 10px;
    background: var(--zbm-surface-strong);
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
}

.zbm-widget-field input::placeholder {
    color: var(--zbm-muted);
}

.zbm-widget-toolbar .zbm-shop-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.zbm-widget-empty {
    margin: 0.5rem 0 0;
    padding: 1.4rem;
    border: 1px dashed var(--zbm-border);
    border-radius: 12px;
    text-align: center;
    color: var(--zbm-muted);
}

.zbm-widget-grid {
    display: grid;
    grid-template-columns: repeat(var(--zbm-cols-mobile, 2), minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 700px) {
    .zbm-widget-grid {
        grid-template-columns: repeat(var(--zbm-cols-tablet, 3), minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .zbm-widget-grid {
        grid-template-columns: repeat(var(--zbm-cols, 4), minmax(0, 1fr));
    }
}

.zbm-widget .zbm-card-media {
    aspect-ratio: var(--zbm-ratio, 4 / 3);
}

.zbm-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.zbm-card-actions form {
    margin: 0;
}

/* The plain actions sit on one row; the buy row fills the width beneath them,
   so a size picker and its button share a line instead of stacking into a
   third line. Scoped under .zbm-card-actions so it outranks the generic
   .zbm-cart-form--sized flex rule that follows. */
.zbm-card-actions-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.zbm-card-actions-main .zbm-wishlist-form {
    margin-inline-start: auto;
}

.zbm-card-actions .zbm-card-buy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: stretch;
    width: 100%;
}

.zbm-card-actions .zbm-card-buy .zbm-cart-size-field {
    flex: 1 1 8rem;
    min-width: 0;
}

.zbm-card-actions .zbm-card-buy .zbm-cart-size-select {
    width: 100%;
    height: 100%;
}

.zbm-card-actions .zbm-card-buy .zbm-card-add {
    flex: 1 1 auto;
    white-space: nowrap;
}

.zbm-card-flag-new {
    background: var(--zbm-ok);
    color: #ffffff;
}

/* --- List layout ---------------------------------------------------- */

.zbm-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zbm-list-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: var(--zbm-surface);
}

.zbm-list-item-media {
    flex: 0 0 84px;
    width: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    background: var(--zbm-surface-strong);
}

.zbm-list-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zbm-list-item-body {
    min-width: 0;
}

.zbm-list-item-title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.zbm-list-item-price {
    margin: 0.2rem 0 0;
    font-weight: 700;
}

/* --- Carousel ------------------------------------------------------- */

.zbm-carousel {
    position: relative;
}

/* The window the track scrolls inside. Clips the strip horizontally and gives
   the arrows a box to sit in; the little vertical padding leaves room for a
   tile's hover lift so it is not shaved off at the top. */
.zbm-carousel-viewport {
    position: relative;
    overflow: hidden;
    padding-block: 4px;
    border-radius: 16px;
}

.zbm-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0.1rem 1rem;
    scrollbar-width: thin;
    cursor: grab;
}

.zbm-carousel-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.zbm-carousel-slide {
    flex: 0 0 calc(100% / var(--zbm-cols-mobile, 2));
    scroll-snap-align: start;
    min-width: 0;
}

@media (min-width: 700px) {
    .zbm-carousel-slide {
        flex-basis: calc(100% / var(--zbm-cols-tablet, 3));
    }
}

@media (min-width: 1024px) {
    .zbm-carousel-slide {
        flex-basis: calc(100% / var(--zbm-cols, 4));
    }
}

.zbm-carousel-large {
    --zbm-cols: 2;
    --zbm-cols-tablet: 2;
    --zbm-cols-mobile: 1;
}

.zbm-carousel-large .zbm-card-media {
    aspect-ratio: 16 / 10;
}

.zbm-carousel-arrow {
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--zbm-border);
    background: var(--zbm-surface-strong);
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.zbm-carousel-prev {
    left: -6px;
}

.zbm-carousel-next {
    right: -6px;
}

.zbm-carousel-arrow:hover {
    background: var(--zbm-amber);
    color: var(--zbm-ink);
}

/* --- Categories ----------------------------------------------------- */

.zbm-category-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(var(--zbm-cols-mobile, 2), minmax(0, 1fr));
}

@media (min-width: 700px) {
    .zbm-category-grid {
        grid-template-columns: repeat(var(--zbm-cols-tablet, 3), minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .zbm-category-grid {
        grid-template-columns: repeat(var(--zbm-cols, 4), minmax(0, 1fr));
    }
}

.zbm-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    min-height: 152px;
    padding: 1.4rem 1.4rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--zbm-border);
    background: var(--zbm-surface);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

/* A hairline of accent that grows down the edge on hover: the one moment of
   colour, and it says "this is a door". */
.zbm-category-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--zbm-amber);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 220ms ease;
}

.zbm-category-card:hover,
.zbm-category-card:focus-visible {
    border-color: color-mix(in srgb, var(--zbm-amber) 55%, var(--zbm-border));
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -20px color-mix(in srgb, currentColor 55%, transparent);
}

.zbm-category-card:hover::before,
.zbm-category-card:focus-visible::before {
    transform: scaleY(1);
}

.zbm-category-name {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.zbm-category-desc {
    color: var(--zbm-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.zbm-category-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.9rem;
}

.zbm-category-count {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zbm-amber) 16%, transparent);
    color: color-mix(in srgb, currentColor 80%, transparent);
    font-size: 0.75rem;
    font-weight: 600;
}

.zbm-category-go {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.35;
    transition: transform 200ms ease, opacity 200ms ease;
}

.zbm-category-card:hover .zbm-category-go,
.zbm-category-card:focus-visible .zbm-category-go {
    opacity: 1;
    transform: translateX(3px);
}

/* --- Category list and pills --------------------------------------- */

.zbm-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zbm-category-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: var(--zbm-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.zbm-category-row:hover,
.zbm-category-row:focus-visible {
    border-color: color-mix(in srgb, var(--zbm-amber) 55%, var(--zbm-border));
    background: color-mix(in srgb, var(--zbm-amber) 8%, var(--zbm-surface));
    transform: translateX(3px);
}

.zbm-category-row-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.zbm-category-row .zbm-category-go {
    opacity: 0.4;
}

.zbm-category-row:hover .zbm-category-go,
.zbm-category-row:focus-visible .zbm-category-go {
    opacity: 1;
    transform: translateX(3px);
}

.zbm-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zbm-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--zbm-border);
    border-radius: 999px;
    background: var(--zbm-surface);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.zbm-category-pill:hover,
.zbm-category-pill:focus-visible {
    border-color: color-mix(in srgb, var(--zbm-amber) 55%, var(--zbm-border));
    background: color-mix(in srgb, var(--zbm-amber) 12%, var(--zbm-surface));
    transform: translateY(-2px);
}

.zbm-category-pill-count {
    padding: 0 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zbm-amber) 20%, transparent);
    color: color-mix(in srgb, currentColor 80%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* --- Category image -------------------------------------------------- */

/* The image bleeds to the tile's edges; the card's radius and hidden overflow
   clip its corners, so the tile still reads as one rounded shape. */
.zbm-category-thumb {
    display: block;
    margin: -1.4rem -1.4rem 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--zbm-surface-strong);
}

.zbm-category-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zbm-category-row-thumb {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--zbm-surface-strong);
}

.zbm-category-row-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Category marquee: a continuous, seamless slider ----------------- */

.zbm-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.zbm-marquee-track {
    display: flex;
    width: max-content;
    animation: zbm-marquee-scroll var(--zbm-marquee-time, 30s) linear infinite;
    will-change: transform;
}

/* Stop the train while it is being read or reached by keyboard. */
.zbm-marquee:hover .zbm-marquee-track,
.zbm-marquee:focus-within .zbm-marquee-track {
    animation-play-state: paused;
}

.zbm-marquee-item {
    flex: 0 0 auto;
    width: min(72vw, 260px);
    margin-inline-end: 1rem;
}

.zbm-marquee-item .zbm-category-card {
    height: 100%;
}

/* Half the track is exactly one copy plus its trailing gap, so the wrap is
   seamless. */
@keyframes zbm-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* A single category has nothing to repeat, so it sits still. */
.zbm-marquee.is-static .zbm-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    gap: 1rem;
}

.zbm-marquee.is-static .zbm-marquee-item {
    flex: 1 1 min(72vw, 260px);
    width: auto;
    margin-inline-end: 0;
}

@media (prefers-reduced-motion: reduce) {
    .zbm-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        gap: 1rem;
    }

    .zbm-marquee-item {
        flex: 1 1 min(72vw, 260px);
        width: auto;
        margin-inline-end: 0;
    }
}

/* --- Quick view ----------------------------------------------------- */

.zbm-modal-open {
    overflow: hidden;
}

.zbm-modal {
    /* The dialog is appended to <body>, outside the shop and widget roots, so
       none of the --zbm-* tokens are inherited. Define the light-panel set
       here, or every button and size option inside loses its background and
       border and the quick view looks unstyled. */
    --zbm-amber: #e0a33e;
    --zbm-ink: #0a0c0b;
    --zbm-surface: rgba(20, 23, 28, 0.05);
    --zbm-surface-strong: rgba(20, 23, 28, 0.09);
    --zbm-border: rgba(20, 23, 28, 0.16);
    --zbm-muted: rgba(20, 23, 28, 0.62);
    --zbm-ok: #15803d;
    --zbm-low: #b45309;
    --zbm-out: #b91c1c;

    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 12, 11, 0.6);
}

/* The overlay is our own surface, so it keeps a definite light panel rather
   than inheriting whatever is behind it. */
.zbm-modal-panel {
    position: relative;
    width: min(880px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 16px;
    background: #ffffff;
    color: #14171c;
}

.zbm-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
}

@media (max-width: 700px) {
    .zbm-modal-body {
        grid-template-columns: 1fr;
    }
}

.zbm-modal-image {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.zbm-modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}

.zbm-modal-price {
    font-size: 1.3rem;
    font-weight: 700;
}

.zbm-modal-info h2 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
}

.zbm-modal-info p {
    margin: 0 0 0.6rem;
}

/* Match the product page's size control — a card grid with an obvious selected
   state — rather than the plainer base row. */
.zbm-modal .zbm-product-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.55rem;
    margin: 0.75rem 0;
    padding: 0;
    border: 0;
}

.zbm-modal .zbm-size-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.05rem 0.5rem;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    background: var(--zbm-surface);
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.zbm-modal .zbm-size-option input {
    grid-row: 1 / span 2;
    margin: 0;
    accent-color: var(--zbm-amber);
}

.zbm-modal .zbm-size-option:hover {
    border-color: var(--zbm-amber);
    transform: translateY(-1px);
}

.zbm-modal .zbm-size-option:has(input:checked) {
    border-color: var(--zbm-amber);
    background: var(--zbm-surface-strong);
    background: color-mix(in srgb, var(--zbm-amber) 12%, #ffffff);
    box-shadow: 0 8px 20px -14px rgba(224, 163, 62, 0.9);
}

.zbm-modal .zbm-size-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.zbm-modal .zbm-size-option input:checked ~ .zbm-size-label {
    color: var(--zbm-amber);
}

.zbm-modal .zbm-size-price {
    margin-left: 0;
    font-size: 0.79rem;
    color: var(--zbm-muted);
}

/* The modal is appended to the body, outside the shop root, so its own action
   row carries the spacing rather than relying on the scoped shop rules. */
.zbm-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.zbm-modal-message {
    min-height: 1.2em;
    color: #15803d;
    font-size: 0.9rem;
}

/* --- Notifications -------------------------------------------------- */

.zbm-badge {
    display: inline-block;
    min-width: 1.4em;
    padding: 0 0.4em;
    margin-left: 0.35em;
    border-radius: 999px;
    background: var(--zbm-amber);
    color: var(--zbm-ink);
    font-size: 0.78em;
    font-weight: 700;
    text-align: center;
}

.zbm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.zbm-notification-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zbm-notification {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: var(--zbm-surface);
}

.zbm-notification.is-unread {
    border-left: 3px solid var(--zbm-amber);
}

.zbm-notification-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.zbm-notification-title {
    font-size: 1rem;
}

.zbm-notification-text,
.zbm-notification-date {
    color: var(--zbm-muted);
    font-size: 0.9rem;
}

.zbm-notification-date {
    font-size: 0.78rem;
}

.zbm-notification-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.zbm-notification-actions form {
    margin: 0;
}

/* --- Account portal -------------------------------------------------- */

.zbm-account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--zbm-border);
}

.zbm-account-tab {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.92rem;
}

.zbm-account-tab:hover {
    background: var(--zbm-surface);
}

.zbm-account-tab.is-active {
    background: var(--zbm-amber);
    color: var(--zbm-ink);
}

.zbm-account-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.zbm-account-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: var(--zbm-surface);
}

.zbm-account-tile-label {
    color: var(--zbm-muted);
    font-size: 0.82rem;
}

.zbm-account-tile strong {
    font-size: 1.35rem;
}

.zbm-address-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zbm-address {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: var(--zbm-surface);
}

.zbm-address.is-default {
    border-left: 3px solid var(--zbm-amber);
}

.zbm-address-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.zbm-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.zbm-address-actions form {
    margin: 0;
}

/* --- Order tracking timeline ---------------------------------------- */

.zbm-timeline {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.zbm-timeline-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0 0.55rem 1.6rem;
    color: var(--zbm-muted);
}

.zbm-timeline-step::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--zbm-border);
}

.zbm-timeline-step:first-child::before {
    top: 50%;
}

.zbm-timeline-step:last-child::before {
    bottom: 50%;
}

.zbm-timeline-dot {
    position: absolute;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--zbm-border);
    background: var(--zbm-surface-strong);
}

.zbm-timeline-step.is-done {
    color: inherit;
}

.zbm-timeline-step.is-done .zbm-timeline-dot {
    background: var(--zbm-ok);
    border-color: var(--zbm-ok);
}

.zbm-timeline-step.is-terminal .zbm-timeline-dot {
    background: var(--zbm-out);
    border-color: var(--zbm-out);
}

.zbm-timeline-label {
    font-weight: 600;
}

.zbm-timeline-date {
    margin-left: auto;
    color: var(--zbm-muted);
    font-size: 0.82rem;
}

.zbm-notice-success {
    border-left: 3px solid var(--zbm-ok);
}

.zbm-notice-error {
    border-left: 3px solid var(--zbm-out);
}

/* --- Wishlist -------------------------------------------------------- */

.zbm-wishlist-form {
    margin: 0;
}

.zbm-wishlist-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.zbm-wishlist-toggle [aria-hidden] {
    color: var(--zbm-muted);
    font-size: 1.05em;
    line-height: 1;
}

.zbm-wishlist-toggle.is-saved [aria-hidden] {
    color: var(--zbm-out);
}

/* --- Sign in and register -------------------------------------------- */

.zbm-auth {
    max-width: 560px;
}

.zbm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zbm-auth-links {
    margin-top: 1rem;
    color: var(--zbm-muted);
}

.zbm-auth-links a {
    color: inherit;
}

/* --- Reviews --------------------------------------------------------- */

.zbm-product-reviews {
    margin-top: 2rem;
}

.zbm-review-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.zbm-stars {
    color: var(--zbm-amber);
    letter-spacing: 0.08em;
}

.zbm-review-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zbm-review {
    padding: 0.9rem 1rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: var(--zbm-surface);
}

.zbm-review-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 0.35rem;
}

.zbm-review-body {
    margin: 0;
}

.zbm-review-meta {
    margin: 0.35rem 0 0;
    color: var(--zbm-muted);
    font-size: 0.82rem;
}

/* -----------------------------------------------------------------
 * Form primitives.
 *
 * The checkout and account templates are ordinary forms, and they reuse the
 * class names the management screens use. Those rules live in zbm-admin.css,
 * which never loads here — so without this the fields stack, the checkbox
 * choices lose their card, the help text is not muted and the action row has
 * no spacing. Defined once, in the shop's own theme-adaptive tokens.
 * --------------------------------------------------------------- */

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 20px;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 4px;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-field-wide {
    margin-top: 16px;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-label {
    color: var(--zbm-muted);
    font-size: 13px;
    font-weight: 600;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-help {
    color: var(--zbm-muted);
    font-size: 12px;
    line-height: 1.5;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-field-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--zbm-border);
    border-radius: 10px;
    background: var(--zbm-surface);
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-field-check span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-inline-form {
    display: inline-block;
    margin: 0;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-subheading {
    margin: 18px 0 8px;
    font-size: 15px;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--zbm-border);
    border-radius: 999px;
    background: var(--zbm-surface);
    font-size: 12px;
    line-height: 1.6;
}

:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) .zbm-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* -----------------------------------------------------------------
 * Accessibility & interaction feedback.
 * --------------------------------------------------------------- */

/* A visible keyboard focus, independent of the theme. */
:where(.zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--zbm-amber);
    outline-offset: 2px;
}

/* Somewhere for the cart and wishlist changes to be announced. */
.zbm-status-region {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* The catalogue is being replaced; say so without moving the page. */
.zbm-shop-results[aria-busy="true"] {
    opacity: 0.55;
    pointer-events: none;
}

/* A finger needs a bigger target than a mouse. */
@media (pointer: coarse) {
    .zbm-button-small,
    .zbm-chip,
    .zbm-carousel-arrow,
    .zbm-size-option {
        min-height: 44px;
    }

    .zbm-carousel-arrow {
        min-width: 44px;
    }
}

/* Physical positions flipped for a right-to-left reader. */
[dir="rtl"] .zbm-card-flag-new {
    left: auto;
    right: 0.75rem;
}

[dir="rtl"] .zbm-modal-close {
    right: auto;
    left: 0.5rem;
}

[dir="rtl"] .zbm-cart-totals,
[dir="rtl"] .zbm-num {
    text-align: left;
}

/* -----------------------------------------------------------------
 * The search and mini-cart widgets.
 * --------------------------------------------------------------- */

.zbm-widget-search .zbm-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zbm-widget-search .zbm-search-field {
    flex: 1 1 12rem;
}

.zbm-widget-search input[type="search"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--zbm-border);
    border-radius: 10px;
    background: var(--zbm-surface);
    color: inherit;
    font: inherit;
}

/* --- Search field with an action button, and its suggestions --------- */

/* The input and the magnifier share one bordered pill: the button is always
   reachable, and the field reads as a single control. */
.zbm-search-input {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border: 1px solid var(--zbm-border);
    border-radius: 10px;
    background: transparent;
    overflow: hidden;
}

.zbm-search-input input[type="search"],
.zbm-search-input input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.zbm-search-go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    border: 0;
    border-inline-start: 1px solid var(--zbm-border);
    background: var(--zbm-surface-strong);
    color: inherit;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.zbm-search-go:hover,
.zbm-search-go:focus-visible {
    background: var(--zbm-amber);
    color: #0a0c0b;
}

/* The host anchors the suggestions panel under the field. */
.zbm-search-host {
    position: relative;
}

.zbm-search-suggest {
    position: absolute;
    z-index: 40;
    inset-inline: 0;
    top: calc(100% + 0.35rem);
    max-height: 320px;
    overflow-y: auto;
    padding: 0.3rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: #ffffff;
    color: #14171c;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.45);
}

.zbm-search-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

.zbm-search-suggest-item:hover,
.zbm-search-suggest-item.is-active {
    background: color-mix(in srgb, var(--zbm-amber) 24%, transparent);
}

.zbm-search-suggest-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(20, 23, 28, 0.08);
}

.zbm-search-suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zbm-search-suggest-thumb--empty {
    background: linear-gradient(135deg, rgba(20, 23, 28, 0.1), rgba(20, 23, 28, 0.03));
}

.zbm-search-suggest-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zbm-search-suggest-type {
    flex: 0 0 auto;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

/* A dark site gets a dark panel, not a white one. */
[data-theme="dark"] .zbm-search-suggest,
[data-color-scheme="dark"] .zbm-search-suggest,
body.dark .zbm-search-suggest,
body.dark-mode .zbm-search-suggest,
body.dark-theme .zbm-search-suggest,
.zbm-scheme-dark .zbm-search-suggest {
    background: #14171c;
    color: #f2efe6;
}

[data-theme="dark"] .zbm-search-suggest-type,
body.dark .zbm-search-suggest-type,
body.dark-mode .zbm-search-suggest-type,
body.dark-theme .zbm-search-suggest-type,
.zbm-scheme-dark .zbm-search-suggest-type {
    color: #a8b0bd;
}

/* --- The shop filter bar --------------------------------------------- */

.zbm-shop-field--search {
    grid-column: span 2;
}

.zbm-shop-field > label {
    color: var(--zbm-muted);
}

.zbm-shop-field--actions {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
}

.zbm-shop-clear {
    font-size: 0.85rem;
    color: var(--zbm-muted);
    text-decoration: none;
    white-space: nowrap;
}

.zbm-shop-clear:hover {
    text-decoration: underline;
}

.zbm-shop-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: -1rem 0 2rem;
}

.zbm-shop-active-label {
    font-size: 0.8rem;
    color: var(--zbm-muted);
}

.zbm-shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--zbm-border);
    border-radius: 999px;
    background: var(--zbm-surface);
    color: inherit;
    font-size: 0.8rem;
    text-decoration: none;
}

.zbm-shop-chip:hover {
    border-color: color-mix(in srgb, var(--zbm-amber) 55%, var(--zbm-border));
}

.zbm-shop-chip-x {
    color: var(--zbm-muted);
    font-size: 1rem;
    line-height: 1;
}

.zbm-shop-chip--clear {
    border-style: dashed;
    color: var(--zbm-muted);
}

@media (max-width: 620px) {
    .zbm-shop-field--search {
        grid-column: auto;
        grid-column: 1 / -1;
    }
}

.zbm-widget-mini-cart .zbm-mini-cart-count {
    margin: 0.2rem 0 0.5rem;
    color: var(--zbm-muted);
}

.zbm-mini-cart-lines {
    margin: 0 0 0.6rem;
    padding: 0;
    list-style: none;
}

.zbm-mini-cart-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--zbm-border);
}

.zbm-mini-cart-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.5rem 0;
}

.zbm-mini-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0 0;
}

.zbm-widget-more {
    margin: 0.75rem 0 0;
}

/* -----------------------------------------------------------------
 * Single product page.
 *
 * A media stage beside a buy panel, then details, reviews and a related
 * rail. The look is modern but stays theme-adaptive: the accent is the one
 * fixed colour, and every surface is still mixed from the current text
 * colour, so it is light on a light theme and dark on a dark one.
 * --------------------------------------------------------------- */

.zbm-product {
    --zbm-radius-xl: 26px;
    --zbm-accent-soft: color-mix(in srgb, var(--zbm-amber) 14%, transparent);
}

.zbm-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

@media (max-width: 900px) {
    .zbm-product-layout {
        grid-template-columns: 1fr;
    }
}

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

.zbm-product-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 900px) {
    .zbm-product-media {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas:
            "rail stage"
            "rail video";
        align-items: start;
    }

    .zbm-media-stage  { grid-area: stage; }
    .zbm-product-gallery { grid-area: rail; }
    .zbm-media-video  { grid-area: video; }
}

.zbm-media-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--zbm-border);
    border-radius: var(--zbm-radius-xl);
    background:
        radial-gradient(130% 120% at 12% 0%, var(--zbm-surface-strong), transparent 58%),
        var(--zbm-surface);
}

.zbm-media-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(140deg, color-mix(in srgb, var(--zbm-amber) 65%, transparent), transparent 42%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
}

.zbm-media-frame {
    display: grid;
    aspect-ratio: 1 / 1;
}

.zbm-media-frame img,
.zbm-media-frame .zbm-product-image {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.zbm-media-stage:hover .zbm-product-image {
    transform: scale(1.035);
}

.zbm-product-noimage {
    grid-area: 1 / 1;
    min-height: 280px;
    background: linear-gradient(135deg, var(--zbm-surface-strong), var(--zbm-surface));
}

.zbm-media-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(90% 70% at 80% 8%, color-mix(in srgb, #fff 10%, transparent), transparent 60%);
}

.zbm-media-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--zbm-amber), color-mix(in srgb, var(--zbm-amber) 62%, #7a3d00));
    color: #1a1200;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--zbm-amber) 80%, transparent);
}

.zbm-media-badge-new {
    background: linear-gradient(135deg, var(--zbm-ok), color-mix(in srgb, var(--zbm-ok) 60%, #003a22));
    color: #ffffff;
}

.zbm-product-gallery {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

@media (min-width: 900px) {
    .zbm-product-gallery {
        flex-direction: column;
        overflow: visible;
        padding-bottom: 0;
    }
}

.zbm-gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    background: var(--zbm-surface);
    cursor: pointer;
    line-height: 0;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.zbm-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.zbm-gallery-thumb:hover {
    transform: translateY(-2px);
}

.zbm-gallery-thumb.is-active,
.zbm-gallery-thumb:focus-visible {
    border-color: var(--zbm-amber);
    box-shadow: 0 0 0 2px var(--zbm-accent-soft);
}

.zbm-gallery-thumb-video {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, var(--zbm-surface-strong), var(--zbm-surface));
    line-height: 1;
}

.zbm-play {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent currentColor;
    margin-left: 3px;
}

.zbm-gallery-thumb-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zbm-media-video {
    overflow: hidden;
    border: 1px solid var(--zbm-border);
    border-radius: var(--zbm-radius-xl);
    background: var(--zbm-surface);
}

.zbm-video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.zbm-video-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.zbm-video-link:hover {
    color: var(--zbm-amber);
}

/* --- Buy panel -------------------------------------------------- */

.zbm-product-info {
    padding: clamp(1.25rem, 2.6vw, 2rem);
    border: 1px solid var(--zbm-border);
    border-radius: var(--zbm-radius-xl);
    background: var(--zbm-surface);
    box-shadow: 0 26px 60px -40px color-mix(in srgb, currentColor 70%, transparent);
}

@media (min-width: 1000px) {
    .zbm-product-info {
        position: sticky;
        top: 1.5rem;
    }
}

.zbm-product-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zbm-muted);
}

.zbm-product-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.zbm-product-eyebrow a:hover {
    color: var(--zbm-amber);
}

.zbm-product-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.55rem, 3.4vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.zbm-product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
}

.zbm-product-summary {
    margin: 0 0 1.1rem;
    color: var(--zbm-muted);
}

.zbm-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.25rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--zbm-border);
    border-radius: 999px;
    background: var(--zbm-surface);
    font-size: 0.76rem;
    font-weight: 600;
}

.zbm-stock-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

.zbm-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0 0 1.1rem;
}

.zbm-price-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--zbm-muted);
}

.zbm-product-live-price {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.zbm-live-total {
    display: block;
    margin-left: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--zbm-muted);
}

.zbm-product-picker {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

@media (min-width: 560px) {
    .zbm-product-picker {
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: start;
    }
}

.zbm-product .zbm-pour {
    align-items: flex-start;
    margin: 0;
}

.zbm-product .zbm-pour-canvas {
    width: 106px;
    height: 158px;
}

.zbm-product .zbm-pour-caption {
    text-align: left;
    font-size: 0.66rem;
    line-height: 1.35;
}

.zbm-product .zbm-product-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.zbm-product .zbm-product-sizes legend {
    grid-column: 1 / -1;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zbm-muted);
}

.zbm-product .zbm-size-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.05rem 0.5rem;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    background: var(--zbm-surface);
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.zbm-product .zbm-size-option input {
    grid-row: 1 / span 2;
    margin: 0;
    accent-color: var(--zbm-amber);
}

.zbm-product .zbm-size-option:hover {
    border-color: var(--zbm-amber);
    transform: translateY(-1px);
}

.zbm-product .zbm-size-option:has(input:checked) {
    border-color: var(--zbm-amber);
    background: color-mix(in srgb, var(--zbm-amber) 12%, var(--zbm-surface));
    box-shadow: 0 10px 26px -18px color-mix(in srgb, var(--zbm-amber) 90%, transparent);
}

.zbm-product .zbm-size-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.zbm-product .zbm-size-option input:checked ~ .zbm-size-label {
    color: var(--zbm-amber);
}

.zbm-product .zbm-size-price {
    margin-left: 0;
    font-size: 0.79rem;
    color: var(--zbm-muted);
}

/* A size that is bigger than what is left is shown, not hidden: the shopper
   can see the range, and sees exactly which of it they can still buy. */
.zbm-product .zbm-size-option.is-unavailable,
.zbm-modal .zbm-size-option.is-unavailable {
    opacity: 0.55;
    cursor: not-allowed;
    border-style: dashed;
}

.zbm-product .zbm-size-option.is-unavailable input,
.zbm-modal .zbm-size-option.is-unavailable input {
    cursor: not-allowed;
}

.zbm-product .zbm-size-flag,
.zbm-modal .zbm-size-flag {
    grid-column: 2;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--zbm-out);
}

/* The out-of-stock panel stands where the buy controls would be. */
.zbm-product-outofstock {
    margin: 1rem 0;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    background: var(--zbm-surface);
}

.zbm-outofstock-lead {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.zbm-stock-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.zbm-stock-alert .zbm-shop-field {
    flex: 1 1 14rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.zbm-stock-alert input[type="email"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--zbm-border);
    border-radius: 10px;
    background: var(--zbm-surface);
    color: inherit;
    font: inherit;
}

.zbm-product-buy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
    margin-top: 1.25rem;
}

@media (max-width: 460px) {
    .zbm-product-buy {
        grid-template-columns: 1fr;
    }
}

.zbm-product-qty {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.zbm-qty-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zbm-muted);
}

.zbm-product .zbm-product-order input[type="number"] {
    width: 5.5rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid var(--zbm-border);
    border-radius: 14px;
    background: var(--zbm-surface);
    color: inherit;
    font: inherit;
    text-align: center;
}

.zbm-add-to-cart {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 1rem 1.4rem;
    background: linear-gradient(135deg, var(--zbm-amber), color-mix(in srgb, var(--zbm-amber) 64%, #7a3d00));
    color: #1a1200;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--zbm-amber) 90%, transparent);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.zbm-add-to-cart:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 24px 44px -20px color-mix(in srgb, var(--zbm-amber) 95%, transparent);
}

.zbm-product .zbm-wishlist-form {
    margin-top: 0.75rem;
}

.zbm-product-specs {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.45rem 1rem;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--zbm-border);
    font-size: 0.85rem;
}

.zbm-product-specs dt {
    color: var(--zbm-muted);
}

.zbm-product-specs dd {
    margin: 0;
    text-align: right;
}

/* --- Details, reviews, related ---------------------------------- */

.zbm-product-details,
.zbm-product-reviews,
.zbm-product-related {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.zbm-product-details {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--zbm-border);
    border-radius: var(--zbm-radius-xl);
    background: var(--zbm-surface);
}

.zbm-product-details h2,
.zbm-product-reviews h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.zbm-product-description {
    margin: 0;
    line-height: 1.7;
}

.zbm-product-description > *:first-child {
    margin-top: 0;
}

.zbm-product-description > *:last-child {
    margin-bottom: 0;
}

.zbm-related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.zbm-related-head h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.zbm-related-more {
    font-size: 0.85rem;
    text-decoration: none;
}

.zbm-related-more:hover {
    color: var(--zbm-amber);
}

@media (prefers-reduced-motion: reduce) {
    .zbm-media-stage:hover .zbm-product-image,
    .zbm-gallery-thumb:hover,
    .zbm-add-to-cart:hover,
    .zbm-product .zbm-size-option:hover {
        transform: none;
    }
}

/* -----------------------------------------------------------------
 * Polish layer
 *
 * Presentation only: no markup, no behaviour, no new components. It refines
 * what the shop already draws — the pointer feedback on buttons and cards, a
 * label row on the cart and order tables, the weight of money, and the
 * elevation on the raised surfaces.
 *
 * Still theme-adaptive. Every shadow is mixed from the current text colour,
 * with a plain rgba() line first so a browser without color-mix() keeps that
 * one, and no new palette is introduced: the one fixed colour remains the
 * shop's own amber accent. The product page, the add-to-cart button and the
 * media stage came already finished, so they are left alone.
 *
 * Every rule is nested under the shop's own roots, or under a store widget.
 * This sheet is enqueued site-wide the moment a store widget sits in any
 * sidebar — Assets::has_store_widget() — and the class names below (.zbm-table,
 * .zbm-chip, .zbm-card) are also used by the management screens. Unscoped,
 * dropping a products widget into a footer would repaint the admin.
 * --------------------------------------------------------------- */

/* --- Buttons ---------------------------------------------------- */

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-button {
    transition:
        transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(224, 163, 62, 0.35);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--zbm-amber) 40%, transparent);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-button:active {
    transform: translateY(0);
    box-shadow: none;
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-button:disabled,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* The quiet button is the same shape without the accent, so it takes the
   surface on hover instead of the amber glow. */
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-button-quiet:hover {
    background: var(--zbm-surface);
    box-shadow: none;
    transform: translateY(-1px);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-button-quiet:active {
    transform: translateY(0);
}

/* --- Cards ------------------------------------------------------ */

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card {
    transition:
        transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The lift is the same shape as before, but the shadow is drawn from the
   current text colour rather than a fixed black, so a card also reads as
   raised on a dark theme instead of losing its shadow entirely. */
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, currentColor 30%, transparent);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    box-shadow: 0 18px 38px -12px color-mix(in srgb, currentColor 45%, transparent);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card-media img {
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* The card lifts and the photograph leans in behind it. The card already
   clips, so nothing escapes the rounded corner. */
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card:hover .zbm-card-media img {
    transform: scale(1.04);
}

/* --- Raised surfaces -------------------------------------------- */

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-filters,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-checkout-summary,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-account-tile,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-notice {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 14px 30px -20px rgba(0, 0, 0, 0.35);
    box-shadow:
        0 1px 2px color-mix(in srgb, currentColor 6%, transparent),
        0 14px 30px -20px color-mix(in srgb, currentColor 45%, transparent);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-account-tile {
    transition:
        transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-account-tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, currentColor 30%, transparent);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-account-tab {
    transition: background-color 160ms ease, color 160ms ease;
}

/* --- Tables: a label row, and rows that light up ---------------- */

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-cart-table thead th,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-table thead th {
    padding: 0.5rem;
    color: var(--zbm-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-cart-table tbody tr:hover td,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-table tbody tr:hover td {
    background: var(--zbm-surface);
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-cart-table tbody tr:last-child td,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-table tbody tr:last-child td {
    border-bottom: 0;
}

/* --- Money ------------------------------------------------------ */

/* Amounts line up digit for digit wherever two are stacked, which is the whole
   point of a cart, an order or a price list. */
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card-price,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-cart-grand,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-account-tile strong,
:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-mini-cart-total,
.zbm-modal-price {
    font-variant-numeric: tabular-nums;
}

/* --- Smaller pieces --------------------------------------------- */

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-chip {
    padding: 0.15rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

:where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-empty {
    padding: 3rem 1.5rem;
}

/* The overlay panel is its own light surface over a dark scrim, so a definite
   black shadow is correct here. It is appended outside the shop root, so it
   keeps its own name rather than the scoped prefix. */
.zbm-modal-panel {
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}

/* --- Motion ----------------------------------------------------- */

/* The lift and the lean-in are decoration, so they go when the person has
   asked the system for less motion — transition and movement both. This lands
   after the base rules above, so it wins over them under the media query. */
@media (prefers-reduced-motion: reduce) {
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-button,
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-account-tile,
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card,
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card-media img {
        transition: none;
    }

    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-shop-button:hover,
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-button-quiet:hover,
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-account-tile:hover,
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card:hover,
    :where( .zbm-shop, .zbm-product, .zbm-cart, .zbm-checkout, .zbm-checkout-return, .zbm-account, .zbm-account-orders, .zbm-account-order, .zbm-widget ) .zbm-card:hover .zbm-card-media img {
        transform: none;
    }
}

/* -----------------------------------------------------------------
 * Widget product cards: equal heights, and no sideways surprises.
 *
 * A strip of cards holds different content — a title that wraps to one line or
 * two, a description that is absent or long, a single price or a size range.
 * Left alone each card grows to its own content and the row reads as ragged.
 * So: the card fills the height its row gives it, the body stretches and the
 * actions sit on the bottom edge, and the variable lines are clamped to a
 * fixed number of lines. Every card is then the same height, not merely the
 * same height as its neighbour.
 * --------------------------------------------------------------- */

.zbm-widget-grid,
.zbm-category-grid,
.zbm-carousel-track,
.zbm-widget-list {
    align-items: stretch;
}

.zbm-widget-grid > *,
.zbm-category-grid > *,
.zbm-carousel-slide,
.zbm-widget-list > * {
    min-width: 0;
}

/* The card fills the cell it is in, so its bottom edge lines up with its
   neighbours' instead of stopping where its own text ends. */
.zbm-widget-grid .zbm-card {
    height: 100%;
}

.zbm-carousel-slide {
    display: flex;
}

.zbm-carousel-slide .zbm-card,
.zbm-carousel-slide .zbm-slide-card {
    flex: 1 1 auto;
    width: 100%;
}

.zbm-widget .zbm-card-body {
    flex: 1 1 auto;
}

/* Two lines for the title and the description, reserved even when the text is
   shorter, so the price and the buttons below sit at the same place on every
   card. */
.zbm-widget .zbm-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.zbm-widget .zbm-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.zbm-widget .zbm-card-sizes {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The facts chips stay on one tidy line: the row scrolls to nothing and clips,
   rather than wrapping a long size list onto a second and third line. */
.zbm-widget .zbm-card-tags {
    overflow: hidden;
    gap: 0.25rem;
}

.zbm-widget .zbm-card-actions {
    margin-top: auto;
    padding-top: 0.2rem;
}

/* A long unbroken word in a title must not push the grid wider than its column
   and hand the page a horizontal scrollbar. */
.zbm-widget .zbm-card-title,
.zbm-widget .zbm-card-desc,
.zbm-widget .zbm-card-sizes,
.zbm-widget .zbm-list-item-title,
.zbm-widget .zbm-category-card {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.zbm-widget .zbm-card-actions .zbm-shop-button {
    max-width: 100%;
}

/* A grid never scrolls sideways: its tracks already shrink to fit, and this
   keeps an accidental wide child from widening the page. */
.zbm-widget-grid,
.zbm-category-grid {
    max-width: 100%;
}

/* The carousel arrows sat six pixels outside the strip — against a page edge
   that is a horizontal scrollbar that scrolls to nothing. Keep them just
   inside, with a shadow so they still read over a photograph. */
.zbm-carousel-prev {
    left: 6px;
}

.zbm-carousel-next {
    right: 6px;
}

.zbm-carousel-arrow {
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.4);
}

/* -----------------------------------------------------------------
 * Products slider — a wide, editorial carousel.
 *
 * One product at a time, split into a tall photograph and a story panel,
 * with controls that stay out of the way: arrows that sit on the edge, a dot
 * rail with a running index, and a hairline progress bar showing how far
 * through the set the shopper is. Theme-adaptive like the rest of the shop —
 * surfaces come from the current text colour and the one fixed colour is the
 * accent. A single slide hides the controls, because there is nowhere to go.
 * --------------------------------------------------------------- */

.zbm-widget-layout-slider .zbm-widget-title {
    margin-bottom: 1.1rem;
}

.zbm-slider {
    position: relative;
}

.zbm-slider-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.zbm-slider-track {
    display: flex;
    gap: 1rem;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zbm-slider-track::-webkit-scrollbar {
    display: none;
}

.zbm-slider-slide {
    /* Fallback (before the script): a scroll-snap row. A little of the next
       slide shows, and the scrollbar is hidden. */
    flex: 0 0 calc(100% - 2.5rem);
    scroll-snap-align: start;
    min-width: 0;
}

/* --- Enhanced: the real carousel -----------------------------------
 *
 * Once the script has run the track is no longer a scroller. Each slide is
 * taken out of flow and placed by one number, --o, its signed (wrapped)
 * distance from the current slide, so the loop has no seam and no slide is
 * ever cloned. Dragging adds --zbm-drag on top and snaps on release. There is
 * no native overflow to scroll, so no scrollbar appears.
 * ------------------------------------------------------------------- */

.zbm-slider.is-ready .zbm-slider-viewport {
    position: relative;
    height: var(--zbm-slider-h, 320px);
    overflow: hidden;
    touch-action: pan-y;
}

.zbm-slider.is-ready .zbm-slider-track {
    position: absolute;
    inset: 0;
    display: block;
    /* The shared .zbm-carousel-track rule keeps its own padding for the plain
       carousel; the placed slider must have none, or the slides sit off-centre. */
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    border-radius: 0;
}

.zbm-slider.is-ready .zbm-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--zbm-fx-card-w, calc(100% - 2.5rem));
    min-width: 0;
    /* --o places the slide; --a (its absolute value) drives the depth. The
       preset class below decides the actual formula, so a look is chosen
       rather than hand-tuned. */
    transition:
        transform var(--zbm-slide-speed, 1200ms) cubic-bezier(0.65, 0, 0.35, 1),
        opacity var(--zbm-slide-speed, 1200ms) cubic-bezier(0.65, 0, 0.35, 1),
        filter var(--zbm-slide-speed, 1200ms) cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform, opacity;
}

/* ----- Preset: slide (default) — a clean, quiet horizontal travel ----- */

/* Columns are slides per view: the plain slide effect divides the width
   across the chosen count, keeping the same gap the travel uses. The 3D,
   fade and scale presets stay one card, and the phone stylesheet takes the
   full width for every preset. */
.zbm-slider--fx-slide {
    --zbm-fx-card-w: calc((100% - (var(--zbm-slide-cols, 1) - 1) * 1rem) / var(--zbm-slide-cols, 1));
}

.zbm-slider--fx-slide .zbm-slider-slide {
    transform: translateX(calc(var(--o, 0) * (100% + 1rem) + var(--zbm-drag, 0px)));
}

/* ----- Preset: fade — one story dissolves into the next --------------- */
.zbm-slider--fx-fade {
    --zbm-fx-card-w: 100%;
}

.zbm-slider--fx-fade .zbm-slider-slide {
    transform: translateX(var(--zbm-drag, 0px));
    opacity: calc(1 - min(var(--a, 0), 1));
}

/* ----- Preset: scale — the incoming story grows into place ------------ */
.zbm-slider--fx-scale {
    --zbm-fx-card-w: 100%;
}

.zbm-slider--fx-scale .zbm-slider-slide {
    transform:
        translateX(calc(var(--o, 0) * 16% + var(--zbm-drag, 0px)))
        scale(calc(1 - min(var(--a, 0), 1) * 0.14));
    opacity: calc(1 - min(var(--a, 0), 1) * 0.85);
}

/* ----- Preset: coverflow — 3D cards on a stage ------------------------ */
.zbm-slider--fx-coverflow {
    --zbm-fx-card-w: 64%;
}

.zbm-slider--fx-coverflow .zbm-slider-viewport {
    perspective: 1500px;
    perspective-origin: 50% 42%;
}

.zbm-slider--fx-coverflow .zbm-slider-track {
    transform-style: preserve-3d;
}

.zbm-slider--fx-coverflow .zbm-slider-slide {
    left: calc((100% - var(--zbm-fx-card-w)) / 2);
    transform:
        translateX(calc(var(--o, 0) * 58% + var(--zbm-drag, 0px)))
        rotateY(calc(clamp(-1, var(--o, 0), 1) * -38deg))
        scale(calc(1 - min(var(--a, 0), 1) * 0.06));
    opacity: calc(1 - min(var(--a, 0), 2) * 0.5);
    backface-visibility: hidden;
}

/* ----- Preset: stack — a deck that leans and peels -------------------- */
.zbm-slider--fx-stack {
    --zbm-fx-card-w: 80%;
}

.zbm-slider--fx-stack .zbm-slider-slide {
    left: calc((100% - var(--zbm-fx-card-w)) / 2);
    transform:
        translateX(calc(var(--o, 0) * 9% + var(--zbm-drag, 0px)))
        translateY(calc(min(var(--a, 0), 3) * 3.5%))
        rotate(calc(clamp(-1, var(--o, 0), 1) * 2.4deg))
        scale(calc(1 - min(var(--a, 0), 3) * 0.05));
    opacity: calc(1 - min(var(--a, 0), 2) * 0.32);
}

/* ----- Preset: depth — neighbours sink and blur behind ---------------- */
.zbm-slider--fx-depth {
    --zbm-fx-card-w: 100%;
}

.zbm-slider--fx-depth .zbm-slider-slide {
    transform:
        translateX(calc(var(--o, 0) * 24% + var(--zbm-drag, 0px)))
        scale(calc(1 - min(var(--a, 0), 1) * 0.16));
    filter: blur(calc(min(var(--a, 0), 1) * 3px));
    opacity: calc(1 - min(var(--a, 0), 1) * 0.55);
}

/* At the ends of a non-looping slider the arrow that has nowhere to go is
   dimmed and inert. */
.zbm-slider.is-ready .zbm-slider-arrow[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

.zbm-slider-foot.is-count-only {
    justify-content: flex-end;
}

.zbm-slider.is-ready.is-dragging,
.zbm-slider.is-ready.is-dragging .zbm-slider-slide,
.zbm-slider.is-ready.is-instant .zbm-slider-slide,
.zbm-slider.is-reduced .zbm-slider-slide {
    transition: none;
}

.zbm-slider.is-ready.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* --- The slide itself ---------------------------------------------- */

.zbm-slide-card {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    /* A fixed height keeps the slide compact and stops a tall image from
       dictating the size of the whole widget. */
    height: clamp(250px, 28vw, 320px);
    /* Solid, not glass: an opaque paper base so a slide never shows the slides
       stacked behind it in the carousel, with the store's faint surface tint
       layered on top so the look is unchanged -- only no longer see-through. */
    background: linear-gradient(var(--zbm-surface), var(--zbm-surface)), var(--zbm-slide-paper, #ffffff);
    border: 1px solid var(--zbm-border);
    border-radius: 20px;
    overflow: hidden;
}

/* The opaque base follows the theme the shop announces, so a dark site gets a
   dark solid card rather than a white one. */
.zbm-scheme-dark .zbm-slide-card,
body.dark .zbm-slide-card,
body.dark-mode .zbm-slide-card,
body.dark-theme .zbm-slide-card,
[data-theme="dark"] .zbm-slide-card,
[data-color-scheme="dark"] .zbm-slide-card {
    --zbm-slide-paper: #14171c;
}

/* More than one card per view: the wide photo/panel split would be cramped at
   a third of the width, so the photograph goes on top and the card grows to
   its own content (the slider still measures them all and takes the tallest). */
.zbm-slider.is-multi .zbm-slide-card {
    grid-template-columns: 1fr;
    height: auto;
}

.zbm-slider.is-multi .zbm-slide-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
}

.zbm-slider.is-multi .zbm-slide-noimage {
    min-height: 0;
}

.zbm-slider.is-multi .zbm-slide-body {
    gap: 0.3rem;
    padding: 1rem 1.05rem 1.1rem;
}

.zbm-slider.is-multi .zbm-slide-title {
    font-size: 1.06rem;
}

.zbm-slider.is-multi .zbm-slide-desc {
    font-size: 0.85rem;
}

.zbm-slide-media {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    background: var(--zbm-surface-strong);
}

.zbm-slide-media img {
    /* Absolutely placed so a tall portrait photo cannot stretch the slide and
       make the whole widget oversized; the card fixes the height instead. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.zbm-slide-card:hover .zbm-slide-media img {
    transform: scale(1.05);
}

.zbm-slide-noimage {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, currentColor 12%, transparent),
        color-mix(in srgb, currentColor 4%, transparent)
    );
}

/* A soft wash at the top so the badge reads on any photograph. */
.zbm-slide-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 11, 0.28) 0%, rgba(10, 12, 11, 0) 36%);
    pointer-events: none;
}

.zbm-slide-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--zbm-amber);
    color: #0a0c0b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.zbm-slide-badge-new {
    background: var(--zbm-ok);
    color: #ffffff;
}

.zbm-slide-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: clamp(1.1rem, 2.6vw, 1.9rem);
}

.zbm-slide-eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--zbm-muted);
}

.zbm-slide-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.14;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.zbm-slide-title a {
    color: inherit;
    text-decoration: none;
}

.zbm-slide-desc {
    margin: 0;
    max-width: 46ch;
    color: var(--zbm-muted);
}

.zbm-slide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1rem;
    margin-top: 0.2rem;
}

.zbm-slide-price {
    margin: 0;
    font-size: 1.35rem;
}

.zbm-slide-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.zbm-slide-sizes {
    margin: 0;
    font-size: 0.82rem;
    color: var(--zbm-muted);
}

.zbm-slide-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.zbm-slide-actions form {
    margin: 0;
}

.zbm-slide-actions .zbm-shop-button {
    max-width: 100%;
}

/* --- Controls ------------------------------------------------------ */

.zbm-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--zbm-border);
    background: color-mix(in srgb, var(--zbm-surface) 82%, transparent);
    color: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.zbm-slider-arrow:hover {
    background: var(--zbm-amber);
    border-color: var(--zbm-amber);
    color: #0a0c0b;
    transform: translateY(-50%) scale(1.05);
}

.zbm-slider-arrow:focus-visible {
    outline: 2px solid var(--zbm-amber);
    outline-offset: 3px;
}

.zbm-slider-prev {
    left: 0.9rem;
}

.zbm-slider-next {
    right: 0.9rem;
}

.zbm-slider-progress {
    position: relative;
    height: 3px;
    margin: 1rem 0 0;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    overflow: hidden;
}

.zbm-slider-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--zbm-amber);
    transition: width 120ms linear;
}

.zbm-slider-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
}

.zbm-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.zbm-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 28%, transparent);
    cursor: pointer;
    transition: width 200ms ease, background-color 200ms ease;
}

.zbm-slider-dot:hover {
    background: color-mix(in srgb, currentColor 50%, transparent);
}

.zbm-slider-dot.is-active {
    width: 28px;
    background: var(--zbm-amber);
}

.zbm-slider-count {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--zbm-muted);
}

/* Nothing to move through: hide the controls. */
.zbm-slider.is-single .zbm-slider-arrow,
.zbm-slider.is-single .zbm-slider-progress,
.zbm-slider.is-single .zbm-slider-foot,
.zbm-carousel.is-single .zbm-slider-arrow,
.zbm-carousel.is-single .zbm-slider-progress,
.zbm-carousel.is-single .zbm-slider-foot {
    display: none;
}

@media (pointer: coarse) {
    .zbm-slider-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 720px) {
    .zbm-slider-slide {
        flex-basis: 100%;
    }

    /* Phones get the full width for every preset; setting the variable (not
       the width) keeps the centred presets' `left` in step with it. */
    .zbm-slider.is-ready {
        --zbm-fx-card-w: 100%;
    }

    .zbm-slide-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .zbm-slide-media {
        aspect-ratio: 16 / 10;
    }

    .zbm-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .zbm-slider-prev {
        left: 0.5rem;
    }

    .zbm-slider-next {
        right: 0.5rem;
    }
}

/* -----------------------------------------------------------------
 * Escaping a theme's reading column
 *
 * A shop, or one of its widgets, put on a page by shortcode renders inside the
 * theme's prose column. Themes cap that column for comfortable reading —
 * Preluence Vertex uses 720px — so a product grid shows two cramped columns on
 * a desktop monitor with dead space either side. When the column actually
 * holds shop content, let it take the full container instead. Written against
 * the theme's class on purpose: on a theme without such a column it never
 * matches, and on an article with no shop on it nothing changes.
 * ----------------------------------------------------------------- */

/* Preluence Vertex's reading column, a block theme's constrained column, and a
   boxed page-builder section: any wrapper that caps a column is let go when it
   actually holds shop content. */
.pn-prose:has(.zbm-shop),
.pn-prose:has(.zbm-product),
.pn-prose:has(.zbm-cart),
.pn-prose:has(.zbm-checkout),
.pn-prose:has(.zbm-checkout-return),
.pn-prose:has(.zbm-account),
.pn-prose:has(.zbm-widget),
.pn-article__content:has(.zbm-shop),
.pn-article__content:has(.zbm-widget),
.entry-content:has(.zbm-shop),
.entry-content:has(.zbm-widget),
.wp-block-post-content:has(.zbm-shop),
.wp-block-post-content:has(.zbm-widget),
.is-layout-constrained:has(.zbm-shop),
.is-layout-constrained:has(.zbm-widget),
.elementor-section:has(.zbm-shop) > .elementor-container,
.elementor-section:has(.zbm-widget) > .elementor-container,
.e-con:has(.zbm-shop),
.e-con:has(.zbm-widget) {
    max-width: none;
    margin-inline: 0;
}

/* The page title above the shop lines up with it rather than sitting in its own
   narrower centred band. */
.pn-article:has(.zbm-shop) .pn-article__header,
.pn-article:has(.zbm-product) .pn-article__header,
.pn-article:has(.zbm-cart) .pn-article__header,
.pn-article:has(.zbm-checkout) .pn-article__header,
.pn-article:has(.zbm-account) .pn-article__header,
.pn-article:has(.zbm-widget) .pn-article__header {
    max-width: none;
    margin-inline: 0;
}

/* -----------------------------------------------------------------
 * Social share and the WhatsApp order option.
 * --------------------------------------------------------------- */

.zbm-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--zbm-border);
}

.zbm-share-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zbm-muted);
}

.zbm-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.zbm-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--zbm-border);
    background: var(--zbm-surface);
    color: var(--zbm-muted);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.zbm-share-button:hover,
.zbm-share-button:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Each button lights up in its own brand colour on hover: the one place a
   second colour is allowed, because recognition is the whole point. */
.zbm-share-whatsapp:hover,
.zbm-share-whatsapp:focus-visible { background: #25d366; border-color: #25d366; }

.zbm-share-facebook:hover,
.zbm-share-facebook:focus-visible { background: #1877f2; border-color: #1877f2; }

.zbm-share-x:hover,
.zbm-share-x:focus-visible { background: #0f172a; border-color: #0f172a; }

.zbm-share-telegram:hover,
.zbm-share-telegram:focus-visible { background: #229ed9; border-color: #229ed9; }

.zbm-share-linkedin:hover,
.zbm-share-linkedin:focus-visible { background: #0a66c2; border-color: #0a66c2; }

.zbm-share-email:hover,
.zbm-share-email:focus-visible { background: #475569; border-color: #475569; }

.zbm-share-copy .zbm-share-copied-icon { display: none; }
.zbm-share-copy.is-copied .zbm-share-copy-icon { display: none; }
.zbm-share-copy.is-copied .zbm-share-copied-icon { display: inline-block; }
.zbm-share-copy.is-copied {
    background: var(--zbm-ok);
    border-color: var(--zbm-ok);
    color: #ffffff;
}

/* The two ways to order, stacked so both read as real choices. */
.zbm-order-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.zbm-order-options .zbm-shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* The site checkout stays the primary, full-width way to buy. */
.zbm-order-options .zbm-add-to-cart {
    width: 100%;
}

.zbm-button-whatsapp {
    background: #25d366;
    border-color: #1ebe5b;
    color: #ffffff;
}

/* A link, so the theme's own link colour would win without stating this. */
.zbm-product a.zbm-button-whatsapp,
.zbm-product a.zbm-button-whatsapp:visited,
.zbm-cart a.zbm-button-whatsapp,
.zbm-cart a.zbm-button-whatsapp:visited,
.zbm-checkout a.zbm-button-whatsapp,
.zbm-checkout a.zbm-button-whatsapp:visited {
    color: #ffffff;
}

.zbm-button-whatsapp:hover,
.zbm-button-whatsapp:focus-visible {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #ffffff;
}

/* The WhatsApp option is the smaller, quieter of the two: white on green, the
   size of a normal button, not the full-width primary. */
.zbm-order-options .zbm-button-whatsapp {
    align-self: flex-start;
    flex: 0 0 auto;
    width: auto;
    padding: 0.55rem 1.05rem;
    font-size: 0.9rem;
}

/* ---------- The whole cart in one WhatsApp message ---------- */
/* Sits beside Checkout in the cart, so a shopper with several items sends one
   message rather than a chat per product. */
.zbm-cart-actions .zbm-button-whatsapp,
.zbm-checkout-whatsapp .zbm-button-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.zbm-cart-actions .zbm-button-whatsapp {
    padding: 0.65rem 1.1rem;
}

.zbm-cart-invoice-help {
    max-width: 52ch;
    margin-top: 0.5rem;
}

/* The cart's one action is the invoice; there is no second filled primary. */

/* ---------- Asking for an invoice ---------- */
/*
 * This page renders in the theme's own main, outside the shop's wrapper classes,
 * so it defines the palette it needs and lays itself out. It is the calmest
 * screen in the shop: a short form beside the order it is about, with the total
 * where the eye lands last.
 */
.zbm-invoice-request {
    --zbm-amber: #e0a33e;
    --zbm-ink: #0a0c0b;
    --zbm-surface: color-mix(in srgb, currentColor 5%, transparent);
    --zbm-surface-strong: color-mix(in srgb, currentColor 9%, transparent);
    --zbm-border: color-mix(in srgb, currentColor 16%, transparent);
    --zbm-muted: color-mix(in srgb, currentColor 60%, transparent);
    --zbm-ok: #15803d;
    --zbm-out: #b91c1c;

    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1rem, 4vw, 2.25rem);
    color: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

/* Its own box model: the shop's sheets assume a border-box page, and this page
   sits outside them. Without it every input is wider than the cell it is in. */
.zbm-invoice-request,
.zbm-invoice-request *,
.zbm-invoice-request *::before,
.zbm-invoice-request *::after {
    box-sizing: border-box;
}

/* --- The page's opening ------------------------------------------------ */
.zbm-invoice-request__intro {
    max-width: 44rem;
    margin: 0 0 2rem;
}

.zbm-invoice-request__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.9rem;
    padding: 0.32rem 0.72rem;
    border: 1px solid color-mix(in srgb, var(--zbm-amber) 42%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--zbm-amber) 12%, transparent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.zbm-invoice-request__eyebrow::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--zbm-amber);
}

.zbm-invoice-request h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 700;
    text-wrap: balance;
}

.zbm-invoice-request__lead {
    margin: 0;
    max-width: 38rem;
    color: var(--zbm-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    text-wrap: pretty;
}

/* --- The two columns --------------------------------------------------- */
.zbm-invoice-request__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(1.1rem, 2.5vw, 1.75rem);
    align-items: start;
}

.zbm-invoice-request__form {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

/* --- Each question, as its own card ----------------------------------- */
.zbm-invoice-request__card {
    padding: clamp(1.05rem, 2.4vw, 1.5rem);
    border: 1px solid var(--zbm-border);
    border-radius: 18px;
    background: color-mix(in srgb, currentColor 5.5%, transparent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 20px 36px -32px rgba(0, 0, 0, 0.4);
}

.zbm-invoice-request__section {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.35rem;
    font-size: 1.06rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.zbm-invoice-request__step {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zbm-amber) 20%, transparent);
    color: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.zbm-invoice-request__hint {
    margin: 0 0 1.05rem;
    color: var(--zbm-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

/* --- Fields ------------------------------------------------------------ */
/* The shop's own grid is scoped to its wrapper classes, which this page is
   not inside, so it carries the grid and the field styling itself. */
.zbm-invoice-request .zbm-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
}

.zbm-invoice-request .zbm-shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    font-size: 0.9rem;
}

.zbm-invoice-request .zbm-shop-field > span:first-child {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.zbm-invoice-request .zbm-shop-field em {
    color: color-mix(in srgb, var(--zbm-amber) 80%, currentColor);
    font-style: normal;
}

.zbm-invoice-request .zbm-shop-field input,
.zbm-invoice-request .zbm-shop-field select,
.zbm-invoice-request .zbm-shop-field textarea {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.68rem 0.85rem;
    border: 1px solid var(--zbm-border);
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 2%, transparent);
    color: inherit;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.zbm-invoice-request .zbm-shop-field textarea {
    min-height: 6rem;
    resize: vertical;
}

.zbm-invoice-request .zbm-shop-field input:hover,
.zbm-invoice-request .zbm-shop-field select:hover,
.zbm-invoice-request .zbm-shop-field textarea:hover {
    border-color: color-mix(in srgb, currentColor 30%, transparent);
}

.zbm-invoice-request .zbm-shop-field input:focus,
.zbm-invoice-request .zbm-shop-field select:focus,
.zbm-invoice-request .zbm-shop-field textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--zbm-amber) 75%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--zbm-amber) 18%, transparent);
    background: color-mix(in srgb, currentColor 3.5%, transparent);
}

.zbm-invoice-request .zbm-shop-field input::placeholder,
.zbm-invoice-request .zbm-shop-field textarea::placeholder {
    color: color-mix(in srgb, currentColor 45%, transparent);
}

.zbm-invoice-request .zbm-help {
    color: var(--zbm-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

/* The collection checkbox reads as a choice, not another field. */
.zbm-invoice-request .zbm-shop-field-check {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    padding: 0.8rem 0.9rem;
    border: 1px dashed var(--zbm-border);
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 2%, transparent);
    cursor: pointer;
}

.zbm-invoice-request .zbm-shop-field-check input {
    width: 1.1rem;
    height: 1.1rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--zbm-amber);
}

.zbm-invoice-request .zbm-shop-field-check > span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- The one action ---------------------------------------------------- */
.zbm-invoice-request__actions {
    display: grid;
    gap: 0.7rem;
    margin: 0.25rem 0 0;
}

.zbm-invoice-request .zbm-invoice-request__submit {
    width: 100%;
    margin: 0;
    box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--zbm-amber) 85%, transparent);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.zbm-invoice-request .zbm-invoice-request__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--zbm-amber) 90%, transparent);
}

.zbm-invoice-request .zbm-shop-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--zbm-amber) 70%, transparent);
    outline-offset: 3px;
}

.zbm-invoice-request__back {
    justify-self: center;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    color: var(--zbm-muted);
    font-size: 0.86rem;
    text-decoration: none;
}

.zbm-invoice-request__back:hover {
    color: inherit;
    text-decoration: underline;
}

.zbm-invoice-request__fineprint {
    margin: 0;
    color: var(--zbm-muted);
    font-size: 0.76rem;
    line-height: 1.55;
    text-align: center;
}

/* --- The order this invoice is about ---------------------------------- */
.zbm-invoice-request__summary {
    position: sticky;
    top: 1.25rem;
    padding: clamp(1.1rem, 2.4vw, 1.5rem);
    border: 1px solid var(--zbm-border);
    border-radius: 18px;
    background: var(--zbm-surface);
    box-shadow: 0 24px 50px -36px rgba(0, 0, 0, 0.55);
}

.zbm-invoice-request__summary h2 {
    margin: 0 0 0.9rem;
    color: var(--zbm-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zbm-invoice-request__lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.zbm-invoice-request__lines li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--zbm-border);
}

.zbm-invoice-request__lines li:last-child {
    border-bottom: 0;
}

.zbm-invoice-request__name {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.zbm-invoice-request__name .zbm-tag {
    align-self: flex-start;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: var(--zbm-surface-strong);
    color: var(--zbm-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.zbm-invoice-request__amount {
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.zbm-invoice-request__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0.8rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid var(--zbm-border);
}

.zbm-invoice-request__subtotal span {
    color: var(--zbm-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.zbm-invoice-request__subtotal strong {
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.zbm-invoice-request__note {
    margin: 0.75rem 0 0;
    color: var(--zbm-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.zbm-invoice-request__next {
    list-style: none;
    counter-reset: zbmnext;
    margin: 1rem 0 0;
    padding: 0.95rem 0 0;
    border-top: 1px dashed var(--zbm-border);
    display: grid;
    gap: 0.55rem;
}

.zbm-invoice-request__next li {
    counter-increment: zbmnext;
    position: relative;
    padding-left: 1.75rem;
    color: var(--zbm-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.zbm-invoice-request__next li::before {
    content: counter(zbmnext);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: var(--zbm-surface-strong);
    color: inherit;
    font-size: 0.62rem;
    font-weight: 800;
}

/* --- When there is nothing to invoice, or a sign-in is needed ---------- */
.zbm-invoice-request__empty {
    max-width: 34rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--zbm-border);
    border-radius: 20px;
    background: var(--zbm-surface);
    text-align: center;
}

.zbm-invoice-request__empty h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.zbm-invoice-request__empty p {
    margin: 0 0 1.25rem;
    color: var(--zbm-muted);
}

.zbm-invoice-request__empty p:last-child {
    margin-bottom: 0;
}

/* --- A notice, if the form came back with something to say ------------- */
.zbm-invoice-request .zbm-shop-notice {
    margin: 0 0 1.25rem;
    border-color: color-mix(in srgb, var(--zbm-amber) 40%, var(--zbm-border));
    background: color-mix(in srgb, var(--zbm-amber) 10%, transparent);
    font-size: 0.88rem;
}

.zbm-invoice-request .zbm-notice-error {
    border-color: color-mix(in srgb, var(--zbm-out) 45%, transparent);
    background: color-mix(in srgb, var(--zbm-out) 10%, transparent);
}

/* --- Small screens ----------------------------------------------------- */
@media (max-width: 900px) {
    .zbm-invoice-request__layout {
        grid-template-columns: 1fr;
    }

    .zbm-invoice-request__summary {
        position: static;
    }
}

@media (max-width: 560px) {
    .zbm-invoice-request {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .zbm-invoice-request__card,
    .zbm-invoice-request__summary {
        border-radius: 14px;
    }

    .zbm-invoice-request__eyebrow {
        letter-spacing: 0.06em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zbm-invoice-request .zbm-invoice-request__submit {
        transition: none;
    }

    .zbm-invoice-request .zbm-invoice-request__submit:hover {
        transform: none;
    }
}
.zbm-checkout-invoice {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

/* At the checkout the site stays the primary way to buy, so this reads as the
   other choice underneath it, not a second primary button. */
.zbm-checkout-whatsapp {
    margin: 0.9rem 0 0;
}

.zbm-checkout-whatsapp .zbm-button-whatsapp {
    padding: 0.55rem 1.05rem;
    font-size: 0.9rem;
}

.zbm-wa-icon {
    flex: 0 0 auto;
}

.zbm-order-choice {
    margin: 0.75rem 0 0;
}

/* -----------------------------------------------------------------
 * Advance orders.
 *
 * An advance order is a different promise from a normal one — made on the next
 * run, not shipped from stock — so it carries its own amber marker wherever it
 * appears: the product page, the cart, the order. Amber, never the green of a
 * completed, in-stock order.
 * --------------------------------------------------------------- */

.zbm-chip-advance {
    background: color-mix(in srgb, var(--zbm-amber) 24%, transparent);
    border-color: color-mix(in srgb, var(--zbm-amber) 55%, transparent);
    color: color-mix(in srgb, var(--zbm-amber) 78%, currentColor);
    font-weight: 700;
}

.zbm-advance-order {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
    margin: 0.9rem 0 0.5rem;
}

.zbm-advance-order .zbm-shop-field {
    flex: 1 1 8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.zbm-button-advance {
    flex: 1 1 100%;
    background: var(--zbm-amber);
    border-color: var(--zbm-amber);
    color: #1a1200;
}

.zbm-button-advance:hover,
.zbm-button-advance:focus-visible {
    filter: brightness(1.05);
    color: #1a1200;
}

/* The cart's advance notice: the same amber edge, so it reads as information
   rather than an error. */
.zbm-notice-advance {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: 3px solid var(--zbm-amber);
}

.zbm-outofstock-lead .zbm-chip-advance {
    margin-right: 0.4rem;
    vertical-align: middle;
}




/* =======================================================================
 * Wholesale dual pricing
 *
 * An approved wholesaler sees the retail price struck through, the wholesale
 * price as the live figure, a "Wholesale" tag and the saving — the shape a
 * sale price takes. Retail shoppers never see any of this. Everything is
 * drawn from the shop's own tokens, so it reads in light and dark.
 * ===================================================================== */

.zbm-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cards, the slider slide and list rows share one dual layout. */
.zbm-price--wholesale {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
}

.zbm-price-list,
.zbm-size-list,
.zbm-live-list {
    color: var(--zbm-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    font-weight: 500;
}

.zbm-price--wholesale .zbm-price-list {
    font-size: 0.85em;
}

/* <ins> is underlined by default; the wholesale figure is the emphasis. */
.zbm-price-now {
    text-decoration: none;
    color: inherit;
}

.zbm-price-now strong {
    font-weight: 800;
}

/* The "Wholesale" tag — the small amber pill used by the card badges. */
.zbm-wholesale-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    background: var(--zbm-amber);
    color: var(--zbm-ink, #0a0c0b);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.7;
    white-space: nowrap;
}

/* The saving — quiet, in the shop's positive colour. */
.zbm-price-save,
.zbm-live-save {
    color: var(--zbm-ok);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Product page price block: struck retail rides small next to the big figure,
   the saving sits on its own line beneath it. */
.zbm-product-live-price .zbm-live-list {
    display: inline;
    margin-right: 0.4rem;
    font-size: 0.5em;
    font-weight: 600;
    vertical-align: middle;
}

.zbm-product-live-price .zbm-live-save {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

/* Product page per-size: struck retail before each size's wholesale figure. */
.zbm-product .zbm-size-list {
    margin-right: 0.3rem;
    opacity: 0.75;
}

.zbm-product .zbm-size-now {
    font-weight: 700;
}

/* Quick-view modal mirrors the card spacing. */
.zbm-modal .zbm-price--wholesale {
    gap: 0.2rem 0.45rem;
}

/* [hidden] must beat the flex / inline displays declared above. */
.zbm-live-list[hidden],
.zbm-live-save[hidden],
.zbm-wholesale-tag[hidden] {
    display: none !important;
}

/* Quick add-to-cart with a size selector (grid card and slider slide). The
   shopper picks the container size from the card itself, instead of the quick
   add silently defaulting to the first size. */
.zbm-cart-form--sized {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.zbm-cart-size-field {
    margin: 0;
    min-width: 0;
}

.zbm-cart-size-select {
    max-width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--zbm-border);
    border-radius: 10px;
    background: var(--zbm-surface-strong);
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
    line-height: 1.2;
    cursor: pointer;
}

/* Keep the dropdown list readable whatever the card's inherited text colour. */
.zbm-cart-size-select option {
    color: #14171c;
    background: #ffffff;
}

.zbm-cart-size-select:focus-visible {
    outline: 2px solid var(--zbm-amber);
    outline-offset: 1px;
}

.zbm-slide-cart.zbm-cart-form--sized .zbm-cart-size-select {
    font-size: 0.85rem;
}

/* Cart's wholesale notice — a positive green edge, so it reads as information
   (wholesale pricing is in force) rather than a warning. */
.zbm-chip-wholesale {
    background: color-mix(in srgb, var(--zbm-ok) 20%, transparent);
    border-color: color-mix(in srgb, var(--zbm-ok) 55%, transparent);
    color: color-mix(in srgb, var(--zbm-ok) 80%, currentColor);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zbm-notice-wholesale {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: 3px solid var(--zbm-ok);
}

.zbm-mini-cart-wholesale {
    margin: 0.2rem 0 0;
}

/* ---------------------------------------------------------------------
 * Phones: shop tables become labelled cards.
 *
 * The cart and the account's order tables are wide, and a table that does not
 * fit a 390px phone must never push the whole page sideways. Below 761px each
 * row becomes a card: the header row is hidden from view, every cell shows its
 * column name (the data-label written by zbm-store.js) beside its value, and
 * the first cell is the card's title. With the script absent the table simply
 * scrolls sideways inside its own box, so the page never overflows.
 * ------------------------------------------------------------------- */
@media (max-width: 760px) {
    .zbm-shop,
    .zbm-product,
    .zbm-cart,
    .zbm-checkout,
    .zbm-account,
    .zbm-account-orders,
    .zbm-account-order {
        min-width: 0;
        max-width: 100%;
    }

    /* Fallback: an unlabelled table scrolls inside itself. */
    .zbm-cart-table:not(.zbm-stack),
    .zbm-table:not(.zbm-stack) {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .zbm-cart-table.zbm-stack,
    .zbm-table.zbm-stack {
        display: block;
        width: 100%;
        border-collapse: separate;
    }

    .zbm-cart-table.zbm-stack > thead,
    .zbm-table.zbm-stack > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        border: 0;
        white-space: nowrap;
    }

    .zbm-cart-table.zbm-stack > tbody,
    .zbm-table.zbm-stack > tbody {
        display: block;
        width: 100%;
    }

    .zbm-cart-table.zbm-stack > tbody > tr,
    .zbm-table.zbm-stack > tbody > tr {
        display: block;
        margin: 0 0 1rem;
        border: 1px solid var(--zbm-border);
        border-radius: 12px;
        background: var(--zbm-surface, transparent);
        overflow: hidden;
    }

    .zbm-cart-table.zbm-stack > tbody > tr > td,
    .zbm-table.zbm-stack > tbody > tr > td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        width: auto;
        padding: 0.6rem 0.85rem;
        border-bottom: 1px solid var(--zbm-border);
        text-align: right;
        overflow-wrap: anywhere;
    }

    .zbm-cart-table.zbm-stack > tbody > tr > td:last-child,
    .zbm-table.zbm-stack > tbody > tr > td:last-child {
        border-bottom: 0;
    }

    .zbm-cart-table.zbm-stack > tbody > tr > td::before,
    .zbm-table.zbm-stack > tbody > tr > td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        max-width: 48%;
        color: var(--zbm-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: left;
    }

    .zbm-cart-table.zbm-stack > tbody > tr > td:not([data-label])::before,
    .zbm-cart-table.zbm-stack > tbody > tr > td[data-label=""]::before,
    .zbm-table.zbm-stack > tbody > tr > td:not([data-label])::before,
    .zbm-table.zbm-stack > tbody > tr > td[data-label=""]::before {
        content: none;
    }

    .zbm-cart-table.zbm-stack > tbody > tr > td:not([data-label]),
    .zbm-cart-table.zbm-stack > tbody > tr > td[data-label=""],
    .zbm-table.zbm-stack > tbody > tr > td:not([data-label]),
    .zbm-table.zbm-stack > tbody > tr > td[data-label=""] {
        display: block;
        text-align: left;
    }

    .zbm-cart-table.zbm-stack > tbody > tr > td:first-child,
    .zbm-table.zbm-stack > tbody > tr > td:first-child {
        display: block;
        padding: 0.75rem 0.85rem;
        border-bottom: 1px solid var(--zbm-border);
        text-align: left;
        font-weight: 600;
    }

    .zbm-cart-table.zbm-stack > tbody > tr > td:first-child::before,
    .zbm-table.zbm-stack > tbody > tr > td:first-child::before {
        content: none;
    }

    /* The cart line's quantity control sits in a cell; let it wrap cleanly. */
    .zbm-cart-table.zbm-stack .zbm-cart-qty {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .zbm-cart-totals {
        max-width: none;
    }
}

/* ---------- How to pay: bank details on an unpaid order ---------- */
.zbm-how-to-pay {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--zbm-border);
    border-inline-start: 3px solid var(--zbm-ok);
    border-radius: 12px;
    background: var(--zbm-surface);
}

.zbm-how-to-pay h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.zbm-how-to-pay ul {
    margin: 0 0 0.5rem;
    padding-left: 1.1rem;
}

.zbm-how-to-pay li {
    margin: 0.15rem 0;
}

.zbm-how-to-pay p {
    margin: 0.35rem 0 0;
}

.zbm-how-to-pay__wa {
    margin-top: 0.7rem;
}

/* The share row is a tap target on a phone and a glance target on a desktop, so
 * it is sized like one: bigger circles, bigger marks, and the row given room. */
.zbm-share {
    gap: 0.75rem 1.1rem;
}

.zbm-share-label {
    font-size: 0.78rem;
}

.zbm-share-buttons {
    gap: 0.6rem;
}

.zbm-share-button {
    width: 52px;
    height: 52px;
}

.zbm-share-button svg,
.zbm-share-copy-icon,
.zbm-share-copied-icon {
    width: 24px;
    height: 24px;
}

/* ---------- Add to cart, without leaving the page ---------- */
/* The form is still a form; these only make its answer visible. */
form[aria-busy="true"] button[type="submit"] {
    opacity: 0.65;
    cursor: progress;
}

.zbm-mini-cart.is-updated {
    animation: zbm-cart-pulse 900ms ease;
}

@keyframes zbm-cart-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.035); }
    100% { transform: scale(1); }
}

.zbm-toast {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 5.75rem;
    z-index: 9999;
    margin: 0 auto;
    max-width: 22rem;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    background: #0a0c0b;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.zbm-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.zbm-toast--error {
    background: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
    .zbm-mini-cart.is-updated {
        animation: none;
    }

    .zbm-toast {
        transition: none;
    }
}/* The button says "added" for a moment, so a shopper who is looking at the
   button rather than the corner still sees the answer. */
.zbm-shop-button.is-added {
    background: var(--zbm-ok);
    border-color: var(--zbm-ok);
    color: #ffffff;
}
/* ---------- The floating cart ---------- */
/* Prints only where the shop's own files are loaded (see Assets::floating_cart).
   Empty in the markup: the script fills in the count from the cart endpoint, so
   a page cache can keep this markup without keeping anybody's cart. */
.zbm-floating-cart {
    /* The shop's palette, restated here because this element lives in the theme's
       own footer rather than inside a shop block. */
    --zbm-amber: #e0a33e;
    --zbm-ink: #0a0c0b;
    --zbm-surface: color-mix(in srgb, currentColor 8%, transparent);
    --zbm-border: color-mix(in srgb, currentColor 22%, transparent);
    --zbm-muted: color-mix(in srgb, currentColor 65%, transparent);
    --zbm-ok: #15803d;

    position: fixed;
    inset-inline-end: 1.25rem;

    /* The theme's back-to-top button lives in this same corner (44px square at
       1.25rem), so the bubble sits above it rather than on top of it. One
       property, so a theme with a different offset is one line to change. */
    --zbm-floating-cart-bottom: 4.75rem;

    bottom: var(--zbm-floating-cart-bottom);
    z-index: 9997;
    color: inherit;
    font: inherit;
}

/* This element lives outside the shop's wrappers, so it carries its own box
   model. Without it the panel's padding is added to its width and it is pushed
   off the left edge of a phone screen. */
.zbm-floating-cart,
.zbm-floating-cart *,
.zbm-floating-cart *::before,
.zbm-floating-cart *::after {
    box-sizing: border-box;
}

.zbm-floating-cart[hidden],
.zbm-floating-cart__panel[hidden],
.zbm-floating-cart__badge[hidden],
.zbm-floating-cart__empty[hidden],
.zbm-floating-cart__total[hidden] {
    display: none;
}

.zbm-floating-cart__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: var(--zbm-ink);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.zbm-floating-cart__button:hover,
.zbm-floating-cart__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.6);
}

.zbm-floating-cart__button:focus-visible {
    outline: 3px solid var(--zbm-amber);
    outline-offset: 3px;
}

.zbm-floating-cart__badge {
    position: absolute;
    top: -0.2rem;
    inset-inline-end: -0.2rem;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--zbm-amber);
    color: var(--zbm-ink);
    font-size: 0.75rem;
    line-height: 1.4rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.zbm-floating-cart__panel {
    position: absolute;
    bottom: calc(100% + 0.7rem);
    inset-inline-end: 0;
    width: min(21rem, calc(100vw - 2.5rem));
    padding: 1rem 1.05rem 0.85rem;
    border: 1px solid var(--zbm-border);
    border-radius: 16px;
    background: var(--zbm-surface);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55);
}

.zbm-floating-cart__heading {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.zbm-floating-cart__empty {
    margin: 0 0 0.6rem;
    color: var(--zbm-muted);
    font-size: 0.82rem;
}

.zbm-floating-cart__lines {
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
    display: grid;
    gap: 0.15rem;
    max-height: 14rem;
    overflow: auto;
}

.zbm-floating-cart__lines li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--zbm-border);
}

.zbm-floating-cart__lines li:last-child {
    border-bottom: 0;
}

.zbm-floating-cart__lines li span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.zbm-floating-cart__total {
    display: flex;
    justify-content: space-between;
    margin: 0.15rem 0 0.8rem;
    font-size: 0.9rem;
}

.zbm-floating-cart__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.55rem;
}

.zbm-floating-cart__actions .zbm-shop-button {
    flex: 1 1 auto;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-align: center;
}

.zbm-floating-cart__note {
    margin: 0;
    font-size: 0.72rem;
    color: var(--zbm-muted);
}

@media (max-width: 480px) {
    .zbm-floating-cart {
        inset-inline-end: 0.9rem;
        --zbm-floating-cart-bottom: 4.6rem;
    }

    .zbm-floating-cart__button {
        width: 3.2rem;
        height: 3.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zbm-floating-cart__button {
        transition: none;
    }
}
/* ---------- Optional checkout detail ---------- */
/* Present, but folded away: the checkout asks for what it needs to deliver an
   order, not for every field it could store. */
.zbm-checkout-extra {
    margin: 0.35rem 0 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px dashed var(--zbm-border);
    border-radius: 12px;
}

.zbm-checkout-extra > summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.zbm-checkout-extra[open] > summary {
    margin-bottom: 0.65rem;
}

.zbm-checkout-extra .zbm-shop-field + .zbm-shop-field {
    margin-top: 0.5rem;
}