/* minr storefront — mobile-first, green “fintech-clean” (inspired by clear payment / banking UIs) */

:root {
    --primary: #16a34a;
    --primary-hover: #15803d;
    --primary-soft: rgba(22, 163, 74, 0.12);
    --primary-ink: #14532d;
    --bg: #f3f4f6;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-input: #d1d5db;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --header-h: 3.5rem;
    --mobile-top-h: 3.25rem;
    --bottom-nav-h: 4.25rem;
    --touch-min: 48px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* `hidden` must win over layout utilities (.nav-cluster, etc.) or auth + user nav both appear */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 47.99rem) {
    body {
        padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 12px));
    }
}

.shell {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.shell--flash {
    padding-top: 0.25rem;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 300;
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* ----- Header (light bar) ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 4px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(145deg, #22c55e 0%, var(--primary) 100%);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.nav-main--desktop {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 0.85rem;
    flex: 1;
    min-width: 0;
}

@media (min-width: 48rem) {
    .nav-main--desktop {
        display: flex;
    }
    .header-tools--mobile {
        display: none !important;
    }
    .bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

.nav-main__browse {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    background: transparent;
    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-link--quiet {
    color: var(--text-muted);
    padding-inline: 0.75rem;
}

.nav-link--quiet:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.05);
}

.nav-link--cart {
    position: relative;
    gap: 0.4rem;
}

.nav-link__icon {
    display: inline-flex;
    opacity: 0.88;
}

.nav-link--seller {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-soft);
    border-color: rgba(22, 163, 74, 0.15);
}

.nav-link--seller:hover {
    color: var(--primary-hover);
    background: rgba(22, 163, 74, 0.18);
}

.nav-cluster {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    padding: 0.35rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.nav-cluster--guest {
    padding: 0.35rem 0.4rem 0.35rem 0.45rem;
    gap: 0.35rem 0.5rem;
}

.nav-cluster--user {
    padding: 0.3rem 0.4rem 0.3rem 0.45rem;
    gap: 0.3rem 0.45rem;
}

.nav-cluster__divider {
    width: 1px;
    height: 1.15rem;
    background: var(--border);
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-cluster__btn {
    border-radius: var(--radius-pill) !important;
    padding-inline: 1rem !important;
    font-weight: 600;
}

.nav-cluster__btn--logout {
    font-weight: 600;
    border-color: var(--border-input) !important;
    color: var(--text-muted) !important;
}

.nav-cluster__btn--logout:hover {
    border-color: var(--text-muted) !important;
    color: var(--text) !important;
    background: var(--surface) !important;
}

.link-subtle {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
}

.header-tools--mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.icon-chip:active {
    background: var(--bg);
}

.icon-chip__svg {
    display: flex;
}

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

/* Green mobile sub-header (inner pages) */
.mobile-top-bar {
    display: none;
    align-items: center;
    gap: 0.25rem;
    min-height: var(--mobile-top-h);
    padding: 0 0.25rem 0 0;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

@media (max-width: 47.99rem) {
    .mobile-top-bar:not([hidden]) {
        display: flex;
    }
}

.mobile-top-bar__back {
    flex-shrink: 0;
    width: var(--touch-min);
    height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mobile-top-bar__back:active {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-top-bar__title {
    flex: 1;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.25rem 0.5rem 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom tab bar */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    min-height: var(--bottom-nav-h);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow:
        0 -1px 0 rgba(15, 23, 42, 0.04),
        0 -12px 40px rgba(15, 23, 42, 0.08);
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 6px 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 12px;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.bottom-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1px;
}

.bottom-nav__item.is-active {
    color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.bottom-nav__icon {
    display: flex;
    opacity: 0.9;
}

/* Flash */
.flash {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.flash--ok {
    background: #ecfdf5;
    color: var(--primary-ink);
    border: 1px solid #a7f3d0;
}

.flash--err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.main {
    flex: 1;
    padding-block: clamp(1rem, 3vw, 2rem);
}

/* Typography */
.page-title {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: var(--text);
}

@media (min-width: 48rem) {
    .page-title {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }
}

/* Screen-reader only: keep H1 for a11y, green bar shows visible title on mobile */
@media (max-width: 47.99rem) {
    body.is-subpage [data-page-heading] {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.page-lead {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    max-width: 40rem;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.65rem 1.25rem;
    min-height: var(--touch-min);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.btn--primary:hover {
    background: var(--primary-hover);
}

.btn--outline {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--primary-soft);
}

.btn--primary.btn--danger {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn--primary.btn--danger:hover {
    background: #b91c1c;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    box-sizing: border-box;
}

.confirm-modal[hidden] {
    display: none !important;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
}

.confirm-modal__panel {
    position: relative;
    z-index: 1;
    max-width: 22rem;
    width: 100%;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), var(--shadow-card);
    border: 1px solid var(--border);
    padding: 1.35rem 1.35rem 1.1rem;
}

.confirm-modal__title {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.confirm-modal__message {
    margin: 0 0 1.35rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.confirm-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.confirm-modal__actions .btn {
    min-width: 6.5rem;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--sm {
    padding: 0.45rem 0.9rem;
    min-height: 2.5rem;
    font-size: 0.875rem;
}

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

@media (max-width: 47.99rem) {
    .main .btn--primary:not(.btn--sm):not(.toolbar .btn):not(.stores-filter__submit) {
        width: 100%;
        border-radius: var(--radius);
        min-height: 3.25rem;
        font-size: 1rem;
    }
}

/* Forms — tall, rounded, BitPay-like */
.field {
    margin-bottom: 1.125rem;
}

.field label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.01em;
}

.field label.field--inline {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    max-width: none;
    padding: 0.875rem 1rem;
    min-height: 3.25rem;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9ca3af;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Checkboxes / radios in fields — must not inherit text-input sizing */
.field input[type="checkbox"],
.field input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    min-height: 0;
    padding: 0;
    margin: 0.2rem 0 0;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
    box-shadow: none;
}

.field input[type="radio"] {
    border-radius: 50%;
}

.field input[type="checkbox"]:focus-visible,
.field input[type="radio"]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: none;
}

.field label.field--inline input[type="checkbox"],
.field label.field--inline input[type="radio"] {
    margin-top: 0.15rem;
}

@media (min-width: 48rem) {
    .field input,
    .field select,
    .field textarea {
        max-width: 26rem;
    }

    .auth-card .field input,
    .auth-card .field select,
    .auth-card .field textarea {
        max-width: none;
    }
}

.field--inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-text {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
    gap: 0.875rem;
}

@media (min-width: 30rem) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
        gap: 1rem;
    }
}

/* Stores index — fill wide desktops without huge cards */
.card-grid--stores {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}

@media (min-width: 30rem) {
    .card-grid--stores {
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    }
}

@media (min-width: 48rem) {
    .card-grid--stores {
        grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
        gap: 1.125rem;
    }
}

@media (min-width: 64rem) {
    .card-grid--stores {
        grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr));
    }
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

@media (hover: hover) {
    .card:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }
}

.card__media {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #ecfdf5, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__media--empty {
    font-size: 2rem;
    opacity: 0.25;
    color: var(--primary);
}

.card__body {
    padding: 0.875rem 1rem 1rem;
}

.card__title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

.card__title a:hover {
    color: var(--primary);
}

.card__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.store-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    margin-bottom: 0.35rem;
}

/* ----- Shopper home (stores index) ----- */
body.is-store-home {
    background:
        radial-gradient(120% 55% at 12% -5%, rgba(22, 163, 74, 0.08), transparent 48%),
        radial-gradient(80% 50% at 95% 0%, rgba(22, 163, 74, 0.05), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f3f4f6 55%, #eef2f6 100%);
}

body.is-store-home .main {
    padding-top: clamp(0.65rem, 2.5vw, 1.25rem);
    padding-bottom: clamp(1.35rem, 4vw, 2.5rem);
}

.discover-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Marketing hero (stores home) — reference layout */
.landing-hero {
    margin-bottom: clamp(1.35rem, 4vw, 2rem);
    padding: clamp(1.35rem, 4vw, 2.35rem) clamp(1rem, 3vw, 1.75rem);
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 48%, rgba(236, 253, 245, 0.75) 100%);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.landing-hero__grid {
    display: grid;
    gap: clamp(1.25rem, 4vw, 2.25rem);
    align-items: center;
}

@media (min-width: 56rem) {
    .landing-hero__grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
        gap: clamp(1.5rem, 4vw, 3rem);
    }
}

.landing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.95rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary-ink);
    background: rgba(187, 247, 208, 0.45);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

.landing-hero__title {
    margin: 0 0 0.85rem;
    font-family: var(--font-sans);
    font-size: clamp(1.85rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text);
}

.landing-hero__title-accent {
    display: block;
    margin-top: 0.06em;
    color: transparent;
    background: linear-gradient(105deg, var(--primary-hover) 0%, var(--primary) 42%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-hero__lead {
    margin: 0 0 1.25rem;
    max-width: 28rem;
    font-size: clamp(0.9625rem, 2.2vw, 1.0525rem);
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 500;
}

.landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
}

.landing-hero__cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn--marketing {
    min-height: 3rem;
    padding-inline: 1.35rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.btn--marketing.btn--outline {
    border-width: 2px;
    border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
}

.landing-hero__visual {
    position: relative;
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

.landing-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.landing-hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (min-width: 40rem) {
    .landing-hero-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

.landing-hero-features__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.65rem 0.45rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
}

.landing-hero-features__icon {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: var(--primary-hover);
}

.landing-hero-features__label {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.28;
    color: var(--text);
}

/* Mobile: hide long marketing hero — shoppers open on search + store grid */
@media (max-width: 47.99rem) {
    body.is-store-home .landing-hero {
        display: none !important;
    }

    body.is-store-home .main {
        padding-top: 0.45rem;
        padding-bottom: clamp(1rem, 4vw, 2rem);
    }
}

@media (max-width: 22.49rem) {
    .landing-hero-features__label {
        font-size: 0.72rem;
    }
}

.discover-banner {
    margin: 0 0 1.15rem;
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    background: #f8fafc;
}

.discover-banner__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

#discover-stores {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.discover-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.discover-section-title {
    margin: 0 0 0.85rem;
    padding: 0;
    border: none;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.discover-section-title__label {
    flex-shrink: 0;
}

.discover-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    min-width: 1.5rem;
}

body.is-store-home .stores-filter {
    margin-bottom: 1.35rem;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}

body.is-store-home .card-grid--stores {
    gap: 1rem;
}

@media (min-width: 48rem) {
    body.is-store-home .card-grid--stores {
        gap: 1.125rem;
    }
}

@keyframes card-soft-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.is-store-home .card-grid--stores .card {
        animation: card-soft-in 0.45s ease backwards;
    }

    body.is-store-home .card-grid--stores .card:nth-child(1) {
        animation-delay: 0.02s;
    }
    body.is-store-home .card-grid--stores .card:nth-child(2) {
        animation-delay: 0.05s;
    }
    body.is-store-home .card-grid--stores .card:nth-child(3) {
        animation-delay: 0.08s;
    }
    body.is-store-home .card-grid--stores .card:nth-child(4) {
        animation-delay: 0.11s;
    }
    body.is-store-home .card-grid--stores .card:nth-child(5) {
        animation-delay: 0.14s;
    }
    body.is-store-home .card-grid--stores .card:nth-child(6) {
        animation-delay: 0.17s;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-store-home .card-grid--stores .card {
        animation: none;
    }
}

/* Stores discovery — compact search + sort */
.stores-filter {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    padding: 0.9rem 1rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

@media (min-width: 40rem) {
    .stores-filter {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-end;
        gap: 0.75rem;
        padding: 0.85rem 1.1rem 0.95rem;
    }
}

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

.stores-filter__search {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stores-filter__search-inner {
    position: relative;
}

.stores-filter__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.stores-filter__search-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.62rem 0.85rem 0.62rem 2.65rem;
    min-height: var(--touch-min);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--text);
    background: var(--bg-elevated);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.stores-filter__search-input::placeholder {
    color: #9ca3af;
}

.stores-filter__search-input:hover:not(:focus) {
    border-color: #c4c9d1;
}

.stores-filter__search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.stores-filter__tail {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: stretch;
}

@media (min-width: 40rem) {
    .stores-filter__tail {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.6rem;
        flex-shrink: 0;
    }

    .stores-filter__submit {
        width: auto;
    }
}

.stores-filter__sort {
    flex: 1;
    min-width: 0;
    width: 100%;
}

@media (min-width: 40rem) {
    .stores-filter__sort {
        flex: 0 0 12.5rem;
        width: 12.5rem;
    }
}

.stores-filter__field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    line-height: 1.25;
}

.stores-filter__submit-label-spacer {
    visibility: hidden;
    user-select: none;
    height: 0;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

@media (min-width: 40rem) {
    .stores-filter__submit-label-spacer {
        visibility: hidden;
        height: auto;
        margin: 0 0 0.3rem !important;
        overflow: visible;
    }
}

.stores-filter__submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
}

@media (min-width: 40rem) {
    .stores-filter__submit-wrap {
        align-self: flex-end;
    }
}

.stores-filter__select {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    min-height: var(--touch-min);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--text);
    background-color: var(--bg-elevated);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 1rem;
    cursor: pointer;
    appearance: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.stores-filter__select:hover:not(:focus) {
    border-color: #c4c9d1;
}

.stores-filter__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.stores-filter__submit {
    flex-shrink: 0;
    width: 100%;
    min-height: var(--touch-min);
    padding-inline: 1.1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.stores-pagination {
    margin-top: 0.35rem;
}

.stores-pagination .btn {
    min-height: var(--touch-min);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.toolbar .field {
    margin: 0;
}

.toolbar .btn--primary {
    width: auto;
    min-height: 3.25rem;
}

/* Product detail */
.product-detail {
    max-width: 56rem;
    margin-inline: auto;
    padding-bottom: 1.5rem;
}

.product-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 48rem) {
    .product-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 2rem;
    }
}

.product-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.5rem 0.35rem 0;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.product-back:hover {
    color: var(--primary-hover);
    background: var(--primary-soft);
}

.product-back__icon {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.85;
}

.product-detail__title {
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.product-description {
    margin: 1rem 0 1.25rem;
}

.product-description__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
    white-space: pre-wrap;
}

.product-detail__actions {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-radius: var(--radius);
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.product-gallery__main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(160deg, #fafafa 0%, var(--surface) 100%);
}

.product-gallery--empty .product-gallery__placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.product-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-inline: -2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.product-gallery__thumb {
    position: relative;
    flex-shrink: 0;
    width: 3.75rem;
    height: 3.75rem;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}

.product-gallery__thumb:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.product-gallery__thumb:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.product-gallery__thumb--active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 1rem 0;
}

.price-sale {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.price-list {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.offer-pill {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.75rem;
    flex-wrap: wrap;
}

.qty-row input[type="number"] {
    width: 4.5rem;
    padding: 0.6rem;
    text-align: center;
    min-height: 3rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-input);
    font-weight: 600;
}

.prose {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.prose p {
    margin: 0 0 0.75rem;
}

/* Cart — shopper page (card rows, mobile-first) */
.cart-page {
    max-width: 38rem;
    margin-inline: auto;
    padding-bottom: 2rem;
}

.cart-page__header {
    margin-bottom: 1.1rem;
}

.cart-page__title {
    margin: 0 0 0.2rem;
}

.cart-page__meta {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cart-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.9rem 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.cart-line__media {
    align-self: start;
}

.cart-line__body {
    min-width: 0;
}

.cart-line__thumb {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
    background: var(--bg);
}

.cart-line__thumb--placeholder {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
    background: linear-gradient(145deg, var(--primary-soft), var(--surface));
    color: var(--primary);
    font-size: 1.35rem;
    opacity: 0.45;
}

.cart-line__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.02em;
}

.cart-line__unit-row {
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cart-line__unit-price {
    font-weight: 700;
    color: var(--text);
}

.cart-line__unit-suffix {
    font-weight: 500;
    font-size: 0.8125rem;
}

.cart-line__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 1rem;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.cart-line__qty-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 5.5rem;
}

.cart-line__qty-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.cart-line__qty-field .cart-qty {
    width: 4.5rem;
    min-height: 2.75rem;
    text-align: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    padding: 0.25rem;
    background: var(--surface);
}

.cart-line__qty-field .cart-qty:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.cart-line__totals {
    margin-left: auto;
    text-align: right;
    min-width: 6.5rem;
}

.cart-line__line-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.cart-line__line-value {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.cart-line .cart-remove {
    flex: 1 1 100%;
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cart-line .cart-remove:hover {
    background: var(--bg);
    color: #b91c1c;
    border-color: color-mix(in srgb, #b91c1c 35%, var(--border));
}

.cart-order-summary {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.cart-order-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.cart-order-summary__row--emphasis {
    font-size: 1rem;
    color: var(--text);
    padding-top: 0.15rem;
    margin-bottom: 0.35rem;
}

.cart-order-summary__row--emphasis strong {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.cart-order-summary__discount {
    font-weight: 700;
    color: var(--primary);
}

.cart-order-summary__actions {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-order-summary__checkout {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
    font-size: 1rem;
}

.cart-order-summary__link {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 0.35rem;
}

.cart-order-summary__link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Table-style cart (seller catalog, orders, etc.) */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
}

.cart-table thead,
.cart-table tbody,
.cart-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.cart-table th,
.cart-table td {
    padding: 0.75rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: #f9fafb;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 800;
}

/* Shopper — Your orders (cards) */
.customer-orders-page {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

.customer-orders-page__lead {
    margin-top: -0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
}

.customer-orders-empty {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.5rem 1rem;
}

.customer-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.customer-order-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    background: var(--surface, #fff);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
    -webkit-tap-highlight-color: transparent;
}

.customer-order-card:hover {
    border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.customer-order-card:active {
    transform: scale(0.99);
}

.customer-order-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.customer-order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.customer-order-card__id {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.customer-order-card__total {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.customer-order-card__store {
    font-size: 0.9375rem;
    color: #4b5563;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.customer-order-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.customer-order-card__status {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--primary) 14%, #f0fdf4);
    color: #166534;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.customer-order-card__status--progress {
    background: #eff6ff;
    color: #1d4ed8;
}

.customer-order-card__status--delivered {
    background: #ecfdf5;
    color: #047857;
}

.customer-order-card__status--cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.customer-order-card__date {
    flex: 1;
    min-width: 8rem;
    line-height: 1.35;
}

/* Shopper — order detail */
.customer-order-detail {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

.customer-order-detail__back {
    margin-bottom: 0.5rem;
}

.customer-order-detail__header {
    margin-bottom: 1rem;
}

.customer-order-detail__title {
    margin-bottom: 0.35rem;
}

.customer-order-detail__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.95rem;
    margin: 0;
}

.customer-order-detail__lead .customer-order-card__status {
    margin: 0;
}

.customer-order-detail__store {
    color: #4b5563;
    font-weight: 500;
}

.customer-order-detail__section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.25rem 0 0.6rem;
}

.customer-order-detail__items {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface, #fff);
}

.customer-order-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.customer-order-line__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.customer-order-line__title {
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.customer-order-line__qty {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.customer-order-line__price {
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.customer-order-detail__totals {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #f9fafb;
}

.customer-order-detail__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.customer-order-detail__total-row--muted {
    color: #6b7280;
}

.customer-order-detail__total-row--grand {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    font-weight: 800;
    font-size: 1.05rem;
}

.customer-order-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface, #fff);
}

.customer-order-timeline li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.customer-order-timeline li:last-child {
    border-bottom: none;
}

.customer-order-timeline__status {
    font-weight: 700;
    text-transform: capitalize;
}

.customer-order-timeline__at {
    color: #6b7280;
    font-size: 0.8125rem;
}

.customer-order-detail .hint,
.customer-order-detail p:not(.customer-order-detail__lead) {
    margin: 0.65rem 0;
}

.cart-thumb {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.cart-summary {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: none;
    margin-left: 0;
    box-shadow: var(--shadow-card);
}

@media (min-width: 48rem) {
    .cart-summary {
        max-width: 22rem;
        margin-left: auto;
    }
}

.cart-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.mt-gap {
    margin-top: 1rem;
}

.empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: var(--text-muted);
}

.empty__title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.empty__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 22rem;
    margin-inline: auto;
}

.empty--discover {
    position: relative;
    grid-column: 1 / -1;
    padding: 2.25rem 1.5rem;
    background: linear-gradient(165deg, var(--surface) 0%, color-mix(in srgb, var(--primary-soft) 40%, var(--surface)) 100%);
    border: 1px dashed color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.empty--discover__orb {
    position: absolute;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 68%);
    top: -4rem;
    right: -3rem;
    pointer-events: none;
}

.empty--discover__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-ink);
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.empty--discover .empty__title {
    position: relative;
    z-index: 1;
}

.empty--discover .empty__text {
    position: relative;
    z-index: 1;
}

.site-footer {
    margin-top: auto;
    padding: 2rem 0 calc(1.65rem + env(safe-area-inset-bottom, 0));
    border-top: 1px solid color-mix(in srgb, var(--border) 85%, var(--primary-soft));
    background:
        radial-gradient(120% 140% at 8% -20%, rgba(22, 163, 74, 0.09), transparent 45%),
        radial-gradient(90% 100% at 100% 0%, rgba(14, 165, 233, 0.05), transparent 42%),
        var(--surface);
}

@media (min-width: 48rem) {
    .site-footer {
        padding: 2.65rem 0 2rem;
    }
}

.footer-grid {
    display: grid;
    gap: 1.85rem;
    align-items: start;
}

@media (min-width: 52rem) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(11rem, 1fr) minmax(17rem, 1.35fr);
        gap: clamp(1.75rem, 4vw, 2.75rem);
    }

    .footer-brand {
        padding-right: clamp(0.25rem, 2vw, 1rem);
    }

    .footer-nav {
        justify-self: center;
        text-align: center;
        min-width: 11.5rem;
    }

    .footer-nav__list {
        align-items: center;
    }

    .footer-nav__heading {
        text-align: center;
    }

    .footer-nav__list li {
        display: flex;
        justify-content: center;
    }

    .footer-nav__link {
        justify-content: center;
        text-align: center;
    }

    .footer-cta {
        justify-self: end;
        width: 100%;
        max-width: 24rem;
    }

    .footer-cta__title,
    .footer-cta__intro {
        text-align: left;
    }
}

.footer-cta__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.footer-cta__intro {
    margin: 0 0 1.1rem;
    font-size: 0.8375rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 28rem;
}

@media (min-width: 52rem) {
    .footer-cta__intro {
        margin-inline: 0;
    }
}

.footer-cta-panels {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 30rem) {
    .footer-cta-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

.footer-cta-panel {
    padding: 1rem 1.05rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(165deg, var(--surface) 0%, color-mix(in srgb, var(--bg) 55%, var(--surface)) 100%);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.footer-cta-panel--seller {
    border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
    background: linear-gradient(165deg, color-mix(in srgb, var(--primary-soft) 45%, var(--surface)), var(--surface));
}

.footer-cta-panel__label {
    margin: 0 0 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
}

.footer-cta-panel__icon {
    display: flex;
    color: var(--primary-hover);
}

.footer-cta-panel--seller .footer-cta-panel__icon {
    color: var(--primary);
}

.footer-cta-panel__hint {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-cta-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 360px) and (max-width: 51.99rem) {
    .footer-cta-panel__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.footer-cta-panel__btn {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    font-weight: 700;
}

@media (min-width: 360px) and (max-width: 51.99rem) {
    .footer-cta-panel__btn {
        width: auto;
        flex: 1;
        min-width: 8.5rem;
    }
}

.footer-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
}

.footer-brand__logo:hover {
    color: var(--primary-hover);
}

.footer-brand__mark {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary-hover) 90%, #0f766e));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.footer-brand__name {
    font-size: 1.15rem;
}

.footer-brand__tagline {
    margin: 0;
    max-width: 28rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-nav__heading {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-nav__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    padding: 0.28rem 0;
    transition: color 0.15s ease;
    display: inline-flex;
}

.footer-nav__link:hover {
    color: var(--primary-hover);
}

.footer-nav__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 1.5rem 0 1rem;
}

@media (min-width: 48rem) {
    .footer-divider {
        margin: 1.85rem 0 1.15rem;
    }
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-copy {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.footer-copy__link {
    color: var(--primary-hover);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-color: color-mix(in srgb, var(--primary-hover) 45%, transparent);
}

.footer-copy__link:hover {
    color: var(--primary);
    text-decoration-color: color-mix(in srgb, var(--primary) 65%, transparent);
}

.footer-copy__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
}

.footer-legal {
    margin: 0;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
    font-weight: 500;
}

/* Mobile: light marketing footer (aligned with customer reference) */
@media (max-width: 51.99rem) {
    .site-footer {
        padding: 1.35rem 0 calc(1.35rem + env(safe-area-inset-bottom, 0));
        border-top: 2px solid color-mix(in srgb, var(--primary) 28%, var(--border));
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow:
            0 -1px 0 rgba(15, 23, 42, 0.06) inset,
            0 -8px 36px rgba(15, 23, 42, 0.05);
    }

    .footer-grid {
        gap: 1.2rem;
        text-align: center;
    }

    .footer-brand__logo {
        justify-content: center;
    }

    .footer-brand__logo:hover {
        color: var(--primary-hover);
    }

    .footer-brand__tagline {
        margin-inline: auto;
        color: var(--text-muted);
        font-size: 0.825rem;
        line-height: 1.52;
        max-width: 22rem;
    }

    .footer-nav__heading {
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        letter-spacing: 0.09em;
    }

    .footer-nav__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        max-width: 100%;
        width: min(100%, 21rem);
        margin-inline: auto;
        align-items: stretch;
    }

    .footer-nav__list li {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 2.35rem;
        padding: 0 0.35rem;
        border-radius: var(--radius-sm);
        background: var(--surface);
        border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
    }

    .footer-nav__link {
        padding: 0.35rem;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.28;
        color: var(--text);
        justify-content: center;
        width: 100%;
        border-radius: 6px;
    }

    .footer-nav__link:hover {
        color: var(--primary-hover);
    }

    .footer-nav__link:focus-visible {
        outline-color: var(--primary);
        outline-offset: 2px;
    }

    .footer-cta__title {
        margin-bottom: 0.2rem;
    }

    .footer-cta__intro {
        margin-inline: auto;
        margin-bottom: 0.85rem;
        font-size: 0.8rem;
        max-width: 22rem;
    }

    .footer-cta-panels {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 22rem;
        margin-inline: auto;
        width: 100%;
    }

    .footer-cta-panel {
        box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
        padding: 0.9rem 0.95rem;
    }

    .footer-cta-panel__hint {
        margin-bottom: 0.7rem;
        font-size: 0.78rem;
        text-align: center;
    }

    .footer-cta-panel__actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
        justify-content: center;
        align-items: stretch;
    }

    .footer-cta-panel__btn {
        flex: 1 1 calc(50% - 0.225rem);
        min-width: 7.25rem;
    }

    .site-footer .btn--outline.footer-cta-panel__btn {
        border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
        color: var(--primary-hover);
        background: rgba(255, 255, 255, 0.9);
    }

    .site-footer .btn--outline.footer-cta-panel__btn:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        color: var(--primary-hover);
    }

    .footer-divider {
        background: linear-gradient(90deg, transparent, var(--border), transparent);
        margin: 1.1rem 0 0.85rem;
    }

    .footer-bottom {
        text-align: center;
        align-items: center;
        gap: 0.45rem;
    }

    .footer-legal {
        color: var(--text);
        font-size: 0.8125rem;
        font-weight: 650;
    }

    .footer-copy {
        color: var(--text-muted);
        font-size: 0.75rem;
        max-width: 22rem;
    }

    .site-footer .footer-copy__link {
        color: var(--primary-hover);
        font-weight: 650;
        text-decoration-color: color-mix(in srgb, var(--primary-hover) 42%, transparent);
    }

    .site-footer .footer-copy__link:hover {
        color: var(--primary);
        text-decoration-color: color-mix(in srgb, var(--primary) 55%, transparent);
    }

    .site-footer .footer-copy__link:focus-visible {
        outline-color: var(--primary);
        outline-offset: 2px;
        border-radius: 3px;
    }
}

/* ----- Shopper policy / info pages (footer links) ----- */
.info-page {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
}

@media (hover: hover) {
    .info-page__card:hover {
        transform: none;
        box-shadow: var(--shadow-card);
    }
}

.info-page__back {
    margin-bottom: 0.35rem;
}

.info-page__header {
    margin-bottom: 1.35rem;
}

.info-page__lead {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
}

.info-page__stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-page__h2 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    color: var(--text);
}

.info-page__p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.58;
    color: var(--text);
}

.info-page__p + .info-page__p {
    margin-top: 0.65rem;
}

.info-page__ul {
    margin: 0;
    padding: 0 0 0 1.15rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text);
}

.info-page__ul li + li {
    margin-top: 0.35rem;
}

.info-page__note {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
    font-size: 0.8125rem;
    line-height: 1.48;
    color: var(--primary-ink);
    font-weight: 500;
}

.loading {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
}

body.is-store-home #main > .loading {
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

body.is-store-home #main > .loading::after {
    content: '';
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    animation: home-spin 0.75s linear infinite;
}

@keyframes home-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-store-home #main > .loading::after {
        animation: none;
        border-color: var(--primary);
        opacity: 0.5;
    }
}

.addr-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.addr-card {
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    background: var(--surface);
}

.addr-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    vertical-align: middle;
}

.badge[hidden] {
    display: none;
}

.nav-link--cart .badge {
    margin-left: 0.1rem;
}

.user-name {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.user-name--link {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 0.38rem 0.65rem;
    margin: 0;
    max-width: 9rem;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

a.user-name--link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

a.user-name--link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Centered auth & checkout — consistent card on phone and desktop */
.auth-layout {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.auth-card--wide {
    max-width: min(40rem, 100%);
}

.auth-card__title {
    margin-bottom: 1rem;
}

.auth-card .page-lead {
    max-width: none;
}

.auth-card .form-wide {
    max-width: none;
}

.auth-card [data-form-seller] > .page-lead {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, var(--primary-soft), transparent);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(22, 163, 74, 0.12);
    color: var(--text);
}

.auth-card .tabs {
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius);
    padding: 0.35rem;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    box-shadow: none;
}

.auth-card .tab {
    min-height: 3rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
}

.auth-card .btn--primary {
    width: 100%;
    margin-top: 0.35rem;
    border-radius: var(--radius);
    min-height: 3rem;
    font-size: 1rem;
}

.auth-card .card__meta a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.auth-card .card__meta a:hover {
    color: var(--primary-hover);
}

.prose a {
    color: var(--primary);
    font-weight: 600;
}

.prose a:hover {
    color: var(--primary-hover);
}

/* Registration tabs */
.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
    background: var(--surface);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
}

.tab {
    flex: 1;
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    min-height: 2.75rem;
}

.tab[aria-selected="true"] {
    color: #fff;
    background: var(--primary);
}

.tab-panel[hidden] {
    display: none;
}

.form-wide {
    max-width: 36rem;
}

.form-grid {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 40rem) {
    .form-grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.fieldset-ui {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1rem 1.15rem;
    margin: 1.15rem 0;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.fieldset-ui legend {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0 0.35rem;
    color: var(--text);
}

.auth-card .fieldset-ui {
    margin: 1rem 0;
    padding: 1.15rem 1.2rem 1.25rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 2px 14px rgba(22, 163, 74, 0.07);
}

.auth-card .fieldset-ui legend {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-ink);
    padding: 0 0.4rem;
}

.auth-card .fieldset-ui > p.hint {
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    background: var(--primary-soft);
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: var(--radius-sm);
    color: var(--primary-ink);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
}

.auth-card .field input,
.auth-card .field select,
.auth-card .field textarea {
    border-color: var(--border-input);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-card .field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.75rem;
}

/* Optional “card” toggle — home-based, large tap targets, green when checked */
.choice-card {
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.choice-card:hover {
    border-color: #c4d4c8;
}

.choice-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(160deg, rgba(22, 163, 74, 0.09) 0%, rgba(22, 163, 74, 0.02) 100%);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.choice-card__label {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    cursor: pointer;
    margin: 0;
}

.choice-card input[type="checkbox"] {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    margin: 0.15rem 0 0;
    border: 2px solid var(--border-input);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice-card input[type="checkbox"]:hover {
    border-color: var(--primary);
}

.choice-card input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 0.95rem;
    background-position: center;
    background-repeat: no-repeat;
}

.choice-card input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.choice-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.choice-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.choice-card__hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.45;
}

@media (max-width: 47.99rem) {
    .choice-card__label {
        padding: 0.9rem 1rem;
    }

    .auth-card .fieldset-ui {
        padding: 1.05rem 1rem 1.15rem;
        margin: 0.85rem 0;
    }
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.radio-row label {
    font-weight: 600;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    min-height: 2.85rem;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.radio-row label span {
    padding-top: 0.08rem;
    line-height: 1.35;
}

.radio-row input[type="radio"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    margin: 0.12rem 0 0;
    border: 2px solid var(--border-input);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.radio-row input[type="radio"]:checked {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 4px var(--surface);
}

.radio-row input[type="radio"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.radio-row label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15);
}

.hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    font-weight: 500;
}

[data-gst-fields][hidden],
[data-pan-fields][hidden] {
    display: none !important;
}

/* Sticky bottom CTA slot above tab bar (optional class on wrapper) */
.sticky-form-actions {
    position: sticky;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 8px) + 8px);
    z-index: 50;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

@media (min-width: 48rem) {
    .sticky-form-actions {
        position: static;
    }
}

/* Seller session: hide shopper nav (stores, cart, orders, bottom Home/Cart) */
body.is-seller-session [data-shopper-only] {
    display: none !important;
}

body:not(.is-seller-session) [data-seller-only] {
    display: none !important;
}

body.is-seller-session .bottom-nav {
    justify-content: space-around;
}

body.is-seller-session .site-footer {
    display: none;
}

/* Seller mobile: one navigation pattern — green bar back only; no duplicate “← Dashboard” link */
@media (max-width: 47.99rem) {
    body.is-seller-session .seller-breadcrumb {
        display: none !important;
    }
}

/* Seller dashboard root: no green sub-bar; show page title in content instead */
@media (max-width: 47.99rem) {
    body.is-seller-session.seller-nav-root.is-subpage #main .seller-dash [data-page-heading],
    body.is-seller-session.seller-nav-root.is-subpage #main .seller-workspace.seller-dash [data-page-heading] {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0 0 0.5rem;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0;
    }
}

/* Seller desktop header: session cluster stays compact */
@media (min-width: 48rem) {
    body.is-seller-session .nav-cluster--user {
        gap: 0.35rem 0.5rem;
    }
}

/* Seller workspace width (dashboard + tools) */
body.is-seller-session #main .seller-workspace,
body.is-seller-session #main .seller-dash,
body.is-seller-session #main .seller-panel,
body.is-seller-session #main .seller-products-page,
body.is-seller-session #main .seller-theme-page {
    width: 100%;
    max-width: 58rem;
    margin-inline: auto;
}

/* Store account — compact card form (pickup / couriers) */
body.is-seller-session #main .seller-account-page.seller-workspace {
    max-width: 36rem;
}

.seller-account-page__header {
    margin-bottom: 1.5rem;
}

.seller-account-page__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.seller-account-page__intro {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 34rem;
}

.seller-account-page__intro strong {
    color: var(--text);
    font-weight: 600;
}

.seller-account-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.seller-account-card {
    margin: 0;
    padding: 1.35rem 1.25rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.seller-account-card--danger {
    border-color: rgba(180, 60, 60, 0.35);
}

.seller-account-card__title {
    margin: -0.15rem 0 1.2rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.seller-account-field {
    margin: 0 0 1.35rem;
}

.seller-account-field:last-of-type {
    margin-bottom: 0;
}

.seller-account-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.seller-account-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.875rem;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.seller-account-input::placeholder {
    color: #9ca3af;
}

.seller-account-input:hover:not(:focus) {
    border-color: #c4c9d1;
}

.seller-account-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.seller-account-input--textarea {
    min-height: 7.5rem;
    resize: vertical;
    font-family: inherit;
}

.seller-account-hint {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.seller-account-hint strong {
    color: var(--text);
    font-weight: 600;
}

.seller-account-actions {
    margin-top: 0.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.seller-account-save {
    min-height: var(--touch-min);
    padding-inline: 1.35rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

@media (min-width: 30rem) {
    .seller-account-save {
        min-width: 12rem;
    }
}

/* Owner account — settings-style layout (security + session) */
body.is-seller-session #main .seller-owner-page.seller-workspace {
    max-width: 52rem;
}

.seller-owner-page__header {
    margin-bottom: 1.75rem;
}

.seller-owner-page__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.92;
}

.seller-owner-page__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 4.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.seller-owner-page__intro {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 40rem;
}

.seller-owner-page__intro strong {
    color: var(--text);
    font-weight: 600;
}

.seller-owner-page__intro a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.seller-owner-page__intro a:hover {
    color: var(--primary-hover);
}

.seller-owner-page__layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 52rem) {
    .seller-owner-page__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 17.75rem;
        gap: 1.5rem;
        align-items: start;
    }
}

.seller-owner-page__aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.seller-owner-card {
    margin: 0;
    padding: 1.35rem 1.35rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

.seller-owner-card--password {
    border-color: rgba(22, 163, 74, 0.12);
    background: linear-gradient(165deg, var(--surface) 0%, var(--bg-elevated) 100%);
}

.seller-owner-card--side {
    padding-bottom: 1.25rem;
}

.seller-owner-card--risk {
    background: linear-gradient(165deg, #fff5f5 0%, #fef2f2 45%, var(--surface) 100%);
    border-color: rgba(220, 38, 38, 0.22);
    box-shadow:
        0 1px 2px rgba(127, 29, 29, 0.06),
        0 10px 28px rgba(127, 29, 29, 0.08);
}

.seller-owner-card__mast {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.seller-owner-card__mast--compact {
    margin-bottom: 1rem;
}

.seller-owner-card__mast-text {
    min-width: 0;
    flex: 1;
}

.seller-owner-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
}

.seller-owner-card__title--risk {
    color: #991b1b;
}

.seller-owner-card__lede {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 500;
}

.seller-owner-card--risk .seller-owner-card__lede {
    color: #7f1d1d;
    opacity: 0.9;
}

.seller-owner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.seller-owner-icon--muted {
    color: var(--text-muted);
    background: var(--bg);
    border-color: var(--border);
}

.seller-owner-icon--risk {
    color: #b91c1c;
    background: rgba(254, 202, 202, 0.5);
    border-color: rgba(220, 38, 38, 0.28);
}

.seller-owner-icon__svg {
    display: block;
}

.seller-owner-form {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.seller-owner-password-pair {
    display: grid;
    gap: 1rem;
}

@media (min-width: 36rem) {
    .seller-owner-password-pair {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.1rem;
    }
}

.seller-owner-field {
    margin: 0 0 1.1rem;
}

.seller-owner-field:last-child {
    margin-bottom: 0;
}

.seller-owner-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.45rem;
    letter-spacing: -0.01em;
}

.seller-owner-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    min-height: 2.85rem;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.seller-owner-input::placeholder {
    color: #9ca3af;
}

.seller-owner-input:hover:not(:focus) {
    border-color: #c4c9d1;
}

.seller-owner-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.seller-owner-card--risk .seller-owner-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.seller-owner-actions {
    margin-top: 0.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.seller-owner-card--risk .seller-owner-actions {
    border-top-color: rgba(127, 29, 29, 0.12);
}

.seller-owner-actions--stack {
    flex-direction: column;
    align-items: stretch;
}

.seller-owner-submit {
    font-weight: 600;
    border-radius: var(--radius-sm);
}

@media (min-width: 30rem) {
    .seller-owner-card--password .seller-owner-submit:not(.btn--block) {
        min-width: 11rem;
    }
}

/* Customer account — saved shipping addresses */
.customer-address-panel {
    margin-bottom: 1.35rem;
}

.customer-address-panel__form {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.customer-address-panel__form-title {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.customer-address-book {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.customer-address-book__item {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.customer-address-book__item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.customer-address-book__default {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-ink);
    background: var(--primary-soft);
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-pill);
}

.customer-address-book__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.customer-address-book__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.customer-address-book__meta {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.customer-address-book__lines {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
}

.customer-address-book__empty {
    margin: 0 0 0.25rem;
}

.customer-address-optional {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.customer-address-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

.customer-address-check input {
    margin-top: 0.18rem;
    flex-shrink: 0;
}

.customer-address-default-wrap {
    margin-bottom: 0 !important;
}

/* Customer settings hub — tap to reveal sections */
.customer-settings-page {
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
}

.customer-settings-page__header {
    margin-bottom: 1.35rem;
}

.customer-settings-hub {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.customer-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.customer-settings-action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;
    text-align: left;
    font: inherit;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-sm) + 2px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.customer-settings-action:hover {
    border-color: rgba(22, 163, 74, 0.35);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.customer-settings-action.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow:
        0 0 0 1px rgba(22, 163, 74, 0.2),
        0 4px 16px rgba(15, 23, 42, 0.06);
}

.customer-settings-action--risk:not(.is-active):hover {
    border-color: rgba(220, 38, 38, 0.35);
}

.customer-settings-action--risk.is-active {
    border-color: #dc2626;
    background: rgba(254, 226, 226, 0.5);
    box-shadow:
        0 0 0 1px rgba(220, 38, 38, 0.2),
        0 4px 16px rgba(127, 29, 29, 0.08);
}

.customer-settings-action__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-settings-action__icon .seller-owner-icon--risk {
    color: #b91c1c;
    background: rgba(254, 202, 202, 0.45);
    border-color: rgba(220, 38, 38, 0.28);
}

.customer-settings-action__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.customer-settings-action__title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.25;
}

.customer-settings-action__hint {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.customer-settings-action__chev {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    opacity: 0.45;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.customer-settings-action__chev::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    margin: -0.28rem 0 0 -0.28rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.customer-settings-action.is-active .customer-settings-action__chev {
    transform: rotate(90deg);
    opacity: 0.75;
}

.customer-settings-signout {
    margin-top: 1rem;
    font-weight: 600;
}

.customer-settings-panel {
    margin-top: 1rem;
    animation: customer-settings-panel-in 0.22s ease;
}

@keyframes customer-settings-panel-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customer-settings-panel__card {
    margin: 0;
}

.customer-settings-panel__h {
    margin: 0 0 0.45rem;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.customer-settings-panel__h--risk {
    color: #991b1b;
}

.customer-settings-panel__sub {
    margin: 0 0 1.1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-muted);
}

.customer-settings-panel__card.customer-address-panel {
    margin: 0;
}

.seller-dash__title {
    margin-bottom: 0.35rem;
}

.seller-dash__lead {
    max-width: 42rem;
}

.seller-dash__cta {
    margin-top: 0.25rem;
}

/* Store identity — status + URL path */
.seller-dash-identity {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem 1.05rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.seller-dash-identity__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.seller-dash-identity__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.seller-dash-identity__badge--active {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border-color: #6ee7b7;
}

.seller-dash-identity__badge--pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border-color: #fcd34d;
}

.seller-dash-identity__badge--neutral {
    background: var(--bg);
    color: var(--text-muted);
    border-color: var(--border);
}

.seller-dash-identity__path {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    min-width: 0;
}

.seller-dash-identity__path-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.seller-dash-identity__slug {
    margin: 0;
    padding: 0.2rem 0.55rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    word-break: break-all;
}

.seller-dash-identity__hint {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 40rem;
}

/* Breadcrumb links (seller tools) */
.seller-breadcrumb a {
    font-weight: 600;
    text-decoration: none;
}

.seller-breadcrumb a:hover {
    text-decoration: underline;
}

/* Theme page — form + aside */
.seller-theme-page__title {
    margin-bottom: 0.35rem;
}

.seller-theme-page__intro {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 42rem;
}

.seller-theme-page__layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 52rem) {
    .seller-theme-page__layout {
        grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem);
        gap: 2rem;
    }
}

.seller-theme-page__form {
    margin: 0;
    max-width: 40rem;
}

.seller-theme-aside {
    margin: 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.seller-theme-aside__title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.seller-theme-aside__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}

.seller-theme-aside__list li {
    margin-bottom: 0.5rem;
}

.seller-theme-aside__list li:last-child {
    margin-bottom: 0;
}

/* Products catalog */
.seller-catalog-heading {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-ink);
    letter-spacing: -0.02em;
}

.seller-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 40rem) {
    .seller-catalog-toolbar {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.seller-catalog-toolbar__text {
    flex: 1;
    min-width: 0;
}

.seller-catalog-toolbar__lead {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 36rem;
    line-height: 1.45;
}

.seller-catalog-toolbar__add {
    flex-shrink: 0;
    align-self: flex-start;
}

@media (max-width: 39.99rem) {
    .seller-catalog-toolbar__add {
        align-self: stretch;
        text-align: center;
    }
}

.seller-listing-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

.seller-listing-pill--on {
    background: rgba(22, 163, 74, 0.12);
    color: #14532d;
}

.seller-listing-pill--off {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.seller-catalog-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.seller-catalog-table-wrap .seller-catalog-table.cart-table {
    display: table;
    overflow: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.seller-catalog-table {
    margin: 0;
    min-width: 100%;
}

.seller-catalog-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.75rem 0.85rem;
    background: #fafafa;
}

.seller-catalog-table tbody td {
    padding: 0.85rem;
    vertical-align: middle;
    font-size: 0.9375rem;
}

.seller-catalog-table tbody tr:last-child td {
    border-bottom: none;
}

.seller-catalog-empty {
    padding: 1.5rem 1rem !important;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.seller-catalog-edit {
    white-space: nowrap;
}

@media (max-width: 47.99rem) {
    .seller-catalog-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .seller-catalog-table tbody {
        display: block;
        padding: 0.5rem;
    }

    .seller-catalog-table tbody tr {
        display: block;
        margin-bottom: 0.65rem;
        padding: 1rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow);
    }

    .seller-catalog-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .seller-catalog-table tbody td {
        display: grid;
        grid-template-columns: minmax(4.5rem, 32%) 1fr;
        gap: 0.35rem 0.75rem;
        padding: 0.4rem 0;
        border: none;
        align-items: center;
    }

    .seller-catalog-table tbody td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
    }

    .seller-catalog-table tbody td.seller-catalog-empty {
        display: block;
        grid-template-columns: unset;
    }

    .seller-catalog-table tbody td.seller-catalog-empty::before {
        display: none;
    }

    .seller-catalog-table tbody td[data-label="Actions"] {
        grid-template-columns: 1fr;
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        border-top: 1px solid var(--border);
    }

    .seller-catalog-table tbody td[data-label="Actions"]::before {
        display: none;
    }

    .seller-catalog-table tbody td[data-label="Actions"] .seller-catalog-edit {
        width: 100%;
        justify-content: center;
    }
}

/* Order list empty state */
.seller-orders-empty {
    margin: 0;
    padding: 2.25rem 1.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border-input);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.seller-orders-empty__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.seller-orders-empty__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 22rem;
    margin-inline: auto;
}

@media (min-width: 48rem) {
    .seller-dash-chart__bar-wrap {
        height: 6.5rem;
    }

    .seller-orders-screen__lead {
        max-width: 40rem;
    }
}

.seller-dash-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
    .seller-dash-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.seller-dash-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-card);
}

.seller-dash-stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.seller-dash-stat__value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-ink);
}

.seller-dash-charts {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 48rem) {
    .seller-dash-charts {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seller-dash-chart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1rem 0.75rem;
    box-shadow: var(--shadow-card);
}

.seller-dash-chart__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.seller-dash-chart__hint {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.seller-dash-chart__plot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.2rem;
    min-height: 120px;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.seller-dash-chart__col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.seller-dash-chart__bar-wrap {
    width: 100%;
    max-width: 2rem;
    height: 5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.seller-dash-chart__bar {
    width: 100%;
    max-width: 1.75rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: linear-gradient(180deg, var(--primary) 0%, #15803d 100%);
    min-height: 0;
}

.seller-dash-chart__plot--revenue .seller-dash-chart__bar {
    background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
}

.seller-dash-chart__tick {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.seller-dash--error {
    padding: 1.5rem 0;
}

/* ----- Seller dashboard (owner tools) ----- */
.seller-dash__grid {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
    .seller-dash__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.seller-dash__card {
    display: block;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .seller-dash__card:hover {
        border-color: var(--primary);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    }
}

.seller-dash__card-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-ink);
}

.seller-dash__card-desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.seller-dash__actions {
    margin-top: 0.5rem;
}

.seller-panel {
    max-width: 44rem;
}

.seller-panel--box {
    margin: 1.25rem 0;
    padding: 1.15rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Seller — My orders (tabs + cards) */
.seller-orders-screen__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.seller-orders-screen__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    height: var(--touch-min);
    margin-left: -0.35rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    flex-shrink: 0;
}

.seller-orders-screen__menu:hover {
    background: var(--border);
}

.seller-orders-screen__menu:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.seller-orders-screen__title {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    flex: 1;
}

.seller-orders-screen__lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 36rem;
}

.seller-orders-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.seller-orders-tab {
    flex: 0 0 auto;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.seller-orders-tab:hover {
    border-color: var(--border-input);
}

.seller-orders-tab.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.seller-orders-tab__count {
    font-weight: 700;
    opacity: 0.9;
}

.seller-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seller-order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.seller-order-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fafafa 0%, var(--surface) 100%);
}

.seller-order-card__id {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}

.seller-order-card__date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.seller-order-card__body {
    padding: 0.85rem 1.1rem 1rem;
}

.seller-order-card__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.seller-order-card__label {
    color: var(--text-muted);
}

.seller-order-card__value {
    font-weight: 700;
    color: var(--text);
}

.seller-order-card__products {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.45;
}

.seller-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.btn--seller-accept {
    flex: 1 1 6rem;
    min-height: var(--touch-min);
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    font-size: 0.875rem;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.btn--seller-accept:hover {
    background: #15803d;
    color: #fff;
}

.btn--seller-reject {
    flex: 1 1 6rem;
    min-height: var(--touch-min);
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    font-size: 0.875rem;
    background: #f43f5e;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn--seller-reject:hover {
    background: #e11d48;
}

.btn--seller-details {
    flex: 1 1 6rem;
    min-height: var(--touch-min);
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--text);
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
}

.btn--seller-details:hover {
    background: var(--bg);
}

.seller-order-card__actions--grow {
    flex: 1 1 100%;
}

@media (min-width: 40rem) {
    .seller-order-card__actions {
        flex-wrap: nowrap;
    }

    .seller-order-card__actions--grow {
        flex: 0 1 auto;
    }
}

.seller-form .btn--primary {
    width: auto;
    min-width: 10rem;
}

@media (max-width: 47.99rem) {
    .seller-form .btn--primary {
        width: 100%;
    }
}

/* Seller catalog — success notice after add/update */
.seller-catalog-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius);
    border: 1px solid #a7f3d0;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    color: var(--primary-ink);
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.08);
}

.seller-catalog-notice__icon {
    flex-shrink: 0;
    color: var(--primary);
    line-height: 0;
    margin-top: 0.05rem;
}

.seller-catalog-notice__glyph {
    display: block;
}

.seller-catalog-notice__title {
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.seller-catalog-notice__product {
    font-weight: 700;
    font-size: 0.9375rem;
    margin: 0;
    color: var(--text);
}

.seller-catalog-notice__hint {
    margin: 0.55rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.45;
}

tr.seller-catalog-row--new td {
    background: var(--primary-soft);
}

@media (min-width: 48rem) {
    tr.seller-catalog-row--new td:first-child {
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    }

    tr.seller-catalog-row--new td:last-child {
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    }
}

.seller-panel .btn[data-catalog-submit]:disabled {
    opacity: 0.85;
    cursor: wait;
}

.seller-product-screen__title {
    margin-bottom: 0.35rem;
}

.seller-product-screen__sub {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.seller-product-screen__sub strong {
    color: var(--text);
    font-weight: 700;
}

.seller-product-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Seller media: theme banner/logo + product photo grid */
.seller-media-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1rem 0.85rem;
    margin: 1rem 0;
    background: var(--bg-elevated);
}

.seller-media-fieldset__legend {
    padding: 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.seller-media-field {
    margin-bottom: 1rem;
}

.seller-media-field:last-child {
    margin-bottom: 0;
}

.seller-media-field__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
}

.seller-media-preview {
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
    min-height: 6rem;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.seller-media-preview--logo {
    min-height: 4.5rem;
    max-width: 10rem;
}

.seller-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-media-preview--logo img {
    object-fit: contain;
    padding: 0.5rem;
}

.seller-media-preview__empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 0.75rem;
}

.seller-media-field__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.seller-product-images-wrap {
    margin-top: 0.25rem;
}

.seller-product-images__toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    position: relative;
}

.seller-product-images__file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.seller-product-images__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.seller-product-images__item {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
}

.seller-product-images__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-product-images__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

.seller-product-images__remove {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    width: 1.35rem;
    height: 1.35rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-product-images__remove:hover {
    background: rgba(0, 0, 0, 0.75);
}

.seller-product-images__badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 0.2rem;
    background: var(--primary);
    color: #fff;
}

/* Storefront accent themes (set by seller; applies on public store page) */
body.store-theme--forest {
    --primary: #16a34a;
    --primary-hover: #15803d;
    --primary-soft: rgba(22, 163, 74, 0.12);
    --primary-ink: #14532d;
}

body.store-theme--sage {
    --primary: #6d8b6b;
    --primary-hover: #5a7358;
    --primary-soft: rgba(109, 139, 107, 0.16);
    --primary-ink: #2f3d2e;
}

body.store-theme--citrus {
    --primary: #e85d2c;
    --primary-hover: #c2410c;
    --primary-soft: rgba(232, 93, 44, 0.14);
    --primary-ink: #7c2d12;
}

body.store-theme--ocean {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-soft: rgba(14, 165, 233, 0.14);
    --primary-ink: #0c4a6e;
}

body.store-theme--sunset {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-soft: rgba(234, 88, 12, 0.14);
    --primary-ink: #7c2d12;
}

body.store-theme--berry {
    --primary: #db2777;
    --primary-hover: #be185d;
    --primary-soft: rgba(219, 39, 119, 0.14);
    --primary-ink: #831843;
}

body.store-theme--slate {
    --primary: #475569;
    --primary-hover: #334155;
    --primary-soft: rgba(71, 85, 105, 0.14);
    --primary-ink: #1e293b;
}

/* Customer preview strip (seller theme — not yet published) */
.store-preview-bar {
    margin: -0.5rem 0 1.25rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, var(--primary-soft), rgba(255, 255, 255, 0.96));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.store-preview-bar__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 40rem) {
    .store-preview-bar__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.store-preview-bar__text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.45;
}

.store-preview-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.seller-theme-actions {
    margin-top: 0.75rem;
}

.seller-theme-actions .btn--primary {
    width: 100%;
}

@media (min-width: 48rem) {
    .seller-theme-actions .btn--primary {
        width: auto;
    }
}

/* ----- Public store page (preview + live, same layout) ----- */
.store-page {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
    padding-bottom: 0.5rem;
}

.store-page .store-preview-bar {
    margin-top: 0;
}

.store-hero {
    position: relative;
    min-height: clamp(10rem, 32vw, 14rem);
    margin-inline: calc(-1 * clamp(1rem, 4vw, 1.5rem) - 1px);
    margin-bottom: 0;
    width: calc(100% + 2 * clamp(1rem, 4vw, 1.5rem));
    max-width: none;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--primary);
}

@media (min-width: 48rem) {
    .store-hero {
        margin-inline: 0;
        width: 100%;
        border-radius: var(--radius);
    }
}

.store-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(145deg, var(--primary-hover) 0%, var(--primary) 55%, var(--primary-soft) 100%);
}

.store-hero__image {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: clamp(10rem, 32vw, 14rem);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 1rem 0;
}

.store-hero__img {
    max-height: clamp(9rem, 28vw, 12.5rem);
    width: auto;
    max-width: 85%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.store-hero__placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(8rem, 26vw, 11rem);
    opacity: 0.35;
}

.store-hero__mark {
    font-size: 3rem;
    color: #fff;
}

.store-sheet {
    position: relative;
    z-index: 2;
    margin-top: -1.75rem;
    margin-inline: calc(-1 * clamp(1rem, 4vw, 1.5rem) - 1px);
    width: calc(100% + 2 * clamp(1rem, 4vw, 1.5rem));
    max-width: none;
}

@media (min-width: 48rem) {
    .store-sheet {
        margin-inline: 0;
        width: 100%;
        margin-top: -1.25rem;
    }
}

.store-sheet__inner {
    background: var(--surface);
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.06);
    padding: 1.25rem clamp(1rem, 4vw, 1.35rem) 1.5rem;
}

@media (min-width: 48rem) {
    .store-sheet__inner {
        border-radius: var(--radius);
        border-bottom: 1px solid var(--border);
    }
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.store-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary-ink);
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
}

.store-pill--featured {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: rgba(146, 64, 14, 0.2);
}

.store-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0;
}

