/* Store chrome: topbar, auth, cart, checkout */
.store-topbar {
    --st-accent: #2d4a3e;
    --st-bg: #1a1f1c;
    --st-muted: #a8b0ab;
    font-family: "Inter", sans-serif;
    background: var(--st-bg);
    color: #e8ece9;
    font-size: 0.8125rem;
    position: relative;
    z-index: 5;
}

/* Base for strip when it’s the first chrome band (padding set with .store-topbar--below-header) */
.store-topbar--site-top {
    position: sticky;
    top: 0;
    z-index: 10055;
    border-top: none;
}

.store-topbar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.store-topbar__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.1rem;
}

.store-topbar__link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.store-topbar__icon-link {
    position: relative;
    padding: 0.2rem;
    line-height: 0;
}

.store-topbar__icon {
    display: block;
    flex-shrink: 0;
}

.store-topbar__icon-link .store-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: 0.65rem;
    line-height: 1.1rem;
    padding: 0 0.28rem;
}

.store-topbar__link:hover {
    color: #c8e6d4;
}

.store-topbar__link--cta {
    background: #fff;
    color: var(--st-accent) !important;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.store-topbar__hi {
    color: var(--st-muted);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    background: #c17a4a;
    color: #fff;
    border-radius: 999px;
}

.store-topbar__flash {
    font-weight: 600;
    max-width: min(420px, 50vw);
    line-height: 1.3;
}

.store-topbar__flash--error {
    color: #ffb4b4;
}

html[data-theme="light"] .store-topbar__flash--error,
body[data-theme="light"] .store-topbar__flash--error {
    color: #a32020;
}

/* Theme paints .main-header--widgets::after full-size for glass — without this it captures all clicks */
#ms-header.main-header .main-header--widgets::after {
    pointer-events: none;
}

/* Wishlist / cart / account cluster inside main header (left of search) */
#ms-header .ms-hw-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
    position: relative;
    z-index: 2;
}

.store-nav-widgets {
    flex: 0 1 auto;
    min-width: 0;
}

.store-nav-widgets__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.75rem;
}

.store-nav-widgets__flash {
    flex: 1 1 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffb4b4;
    line-height: 1.25;
}

html[data-theme="light"] .store-nav-widgets__flash,
body[data-theme="light"] .store-nav-widgets__flash {
    color: #a32020;
}

.store-nav-widgets__link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: "Inter", sans-serif;
    opacity: 0.92;
}

.store-nav-widgets__link:hover {
    opacity: 1;
}

.store-nav-widgets__icon-link {
    position: relative;
    padding: 0.15rem;
    line-height: 0;
    opacity: 1;
}

.store-nav-widgets__icon-wrap {
    position: relative;
    display: inline-flex;
    line-height: 0;
    flex-shrink: 0;
}

.store-nav-widgets__icon-wrap .store-badge {
    position: absolute;
    top: -3px;
    right: -5px;
}

.store-nav-widgets__icon {
    display: block;
    flex-shrink: 0;
}

.store-nav-widgets__hi {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.75;
    max-width: min(120px, 28vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-nav-widgets__link--cta {
    background: var(--color-primary, #c9a574);
    color: #1a1a1a !important;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    opacity: 1;
}

html[data-theme="dark"] .store-nav-widgets__link--cta,
body[data-theme="dark"] .store-nav-widgets__link--cta {
    background: var(--color-primary, hsl(37, 99%, 73%));
    color: #1a1a1a !important;
}

@media screen and (max-width: 767px) {
    /* Bar only — menu panel keeps greeting visible */
    .store-nav-widgets--bar .store-nav-widgets__hi {
        display: none;
    }

    .store-nav-widgets__text-link {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 479px) {
    .store-nav-widgets__nav {
        gap: 0.35rem 0.5rem;
    }

    .store-nav-widgets__link--cta {
        padding: 0.18rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ≤tablet: wishlist / cart / account / search / theme only in hamburger panel */
@media screen and (max-width: 1023px) {
    #ms-header .ms-hw-inner > .store-nav-widgets--bar,
    #ms-header .ms-hw-inner > .header__search-icon,
    #ms-header .ms-hw-inner > .ms_theme_mode {
        display: none !important;
    }
}

@media screen and (min-width: 1024px) {
    .ms-menu-store-chrome {
        display: none !important;
    }
}

/*
 * Flyout card bg uses --color-contrast-higher: dark in light site mode, light in dark site mode.
 * Match primary menu links ( .menu-item a { color: var(--color-contrast-lower) } ), not fixed white.
 */
.ms-menu-store-chrome {
    padding: 0.5rem 12px 0.65rem 20px;
    margin: 0 0 0.15rem;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(128, 128, 128, 0.28);
    /* Room for hamburger control so lines don’t sit over the shortcut row */
    padding-right: 2.85rem;
}

/* Mobile drawer close button (inside the panel) */
.ms-menu-close {
    position: absolute;
    top: 0.6rem;
    right: 0.65rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-contrast-lower);
    cursor: pointer;
    z-index: 5;
}
.ms-menu-close:hover {
    background: rgba(127, 127, 127, 0.12);
}

html[data-theme="dark"] .ms-menu-store-chrome,
body[data-theme="dark"] .ms-menu-store-chrome {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .ms-menu-store-chrome,
body[data-theme="light"] .ms-menu-store-chrome {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Mobile drawer: stack search, theme, wishlist, cart, account, greeting, logout vertically */
@media screen and (max-width: 1023px) {
    .ms-menu-store-chrome__row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        overflow: visible;
    }

    .ms-menu-store-chrome__tools {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.55rem;
        margin-top: 0;
    }

    .ms-menu-store-chrome__tools .header__search-icon,
    .ms-menu-store-chrome__tools .ms_theme_mode {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ms-menu-tool-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        width: 100%;
        min-width: 0;
    }

    .ms-menu-tool-label {
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--color-contrast-lower);
        line-height: 1.2;
    }

    .ms-menu-container .store-nav-widgets--menu {
        width: 100%;
        flex: 0 0 auto;
        min-width: 0;
    }

    .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__nav {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0.45rem;
        width: 100%;
    }

    .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__link {
        font-size: 0.8125rem;
        white-space: normal;
    }

    .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__hi {
        max-width: none;
        white-space: normal;
    }

    .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__icon-link {
        display: inline-flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        line-height: 1.2;
        padding: 0.1rem 0;
    }

    .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__label {
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__flash {
        max-width: none;
        width: 100%;
    }
}

.ms-menu-store-chrome__tools .ms_theme_mode .toggle-switch {
    min-width: 2.25rem;
}

.ms-menu-store-chrome__tools .header__search-icon,
.ms-menu-store-chrome__tools .ms_theme_mode {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ms-menu-container .store-nav-widgets--menu .store-nav-widgets__link {
    color: var(--color-contrast-lower);
    font-weight: 600;
}

.ms-menu-container .store-nav-widgets--menu .store-nav-widgets__hi {
    color: var(--color-contrast-low);
}

.ms-menu-container .store-nav-widgets--menu .store-nav-widgets__flash {
    color: #ffb4b4;
}

html[data-theme="light"] .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__flash,
body[data-theme="light"] .ms-menu-container .store-nav-widgets--menu .store-nav-widgets__flash {
    color: #a32020;
}

/* Bar uses full-width flash; keep menu row on one line when no/long flash */
.ms-menu-container .store-nav-widgets--menu .store-nav-widgets__flash {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 12rem);
    white-space: normal;
    line-height: 1.2;
}

.ms-menu-store-chrome__tools .header__search-icon {
    cursor: pointer;
    color: var(--color-contrast-lower);
}

.ms-menu-store-chrome__tools .header__search-icon svg path {
    stroke: currentColor;
}

.ms-menu-store-chrome__tools .ms_theme_mode {
    color: var(--color-contrast-lower);
}

/*
 * Osty `.main-header__inner.move` + `[data-theme=dark]` set search stroke and toggle knob to
 * `--color-contrast-white` / `--color-contrast-higher`, which vanishes on light flyout panels.
 */
#ms-header .ms-menu-store-chrome .header__search-icon {
    color: var(--color-contrast-lower) !important;
}
#ms-header .ms-menu-store-chrome .header__search-icon svg path {
    stroke: currentColor !important;
}
#ms-header .ms-menu-store-chrome .ms_theme_mode .toggle-label::before {
    background-color: var(--color-contrast-lower) !important;
}
#ms-header .ms-menu-store-chrome .ms_theme_mode .toggle-back {
    background-color: var(--color-contrast-medium) !important;
}

/* “Menu” + hamburger lines on the same card as the drawer — keep readable on both panel backgrounds */
#ms-header .main-header__inner.move .main-header__btn .action-menu .menu-text {
    color: var(--color-contrast-lower);
}

