/*
 * BossDesk Connector storefront theme.
 * Every rule is scoped to body.bd-theme and every colour comes from a CSS
 * variable so the admin settings can recolour the whole store.
 *
 * Two complete canvases live here: dark (default, matches BossDesk) and light.
 * The plugin adds bd-theme-dark / bd-theme-light to <body> and bd-theme-root
 * to <html>; inline tokens carry the configured Ink colour into dark mode.
 */

:root {
    --bd-plum: #63006A;
    --bd-magenta: #AD1F8F;
}

body.bd-theme {
    --bd-white: #ffffff;
    --bd-blue: #9AD4F5;
    --bd-radius: 12px;
    --bd-font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    --bd-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --wp--preset--color--base: var(--bd-base);
    --wp--preset--color--contrast: var(--bd-text);
    --wp--preset--color--accent-1: var(--bd-ink);
    --wp--preset--color--accent-2: var(--bd-surface);
    --wp--preset--color--accent-3: var(--bd-text);
    --wp--preset--color--accent-4: var(--bd-magenta);
    --wp--preset--color--accent-5: var(--bd-plum);
    --wp--preset--color--accent-6: var(--bd-blue);
    background-color: var(--bd-base);
    color: var(--bd-text);
    font-family: var(--bd-font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body.bd-theme.bd-theme-dark {
    --bd-base: #120A16;
    --bd-ink: #120A16;
    --bd-surface: #1A0F1F;
    --bd-surface-2: #231528;
    --bd-text: #F8F3FA;
    --bd-muted: #C9BBCF;
    --bd-border: rgba(255, 255, 255, 0.10);
    --bd-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --bd-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F8F3FA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-color: var(--bd-base);
    color: var(--bd-text);
}

body.bd-theme.bd-theme-light {
    --bd-base: #FBF9FB;
    --bd-ink: #1A1120;
    --bd-surface: #FFFFFF;
    --bd-surface-2: #F3EEF5;
    --bd-text: #1A1120;
    --bd-muted: #6B5A72;
    --bd-border: rgba(18, 10, 22, 0.10);
    --bd-shadow: 0 16px 40px rgba(18, 10, 22, 0.14);
    --bd-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1120' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-color: var(--bd-base);
    color: var(--bd-text);
}

html.bd-theme-root {
    background-color: #120A16;
    /* Decorative bits (hidden swatch select, off-canvas mini-cart, hero burst)
     * must never create horizontal page scroll. clip (not hidden) keeps the
     * product form's position: sticky working. */
    overflow-x: clip;
}

/* Older browsers without overflow: clip still get horizontal clipping. */
@supports not (overflow: clip) {
    html.bd-theme-root,
    body.bd-theme {
        overflow-x: hidden;
    }
}


body.bd-theme h1,
body.bd-theme h2,
body.bd-theme h3,
body.bd-theme h4,
body.bd-theme h5,
body.bd-theme h6 {
    font-family: var(--bd-font-display);
    letter-spacing: -0.025em;
    color: var(--bd-text);
    line-height: 1.1;
}

body.bd-theme p,
body.bd-theme li {
    color: var(--bd-muted);
    line-height: 1.65;
}

body.bd-theme a {
    color: var(--bd-magenta);
    text-decoration: none;
    transition: color 160ms ease, opacity 160ms ease;
}

body.bd-theme a:hover,
body.bd-theme a:focus {
    color: var(--bd-plum);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.bd-theme ::selection {
    background-color: color-mix(in srgb, var(--bd-magenta) 28%, transparent);
    color: var(--bd-text);
}

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

body.bd-theme .wp-block-button__link,
body.bd-theme .button,
body.bd-theme button[type="submit"],
body.bd-theme .single_add_to_cart_button,
body.bd-theme .bd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bd-magenta);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum));
    color: var(--bd-white);
    border: 0;
    border-radius: var(--bd-radius);
    padding: 12px 22px;
    font-family: var(--bd-font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-decoration: none;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--bd-magenta) 24%, transparent);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

body.bd-theme .wp-block-button__link:hover,
body.bd-theme .button:hover,
body.bd-theme button[type="submit"]:hover,
body.bd-theme .single_add_to_cart_button:hover,
body.bd-theme .bd-btn:hover {
    color: var(--bd-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--bd-plum) 32%, transparent);
}

body.bd-theme .button.alt2 {
    background-color: transparent;
    background-image: none;
    color: var(--bd-magenta);
    border: 1.5px solid var(--bd-magenta);
    box-shadow: none;
}

body.bd-theme .button.alt2:hover {
    background-color: var(--bd-magenta);
    color: var(--bd-white);
}

/* -------------------------------------------------------------------------
 * Header / footer colour theming only — no layout changes
 * ---------------------------------------------------------------------- */

body.bd-theme.bd-theme-dark .wp-block-template-part header,
body.bd-theme.bd-theme-dark header.wp-block-template-part {
    background-color: var(--bd-base);
    color: var(--bd-text);
}

body.bd-theme.bd-theme-dark .wp-block-template-part header a,
body.bd-theme.bd-theme-dark .wp-block-template-part header .wp-block-site-title a,
body.bd-theme.bd-theme-dark header.wp-block-template-part a {
    color: var(--bd-text);
}

body.bd-theme.bd-theme-dark .wp-block-template-part footer,
body.bd-theme.bd-theme-dark footer.wp-block-template-part {
    background-color: var(--bd-base);
    color: var(--bd-text);
}

body.bd-theme.bd-theme-dark .wp-block-template-part footer a,
body.bd-theme.bd-theme-dark footer.wp-block-template-part a {
    color: var(--bd-text);
}