.store-brand__logo {
    flex-shrink: 0;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.store-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.store-brand__main {
    min-width: 0;
    flex: 1;
}

.store-page-title {
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 4.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.6rem;
    color: var(--text);
}

.store-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.store-social {
    margin: 0 0 1.05rem;
}

.store-social__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.store-social__item {
    margin: 0;
}

.store-social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    min-height: 2.65rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--primary-soft) 50%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
    color: var(--primary-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.06s ease;
    -webkit-tap-highlight-color: transparent;
}

.store-social__link:active {
    transform: scale(0.98);
}

.store-social__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .store-social__link:hover {
        background: color-mix(in srgb, var(--primary-soft) 88%, var(--surface));
        border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
        color: var(--primary-hover);
    }
}

.store-social__glyph {
    flex-shrink: 0;
    display: block;
    opacity: 1;
}

.store-social__glyph--instagram {
    overflow: visible;
}

/* YouTube tile uses currentColor shell + embedded white play (classic brand cue). */

.store-social__glyph--youtube {
    border-radius: 5px;
}

.store-social__label {
    line-height: 1.2;
}

.seller-theme-inline-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.85em;
    font-weight: 600;
    background: var(--bg);
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.store-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.store-meta-item__icon {
    display: inline-flex;
    color: var(--primary);
    opacity: 0.85;
}