#ms-header .main-header__inner.move .main-header__btn .action-menu .menu-line {
    background-color: var(--color-contrast-lower);
}

/*
 * Osty app.min.js sets #primary-menu-button to a fixed height from the <ul> at load and drives .ms-ma-bg
 * from that size — omitting .ms-menu-store-chrome — which clips shortcuts + nav links. ms-menu-panel-fix.js
 * resizes .ms-ma-bg to the full panel; here we allow the list to grow and scroll inside the card.
 */
@media screen and (max-width: 1023px) {
    #ms-header .main-header__inner.move .main-header__btn {
        position: relative;
        z-index: 100005;
    }

    #ms-header .ms-menu-wrapper.open {
        z-index: 100006 !important;
        /* Make drawer wider on phones */
        width: min(92vw, 380px) !important;
        min-width: min(92vw, 380px) !important;
    }

    #ms-header .close-menu-bg.show {
        z-index: 100004 !important;
    }

    /* Ensure the animated background card is opaque + matches the panel width */
    #ms-header .main-header__btn .ms-ma-bg,
    #ms-header .main-header__btn .ms-ma-bg::after {
        opacity: 1 !important;
        background-color: var(--color-contrast-higher) !important;
        pointer-events: none !important; /* never block menu clicks */
    }

    #ms-header .main-header__btn .ms-ma-bg {
        z-index: 0 !important;
    }

    #ms-header .ms-menu-wrapper.open .ms-menu {
        position: relative;
        z-index: 2;
    }

    /* Rounded corners show page behind unless wrapper itself is opaque */
    #ms-header .ms-menu-wrapper.open {
        background-color: var(--color-contrast-higher) !important;
    }

    #ms-header .ms-menu-wrapper.open .ms-menu,
    #ms-header .ms-menu-wrapper.open .ms-menu .ms-menu-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    #ms-header .ms-menu-wrapper #primary-menu-button {
        height: auto !important;
        min-height: 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 100% !important;
        box-sizing: border-box;
        padding-bottom: 1.5rem !important;
    }

    /*
     * Theme GSAP sets this container’s inline width/height to match #primary-menu-button only, ignoring
     * .ms-menu-store-chrome above the <ul> — overflow:hidden then clips search/wishlist/cart and lower links.
     */
    #ms-header .ms-menu-wrapper.open .ms-menu .ms-menu-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        height: auto !important;
        width: auto !important;
        max-width: 100% !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: min(90dvh, calc(100vh - env(safe-area-inset-top, 0px) - 1rem));
        background-color: var(--color-contrast-higher) !important;
        background-clip: padding-box;
        position: relative;
        z-index: 2;
        isolation: isolate;
    }

    #ms-header .ms-menu-wrapper.open .ms-menu-container > .ms-menu-store-chrome {
        flex-shrink: 0;
    }

    #ms-header .ms-menu-wrapper.open {
        max-height: min(92dvh, calc(100vh - env(safe-area-inset-top, 0px)));
    }

    /*
     * Flyout sub-menus are position:absolute; left:100% relative to #primary-menu-button — on narrow
     * widths the last top-level item (e.g. FAQs) can be clipped. Stack children under the parent instead.
     */
    #ms-header .ms-menu-wrapper .ms-menu .menu-item-has-children > .sub-menu {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-top: 0.2rem !important;
        padding-left: 0.65rem !important;
        border-left: 2px solid rgba(128, 128, 128, 0.35);
    }

    #ms-header .ms-menu-wrapper .ms-menu .menu-item-has-children > .sub-menu .sub-menu {
        left: auto !important;
    }

    #ms-header .ms-menu-wrapper .ms-menu .menu-item-has-children > .sub-menu:not(.show) {
        display: none !important;
    }

    #ms-header .ms-menu-wrapper .ms-menu .menu-item-has-children > .sub-menu.show {
        display: block !important;
        visibility: visible !important;
    }

    /* Submenu links: theme keeps opacity:0 until show — ensure they’re visible when panel is open */
    #ms-header .ms-menu-wrapper .ms-menu .menu-item-has-children > .sub-menu.show > li > a {
        opacity: 1 !important;
    }

    /* Injected by theme: first row “Menu” label — stronger than theme’s washed-out contrast */
    #ms-header #primary-menu-button > .menu-title > a {
        opacity: 1 !important;
        color: var(--color-contrast-high, #333) !important;
    }

    html[data-theme="dark"] #ms-header #primary-menu-button > .menu-title > a,
    body[data-theme="dark"] #ms-header #primary-menu-button > .menu-title > a {
        color: var(--color-contrast-medium, #5c5c5c) !important;
    }
}