body.bd-theme.bd-theme-light .wp-block-template-part header,
body.bd-theme.bd-theme-light header.wp-block-template-part {
    background-color: var(--bd-surface);
    color: var(--bd-text);
}

body.bd-theme.bd-theme-light .wp-block-template-part header a,
body.bd-theme.bd-theme-light .wp-block-template-part header .wp-block-site-title a,
body.bd-theme.bd-theme-light header.wp-block-template-part a {
    color: var(--bd-text);
}

body.bd-theme.bd-theme-light .wp-block-template-part footer,
body.bd-theme.bd-theme-light footer.wp-block-template-part {
    background-color: var(--bd-surface);
    color: var(--bd-text);
}

body.bd-theme.bd-theme-light .wp-block-template-part footer a,
body.bd-theme.bd-theme-light footer.wp-block-template-part a {
    color: var(--bd-text);
}

/* Neutralise white/paper inner groups inside template-part headers/footers. */
body.bd-theme .wp-block-template-part header .has-base-background-color,
body.bd-theme .wp-block-template-part header .has-background,
body.bd-theme .wp-block-template-part header .wp-block-group.has-base-background-color,
body.bd-theme .wp-block-template-part header .wp-block-group.has-background,
body.bd-theme .wp-block-template-part footer .has-base-background-color,
body.bd-theme .wp-block-template-part footer .has-background,
body.bd-theme .wp-block-template-part footer .wp-block-group.has-base-background-color,
body.bd-theme .wp-block-template-part footer .wp-block-group.has-background {
    background-color: transparent;
    color: inherit;
}

/* -------------------------------------------------------------------------
 * Shop archive
 * ---------------------------------------------------------------------- */

body.bd-theme ul.products li.product {
    background-color: var(--bd-surface);
    border: 1px solid var(--bd-border);
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 14px;
    box-shadow: 0 2px 0 color-mix(in srgb, var(--bd-ink) 4%, transparent);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.bd-theme ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: var(--bd-magenta);
    box-shadow: var(--bd-shadow);
}

body.bd-theme ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 12px;
    transition: transform 240ms ease;
}

body.bd-theme ul.products li.product:hover a img {
    transform: scale(1.03);
}

body.bd-theme ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--bd-font-display);
    color: var(--bd-text);
    padding-left: 14px;
    padding-right: 14px;
}

body.bd-theme ul.products li.product .price {
    color: var(--bd-magenta);
    font-weight: 600;
    padding-left: 14px;
    padding-right: 14px;
}

body.bd-theme ul.products li.product .price del {
    color: var(--bd-muted);
    opacity: 0.75;
}

body.bd-theme ul.products li.product .button {
    margin-left: 14px;
    margin-right: 14px;
    padding: 10px 16px;
    font-size: 0.85rem;
}

body.bd-theme ul.products li.product .onsale {
    background: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum)) !important;
    color: var(--bd-white) !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-family: var(--bd-font-display) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    min-height: 0;
    line-height: 1.4;
}

body.bd-theme .woocommerce .star-rating,
body.bd-theme .woocommerce .star-rating span,
body.bd-theme .woocommerce .star-rating::before {
    color: var(--bd-magenta);
}

body.bd-theme .woocommerce .price ins,
body.bd-theme .woocommerce div.product p.price,
body.bd-theme .woocommerce div.product span.price {
    color: var(--bd-magenta);
    font-weight: 600;
}

body.bd-theme .woocommerce nav.woocommerce-pagination ul {
    border: 0;
    display: flex;
    gap: 6px;
}

body.bd-theme .woocommerce nav.woocommerce-pagination ul li {
    border: 0;
}

body.bd-theme .woocommerce nav.woocommerce-pagination ul li a,
body.bd-theme .woocommerce nav.woocommerce-pagination ul li span,
body.bd-theme .woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--bd-border);
    background-color: var(--bd-surface);
    color: var(--bd-text);
    font-weight: 600;
    text-decoration: none;
}

body.bd-theme .woocommerce nav.woocommerce-pagination ul li a:hover,
body.bd-theme .woocommerce nav.woocommerce-pagination ul li span.current,
body.bd-theme .woocommerce-pagination .page-numbers.current {
    background-color: var(--bd-magenta);
    border-color: var(--bd-magenta);
    color: var(--bd-white);
}

body.bd-theme .woocommerce-result-count {
    color: var(--bd-muted);
    font-size: 0.9rem;
}

body.bd-theme .woocommerce-ordering select {
    border: 1px solid var(--bd-border);
    border-radius: 999px;
    background-color: var(--bd-surface);
    color: var(--bd-text);
    padding: 8px 34px 8px 14px;
}

body.bd-theme .woocommerce-breadcrumb,
body.bd-theme .woocommerce-breadcrumb a {
    color: var(--bd-muted);
    font-size: 0.85rem;
}

/* -------------------------------------------------------------------------
 * Product Collection block (blockified shop archive)
 * ---------------------------------------------------------------------- */

body.bd-theme .wp-block-woocommerce-product-collection {
    color: var(--bd-text);
}