.store-meta-item--rating .store-meta-item__icon {
    color: #ca8a04;
}

.store-meta-muted {
    color: var(--text-muted);
    font-weight: 500;
}

.store-desc {
    margin: 0 0 1.5rem;
}

.store-desc__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.store-desc__body {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.store-catalog__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
    color: var(--text);
}

.store-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.store-tab {
    flex: 1;
    min-width: max-content;
    padding: 0.65rem 0.85rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.store-tab:hover {
    color: var(--primary);
}

.store-tab.is-active {
    color: var(--primary);
    font-weight: 800;
    border-bottom-color: var(--primary);
}

.store-product-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.store-product-card {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: start;
    padding: 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.store-product-card__media {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(145deg, var(--primary-soft), #f3f4f6);
}

.store-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-product-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.35;
}

.store-product-card__title {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.store-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.store-product-card__title a:hover {
    color: var(--primary);
}

.store-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.65rem;
}

.store-product-card__price .price-sale {
    font-size: 1.05rem;
}

.store-product-card__price .price-list {
    font-size: 0.8125rem;
}

.store-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 36rem) {
    .store-product-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .store-product-card__cart {
        flex: 1;
        min-width: 7.5rem;
    }
}

.store-product-card__cart[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.store-product-card__msg {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
}

.store-product-card__msg--ok {
    color: var(--primary-ink);
}

.store-product-card__msg--err {
    color: #dc2626;
}

.store-catalog__empty {
    margin: 0.5rem 0 0;
}

.store-catalog__pagination {
    margin-top: 1rem;
}