/* Primary navbar sits lower: extra top inset + taller spacer (theme --main-header-height) */
:root {
    /* Separate store strip merged into main navbar — keep 0 for layout calcs */
    --millet-store-topbar-height: 0px;
    --millet-nav-top-inset: max(1.875rem, env(safe-area-inset-top, 0px));
    /* Extra vertical band when primary nav is on its own row (desktop) */
    --millet-header-nav-row: 0;
    /* Buffer so fixed .main-header__layout never overlaps the store bar (mobile tool row is taller than --main-header-height-md alone) */
    --millet-header-safe-gap: 0.75rem;
    /* Flow reserved for #ms-header: set on narrow viewports only (see media query) */
    --millet-header-flow-spacer: 0;
}

@media screen and (max-width: 767px) {
    :root {
        --millet-store-topbar-height: 0px;
    }
}

@media screen and (max-width: 1024px) {
    :root {
        --millet-nav-top-inset: max(1.375rem, env(safe-area-inset-top, 0px));
    }
}

/* Phone / tablet: reserve the full stacked height of the fixed bar (was only applied ≤900px before, so 901–1023px overlapped the store topbar) */
@media screen and (max-width: 1023px) {
    :root {
        --millet-header-flow-spacer: calc(
            var(--main-header-height-md) + var(--millet-nav-top-inset) + var(--millet-header-nav-row) +
            var(--millet-mobile-header-extra, 1.5rem) + var(--millet-header-safe-gap)
        );
    }

    body[data-menu="fixed"] #ms-header.main-header,
    body[data-menu="sticky"] #ms-header.main-header {
        height: var(--millet-header-flow-spacer) !important;
        min-height: var(--millet-header-flow-spacer) !important;
    }

    body[data-menu="fixed"] .main-header .main-header__layout,
    body[data-menu="sticky"] .main-header .main-header__layout {
        min-height: calc(var(--main-header-height-md) + var(--millet-nav-top-inset) + var(--millet-header-safe-gap));
        box-sizing: border-box;
    }

    /* Logo row + tools stay on top; slide-out menu unchanged */
    .main-header.menu-center .main-header__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center;
    }

    .main-header.menu-center .main-header__inner .main-header__logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .main-header.menu-center .main-header__inner .main-header--widgets {
        grid-column: 2;
        grid-row: 1;
        margin-left: auto;
    }

    .main-header.menu-center .main-header__inner .main-header__nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media screen and (min-width: 1024px) {
    /*
     * Single header band: logo | centered primary nav | search/theme/tools (no stacked “second row”).
     * Removes the large black gap and aligns utilities with nav links like a classic shop header.
     */
    :root {
        --millet-header-nav-row: 0;
        --millet-nav-top-inset: max(0.45rem, env(safe-area-inset-top, 0px));
    }

    .main-header.menu-center .main-header__inner {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        grid-template-rows: auto;
        align-items: center;
        column-gap: 1rem;
        row-gap: 0;
    }

    .main-header.menu-center .main-header__inner .main-header__logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .main-header.menu-center .main-header__inner .main-header__nav {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding-top: 0;
        box-sizing: border-box;
        justify-content: center;
        display: flex !important;
        border-top: none;
        position: relative;
        z-index: 4;
    }

    .main-header.menu-center .main-header__inner .main-header--widgets {
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
        align-self: center;
    }

    #ms-header.main-header .main-header__logo a {
        display: flex;
        align-items: center;
    }

    #ms-header.main-header .main-header__logo img {
        display: block;
        max-height: 55px;
        width: auto;
    }
}

body[data-menu="fixed"] .main-header .main-header__layout,
body[data-menu="sticky"] .main-header .main-header__layout {
    /* Safe area moved to .store-topbar--site-top when present; keep modest inset */
    padding-top: max(0.5rem, min(var(--millet-nav-top-inset), 1rem));
    box-sizing: border-box;
    /* Theme + .js rules can cap this at 9 — keep bar above page content & glass */
    z-index: 10050 !important;
    /* Flush below safe area (account/cart live inside this bar) */
    top: env(safe-area-inset-top, 0px) !important;
}

body.admin-bar[data-menu="sticky"] #ms-header.main-header .main-header__layout,
body.admin-bar[data-menu="fixed"] #ms-header.main-header .main-header__layout {
    top: calc(32px + env(safe-area-inset-top, 0px)) !important;
}

/*
 * Primary menu sat behind the inner “glass” (::before/::after). Isolate stacking and
 * push decorative pseudos behind; nav + lists stay interactive on top.
 */
#ms-header.main-header .main-header__inner {
    isolation: isolate;
}

#ms-header.main-header .main-header__inner::before,
#ms-header.main-header .main-header__inner::after {
    z-index: -1 !important;
    pointer-events: none;
}

#ms-header.main-header .main-header__inner .main-header__nav.main-header__default {
    position: relative;
    z-index: 2;
}

#ms-header.main-header .main-header__inner .main-header__nav .navbar-nav {
    position: relative;
    z-index: 3;
}

#ms-header.main-header .main-header__inner .main-header__nav .sub-menu {
    z-index: 5;
}

@media screen and (max-width: 1023px) {
    .js #ms-header.main-header .main-header__nav.main-header__nav--is-visible {
        z-index: 20 !important;
    }
}

body[data-menu="fixed"] .main-header {
    height: calc(var(--main-header-height) + var(--millet-nav-top-inset) + var(--millet-header-nav-row));
    min-height: calc(var(--main-header-height) + var(--millet-nav-top-inset) + var(--millet-header-nav-row));
}

body[data-menu="sticky"] .main-header {
    height: calc(var(--main-header-height-md) + var(--millet-nav-top-inset) + var(--millet-header-nav-row));
    min-height: calc(var(--main-header-height-md) + var(--millet-nav-top-inset) + var(--millet-header-nav-row));
}

/* Narrow: shop / PDP chrome below fixed bar + scroll offset matches stacked header */
@media screen and (max-width: 1023px) {
    body.page.page-shop main.ms-main.shop-page,
    body.page.product-view main.ms-main.product-pdp,
    body.page.product-not-found main.ms-main.product-pdp {
        position: relative;
        z-index: 0;
    }

    html {
        scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--millet-store-topbar-height) + var(--millet-header-flow-spacer) + 1.25rem);
    }
}

/*
 * Theme .main-header.ms-nb--transparent is position:absolute — it does not reserve layout height.
 * Push first store content below the sticky topbar + fixed header + primary nav row (matches shop/index flow).
 */