body.bd-theme .wc-block-product-template {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.bd-theme .wc-block-product {
    background-color: var(--bd-surface);
    border: 1px solid var(--bd-border);
    border-radius: 16px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 2px 0 color-mix(in srgb, var(--bd-ink) 4%, transparent);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.bd-theme .wc-block-product .wc-block-components-product-image {
    border-radius: 12px;
    overflow: hidden;
}

body.bd-theme .wc-block-product:hover {
    transform: translateY(-4px);
    border-color: var(--bd-magenta);
    box-shadow: var(--bd-shadow);
}

body.bd-theme .wc-block-product img,
body.bd-theme .wc-block-product .wc-block-components-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 240ms ease;
}

body.bd-theme .wc-block-product:hover img {
    transform: scale(1.03);
}

body.bd-theme .wc-block-product .wc-block-components-product-name,
body.bd-theme .wc-block-product .wc-block-components-product-title,
body.bd-theme .wc-block-product .wc-block-components-product-title a {
    color: var(--bd-text);
    font-family: var(--bd-font-display);
    font-weight: 600;
}

body.bd-theme .wc-block-components-product-price {
    color: var(--bd-magenta);
    font-weight: 600;
}

body.bd-theme .wc-block-components-product-price del {
    color: var(--bd-muted);
    opacity: 0.75;
}

body.bd-theme .wc-block-components-product-sale-badge {
    background-color: var(--bd-magenta);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum));
    color: var(--bd-white) !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-family: var(--bd-font-display) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    min-height: 0;
    line-height: 1.4;
}

body.bd-theme .wc-block-components-product-rating,
body.bd-theme .wc-block-components-product-rating__stars,
body.bd-theme .wc-block-components-product-rating .star-rating,
body.bd-theme .wc-block-components-product-rating .star-rating span,
body.bd-theme .wc-block-components-product-rating .star-rating::before {
    color: var(--bd-magenta);
}

body.bd-theme .wc-block-components-product-button .wp-block-button__link,
body.bd-theme .wc-block-product .wp-block-button__link {
    background-color: var(--bd-magenta);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum));
    color: var(--bd-white);
    border-radius: var(--bd-radius);
    font-family: var(--bd-font-display);
    font-weight: 600;
}

body.bd-theme .wc-block-components-product-button .wp-block-button__link:hover,
body.bd-theme .wc-block-product .wp-block-button__link:hover {
    color: var(--bd-white);
    text-decoration: none;
}

body.bd-theme .wp-block-woocommerce-product-collection .wc-block-pagination,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-pagination,
body.bd-theme .wp-block-woocommerce-product-collection .wp-block-query-pagination,
body.bd-theme .wc-block-product-template + .wc-block-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

body.bd-theme .wp-block-woocommerce-product-collection .page-numbers,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--bd-border);
    background-color: var(--bd-surface);
    color: var(--bd-text);
    font-weight: 600;
    text-decoration: none;
}

body.bd-theme .wp-block-woocommerce-product-collection .page-numbers.current,
body.bd-theme .wp-block-woocommerce-product-collection .page-numbers:hover,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-pagination__page.is-active {
    background-color: var(--bd-magenta);
    border-color: var(--bd-magenta);
    color: var(--bd-white);
}

body.bd-theme .wp-block-woocommerce-product-collection .wp-block-button__link,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-button,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-product-template__load-more,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-product-collection__load-more {
    background-color: var(--bd-magenta);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum));
    color: var(--bd-white);
    border-radius: var(--bd-radius);
    font-family: var(--bd-font-display);
    font-weight: 600;
}

body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-product-collection__empty-products,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-product-collection__no-products,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-product-collection__no-products,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-product-template__empty,
body.bd-theme .wp-block-woocommerce-product-collection .wp-block-query-no-results,
body.bd-theme .wp-block-woocommerce-product-collection .wc-block-components-notice-banner {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--bd-border);
    border-radius: 16px;
    background-color: transparent;
    color: var(--bd-muted);
}

@media (min-width: 1024px) {
    body.bd-theme .wc-block-product-template {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

/* -------------------------------------------------------------------------
 * Single product
 * ---------------------------------------------------------------------- */

body.bd-theme div.product div.images,
body.bd-theme div.product .woocommerce-product-gallery {
    border: 1px solid var(--bd-border);
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--bd-surface);
}

body.bd-theme div.product .woocommerce-product-gallery img {
    border-radius: 16px;
}

body.bd-theme div.product .product_title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    letter-spacing: -0.035em;
}

body.bd-theme div.product p.price,
body.bd-theme div.product span.price {
    font-family: var(--bd-font-display);
    font-size: 1.5rem;
}

body.bd-theme div.product .woocommerce-product-details__short-description,
body.bd-theme div.product .woocommerce-tabs {
    color: var(--bd-muted);
}

body.bd-theme div.product .summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.bd-theme div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--bd-border);
    gap: 6px;
}

body.bd-theme div.product .woocommerce-tabs ul.tabs li {
    border: 0;
    background-color: transparent;
}

body.bd-theme div.product .woocommerce-tabs ul.tabs li a {
    color: var(--bd-muted);
    font-family: var(--bd-font-display);
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    padding: 10px 16px;
}

body.bd-theme div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--bd-magenta);
    border-bottom: 2px solid var(--bd-magenta);
}

body.bd-theme div.product .woocommerce-tabs .panel {
    border-radius: 0 0 14px 14px;
}

body.bd-theme div.product .related.products > h2,
body.bd-theme div.product .upsells.products > h2 {
    font-family: var(--bd-font-display);
    letter-spacing: -0.025em;
}

/* -------------------------------------------------------------------------
 * Form controls — every storefront select/quantity follows the canvas
 * ---------------------------------------------------------------------- */

/* Fallback for any select we did not name explicitly (sidebar widgets, etc.). */
body.bd-theme select {
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border: 1px solid var(--bd-border);
}

