/* Chakra Petch 600; SIL Open Font License in assets/fonts/chakra-petch-OFL.txt. */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/chakra-petch-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/chakra-petch-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Formularz zamówienia i potwierdzenie przelewu. */
[data-order-form][hidden], .transfer-confirmation[hidden],
.section:has([data-order-form]) > .section-heading[hidden] { display: none !important; }
main label, main legend, main .eyebrow, main .text-link, main .form-message { color: #fff !important; }
.checkout-form label { text-shadow: none; }
.checkout-form input:not([type="radio"]):not([type="checkbox"]),
.checkout-form textarea { color: #18202a; }
.checkout-form .payment-box label { display: flex; align-items: center; gap: 12px; padding: 10px; cursor: pointer; border: 1px solid transparent; border-radius: 10px; }
.checkout-form .payment-box label:has(input:checked) { border-color: #61e2e6; background: #153d49; }
.checkout-form input[type="radio"], .checkout-form input[type="checkbox"] { width: 18px; height: 18px; padding: 0; margin: 0; flex: 0 0 18px; accent-color: #61e2e6; }
.checkout-form .checkbox-line { align-items: flex-start; font-weight: 600; }
.checkout-form .checkbox-line input { margin-top: 4px; }
.checkout-form .form-message { white-space: pre-line; }
.transfer-confirmation { max-width: 780px; margin: 0 auto; padding: clamp(20px, 3vw, 36px); border: 1px solid #416675; border-radius: 22px; background: rgba(5, 19, 29, .97); color: #ecf6ff; scroll-margin-top: 24px; }
.transfer-confirmation h1, .transfer-confirmation h2 { margin: 16px 0 10px; font-size: clamp(25px, 3vw, 36px); line-height: 1.2; color: #fff; }
.transfer-confirmation h2:focus { outline: none; }
.transfer-confirmation p { line-height: 1.6; }
.transfer-page.section { max-width: 860px; margin-inline: auto; padding: 0; background: none; border: 0; box-shadow: none; }
.transfer-email { overflow-wrap: anywhere; }
.transfer-status { display: inline-block; padding: 7px 12px; border: 1px solid #ba9450; border-radius: 999px; color: #f6d699; background: #302818; font-size: 13px; font-weight: 700; }
.transfer-order-id { overflow-wrap: anywhere; color: #bfced9; font-size: 13px; }
.transfer-details { margin: 24px 0; }
.transfer-detail { padding: 15px 0; border-bottom: 1px solid #2a414e; }
.transfer-detail dt { margin-bottom: 7px; color: #bbccd9; font-size: 13px; }
.transfer-detail dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.transfer-detail strong { min-width: 0; font-size: clamp(16px, 1.8vw, 20px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.transfer-detail .btn { flex-shrink: 0; min-height: 44px; color: #d7ffff; background: #113b47; border-color: #437583; box-shadow: none; }
.transfer-confirmation .transfer-note { color: #bbccd9; font-size: 14px; }
.transfer-copy-message { min-height: 1.6em; color: #8ceac9; font-size: 13px; }
@media(max-width: 480px) {
    .transfer-confirmation { scroll-margin-top: 72px; }
    .transfer-detail dd { align-items: flex-start; flex-direction: column; gap: 10px; }
    .transfer-confirmation > .btn { width: 100%; }
}

/* Nawigacja kategorii, mobilny panel i układ katalogu. */
:root {
    --nav-rail-width: 216px;
    --nav-rail-gap: 12px;
    --body-left-reserve: calc(var(--nav-rail-width) + var(--nav-rail-gap) + var(--nav-rail-gap));
    --home-logo-width: clamp(280px, 26vw, 380px);
    --home-logo-half-width: clamp(140px, 13vw, 190px);
    --home-logo-height: clamp(140px, 13vw, 190px);
    --home-logo-margin-top: clamp(12px, 2vh, 24px);
    --home-logo-margin-bottom: clamp(12px, 1.5vh, 20px);
    --home-logo-slot-height: calc(
        var(--home-logo-height)
        + var(--home-logo-margin-top)
        + var(--home-logo-margin-bottom)
    );
}

/* Górna krawędź ofert jest wspólna z górną krawędzią bocznego menu.
   Punkt odniesienia wynika z miejsca zajmowanego przez logo w normalnym układzie. */
@media (min-width: 701px) {
    :root {
        --offer-panel-gap: clamp(14px, 1.4vw, 22px);
    }

    body:not(.admin-mode) .site-header,
    html[data-mobile-layout="safe"] body:not(.admin-mode) .site-header {
        inset: var(--home-logo-slot-height) auto auto var(--nav-rail-gap) !important;
        max-height: calc(100vh - var(--home-logo-slot-height) - var(--nav-rail-gap)) !important;
        transform: none !important;
    }

    body:not(.admin-mode):has([data-product-detail]) .section {
        padding-top: 0 !important;
    }

    body:not(.admin-mode) .page-shell > .section:has(> .product-grid[data-product-category]) {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        gap: var(--offer-panel-gap);
        padding-top: 0 !important;
    }

    body:not(.admin-mode) .page-shell > .section:has(> .product-grid[data-product-category]) > .product-grid {
        display: contents !important;
    }

    body:not(.admin-mode) .page-shell > .section:has(> .product-grid[data-product-category]) > .section-heading {
        z-index: 2;
        grid-column: 2 / -1;
        grid-row: 1;
        align-self: start;
        max-width: none;
        margin: 0 !important;
        padding: clamp(8px, 1vw, 16px) 0 0;
    }
}

@media (min-width: 701px) and (max-width: 1380px) {
    body:not(.admin-mode) .page-shell > .section:has(> .product-grid[data-product-category]) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 701px) and (max-width: 1040px) {
    body:not(.admin-mode) .page-shell > .section:has(> .product-grid[data-product-category]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tytuł sekcji opisu pozostaje wyśrodkowany w każdym układzie i trybie. */
.product-description-content h2 {
    width: 100%;
    justify-self: stretch;
    text-align: center !important;
}

/* Centralne, klikalne logo prowadzące na stronę główną.
   Jest częścią układu tła i rezerwuje własne miejsce, więc nie przykrywa kart. */
.home-corner-link.logo-home-link,
body:not(.admin-mode) .home-corner-link.logo-home-link,
body.admin-mode .home-corner-link.logo-home-link {
    position: relative !important;
    z-index: 0 !important;
    inset: auto !important;
    display: block !important;
    width: var(--home-logo-width) !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: var(--home-logo-height) !important;
    height: var(--home-logo-height) !important;
    margin: var(--home-logo-margin-top) auto var(--home-logo-margin-bottom) !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    transform-origin: 50% 50% !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    touch-action: manipulation;
    isolation: isolate;
}

.home-corner-link.logo-home-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .58));
    transform-origin: center;
    transition: transform .24s ease, filter .24s ease;
}

@media (hover: hover) and (pointer: fine) {
    .home-corner-link.logo-home-link:hover img {
        transform: scale(1.08);
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .58)) brightness(1.08);
    }
}

.home-corner-link.logo-home-link:focus-visible img {
    filter: drop-shadow(0 0 4px #64f4ef) drop-shadow(0 0 10px #64f4ef);
}

@media (prefers-reduced-motion: reduce) {
    .home-corner-link.logo-home-link img { transition: none; }
}

@media (min-width: 701px) {
    /* Logo is a child of the body whose content starts after the 200 px rail.
       Anchor its left edge to 50vw so its centre is the viewport centre,
       including browsers that reserve a scrollbar gutter. */
    body:not(.admin-mode) > .home-corner-link.logo-home-link,
    body.admin-mode > .home-corner-link.logo-home-link {
        margin-left: calc(50vw - var(--body-left-reserve) - var(--home-logo-half-width)) !important;
        margin-right: auto !important;
    }
}

body > main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--home-logo-slot-height)) !important;
    min-height: calc(100svh - var(--home-logo-slot-height)) !important;
}

/* Logo rezerwuje wspólną górną krawędź menu i obu paneli strony głównej. */
html[data-mobile-layout="safe"] body:not(.admin-mode) > main > .hero {
    min-height: 0 !important;
    padding: 0 !important;
    align-content: start !important;
    align-items: start !important;
}

body:not(.admin-mode) #najnowsze {
    padding-top: clamp(24px, 3vh, 36px);
}

@media (max-width: 700px) {
    :root {
        --home-logo-width: min(420px, calc(100vw - 24px));
        --home-logo-height: min(210px, calc(50vw - 12px));
        --home-logo-margin-top: 0px;
        --home-logo-margin-bottom: 12px;
    }

    .home-corner-link.logo-home-link,
    body:not(.admin-mode) .home-corner-link.logo-home-link,
    body.admin-mode .home-corner-link.logo-home-link {
        inset: auto !important;
        width: var(--home-logo-width) !important;
        height: var(--home-logo-height) !important;
        margin: var(--home-logo-margin-top) auto var(--home-logo-margin-bottom) !important;
        transform: none !important;
    }

    body:not(.admin-mode) main {
        padding-top: 0 !important;
    }
}

/* Jedna, nieruchoma warstwa tła dla każdej podstrony.
   Nie wolno skalować grafiki do wysokości dokumentu, bo różna długość stron
   powoduje widoczny skok kadru podczas nawigacji i odświeżania. */
html {
    background: #05080b !important;
    background-image: none !important;
    scrollbar-gutter: stable;
}

html body {
    background: transparent;
}

/* Large viewport height stays constant as mobile browser bars appear/disappear. */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 100vh;
    height: 100lvh;
    background-color: #05080b;
    background-image:
        linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)),
        var(--site-background);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
}

@media (max-width: 860px) {
    html {
        scrollbar-gutter: auto;
    }

    body::before {
        background-position: 58% center;
    }
}

.site-header,
html[data-mobile-layout="safe"] body:not(.admin-mode) .site-header {
    display: block !important;
    width: var(--nav-rail-width) !important;
    min-height: 0;
    max-height: calc(100vh - var(--home-logo-slot-height) - var(--nav-rail-gap)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.site-header .main-nav {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    min-height: 100%;
}

.site-header .nav-category-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.nav-submenu {
    display: grid;
    gap: 7px;
    max-height: 0;
    padding: 0 4px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition: max-height .5s ease, opacity .36s ease, transform .5s ease, padding .5s ease;
}

.nav-category.is-open .nav-submenu {
    max-height: 130px;
    padding-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header .nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 41px;
    padding-left: 17px;
    font-size: 12px;
}

.nav-menu-toggle {
    display: none;
}

body:not(.admin-mode) #jak-dziala {
    grid-template-columns: minmax(0, 1fr) !important;
}

body:not(.admin-mode) .product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    gap: clamp(14px, 1.4vw, 22px) !important;
}

body:not(.admin-mode) .product-grid > .product-card,
body:not(.admin-mode) .product-grid > .product-card:nth-child(n) {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 100% !important;
    grid-template-columns: none !important;
    transform: none !important;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}

body:not(.admin-mode) .product-grid > .product-card .product-image {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.12 / 1;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(151, 224, 235, .22) !important;
}

body:not(.admin-mode) .product-grid > .product-card .product-body {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-auto-rows: unset !important;
    align-content: stretch !important;
    flex: 1 1 auto;
}

body:not(.admin-mode) .product-grid > .product-card .product-bottom {
    margin-top: auto !important;
}

body:not(.admin-mode) .product-grid > .product-card .product-body h3,
body:not(.admin-mode) .product-grid > .product-card .product-body > p,
body:not(.admin-mode) .product-grid > .product-card .product-body > small,
body:not(.admin-mode) .product-grid > .product-card .product-option,
body:not(.admin-mode) .product-grid > .product-card .product-bottom {
    grid-column: 1 !important;
    grid-row: auto !important;
}

body:not(.admin-mode) .product-grid > .product-card:hover,
body:not(.admin-mode) .product-grid > .product-card:focus-visible {
    transform: translateY(-7px) !important;
    border-color: rgba(100, 244, 239, .68) !important;
    box-shadow: 0 26px 64px rgba(0, 0, 0, .42), 0 0 24px rgba(100, 244, 239, .12) !important;
}

.hero-card.featured-slide-out {
    animation: featuredSlideOut .7s cubic-bezier(.55, 0, .3, 1) forwards !important;
}

.hero-card.featured-slide-in {
    animation: featuredSlideIn 1.05s cubic-bezier(.18, .7, .2, 1) forwards !important;
}

@media (max-width: 1380px) {
    body:not(.admin-mode) .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1040px) {
    body:not(.admin-mode) .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    html body {
        padding-left: 0 !important;
        padding-bottom: 0 !important;
    }

    .nav-menu-toggle {
        position: fixed;
        z-index: 260;
        top: 12px;
        left: 12px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(100, 244, 239, .5);
        border-radius: 14px;
        background: rgba(3, 20, 30, .96);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
        cursor: pointer;
    }

    .nav-menu-toggle span {
        display: block;
        width: 23px;
        height: 2px;
        border-radius: 99px;
        background: #64f4ef;
        transition: transform .32s ease, opacity .22s ease;
    }

    body.nav-menu-open .nav-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-menu-open .nav-menu-toggle span:nth-child(2) { opacity: 0; }
    body.nav-menu-open .nav-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-header,
    html[data-mobile-layout="safe"] body:not(.admin-mode) .site-header,
    body.admin-mode .site-header {
        inset: 0 auto 0 0 !important;
        width: var(--nav-rail-width) !important;
        max-width: var(--nav-rail-width) !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 76px 13px 18px !important;
        border-radius: 0 18px 18px 0 !important;
        opacity: 0;
        pointer-events: none;
        transform: translateX(calc(-100% - 24px)) !important;
        transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .28s ease !important;
    }

    body.nav-menu-open .site-header,
    html[data-mobile-layout="safe"] body.nav-menu-open:not(.admin-mode) .site-header,
    body.admin-mode.nav-menu-open .site-header {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0) !important;
    }

    body.nav-menu-open {
        overflow: hidden;
    }

    .site-header .main-nav {
        display: flex !important;
        grid-template-columns: none !important;
        grid-auto-flow: row !important;
        overflow: visible !important;
    }

    .site-header .main-nav > a,
    .site-header .nav-category-toggle,
    .site-header .nav-submenu a {
        justify-content: flex-start !important;
        min-height: 45px !important;
        padding: 10px 11px !important;
        font-size: 12px !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body:not(.admin-mode) .product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* Szerszy panel i świetlne stany rozwinięcia. */
html[data-mobile-layout="safe"] body:not(.admin-mode) .site-header,
body:not(.admin-mode) .site-header {
    padding: 14px !important;
    border-color: rgba(106, 229, 237, .38) !important;
    background:
        linear-gradient(135deg, rgba(35, 104, 123, .24), transparent 40%),
        linear-gradient(160deg, rgba(5, 20, 32, .96), rgba(8, 12, 28, .97) 65%, rgba(27, 15, 46, .96)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 22px rgba(75, 224, 235, .08), inset 0 1px rgba(193, 250, 255, .12) !important;
    scrollbar-width: thin;
    scrollbar-color: #407681 transparent;
}

.site-header .main-nav {
    min-height: 0;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.site-header .main-nav > a,
.site-header .nav-category-toggle,
.site-header .nav-submenu a {
    position: relative;
    width: 100%;
    min-height: 48px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(143, 202, 225, .18);
    border-radius: 5px 14px 5px 14px;
    color: #edf8ff !important;
    background: rgba(6, 19, 34, .8);
    font: 600 15px/1.3 "Chakra Petch", "Bahnschrift", "Segoe UI", sans-serif !important;
    letter-spacing: .025em;
    text-align: left;
    text-shadow: none;
    box-shadow: inset 0 1px rgba(222, 246, 255, .035);
    transform: none !important;
    white-space: normal !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.site-header .nav-category-toggle[aria-expanded="false"],
.site-header .nav-category-toggle[aria-expanded="false"]:hover {
    color: #edf8ff !important;
    border-color: rgba(143, 202, 225, .18);
    background: rgba(6, 19, 34, .8);
    box-shadow: inset 0 1px rgba(222, 246, 255, .035);
}

.site-header .nav-category-toggle[aria-expanded="true"] {
    color: #bafff6 !important;
    border-color: #67e6e5;
    background: linear-gradient(115deg, rgba(32, 134, 150, .42), rgba(19, 49, 76, .75));
    box-shadow: 0 0 17px rgba(73, 237, 226, .23), inset 3px 0 #7cfff2;
}

.site-header .main-nav a:hover,
.site-header .main-nav a[aria-current="page"] {
    border-color: rgba(106, 235, 234, .65);
    background: linear-gradient(115deg, rgba(23, 83, 103, .8), rgba(14, 34, 57, .85));
    box-shadow: inset 3px 0 #6deae6, 0 0 13px rgba(73, 237, 226, .12);
}

.site-header .main-nav a:focus-visible,
.site-header .nav-category-toggle:focus-visible {
    outline: 2px solid #bafff6;
    outline-offset: 2px;
}

.site-header .nav-submenu {
    padding-left: 9px;
    padding-right: 0;
}

.site-header .nav-submenu a {
    min-height: 42px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    border-left-color: rgba(106, 235, 234, .55);
}

.site-header .main-nav > .nav-handmade {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    min-height: 94px !important;
    margin: 4px 0;
    padding: 14px !important;
    border-color: rgba(255, 202, 111, .8);
    background: radial-gradient(ellipse at 0 0, rgba(184, 123, 40, .25), transparent 75%), linear-gradient(125deg, #252031, #121a2b);
    box-shadow: inset 3px 0 #ffd28a, 0 0 18px rgba(255, 193, 83, .12);
}

.site-header .nav-handmade-label {
    color: #f1c787;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.site-header .nav-handmade-name {
    color: #fff0d5;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: .015em;
}

.site-header .main-nav > .nav-handmade:hover,
.site-header .main-nav > .nav-handmade[aria-current="page"] {
    border-color: #ffdf9e;
    background: linear-gradient(120deg, #3a2d31, #18293a);
    box-shadow: inset 3px 0 #ffe2a9, 0 0 23px rgba(255, 193, 83, .25);
}

.site-header .main-nav > .nav-about {
    order: 0;
    margin-top: 4px;
}

@media (max-width: 700px) {
    html[data-mobile-layout="safe"] body:not(.admin-mode) .site-header,
    body:not(.admin-mode) .site-header {
        padding: 76px 14px 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header *, .nav-menu-toggle span {
        animation: none !important;
        transition: none !important;
    }
}

/* Kompaktowa oferta: wspólna szerokość prezentacji i opisu. */
html[data-mobile-layout="safe"] body:not(.admin-mode):has([data-product-detail]) .page-shell {
    width: min(1080px, calc(100% - 40px)) !important;
    max-width: min(1080px, calc(100% - 40px)) !important;
}

html[data-mobile-layout="safe"] body:not(.admin-mode):has([data-product-detail]) .section,
html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

html[data-mobile-layout="safe"] body:not(.admin-mode):has([data-product-detail]) .section {
    padding: 0 0 36px !important;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] {
    display: grid;
    gap: 18px;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] > .product-detail-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0;
    padding: 20px;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] > #product-presentation {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr) !important;
    align-items: center !important;
    gap: 24px !important;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-image-detail {
    min-height: 0;
    height: 460px;
    max-height: none;
    border-radius: 12px;
    background-color: #07101c;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-image-detail .product-gallery-slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    align-content: center;
    gap: 10px 12px;
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info > * {
    grid-column: 1 / -1;
    min-width: 0;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info h1 {
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.1;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .eyebrow {
    padding: 5px 9px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .09em;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .product-detail-short {
    font-size: 14px;
    line-height: 1.5;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .product-meta,
html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info p small {
    font-size: 13px !important;
    line-height: 1.4;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info > .product-option {
    grid-column: auto;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info:not(:has(.product-option ~ .product-option)) > .product-option {
    grid-column: 1 / -1;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-option input,
html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-option select {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 10px;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .product-bottom {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between;
    gap: 12px !important;
    min-height: 0;
    margin-top: 4px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid rgba(151, 224, 235, .22);
    border-radius: 0;
    background: transparent;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .product-bottom strong {
    font-size: 30px;
    line-height: 1.2;
    white-space: nowrap;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .product-bottom .btn {
    width: auto;
    min-width: 160px;
    min-height: 44px;
    padding: 11px 20px;
    font-size: 14px;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info > .text-link {
    font-size: 12px;
    line-height: 1.4;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] > .product-description-card {
    padding: 26px 30px;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-description-content {
    width: 100%;
    max-width: none;
    gap: 14px;
    overflow-wrap: anywhere;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-description-content h2 {
    font-size: 26px;
    line-height: 1.2;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-description-content .eyebrow {
    font-size: 10px;
    line-height: 1.4;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-description-content p:not(.eyebrow) {
    max-width: none;
    font-size: 15px;
    line-height: 1.65;
}

html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-back-button {
    justify-self: center;
    min-height: 42px;
    padding: 10px 20px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] > #product-presentation {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-image-detail {
        height: clamp(260px, 38vw, 380px);
    }
}

@media (max-width: 700px) {
    html[data-mobile-layout="safe"] body:not(.admin-mode):has([data-product-detail]) .page-shell {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] > .product-detail-card {
        padding: 14px;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info {
        grid-template-columns: minmax(0, 1fr);
        padding: 4px;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info h1 {
        font-size: 27px;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-option input,
    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-option select {
        font-size: 16px;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .product-bottom strong {
        font-size: 26px;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] .product-detail-info .product-bottom .btn {
        min-width: 140px;
        flex: 1;
    }

    html[data-mobile-layout="safe"] body:not(.admin-mode) [data-product-detail] > .product-description-card {
        padding: 22px 18px;
    }
}

/* The mobile home starts with the rotating offer; desktop keeps its intro. */
@media (max-width: 860px) {
    .hero > .hero-copy { display: none !important; }
}

.site-footer nav { justify-content: center; }
.site-footer a { color: #fff !important; padding-block: 8px; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