body.page.store-account .acc-page,
body.page.acc-order-detail .acc-page,
body.page.store-cart main.store-shell,
body.page.store-wishlist main.store-shell,
body.page.store-checkout main.store-shell.store-checkout-page,
body.page.page-order-success main.store-shell,
body.page.page-payment-pending main.store-shell {
    padding-top: calc(
        env(safe-area-inset-top, 0px) + var(--millet-store-topbar-height) + var(--main-header-height) +
            var(--millet-nav-top-inset) + var(--millet-header-nav-row) + var(--millet-header-safe-gap) + 1rem
    ) !important;
}

/* Generic pages that use theme `<main class="ms-main">` (About/FAQ/etc): push below fixed header */
body.page:not(.home):not(.store-cart):not(.store-wishlist):not(.store-checkout):not(.store-account):not(.acc-order-detail):not(.page-order-success):not(.page-payment-pending) main.ms-main {
    padding-top: calc(
        env(safe-area-inset-top, 0px) + var(--millet-store-topbar-height) + var(--main-header-height) +
            var(--millet-nav-top-inset) + var(--millet-header-nav-row) + var(--millet-header-safe-gap) + 2.25rem
    ) !important;
}

/* Contact page uses Bootstrap `.container py-5` as its main wrapper */
body.page.contact-page main.container {
    /* Layout is offset on body to avoid Bootstrap `py-5` and margin-collapsing quirks */
    margin-top: 0 !important;
}

@media screen and (max-width: 1023px) {
    body.page.store-account .acc-page,
    body.page.acc-order-detail .acc-page,
    body.page.store-cart main.store-shell,
    body.page.store-wishlist main.store-shell,
    body.page.store-checkout main.store-shell.store-checkout-page,
    body.page.page-order-success main.store-shell,
    body.page.page-payment-pending main.store-shell {
        padding-top: calc(
            env(safe-area-inset-top, 0px) + var(--millet-store-topbar-height) + var(--millet-header-flow-spacer) + 1.1rem
        ) !important;
    }

    body.page:not(.home):not(.store-cart):not(.store-wishlist):not(.store-checkout):not(.store-account):not(.acc-order-detail):not(.page-order-success):not(.page-payment-pending) main.ms-main,
    body.page.contact-page main.container {
        margin-top: 0 !important;
    }
}

/* Contact page: push whole document below fixed header */
body.page.contact-page {
    padding-top: calc(
        env(safe-area-inset-top, 0px) + var(--millet-store-topbar-height) + var(--main-header-height) +
            var(--millet-nav-top-inset) + var(--millet-header-nav-row) + var(--millet-header-safe-gap) + 2.25rem
    ) !important;
}

@media screen and (max-width: 1023px) {
    body.page.contact-page {
        padding-top: calc(
            env(safe-area-inset-top, 0px) + var(--millet-store-topbar-height) + var(--millet-header-flow-spacer) + 2.25rem
        ) !important;
    }
}

/* Utility strip: first in page stack (--site-top) or legacy below header */
.store-topbar--below-header {
    position: relative;
    z-index: 6;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.store-topbar--site-top.store-topbar--below-header {
    position: sticky;
    margin-top: 0;
    border-top: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 0;
    /* outer padding-top: safe-area; wins over .store-topbar--below-header { position: relative; padding-top: 0.35rem } */
}

.store-topbar--site-top.store-topbar--below-header .store-topbar__inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* Checkout / cart shell (light) */
.store-shell {
    font-family: "Inter", sans-serif;
    background: #faf9f7;
    min-height: 50vh;
    padding: 0 1.25rem 4rem;
    padding-top: 2.5rem;
}

.store-auth-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: inherit;
}

.store-auth-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0;
}

html[data-theme="light"] .store-auth-divider,
body[data-theme="light"] .store-auth-divider {
    border-top-color: #e0e4e1;
}

.store-form--tight {
    margin-top: 1rem;
}

.store-alert--success {
    background: rgba(143, 188, 154, 0.2);
    border: 1px solid rgba(143, 188, 154, 0.45);
    color: #cfe9d6;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

html[data-theme="light"] .store-alert--success,
body[data-theme="light"] .store-alert--success {
    background: #e8f5ee;
    border-color: #b8d4c4;
    color: #1a3d28;
}

/* Auth pages (register / login) — dark editorial card, matches brand UI */
.store-auth-page {
    font-family: "Inter", sans-serif;
    min-height: min(100vh, 900px);
    padding: 3rem 1.25rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 74, 62, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184, 149, 106, 0.08), transparent 45%),
        #0a0a0a;
}

.store-auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #161918;
    border-radius: 24px;
    padding: 2.5rem 2.25rem 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 32px 80px rgba(0, 0, 0, 0.45);
    animation: store-auth-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes store-auth-reveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.store-auth-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: #f5f5f4;
}