body.bd-theme .variations select,
body.bd-theme table.variations select,
body.bd-theme select[name^="attribute_"],
body.bd-theme .woocommerce-variation-add-to-cart select,
body.bd-theme .wp-block-woocommerce-add-to-cart-form select,
body.bd-theme .wc-block-components-product-add-to-cart-variation select,
body.bd-theme select.wc-block-components-product-add-to-cart-variation__select,
body.bd-theme select.orderby,
body.bd-theme .woocommerce-ordering select.orderby,
body.bd-theme .widget_price_filter select,
body.bd-theme .widget_product_categories select,
body.bd-theme .woocommerce-widget-layered-nav select,
body.bd-theme .woocommerce-widget-layered-nav-dropdown select,
body.bd-theme .price_slider_wrapper select {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    background-color: var(--bd-surface);
    background-image: var(--bd-select-chevron);
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 12px 8px;
    color: var(--bd-text);
    border: 1px solid var(--bd-border);
    border-radius: 10px;
    padding: .6rem .9rem;
    padding-right: 2.25rem;
    min-height: 44px;
    width: 100%;
    max-width: 22rem;
    line-height: 1.4;
    cursor: pointer;
}

body.bd-theme.bd-theme-dark option,
body.bd-theme.bd-theme-light option {
    background-color: var(--bd-surface);
    color: var(--bd-text);
}

body.bd-theme select:focus-visible {
    outline: 2px solid var(--bd-magenta);
    outline-offset: 2px;
}

body.bd-theme table.variations th,
body.bd-theme table.variations th label,
body.bd-theme table.variations td,
body.bd-theme table.variations td label,
body.bd-theme .variations td,
body.bd-theme .variations th.label label {
    color: var(--bd-text);
}

body.bd-theme .reset_variations {
    color: var(--bd-magenta);
    font-size: .85rem;
    text-decoration: none;
}

body.bd-theme .reset_variations:hover,
body.bd-theme .reset_variations:focus {
    color: var(--bd-plum);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.bd-theme .woocommerce-variation-price,
body.bd-theme .woocommerce div.product .woocommerce-variation-price .price,
body.bd-theme .woocommerce div.product .woocommerce-variation-price span.price {
    color: var(--bd-text);
    font-weight: 700;
}

body.bd-theme .woocommerce-variation-availability,
body.bd-theme .woocommerce-variation-availability p,
body.bd-theme .woocommerce-variation-availability .stock {
    color: var(--bd-muted);
}

body.bd-theme .woocommerce-variation-description,
body.bd-theme .woocommerce-variation-description p {
    color: var(--bd-muted);
}

body.bd-theme .quantity input.qty,
body.bd-theme form.cart .quantity input.qty {
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border: 1px solid var(--bd-border);
    border-radius: 10px;
    min-height: 44px;
    padding: .6rem .9rem;
    width: 5.5rem;
    max-width: 100%;
}

/* -------------------------------------------------------------------------
 * Variation swatches (progressive enhancement; native selects stay when JS
 * is unavailable, because the hiding class is only added by storefront.js)
 * ---------------------------------------------------------------------- */

/* Allowed forced-override exception: WooCommerce/theme rules stretch the hidden
 * native select (inset: 0 / width: 100%), which pushed the document scroll
 * width to 2147px on a 1440px viewport. Clamp the accessibility-only control
 * to a 1px box regardless of theme specificity. */
body.bd-theme .bd-swatch-select {
    position: absolute !important;
    inset: auto !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    max-width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
}

body.bd-theme .bd-swatches {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

body.bd-theme .bd-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border: 1px solid var(--bd-border);
    border-radius: 999px;
    font-family: var(--bd-font-body);
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    background-image: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.bd-theme .bd-swatch:hover {
    border-color: var(--bd-magenta);
    transform: translateY(-1px);
}

body.bd-theme .bd-swatch[aria-pressed="true"] {
    border-color: var(--bd-magenta);
    box-shadow: 0 0 0 2px var(--bd-magenta);
}

body.bd-theme .bd-swatch-select:focus-visible + .bd-swatches {
    outline: 2px solid var(--bd-magenta);
    outline-offset: 3px;
    border-radius: 12px;
}

body.bd-theme .bd-swatch__dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--bd-ink) 22%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bd-white) 35%, transparent);
}

body.bd-theme .bd-swatch__dot--neutral {
    background-color: var(--bd-muted);
}

body.bd-theme .bd-swatch__label {
    white-space: nowrap;
}

body.bd-theme .bd-swatch--size {
    border-radius: 10px;
}

/* Unavailable variations (Woo marks the <option> disabled, or its class
 * contains "disabled") become non-clickable greyed pills. */
body.bd-theme .bd-swatch:disabled,
body.bd-theme .bd-swatch[aria-disabled="true"],
body.bd-theme .bd-swatch[class*="disabled"] {
    background-color: color-mix(in srgb, var(--bd-muted) 16%, transparent);
    color: var(--bd-muted);
    border-color: var(--bd-border);
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

body.bd-theme option:disabled,
body.bd-theme option[disabled] {
    color: var(--bd-muted);
    text-decoration: line-through;
    cursor: not-allowed;
}

/* -------------------------------------------------------------------------
 * Homepage markup
 * ---------------------------------------------------------------------- */

body.bd-theme .bd-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 32px) 64px;
}

body.bd-theme .bd-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 28px;
    background-color: var(--bd-plum);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum) 62%, var(--bd-ink));
    color: var(--bd-white);
    box-shadow: var(--bd-shadow);
}

body.bd-theme .bd-hero__collage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 420px;
    align-content: center;
    justify-self: end;
}

