/* Shared shopping controls. Keep the selected theme's typography and palette. */
.storefront-theme {
    --shopping-accent: var(--store-accent, var(--brand-primary, #0a45fc));
    --shopping-border: color-mix(in srgb, var(--shopping-accent) 16%, #dbe2ec);
    --shopping-shadow: 0 12px 30px -24px color-mix(in srgb, var(--shopping-accent) 45%, #17243c);
}

.storefront-theme :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--shopping-accent);
    outline-offset: 3px;
}

.storefront-theme .collection-heading {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: .45rem;
}

.storefront-theme :is(.collection-heading, .theme-shop-toolbar) :is(h1, h2) {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.storefront-theme .product-card {
    border-color: var(--shopping-border);
    box-shadow: var(--shopping-shadow);
}

.storefront-theme .product-card-name {
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.storefront-theme .product-card-actions .product-card-cta {
    min-width: 0;
    min-height: 44px;
    padding-inline: .4rem;
}

.storefront-theme .product-card-action-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
}

.storefront-theme :is(.product-card-price, .theme-cart strong) {
    font-variant-numeric: tabular-nums;
}

.storefront-theme .theme-shop-toolbar {
    min-width: 0;
    padding-block: .875rem;
    border-bottom-color: var(--shopping-border);
}

.storefront-theme .theme-shop-toolbar :is(button, select),
.storefront-theme .theme-shop-filters form > button {
    min-height: 44px;
}

.storefront-theme :is(.product-hero-card, .theme-cart [aria-labelledby], .a1-checkout-studio .theme-checkout-columns > form > div, .a1-checkout-studio .theme-checkout-columns > aside > div) {
    min-width: 0;
    border-color: var(--shopping-border);
    box-shadow: var(--shopping-shadow);
}

.storefront-theme .product-purchase-zone .product-action-button {
    min-height: 48px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.storefront-theme .checkout-brand-header > div {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    column-gap: .75rem;
    row-gap: .375rem;
    padding-block: .625rem;
}

.storefront-theme .checkout-brand-header a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.storefront-theme .a1-checkout-studio ol {
    flex-wrap: wrap;
    gap: .45rem;
}

.storefront-theme .a1-checkout-studio ol > li:empty {
    width: clamp(.5rem, 3vw, 2rem);
}

.storefront-theme .a1-checkout-studio :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    min-height: 44px;
}

@media (max-width: 480px) {
    .storefront-theme .theme-catalog-grid[data-view="list"] .product-card-actions button {
        min-height: 44px;
    }

    .storefront-theme .a1-checkout-studio .theme-checkout-columns > :is(form, aside) > div {
        padding-inline: clamp(.875rem, 4vw, 1.25rem);
    }
}