.store-auth-sub {
    color: #9ca3a1;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Login: segmented “nav pills” (Password vs WhatsApp OTP) */
.store-auth-pills {
    display: flex;
    width: 100%;
    padding: 5px;
    gap: 4px;
    margin: 0 0 1.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.store-auth-pill {
    flex: 1;
    margin: 0;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #9ca3a1;
    background: transparent;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.store-auth-pill:hover {
    color: #e8ece9;
}

.store-auth-pill.is-active {
    color: #0a0f0d;
    background: linear-gradient(180deg, #f0f4f1 0%, #dce5df 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.store-auth-pill:focus-visible {
    outline: 2px solid #8fbc9a;
    outline-offset: 2px;
}

.store-auth-panel {
    margin-bottom: 0;
}

.store-auth-panel[hidden] {
    display: none !important;
}

.store-auth-panel .store-auth-forgot {
    margin-top: 1rem;
    margin-bottom: 0;
}

.store-auth-panel .store-auth-section-title {
    margin-top: 0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a8682;
}

html[data-theme="light"] .store-auth-page .store-auth-pills,
body[data-theme="light"] .store-auth-page .store-auth-pills {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .store-auth-page .store-auth-pill,
body[data-theme="light"] .store-auth-page .store-auth-pill {
    color: #5c6560;
}

html[data-theme="light"] .store-auth-page .store-auth-pill:hover,
body[data-theme="light"] .store-auth-page .store-auth-pill:hover {
    color: #1a2420;
}

html[data-theme="light"] .store-auth-page .store-auth-pill.is-active,
body[data-theme="light"] .store-auth-page .store-auth-pill.is-active {
    color: #fff;
    background: linear-gradient(180deg, #2d4a3e 0%, #1e3229 100%);
    box-shadow: 0 1px 4px rgba(30, 50, 41, 0.35);
}

.store-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.store-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5c5c5c;
    margin-top: 0.5rem;
}

.store-auth-page .store-label {
    color: #8b9290;
    letter-spacing: 0.08em;
    margin-top: 0.65rem;
}

.store-input,
.store-textarea {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e5e2dc;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.store-input:focus,
.store-textarea:focus {
    outline: none;
    border-color: #2d4a3e;
    box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.12);
}

.store-auth-page .store-input {
    background: #0e1110;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8ece9;
    margin-bottom: 0.15rem;
}

.store-auth-page .store-input::placeholder {
    color: #5c6560;
}

.store-auth-page .store-input:focus {
    border-color: rgba(143, 188, 154, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.25);
}

.store-password-wrap {
    position: relative;
    margin-bottom: 0.25rem;
}

.store-password-wrap .store-input {
    padding-right: 2.85rem;
    margin-bottom: 0;
    width: 100%;
}

.store-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #5c5c5c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.store-password-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.store-password-toggle:hover {
    background: rgba(45, 74, 62, 0.08);
    color: #2d4a3e;
}

.store-password-toggle .icon-eye-off {
    display: none;
}

.store-password-wrap--visible .icon-eye {
    display: none;
}

.store-password-wrap--visible .icon-eye-off {
    display: block;
}

.store-auth-page .store-password-toggle {
    color: #a8b0ad;
}

.store-auth-page .store-password-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #d4ddd8;
}

.store-textarea {
    resize: vertical;
    min-height: 100px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.store-btn--primary {
    background: linear-gradient(165deg, #2d4a3e, #1a3028);
    color: #fff;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(45, 74, 62, 0.35);
}

.store-auth-page .store-btn--primary {
    width: 100%;
    margin-top: 1.35rem;
    padding: 0.95rem 1.5rem;
    background: linear-gradient(165deg, #3d5c4f, #2d4a3e 45%, #243d33);
    box-shadow: 0 6px 22px rgba(45, 74, 62, 0.45);
    font-size: 1rem;
}

.store-btn--primary:hover {
    transform: translateY(-1px);
    color: #fff;
}

.store-btn--ghost {
    background: #fff;
    color: #2d4a3e;
    border: 2px solid #e5e2dc;
}

.store-btn--ghost:hover {
    border-color: #2d4a3e;
}

.store-btn--block {
    width: 100%;
}

.store-btn--sm {
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
}

.store-btn-text {
    background: none;
    border: none;
    color: #2d4a3e;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.8125rem;
    padding: 0.25rem;
}

.store-btn-text--danger {
    color: #a34444;
}

.store-auth-footer {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #5c5c5c;
    text-align: center;
}

.store-auth-page .store-auth-footer {
    color: #8b9290;
}

.store-auth-footer a {
    color: #2d4a3e;
    font-weight: 700;
}

.store-auth-page .store-auth-footer a {
    color: #a8d4b4;
    font-weight: 600;
}

.store-auth-page .store-auth-footer a:hover {
    color: #c8e6d4;
}

.store-alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.store-alert--error {
    background: #fdf2f2;
    color: #8b2323;
    border: 1px solid #f0cccc;
}

.store-auth-page .store-alert--error {
    background: rgba(180, 60, 60, 0.14);
    color: #fecaca;
    border: 1px solid rgba(200, 90, 90, 0.35);
}

.store-shell__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.store-page-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    margin: 0 0 1.5rem;
    color: #1a1a1a;
}

.store-empty-cart {
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: #5c5c5c;
}

.store-cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .store-cart-grid {
        grid-template-columns: 1fr;
    }
}

.store-cart-lines {
    background: #fff;
    border: 1px solid #ebe8e3;
    border-radius: 16px;
    overflow: hidden;
}

.store-cart-line {
    display: grid;
    grid-template-columns: 96px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0ede8;
}

@media (max-width: 720px) {
    .store-cart-line {
        grid-template-columns: 72px 1fr;
    }
}

.store-cart-line:last-child {
    border-bottom: 0;
}

.store-cart-line.is-updating {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.store-cart-line__img img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.store-cart-line__name {
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.store-cart-line__name:hover {
    color: #2d4a3e;
}

.store-cart-line__price {
    font-size: 0.875rem;
    color: #6b6b6b;
}

.store-cart-line__qty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.store-cart-line__qty input {
    width: 4rem;
    padding: 0.35rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.store-cart-line__total {
    font-weight: 800;
    color: #2d4a3e;
}

.store-cart-summary {
    background: #fff;
    border: 1px solid #ebe8e3;
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.store-cart-summary__title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.store-cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.store-cart-summary__row--total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
    font-size: 1.1rem;
}

.store-cart-summary__note {
    font-size: 0.8rem;
    color: #6b6b6b;
    line-height: 1.45;
    margin: 0 0 1rem;
}

.store-cart-summary__guest {
    font-size: 0.875rem;
    color: #5c5c5c;
    margin-bottom: 0.75rem;
}

.store-link-muted {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #6b6b6b;
    font-size: 0.875rem;
}

/* --- Checkout page (modern layout) --- */
.store-checkout-page {
    --ch-surface: #ffffff;
    --ch-elevated: #f7f6f3;
    --ch-border: #e2ded6;
    --ch-text: #141816;
    --ch-muted: #5c6560;
    --ch-accent: #2d4a3e;
    background: linear-gradient(165deg, #ebe8e1 0%, #f0ede8 18%, #f7f6f3 45%, #faf9f7 100%);
    padding-bottom: 4rem;
}

.store-checkout-page .store-shell__inner {
    max-width: 1120px;
}

.store-checkout-wrap {
    max-width: none;
}

.store-checkout-hero {
    margin-bottom: 2rem;
    max-width: 38rem;
}

.store-checkout-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ch-accent);
}

.store-checkout-title {
    margin: 0 0 0.5rem;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--ch-text);
}

.store-checkout-tagline {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--ch-muted);
}

.store-checkout-alert {
    margin-bottom: 1.25rem;
    border-radius: 14px;
    padding: 0.9rem 1.15rem;
}

.store-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 1.75rem 2rem;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.store-checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-width: 0;
}

.store-checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 1rem;
    align-self: start;
}

@media (max-width: 1024px) {
    .store-checkout-layout {
        grid-template-columns: 1fr;
    }

    .store-checkout-sidebar {
        position: static;
    }
}

.store-checkout-form {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.store-checkout-panel {
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    border-radius: 20px;
    padding: 1.45rem 1.55rem 1.55rem;
    box-shadow:
        0 1px 2px rgba(20, 24, 22, 0.04),
        0 12px 32px rgba(20, 24, 22, 0.07);
}

.store-checkout-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 24, 22, 0.07);
}

.store-checkout-panel__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ch-text);
}

.store-checkout-panel__step {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a918c;
    line-height: 1.4;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: rgba(45, 74, 62, 0.08);
    color: var(--ch-accent);
}

.store-checkout-panel .store-checkout-lead {
    margin: 0 0 1.1rem;
}