body.bd-theme .bd-hero__tile {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--bd-white) 30%, transparent);
    background-color: color-mix(in srgb, var(--bd-white) 10%, transparent);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body.bd-theme .bd-hero__tile:nth-child(even) {
    transform: translateY(16px);
}

body.bd-theme .bd-hero__tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (min-width: 1024px) {
    body.bd-theme .bd-hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

body.bd-theme .bd-hero h1,
body.bd-theme .bd-hero p,
body.bd-theme .bd-hero a {
    color: var(--bd-white);
}

body.bd-theme .bd-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

body.bd-theme .bd-hero__eyebrow {
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--bd-white) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--bd-white) 28%, transparent);
    font-family: var(--bd-font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.bd-theme .bd-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

body.bd-theme .bd-hero__text {
    margin: 0;
    max-width: 46ch;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: color-mix(in srgb, var(--bd-white) 82%, transparent);
}

body.bd-theme .bd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

body.bd-theme .bd-hero .bd-btn--primary {
    background-color: var(--bd-white);
    background-image: none;
    color: var(--bd-plum);
}

body.bd-theme .bd-hero .bd-btn--primary:hover {
    color: var(--bd-plum);
}

body.bd-theme .bd-btn--ghost {
    background-color: transparent;
    background-image: none;
    color: var(--bd-white);
    border: 1.5px solid color-mix(in srgb, var(--bd-white) 52%, transparent);
    box-shadow: none;
}

body.bd-theme .bd-btn--ghost:hover {
    background-color: color-mix(in srgb, var(--bd-white) 14%, transparent);
    color: var(--bd-white);
}

body.bd-theme .bd-hero__burst {
    position: relative;
    z-index: 1;
    justify-self: end;
    display: block;
    width: min(38vw, 300px);
    color: color-mix(in srgb, var(--bd-white) 22%, transparent);
}

body.bd-theme .bd-hero__burst svg {
    display: block;
    width: 100%;
    height: auto;
}

body.bd-theme .bd-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

body.bd-theme .bd-feature {
    background-color: var(--bd-surface);
    border: 1px solid var(--bd-border);
    border-radius: 18px;
    padding: 24px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.bd-theme .bd-feature:hover {
    transform: translateY(-3px);
    border-color: var(--bd-magenta);
    box-shadow: var(--bd-shadow);
}

body.bd-theme .bd-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--bd-magenta) 12%, transparent);
    color: var(--bd-magenta);
    margin-bottom: 14px;
}

body.bd-theme .bd-feature__icon svg {
    width: 22px;
    height: 22px;
}

body.bd-theme .bd-feature__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

body.bd-theme .bd-feature__text {
    margin: 0;
    font-size: 0.95rem;
}

body.bd-theme .bd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    padding: 22px;
    border-radius: 18px;
    background-color: var(--bd-ink);
    color: var(--bd-white);
}

body.bd-theme .bd-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

body.bd-theme .bd-stat__value {
    font-family: var(--bd-font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--bd-white);
}

body.bd-theme .bd-stat__label {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--bd-white) 68%, transparent);
}

body.bd-theme .bd-products {
    margin-top: 44px;
}

body.bd-theme .bd-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body.bd-theme .bd-section-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

body.bd-theme .bd-section-link {
    font-family: var(--bd-font-display);
    font-weight: 600;
}

body.bd-theme .bd-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body.bd-theme .bd-product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bd-surface);
    border: 1px solid var(--bd-border);
    border-radius: 16px;
    overflow: hidden;
    color: var(--bd-text);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.bd-theme .bd-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--bd-magenta);
    box-shadow: var(--bd-shadow);
    text-decoration: none;
}

body.bd-theme .bd-product-card__media {
    display: block;
    background-color: var(--bd-base);
}

body.bd-theme .bd-product-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

body.bd-theme .bd-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 18px;
}

body.bd-theme .bd-product-card__name {
    font-family: var(--bd-font-display);
    font-weight: 600;
    color: var(--bd-text);
}

body.bd-theme .bd-product-card__price {
    color: var(--bd-magenta);
    font-weight: 600;
}

body.bd-theme .bd-product-card__view {
    margin-top: 8px;
    font-family: var(--bd-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bd-magenta);
}

body.bd-theme .bd-product-card:hover .bd-product-card__view {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.bd-theme .bd-products__empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--bd-border);
    border-radius: 16px;
    grid-column: 1 / -1;
}

body.bd-theme .bd-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 22px;
    background-color: var(--bd-base);
    border: 1px solid var(--bd-border);
}

body.bd-theme .bd-cta__title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

body.bd-theme .bd-cta__sub {
    margin: 0;
}

/* Contrast guard: text inside a gradient CTA band stays white. */
body.bd-theme .bd-cta,
body.bd-theme .bd-cta a,
body.bd-theme .bd-cta button {
    color: #fff;
}

/* -------------------------------------------------------------------------
 * Cart / checkout — tokens scope ONLY (typography + button colour)
 * No layout, spacing, grid or input-sizing rules live here.
 * ---------------------------------------------------------------------- */

body.bd-theme.bd-cart-tokens.woocommerce-cart,
body.bd-theme.bd-cart-tokens.woocommerce-checkout {
    font-family: var(--bd-font-body);
    color: var(--bd-text);
}

