/* Customer-facing refinements; existing controls, responsive flows and JS state remain authoritative. */
@media screen {
    .storefront-ui {
        --storefront-primary: var(--ui-primary);
        --storefront-primary-strong: var(--ui-primary-hover);
        --storefront-ink: var(--ui-ink);
        --storefront-muted: var(--ui-muted);
        --storefront-line: var(--ui-line);
        --storefront-soft: var(--ui-canvas);
        --storefront-radius: var(--ui-radius);
        --storefront-shadow: none;
    }

    .storefront-ui main {
        background: var(--ui-canvas);
    }

    .storefront-ui .catalog-shell.is-storefront-home {
        padding-top: 32px;
    }

    .storefront-ui .storefront-hero-intro {
        gap: 48px;
        padding: 36px 40px;
        border: 0;
        border-radius: var(--ui-radius);
        background: #eaf1f8;
        box-shadow: none;
    }

    .storefront-ui .storefront-hero-kicker {
        display: none;
    }

    .storefront-ui .storefront-hero-intro h1 {
        max-width: 700px;
        color: var(--ui-ink);
        font-size: 2.5rem;
        line-height: 1.3;
        letter-spacing: -0.025em;
    }

    .storefront-ui .storefront-stroke-title-text {
        fill: var(--ui-ink);
        stroke: none;
        animation: none;
    }

    .storefront-ui .storefront-hero-intro .storefront-hero-lead {
        max-width: 65ch;
        margin-top: 16px;
        color: #40566c;
        font-size: 1rem;
        line-height: 1.8;
    }

    .storefront-ui :is(.storefront-hero-lead, .storefront-hero-actions, .storefront-hero-assurance) {
        animation: none;
    }

    .storefront-ui .storefront-hero-actions {
        margin-top: 24px;
        gap: 12px;
    }

    .storefront-ui .storefront-hero-actions a {
        min-height: 46px;
        border-color: var(--ui-primary);
        border-radius: var(--ui-control-radius);
        background: var(--ui-primary);
        color: #ffffff;
        font-size: 0.9375rem;
    }

    .storefront-ui .storefront-hero-actions a:last-child {
        border-color: #b6c7d8;
        background: transparent;
        color: #153c63;
    }

    .storefront-ui .storefront-hero-actions a:hover {
        border-color: var(--ui-primary-hover);
        background: var(--ui-primary-hover);
        color: #ffffff;
    }

    .storefront-ui .storefront-hero-assurance {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--ui-ink);
    }

    .storefront-ui .storefront-hero-assurance > span {
        color: #3d576f;
        font-size: 0.8125rem;
        letter-spacing: 0;
    }

    .storefront-ui .storefront-hero-assurance > strong {
        margin-top: 6px;
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .storefront-ui .storefront-hero-assurance li {
        color: #40566c;
        font-size: 0.8125rem;
        line-height: 1.7;
    }

    .storefront-ui :is(.page-title > .eyebrow, .catalog-page-intro > .eyebrow, .auth-card-heading > span, .auth-card-overlay-badge, .site-footer__eyebrow) {
        display: none;
    }

    /* Keep the catalog's existing carousel controls clear of slide copy. */
    .storefront-ui .banner-carousel .banner-arrow,
    .storefront-ui .banner-carousel .banner-arrow:hover {
        top: auto;
        bottom: 12px;
        width: 44px;
        min-height: 44px;
        transform: none;
    }

    .storefront-ui .banner-carousel .banner-arrow-prev {
        left: 16px;
    }

    .storefront-ui .banner-carousel .banner-arrow-next {
        right: 16px;
    }

    .storefront-ui .banner-carousel .banner-dots {
        bottom: 12px;
        max-width: calc(100% - 128px);
        padding: 0;
    }

    .storefront-ui .banner-slide-fallback {
        padding-bottom: 80px;
    }

    .storefront-ui .banner-slide .banner-caption {
        bottom: 76px;
    }

    .storefront-ui :is(.catalog-page-intro:not(.storefront-hero-intro), .page-panel, .auth-panel, .detail-media, .detail-content, .detail-summary-card, .detail-description-card, .checkout-summary, .product-filter-panel, .product-combo-card) {
        border-color: var(--ui-line);
        border-radius: var(--ui-radius);
        background-color: #ffffff;
        box-shadow: none;
    }

    .storefront-ui .catalog-page-intro:not(.storefront-hero-intro) {
        padding: 0 0 24px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .storefront-ui :is(.catalog-page-intro:not(.storefront-hero-intro) h1, .page-title h1) {
        margin: 0;
        color: var(--ui-ink);
        font-size: 1.875rem;
        line-height: 1.45;
        letter-spacing: -0.02em;
    }

    .storefront-ui .detail-content h1 {
        font-size: 2rem;
        line-height: 1.4;
        letter-spacing: -0.02em;
        overflow-wrap: anywhere;
    }

    .storefront-ui .page-title {
        margin-bottom: 24px;
    }

    .storefront-ui :is(.catalog-page-intro p, .page-title p, .product-filter-head span, .product-meta) {
        color: var(--ui-muted);
    }

    .storefront-ui :is(.home-section, .home-product-section) {
        margin-top: 36px;
    }

    .storefront-ui :is(.home-section-title, .home-section-heading h2, .home-product-section h2) {
        color: var(--ui-ink);
        font-size: 1.375rem;
        line-height: 1.5;
        letter-spacing: -0.015em;
    }

    .storefront-ui :is(.home-section-heading, .home-brand-directory-head) {
        padding-left: 0;
        border-left: 0;
    }

    .storefront-ui .home-brand-directory-head h2 {
        font-size: 1.375rem;
        line-height: 1.5;
    }

    .storefront-ui .enterprise-trust-strip {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .storefront-ui .enterprise-trust-item {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .storefront-ui .enterprise-trust-icon {
        border-radius: 0;
        background: transparent;
        color: #285f92;
    }

    .storefront-ui :is(.home-product-card, .product-card, .coupon-card) {
        border-color: var(--ui-line);
        border-radius: var(--ui-radius);
        box-shadow: none;
        transition: border-color 180ms ease;
    }

    .storefront-ui :is(.home-product-card, .product-card):hover {
        border-color: #8da9c6;
        box-shadow: none;
        transform: none;
    }

    .storefront-ui .home-product-image {
        border: 0;
        border-radius: 8px;
        background: #f8fafc;
    }

    .storefront-ui .home-product-card h3 {
        color: var(--ui-ink);
        font-size: 0.9375rem;
        font-weight: 400;
        line-height: 1.65;
    }

    .storefront-ui :is(.home-product-card strong, .product-actions strong) {
        color: var(--ui-ink);
        font-size: 1.125rem;
        font-variant-numeric: tabular-nums;
    }

    .storefront-ui .home-product-card strong.is-discontinued-price {
        color: var(--color-red);
    }

    .storefront-ui :is(.home-product-card .product-vat-note, .product-vat-note) {
        color: var(--ui-muted);
    }

    .storefront-ui :is(.product-filter-panel, .cart-review-table-wrap) {
        border-color: var(--ui-line);
        box-shadow: none;
    }

    .storefront-ui :is(.product-filter-fields select, .checkout-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .checkout-form select, .checkout-form textarea, .auth-card-form input:not([type="checkbox"]):not([type="hidden"])) {
        border-color: #bac9d8;
        border-radius: var(--ui-control-radius);
        background-color: #ffffff;
        color: var(--ui-ink);
    }

    .storefront-ui :is(.product-filter-actions button, .cart-proceed-checkout, .auth-card-submit, .button-primary) {
        border-color: var(--ui-primary);
        border-radius: var(--ui-control-radius);
        background: var(--ui-primary);
        color: #ffffff;
        box-shadow: none;
    }

    .storefront-ui :is(.product-filter-actions button, .cart-proceed-checkout, .auth-card-submit, .button-primary):hover {
        border-color: var(--ui-primary-hover);
        background: var(--ui-primary-hover);
        color: #ffffff;
    }

    .storefront-ui :is(.cart-review-table thead, .checkout-review-table thead) {
        color: #40566c;
        background: #f3f6fa;
    }

    .storefront-ui :is(.cart-review-table td, .checkout-review-table td) {
        border-color: var(--ui-line);
    }

    .storefront-ui .cart-review-summary {
        border-color: var(--ui-line);
        border-radius: var(--ui-radius);
        background: #f3f7fc;
    }

    .storefront-ui :is(.auth-card-face, .auth-card-reset-shell) {
        border-color: var(--ui-line);
        border-radius: 16px;
        box-shadow: none;
    }

    .storefront-ui .auth-card-recovery-visual {
        background: #123b60;
    }

    .storefront-ui .auth-card-recovery-visual::after {
        background-image: none;
    }

    .storefront-ui .storefront-motion-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .storefront-ui .site-footer {
        box-shadow: none;
    }
}

@media screen and (min-width: 1024px) {
    .storefront-ui .storefront-hero-intro {
        grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
    }
}

@media screen and (max-width: 1023px) {
    .storefront-ui .storefront-hero-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 28px;
    }

    .storefront-ui .storefront-hero-assurance ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 600px) {
    .storefront-ui .catalog-shell.is-storefront-home {
        padding-top: 20px;
    }

    .storefront-ui .storefront-hero-intro {
        padding: 24px 20px;
        gap: 24px;
    }

    .storefront-ui .storefront-hero-intro h1 {
        font-size: 1.875rem;
    }

    .storefront-ui .storefront-hero-actions {
        gap: 10px;
    }

    .storefront-ui .storefront-hero-actions a {
        padding: 0 14px;
        font-size: 0.8125rem;
    }

    .storefront-ui .storefront-hero-assurance ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-top: 12px;
    }

    .storefront-ui :is(.catalog-page-intro:not(.storefront-hero-intro) h1, .page-title h1, .detail-content h1) {
        font-size: 1.5rem;
    }
}