.store-checkout-panel .store-checkout-lead + .store-label {
    margin-top: 0;
}

.store-checkout-page .store-label {
    color: #4a524e;
    letter-spacing: 0.06em;
}

.store-checkout-page .store-input,
.store-checkout-page .store-select {
    border-color: #ccc6bd;
    background: #fafaf8;
    padding: 0.85rem 1.05rem;
    border-radius: 12px;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.store-checkout-page .store-input:hover {
    border-color: #b0aaa0;
    background: #fff;
}

.store-checkout-page .store-input:focus {
    background: #fff;
    border-color: var(--ch-accent);
    box-shadow: 0 0 0 4px rgba(45, 74, 62, 0.16);
}

.store-checkout-page .store-select {
    width: 100%;
    line-height: 1.35;
}

.store-checkout-lead {
    font-size: 0.92rem;
    color: var(--ch-muted);
    line-height: 1.55;
}

.store-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.store-address-card {
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 14px;
    border: 2px solid #e8e4de;
    background: #fdfcfa;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-address-card:hover {
    border-color: #cfc8bf;
}

.store-address-card--selected {
    border-color: #2d4a3e;
    box-shadow: 0 0 0 1px rgba(45, 74, 62, 0.2);
    background: #fff;
}

.store-address-card--new .store-address-card__body {
    padding: 1rem 1.1rem;
}

.store-address-card__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.store-address-card__body {
    display: block;
    padding: 1rem 1.15rem;
    position: relative;
    padding-left: 2.5rem;
}

.store-address-card__body::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid #b9b3ab;
    background: #fff;
    box-sizing: border-box;
}

.store-address-card--selected .store-address-card__body::before {
    border-color: #2d4a3e;
    box-shadow: inset 0 0 0 3px #fff;
    background: #2d4a3e;
}

.store-address-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: #ebe8e3;
    color: #4a4a4a;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.store-address-card__badge--default {
    background: rgba(45, 74, 62, 0.12);
    color: #2d4a3e;
}

.store-address-card__name {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #1a1a1a;
}

.store-address-card__phone {
    display: block;
    font-size: 0.875rem;
    color: #5c5c5c;
    margin-bottom: 0.45rem;
}

.store-address-card__hint {
    display: block;
    font-size: 0.82rem;
    color: #6b6b6b;
    font-weight: 500;
}

.store-address-card__lines {
    display: block;
    font-size: 0.84rem;
    color: #444;
    line-height: 1.45;
}

.store-checkout-new-address {
    display: none;
    margin-top: 0.35rem;
}

.store-checkout-new-address.is-visible {
    display: block;
}

.store-checkout-new-address__inner {
    padding: 1.2rem 1.3rem 1.3rem;
    border-radius: 16px;
    background: var(--ch-elevated, #f7f6f3);
    border: 1px dashed #c8c2b8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.store-checkout-new-address__heading {
    margin: 0 0 1.05rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a524e;
}

.store-checkout-field-row {
    display: grid;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.store-checkout-field-row--2 {
    grid-template-columns: 1fr 1fr;
}

.store-checkout-field-row--3 {
    grid-template-columns: 1.2fr 1fr 0.85fr;
}

@media (max-width: 640px) {
    .store-checkout-field-row--2,
    .store-checkout-field-row--3 {
        grid-template-columns: 1fr;
    }
}

.store-select {
    cursor: pointer;
    appearance: auto;
}

.store-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #2c322e;
    cursor: pointer;
    line-height: 1.45;
}

.store-checkbox-wrap--save {
    margin-top: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(45, 74, 62, 0.06);
    border: 1px solid rgba(45, 74, 62, 0.12);
}

.store-checkbox-wrap input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 5px;
    accent-color: #2d4a3e;
    cursor: pointer;
}

.store-checkout-actions {
    margin-top: 0.25rem;
}