body.bd-theme.bd-cart-tokens.woocommerce-cart h1,
body.bd-theme.bd-cart-tokens.woocommerce-cart h2,
body.bd-theme.bd-cart-tokens.woocommerce-cart h3,
body.bd-theme.bd-cart-tokens.woocommerce-checkout h1,
body.bd-theme.bd-cart-tokens.woocommerce-checkout h2,
body.bd-theme.bd-cart-tokens.woocommerce-checkout h3 {
    font-family: var(--bd-font-display);
    color: var(--bd-text);
}

body.bd-theme.bd-cart-tokens.woocommerce-cart .button,
body.bd-theme.bd-cart-tokens.woocommerce-cart button[type="submit"],
body.bd-theme.bd-cart-tokens.woocommerce-checkout .button,
body.bd-theme.bd-cart-tokens.woocommerce-checkout button[type="submit"],
body.bd-theme.bd-cart-tokens.woocommerce-checkout #place_order {
    background-color: var(--bd-magenta);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum));
    color: var(--bd-white);
}

body.bd-theme.bd-cart-tokens.woocommerce-cart .button:hover,
body.bd-theme.bd-cart-tokens.woocommerce-checkout .button:hover,
body.bd-theme.bd-cart-tokens.woocommerce-checkout #place_order:hover {
    color: var(--bd-white);
}

/* Cart block + classic cart readability on the selected canvas. Colours,
 * surfaces and borders only — no layout, spacing or sizing changes. */
body.bd-cart-tokens .wp-block-woocommerce-cart,
body.bd-cart-tokens .wc-block-cart,
body.bd-cart-tokens .woocommerce-cart-form,
body.bd-cart-tokens .cart_totals,
body.bd-cart-tokens .woocommerce-checkout {
    color: var(--bd-text);
}

body.bd-cart-tokens .wc-block-cart-items th,
body.bd-cart-tokens .wc-block-cart-items__header,
body.bd-cart-tokens .wc-block-cart-items__header th,
body.bd-cart-tokens .shop_table thead th,
body.bd-cart-tokens .shop_table th,
body.bd-cart-tokens .cart_totals th,
body.bd-cart-tokens .cart_totals td {
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border-color: var(--bd-border);
}

body.bd-cart-tokens .wc-block-cart-items td,
body.bd-cart-tokens .wc-block-components-product-name,
body.bd-cart-tokens .wc-block-cart-item__product .wc-block-components-product-name,
body.bd-cart-tokens .cart_item .product-name,
body.bd-cart-tokens .cart_item .product-name a,
body.bd-cart-tokens .wc-block-components-totals-item__label,
body.bd-cart-tokens .wc-block-components-totals-item__value,
body.bd-cart-tokens .cart_totals .amount,
body.bd-cart-tokens .order-total .amount,
body.bd-cart-tokens .woocommerce-checkout-review-order-table th,
body.bd-cart-tokens .woocommerce-checkout-review-order-table td {
    color: var(--bd-text);
    border-color: var(--bd-border);
}

body.bd-cart-tokens .wc-block-components-quantity-selector input,
body.bd-cart-tokens .wc-block-cart-item__quantity input,
body.bd-cart-tokens .quantity input.qty,
body.bd-cart-tokens .wc-block-components-text-input input,
body.bd-cart-tokens .wc-block-components-text-input input[type="text"],
body.bd-cart-tokens .coupon input[type="text"],
body.bd-cart-tokens #coupon_code {
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border: 1px solid var(--bd-border);
}

body.bd-cart-tokens .wc-block-components-totals-item,
body.bd-cart-tokens .wc-block-cart__totals-title,
body.bd-cart-tokens .cart_totals table,
body.bd-cart-tokens .woocommerce-checkout-review-order-table,
body.bd-cart-tokens .shop_table {
    color: var(--bd-text);
    border-color: var(--bd-border);
}

/* -------------------------------------------------------------------------
 * Primary CTA contrast hardening — the only place strong overrides are allowed.
 * Safari/mobile themes can leave the label transparent (background-clip:
 * text), and the block cart/checkout buttons were previously uncovered.
 * ---------------------------------------------------------------------- */

body.bd-theme .checkout-button,
body.bd-theme .wc-block-components-button:not(.is-link):not(.wc-block-mini-cart__button),
body.bd-theme .wc-block-cart__submit-button,
body.bd-theme .wp-block-button__link,
body.bd-theme .single_add_to_cart_button,
body.bd-theme #place_order,
body.bd-theme .wc-block-components-checkout-place-order-button,
body.bd-theme button[name="woocommerce_checkout_place_order"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none;
    background-color: var(--bd-magenta);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum));
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    font-weight: 700;
}

body.bd-theme .checkout-button *,
body.bd-theme .wc-block-components-button:not(.is-link):not(.wc-block-mini-cart__button) *,
body.bd-theme .wc-block-cart__submit-button *,
body.bd-theme .wp-block-button__link *,
body.bd-theme .single_add_to_cart_button *,
body.bd-theme #place_order *,
body.bd-theme .wc-block-components-checkout-place-order-button *,
body.bd-theme button[name="woocommerce_checkout_place_order"] * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.bd-theme .checkout-button:hover,
body.bd-theme .checkout-button:active,
body.bd-theme .wc-block-components-button:not(.is-link):not(.wc-block-mini-cart__button):hover,
body.bd-theme .wc-block-components-button:not(.is-link):not(.wc-block-mini-cart__button):active,
body.bd-theme .wc-block-cart__submit-button:hover,
body.bd-theme .wc-block-cart__submit-button:active,
body.bd-theme .wp-block-button__link:hover,
body.bd-theme .wp-block-button__link:active,
body.bd-theme .single_add_to_cart_button:hover,
body.bd-theme .single_add_to_cart_button:active,
body.bd-theme #place_order:hover,
body.bd-theme #place_order:active,
body.bd-theme .wc-block-components-checkout-place-order-button:hover,
body.bd-theme .wc-block-components-checkout-place-order-button:active,
body.bd-theme button[name="woocommerce_checkout_place_order"]:hover,
body.bd-theme button[name="woocommerce_checkout_place_order"]:active {
    filter: brightness(1.08);
}

