/*
   Customer storefront foundation
   ------------------------------
   This file is loaded only by the public layout. It gives every customer page
   one quiet retail surface system without changing the protected operations
   workspace or any commerce behaviour.
*/

:root {
    --o3d-public-page: #080d13;
    --o3d-public-page-raised: #0c141d;
    --o3d-public-surface: #101a25;
    --o3d-public-surface-raised: #152231;
    --o3d-public-border: rgba(205, 224, 239, .11);
    --o3d-public-border-strong: rgba(255, 151, 69, .34);
    --o3d-public-radius-sm: .7rem;
    --o3d-public-radius-md: 1rem;
    --o3d-public-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .24);
    --o3d-public-background:
        radial-gradient(74rem 38rem at 50% -14rem, rgba(44, 94, 131, .18), transparent 68%),
        radial-gradient(36rem 28rem at 100% 14%, rgba(255, 111, 0, .065), transparent 70%),
        linear-gradient(180deg, #0c141d 0, var(--o3d-public-page) 27rem, #080d13 100%);
}

html {
    background: var(--o3d-public-page);
}

/* A direct basket link stays outside the collapsed mobile menu. It does not
   own a popover, so it cannot conflict with account or notification panels. */
.site-mobile-basket { display: none; }
@media (max-width: 1199.98px) {
    .site-navbar .site-mobile-basket {
        display: inline-flex;
        position: relative;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        margin-right: .7rem;
        border: 1px solid var(--o3d-public-border);
        border-radius: .65rem;
        color: #fff;
        text-decoration: none;
        background: rgba(255,255,255,.035);
    }
    .site-mobile-basket [data-mobile-cart-count] {
        position: absolute;
        top: -4px;
        right: -5px;
        min-width: 18px;
        padding: 1px 4px;
        border-radius: 20px;
        background: #ff8a28;
        color: #101010;
        font-size: .65rem;
        font-weight: 800;
        text-align: center;
    }
    .site-mobile-basket [hidden] { display: none; }
}

.storefront-skip-link {
    position: fixed;
    top: .65rem;
    left: 1rem;
    z-index: 11000;
    padding: .7rem 1rem;
    border-radius: .5rem;
    background: #ff8a28;
    color: #101010;
    font-weight: 700;
    transform: translateY(-180%);
}
.storefront-skip-link:focus { transform: translateY(0); color: #101010; }

body {
    min-height: 100vh;
    background: var(--o3d-public-background);
    color: var(--o3d-text);
    font-family: "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(255, 125, 29, .34);
    color: #fff;
}

main[role="main"] {
    position: relative;
    isolation: isolate;
}

/* A single accessible focus treatment stops controls from feeling like they
   belong to different pages while retaining each page's own component style. */
:where(main[role="main"] a, main[role="main"] button, main[role="main"] input, main[role="main"] select, .site-navbar a, .site-navbar button):focus-visible {
    outline: 2px solid rgba(255, 177, 108, .9);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