.store-checkout-actions--sidebar {
    margin-top: 0;
    padding: 1.25rem 1.35rem 1.35rem;
    border-radius: 18px;
    border: 1px solid var(--ch-border, #e2ded6);
    background: var(--ch-surface, #fff);
    box-shadow: 0 4px 20px rgba(20, 24, 22, 0.06);
}

.store-checkout-submit {
    margin-top: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow:
        0 4px 16px rgba(45, 74, 62, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.store-checkout-actions__fine {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: #6b726e;
    line-height: 1.45;
    text-align: center;
}

.store-checkout-actions__fine code {
    font-size: 0.72rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(45, 74, 62, 0.08);
}

/* Payment method (Step 3) — Cashfree default */
.store-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-pay-method {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 2px solid var(--ch-border, #e2ded6);
    background: var(--ch-elevated, #faf9f6);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.store-pay-method:hover {
    border-color: rgba(45, 74, 62, 0.35);
}

.store-pay-method--selected {
    border-color: #2d4a3e;
    box-shadow: 0 0 0 1px #2d4a3e;
    background: rgba(45, 74, 62, 0.06);
}

.store-pay-method--disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.store-pay-method--disabled .store-pay-method__title {
    color: #6b726e;
}

.store-pay-method__radio {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #2d4a3e;
    cursor: pointer;
}

.store-pay-method__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.store-pay-method__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ch-text, #1a1f1c);
}

.store-pay-method__hint {
    font-size: 0.82rem;
    color: #5c6560;
    line-height: 1.45;
}

/* Cashfree modal launch overlay (same checkout page) */
.store-cf-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.store-cf-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 10, 0.72);
    backdrop-filter: blur(6px);
}

.store-cf-overlay__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 20px;
    background: var(--ch-surface, #fff);
    border: 1px solid var(--ch-border, #e2ded6);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.store-cf-overlay__card .store-checkout-eyebrow {
    margin-bottom: 0.35rem;
}

.store-order-summary {
    position: static;
    border-radius: 20px;
    border: 1px solid var(--ch-border, #e2ded6);
    box-shadow:
        0 1px 2px rgba(20, 24, 22, 0.05),
        0 10px 40px rgba(20, 24, 22, 0.08);
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #faf9f6 100%);
}

.store-order-summary.store-cart-summary {
    padding: 0;
}

.store-order-summary::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #2d4a3e 0%, #4a7c59 40%, #c9a574 100%);
}

.store-order-summary .store-cart-summary__title,
.store-order-summary__title {
    padding: 1.35rem 1.35rem 0.35rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.store-order-summary__caption {
    margin: 0;
    padding: 0 1.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b726e;
}

.store-order-summary__list {
    list-style: none;
    margin: 0;
    padding: 0 1.35rem;
}

.store-order-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(20, 24, 22, 0.07);
}

.store-order-line:last-child {
    border-bottom: none;
}

.store-order-line__name {
    color: #1a211d;
    font-weight: 600;
    line-height: 1.4;
}

.store-order-line__qty {
    font-weight: 600;
    color: #6b726e;
    font-size: 0.85em;
}

.store-order-line__price {
    font-weight: 700;
    color: #2d4a3e;
    white-space: nowrap;
}

.store-order-summary__total {
    margin: 0.35rem 1.35rem 1.35rem;
    padding: 1rem 0 0;
}

/* Legacy row class kept for other views */
.store-checkout-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

/*
 * Checkout dark mode — high-specificity on main.store-checkout-page so these
 * win after generic .store-shell / .store-input rules (store.css loads last in header).
 */
html[data-theme="dark"] main.store-shell.store-checkout-page,
body[data-theme="dark"] main.store-shell.store-checkout-page {
    --ch-surface: #1b211e;
    --ch-elevated: #141a17;
    --ch-border: #33403a;
    --ch-text: #eef3ef;
    --ch-muted: #9eb2a6;
    --ch-accent: #8fbc9a;
    background: linear-gradient(180deg, #0a0d0c 0%, #101613 35%, #141a17 100%) !important;
    color: var(--ch-text);
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-eyebrow,
body[data-theme="dark"] main.store-checkout-page .store-checkout-eyebrow {
    color: #a8d4b4;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-title,
body[data-theme="dark"] main.store-checkout-page .store-checkout-title {
    color: #f5faf7;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-tagline,
body[data-theme="dark"] main.store-checkout-page .store-checkout-tagline {
    color: #9eb2a6;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-panel,
body[data-theme="dark"] main.store-checkout-page .store-checkout-panel {
    background: #1b211e;
    border-color: #33403a;
    color: #eef3ef;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-panel__head,
body[data-theme="dark"] main.store-checkout-page .store-checkout-panel__head {
    border-bottom-color: #2d3834;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-panel__title,
body[data-theme="dark"] main.store-checkout-page .store-checkout-panel__title {
    color: #f5faf7;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-panel__step,
body[data-theme="dark"] main.store-checkout-page .store-checkout-panel__step {
    background: rgba(143, 188, 154, 0.2);
    color: #c5e6d0;
}

html[data-theme="dark"] main.store-checkout-page .store-label,
body[data-theme="dark"] main.store-checkout-page .store-label {
    color: #b8c9be;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-lead,
body[data-theme="dark"] main.store-checkout-page .store-checkout-lead {
    color: #9eb2a6;
}

html[data-theme="dark"] main.store-checkout-page .store-input,
html[data-theme="dark"] main.store-checkout-page .store-select,
body[data-theme="dark"] main.store-checkout-page .store-input,
body[data-theme="dark"] main.store-checkout-page .store-select {
    background: #121916 !important;
    border-color: #3d4f45 !important;
    color: #f0f5f2 !important;
}

html[data-theme="dark"] main.store-checkout-page .store-input::placeholder,
body[data-theme="dark"] main.store-checkout-page .store-input::placeholder {
    color: #6d7f72;
}

html[data-theme="dark"] main.store-checkout-page .store-input:hover,
body[data-theme="dark"] main.store-checkout-page .store-input:hover {
    border-color: #5a6b62 !important;
    background: #161d19 !important;
}

html[data-theme="dark"] main.store-checkout-page .store-input:focus,
body[data-theme="dark"] main.store-checkout-page .store-input:focus {
    border-color: #8fbc9a !important;
    box-shadow: 0 0 0 4px rgba(143, 188, 154, 0.22) !important;
    background: #1a231f !important;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-new-address__inner,
body[data-theme="dark"] main.store-checkout-page .store-checkout-new-address__inner {
    background: #161d1a;
    border-color: #3d4f45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-new-address__heading,
body[data-theme="dark"] main.store-checkout-page .store-checkout-new-address__heading {
    color: #a8d4b4;
}

html[data-theme="dark"] main.store-checkout-page .store-address-card,
body[data-theme="dark"] main.store-checkout-page .store-address-card {
    background: #161d1a;
    border-color: #33403a;
}

html[data-theme="dark"] main.store-checkout-page .store-address-card--selected,
body[data-theme="dark"] main.store-checkout-page .store-address-card--selected {
    background: #1e2824;
    border-color: #8fbc9a;
    box-shadow: 0 0 0 1px rgba(143, 188, 154, 0.35);
}

html[data-theme="dark"] main.store-checkout-page .store-address-card__name,
body[data-theme="dark"] main.store-checkout-page .store-address-card__name {
    color: #f0f5f2;
}

html[data-theme="dark"] main.store-checkout-page .store-address-card__phone,
html[data-theme="dark"] main.store-checkout-page .store-address-card__hint,
html[data-theme="dark"] main.store-checkout-page .store-address-card__lines,
body[data-theme="dark"] main.store-checkout-page .store-address-card__phone,
body[data-theme="dark"] main.store-checkout-page .store-address-card__hint,
body[data-theme="dark"] main.store-checkout-page .store-address-card__lines {
    color: #b0c4b6;
}

html[data-theme="dark"] main.store-checkout-page .store-address-card__badge,
body[data-theme="dark"] main.store-checkout-page .store-address-card__badge {
    background: #2a3530;
    color: #d5e0d8;
}

html[data-theme="dark"] main.store-checkout-page .store-address-card__body::before,
body[data-theme="dark"] main.store-checkout-page .store-address-card__body::before {
    border-color: #5a6b62;
    background: #121916;
}

html[data-theme="dark"] main.store-checkout-page .store-order-summary.store-cart-summary,
body[data-theme="dark"] main.store-checkout-page .store-order-summary.store-cart-summary {
    background: linear-gradient(180deg, #1b211e 0%, #171e1b 100%);
    border-color: #33403a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] main.store-checkout-page .store-order-summary__title,
body[data-theme="dark"] main.store-checkout-page .store-order-summary__title {
    color: #f5faf7;
}

html[data-theme="dark"] main.store-checkout-page .store-order-summary__caption,
body[data-theme="dark"] main.store-checkout-page .store-order-summary__caption {
    color: #8faa9a;
}

html[data-theme="dark"] main.store-checkout-page .store-order-line,
body[data-theme="dark"] main.store-checkout-page .store-order-line {
    border-bottom-color: #2d3834;
}

html[data-theme="dark"] main.store-checkout-page .store-order-line__name,
body[data-theme="dark"] main.store-checkout-page .store-order-line__name {
    color: #f0f5f2;
}

html[data-theme="dark"] main.store-checkout-page .store-order-line__qty,
body[data-theme="dark"] main.store-checkout-page .store-order-line__qty {
    color: #9eb2a6;
}

html[data-theme="dark"] main.store-checkout-page .store-order-line__price,
body[data-theme="dark"] main.store-checkout-page .store-order-line__price {
    color: #a8d4b4;
}

html[data-theme="dark"] main.store-checkout-page .store-cart-summary__row--total,
body[data-theme="dark"] main.store-checkout-page .store-cart-summary__row--total {
    border-top-color: #33403a;
    color: #f0f5f2;
}

html[data-theme="dark"] main.store-checkout-page .store-cart-summary__row--total strong,
body[data-theme="dark"] main.store-checkout-page .store-cart-summary__row--total strong {
    color: #a8d4b4;
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-actions--sidebar,
body[data-theme="dark"] main.store-checkout-page .store-checkout-actions--sidebar {
    background: #1b211e;
    border-color: #33403a;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] main.store-checkout-page .store-checkout-actions__fine,
body[data-theme="dark"] main.store-checkout-page .store-checkout-actions__fine {
    color: #8faa9a;
}

html[data-theme="dark"] main.store-checkout-page .store-checkbox-wrap--save,
body[data-theme="dark"] main.store-checkout-page .store-checkbox-wrap--save {
    background: rgba(143, 188, 154, 0.1);
    border-color: rgba(143, 188, 154, 0.22);
    color: #ddeee3;
}

html[data-theme="dark"] main.store-checkout-page .store-btn--primary,
body[data-theme="dark"] main.store-checkout-page .store-btn--primary {
    background: linear-gradient(165deg, #4a7c59, #2d4a3e 55%, #243d33);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] main.store-checkout-page .store-pay-method,
body[data-theme="dark"] main.store-checkout-page .store-pay-method {
    border-color: #33403a;
    background: #141916;
}

html[data-theme="dark"] main.store-checkout-page .store-pay-method--selected,
body[data-theme="dark"] main.store-checkout-page .store-pay-method--selected {
    border-color: #8fbc9a;
    box-shadow: 0 0 0 1px #8fbc9a;
    background: rgba(143, 188, 154, 0.08);
}

html[data-theme="dark"] main.store-checkout-page .store-pay-method__title,
body[data-theme="dark"] main.store-checkout-page .store-pay-method__title {
    color: #e8ece9;
}

html[data-theme="dark"] main.store-checkout-page .store-pay-method__hint,
body[data-theme="dark"] main.store-checkout-page .store-pay-method__hint {
    color: #9aa89f;
}

html[data-theme="dark"] .store-cf-overlay__card,
body[data-theme="dark"] .store-cf-overlay__card {
    background: #1a1f1c;
    border-color: #2a3530;
}

/* Order success / payment pending — scoped to main only; never use .store-success on <body> (theme conflicts). */
.store-shell--order-success {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.store-order-success {
    max-width: 540px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
    contain: layout style;
}

.store-order-success__card {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e8ebe9;
    border-radius: 20px;
    padding: 2rem 1.75rem 2.25rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08);
}

.store-order-success__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

/* Checkmark: normal flow only — prevents stray fixed/absolute from legacy CSS */
.store-order-success__mark {
    position: static;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8f5ef 0%, #d4eadf 100%);
    color: #2d4a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.store-order-success__title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 600;
    margin: 0;
    color: #1a2420;
    line-height: 1.2;
}

.store-order-success__lead {
    font-size: 1.05rem;
    color: #3d4842;
    margin: 0;
    line-height: 1.5;
}

.store-order-success__chips {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    text-align: left;
}

@media (max-width: 520px) {
    .store-order-success__chips {
        grid-template-columns: 1fr;
    }
}

.store-order-success__chip {
    background: #f4f7f5;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.store-order-success__chip-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7870;
    margin-bottom: 0.3rem;
}

.store-order-success__chip-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2420;
}

.store-order-success__chip-value--ok {
    color: #1d6b4a;
}

.store-order-success__chip-value--warn {
    color: #b45309;
}

.store-order-success__note {
    font-size: 0.92rem;
    color: #5c6860;
    line-height: 1.55;
    margin: 0 0 0.25rem;
    text-align: left;
}

.store-order-success__note a {
    color: #2d4a3e;
    font-weight: 600;
}

.store-order-success__note a:hover {
    text-decoration: underline;
}

.store-order-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.65rem;
}

.store-order-success--pending .store-order-success__mark {
    background: linear-gradient(145deg, #fff8eb 0%, #fdeccc 100%);
    color: #b45309;
}

/* Legacy blocks (payment_return.php, etc.) */
.store-success {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

.store-success__icon {
    position: static;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: #e8f5ef;
    color: #2d4a3e;
    font-size: 2rem;
    margin: 0 auto 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-success__lead {
    font-size: 1.1rem;
    color: #333;
}

.store-success__meta {
    color: #5c5c5c;
}

.store-success__note {
    font-size: 0.9rem;
    color: #777;
}

.store-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.store-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.store-wish-card {
    background: #fff;
    border: 1px solid #ebe8e3;
    border-radius: 16px;
    overflow: hidden;
}

.store-wish-card__img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.store-wish-card__body {
    padding: 1rem;
}

.store-wish-card__name {
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.store-wish-card__price {
    font-weight: 800;
    color: #2d4a3e;
    margin: 0.35rem 0 0.75rem;
}

.store-wish-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.store-pagination-wrap {
    margin-top: 2rem;
}

/* Public footer (Admin → Settings) */
.millet-footer {
    font-family: "Inter", sans-serif;
    padding: 2.5rem 1.25rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.millet-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .millet-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .millet-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .millet-footer__grid {
        grid-template-columns: 1fr;
    }
}

.millet-footer__brand {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: inherit;
}

.millet-footer__heading {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: inherit;
    opacity: 0.92;
}

.millet-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.millet-footer__social .ms-s-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.millet-footer__social .ms-s-i:hover {
    background: rgba(0, 0, 0, 0.1);
}

.millet-footer__social .ms-s-i svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

html[data-theme="dark"] .millet-footer__social .ms-s-i,
body[data-theme="dark"] .millet-footer__social .ms-s-i {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .millet-footer__social .ms-s-i:hover,
body[data-theme="dark"] .millet-footer__social .ms-s-i:hover {
    background: rgba(255, 255, 255, 0.14);
}

.millet-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.millet-footer__link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.millet-footer__link:hover {
    text-decoration: underline;
}

.millet-footer__link--block {
    display: inline-block;
}

.millet-footer__address {
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.millet-footer__muted {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.65;
}

.millet-footer__bar {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.millet-footer__copyright,
.millet-footer__credit {
    margin: 0;
    opacity: 0.85;
}

.millet-footer__credit {
    font-size: 0.78rem;
}

html[data-theme="dark"] .millet-footer__bar,
body[data-theme="dark"] .millet-footer__bar {
    border-top-color: rgba(255, 255, 255, 0.1);
}