body.bd-theme .checkout-button:focus-visible,
body.bd-theme .wc-block-components-button:not(.is-link):not(.wc-block-mini-cart__button):focus-visible,
body.bd-theme .wc-block-cart__submit-button:focus-visible,
body.bd-theme .wp-block-button__link:focus-visible,
body.bd-theme .single_add_to_cart_button:focus-visible,
body.bd-theme #place_order:focus-visible,
body.bd-theme .wc-block-components-checkout-place-order-button:focus-visible,
body.bd-theme button[name="woocommerce_checkout_place_order"]:focus-visible {
    outline: 2px solid var(--bd-magenta);
    outline-offset: 2px;
}

/* Block cart + mini cart on the selected canvas. Colours, surfaces and
 * borders only — no layout, spacing or sizing changes. */
body.bd-cart-tokens .wc-block-cart,
body.bd-cart-tokens .wc-block-cart-items,
body.bd-cart-tokens .wc-block-mini-cart__drawer,
body.bd-cart-tokens .wc-block-mini-cart__footer,
body.bd-cart-tokens .wc-block-mini-cart__button {
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border-color: var(--bd-border);
}

body.bd-cart-tokens .wc-block-components-product-name,
body.bd-cart-tokens .wc-block-components-product-price,
body.bd-cart-tokens .wc-block-components-totals-item {
    color: var(--bd-text);
    border-color: var(--bd-border);
}

body.bd-cart-tokens .wc-block-components-text-input input,
body.bd-cart-tokens .wc-block-components-quantity-selector input {
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border: 1px solid var(--bd-border);
}

body.bd-cart-tokens .wc-block-components-button.is-link {
    background-color: var(--bd-surface-2);
    background-image: none;
    color: var(--bd-text);
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
}

body.bd-cart-tokens .wc-block-components-quantity-selector,
body.bd-cart-tokens .wc-block-components-quantity-selector__input,
body.bd-cart-tokens .wc-block-components-quantity-selector__button {
    min-height: 44px;
    height: 44px;
    background-color: var(--bd-surface);
    color: var(--bd-text);
    border-color: var(--bd-border);
}

body.bd-cart-tokens .wc-block-components-quantity-selector__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* -------------------------------------------------------------------------
 * Mobile sticky add-to-cart bar
 * ---------------------------------------------------------------------- */

@media (max-width: 782px) {
    body.bd-theme {
        padding-bottom: 84px;
    }

    body.bd-theme.single-product {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    body.bd-theme.single-product div.product form.cart {
        position: sticky !important;
        bottom: 0;
        z-index: 60;
        margin: 0 -12px;
        padding: 10px 12px;
        background-color: var(--bd-surface);
        border-top: 1px solid var(--bd-border);
        box-shadow: 0 -10px 28px color-mix(in srgb, var(--bd-ink) 14%, transparent);
    }

    body.bd-theme.single-product div.product form.cart .single_add_to_cart_button {
        flex: 1 1 auto;
        width: 100%;
    }

    body.bd-theme .bd-hero {
        grid-template-columns: 1fr;
    }

    body.bd-theme .bd-hero__burst {
        position: absolute;
        top: -30px;
        right: -40px;
        width: 220px;
        justify-self: auto;
    }

    body.bd-theme .bd-features,
    body.bd-theme .bd-stats,
    body.bd-theme .bd-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.bd-theme .bd-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body.bd-theme .bd-features,
    body.bd-theme .bd-stats,
    body.bd-theme .bd-product-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------
 * v1.16.0 — trust row, size guide, shipping progress, related collection,
 * ratings, announcement bar and skip link.
 * ---------------------------------------------------------------------- */

body.bd-theme .bd-skip-link {
    position: absolute;
    left: 12px;
    top: -64px;
    z-index: 100001;
    padding: 10px 16px;
    border-radius: 0 0 10px 10px;
    background-color: var(--bd-magenta);
    color: var(--bd-white);
    font-family: var(--bd-font-display);
    font-weight: 600;
    text-decoration: none;
    transition: top 160ms ease;
}

body.bd-theme .bd-skip-link:focus,
body.bd-theme .bd-skip-link:focus-visible {
    top: 0;
    color: var(--bd-white);
    outline: 2px solid var(--bd-white);
    outline-offset: 2px;
}

body.bd-theme .bd-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    padding: 8px 44px 8px 16px;
    background-color: var(--bd-magenta);
    background-image: linear-gradient(135deg, var(--bd-magenta), var(--bd-plum));
    color: var(--bd-white);
    font-family: var(--bd-font-body);
    font-size: 0.85rem;
    text-align: center;
}

body.bd-theme .bd-announcement__text {
    margin: 0;
    color: var(--bd-white);
}

body.bd-theme .bd-announcement__dismiss {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--bd-white) 45%, transparent);
    border-radius: 999px;
    background-color: transparent;
    background-image: none;
    color: var(--bd-white);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

body.bd-theme .bd-announcement__dismiss:hover {
    background-color: color-mix(in srgb, var(--bd-white) 16%, transparent);
    color: var(--bd-white);
    transform: translateY(-50%);
}

body.bd-theme .bd-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--bd-border);
    border-radius: 14px;
    background-color: var(--bd-surface);
}

body.bd-theme .bd-trust-row__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--bd-muted);
    font-family: var(--bd-font-body);
    font-size: 0.82rem;
    line-height: 1.25;
}

body.bd-theme .bd-trust-row__icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--bd-magenta);
}

body.bd-theme .bd-trust-row__button {
    min-height: 0;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: none;
    color: var(--bd-magenta);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
    cursor: pointer;
}

body.bd-theme .bd-trust-row__button:hover {
    color: var(--bd-plum);
    transform: none;
    box-shadow: none;
}

body.bd-theme .bd-size-guide[hidden] {
    display: none;
}

body.bd-theme.bd-modal-open {
    overflow: hidden;
}

body.bd-theme .bd-size-guide {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.bd-theme .bd-size-guide__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 10, 22, 0.62);
}

body.bd-theme .bd-size-guide__panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--bd-border);
    border-radius: 20px;
    background-color: var(--bd-surface);
    color: var(--bd-text);
    box-shadow: var(--bd-shadow);
}

body.bd-theme .bd-size-guide__title {
    margin: 0 0 8px;
    padding-right: 40px;
    font-size: 1.4rem;
}

body.bd-theme .bd-size-guide__intro,
body.bd-theme .bd-size-guide__hint {
    margin: 0 0 14px;
    color: var(--bd-muted);
    font-size: 0.9rem;
}

body.bd-theme .bd-size-guide__hint {
    margin-top: 14px;
    margin-bottom: 0;
}

body.bd-theme .bd-size-guide__close {
    position: absolute;
    right: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    border: 1px solid var(--bd-border);
    border-radius: 999px;
    background-color: var(--bd-surface-2);
    background-image: none;
    color: var(--bd-text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

body.bd-theme .bd-size-guide__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

body.bd-theme .bd-size-guide__table th,
body.bd-theme .bd-size-guide__table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--bd-border);
    color: var(--bd-text);
    text-align: left;
}

body.bd-theme .bd-size-guide__table thead th {
    color: var(--bd-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.bd-theme .bd-shipping-progress {
    margin: 16px 0;
}

body.bd-theme .bd-shipping-progress__track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background-color: color-mix(in srgb, var(--bd-muted) 22%, transparent);
}

body.bd-theme .bd-shipping-progress__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: var(--bd-magenta);
    background-image: linear-gradient(90deg, var(--bd-magenta), var(--bd-plum));
    transition: width 240ms ease;
}

body.bd-theme .bd-shipping-progress__text {
    margin: 8px 0 0;
    color: var(--bd-muted);
    font-size: 0.85rem;
}

body.bd-theme .bd-related {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--bd-border);
}

body.bd-theme .bd-related__title {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

body.bd-theme .bd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.bd-theme .bd-related__card {
    min-width: 0;
}

body.bd-theme .bd-related__card .bd-product-card__body {
    padding: 10px 12px 12px;
}

body.bd-theme .bd-collections {
    margin-top: 28px;
}

body.bd-theme .bd-collections__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

body.bd-theme .bd-collection-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bd-border);
    border-radius: 16px;
    background-color: var(--bd-surface);
    color: var(--bd-text);
    text-decoration: none;
    box-shadow: 0 2px 0 color-mix(in srgb, var(--bd-ink) 4%, transparent);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.bd-theme .bd-collection-card:hover {
    transform: translateY(-4px);
    border-color: var(--bd-magenta);
    box-shadow: var(--bd-shadow);
    text-decoration: none;
}

body.bd-theme .bd-collection-card__media {
    display: block;
    background-color: var(--bd-base);
}

body.bd-theme .bd-collection-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

body.bd-theme .bd-collection-card__name {
    padding: 10px 12px;
    font-family: var(--bd-font-display);
    font-weight: 600;
    color: var(--bd-text);
}

body.bd-theme .bd-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.2;
}

body.bd-theme .bd-rating__stars {
    display: inline-flex;
    gap: 1px;
    color: color-mix(in srgb, var(--bd-muted) 55%, transparent);
}

body.bd-theme .bd-rating__star.is-filled {
    color: var(--bd-magenta);
}

body.bd-theme .bd-rating__count {
    color: var(--bd-muted);
}

body.bd-theme .bd-swatch__dot--image {
    width: 32px;
    height: 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--bd-border);
    box-shadow: none;
}

body.bd-theme .bd-swatch[aria-pressed="true"] .bd-swatch__dot--image {
    box-shadow: 0 0 0 2px var(--bd-magenta);
}

body.bd-theme .bd-trust-row__button:focus-visible,
body.bd-theme .bd-size-guide__close:focus-visible,
body.bd-theme .bd-shipping-progress:focus-visible,
body.bd-theme .bd-collection-card:focus-visible,
body.bd-theme .bd-related__card:focus-visible,
body.bd-theme .bd-announcement__dismiss:focus-visible {
    outline: 2px solid var(--bd-magenta);
    outline-offset: 2px;
}

body.bd-theme .bd-announcement__dismiss:focus-visible,
body.bd-theme .bd-skip-link:focus-visible {
    outline-color: var(--bd-white);
}

@media (max-width: 782px) {
    body.bd-theme .bd-collections__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    body.bd-theme .bd-collections__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.bd-theme .bd-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* -------------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    body.bd-theme *,
    body.bd-theme *::before,
    body.bd-theme *::after {
        transition-duration: 0.001ms;
        animation-duration: 0.001ms;
        animation-iteration-count: 1;
        scroll-behavior: auto;
    }
}

