/* ============================================================
   Salt & Light Designs — public stylesheet
   Earthy, hand-made feel with a modern, polished layer.
   ============================================================ */

/* --- self-hosted UI sans (Inter, variable, 300–700) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

:root {
    --bg: #f7f3ee;
    --bg-tint: #f1eae0;
    --ink: #2b2a28;
    --ink-deep: #211f1c;
    --muted: #5a544c;
    --accent: #b07a3a;
    --accent-deep: #946530;
    --accent-soft: rgba(176, 122, 58, 0.10);
    --card: #fffdfa;
    --border: #e3dccf;
    --dark: #2b2823;
    --dark-ink: #d8cfc0;
    --sans: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: var(--sans); /* site is all-sans now; alias kept so legacy refs resolve */
    --maxw: 1140px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(54, 44, 28, 0.09);
    --shadow-sm: 0 4px 14px rgba(54, 44, 28, 0.06);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* full-bleed sections use 100vw */
}

h1, h2, h3, .brand, .price-lg {
    font-family: var(--sans);
    font-weight: 400;
    letter-spacing: -0.02em;
}

a { color: var(--accent); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

img { max-width: 100%; }

/* full-width breakout from the centred .site-main column */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* --- header (sticky, soft glass) --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1.4rem 1.5rem;
    background: rgba(247, 243, 238, 0.82);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.96rem;
    position: relative;
    padding-bottom: 2px;
    transition: color 160ms var(--ease);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms var(--ease);
}

.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.brand {
    text-decoration: none;
    color: var(--ink);
    font-size: 1.55rem;
    letter-spacing: 0;
}

.accent { color: var(--accent); font-style: italic; }

.site-main {
    flex: 1;
    padding: 3rem 1.5rem;
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
}

/* --- footer (rich, warm dark) --- */

.site-footer {
    margin-top: 3rem;
    background: var(--dark);
    color: var(--dark-ink);
    border-top: 1px solid #43403a;
}

.site-footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 720px) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

.site-footer h4 {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a9082;
    margin: 0 0 0.9rem;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: #fff;
    margin: 0 0 0.5rem;
}
.footer-brand .accent { color: var(--accent); }

.footer-tagline {
    margin: 0;
    color: #b3a995;
    max-width: 32ch;
    font-style: italic;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links--icon a { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-links--icon svg { width: 17px; height: 17px; flex: none; color: #9a9082; }
.footer-links--icon a:hover svg { color: var(--accent); }
.footer-links a,
.site-footer a {
    color: var(--dark-ink);
    text-decoration: none;
    transition: color 150ms var(--ease);
}
.footer-links a:hover,
.site-footer a:hover { color: var(--accent); }

.site-footer__bar {
    border-top: 1px solid #43403a;
    text-align: center;
    padding: 1.1rem 1.5rem;
    font-size: 0.85rem;
    color: #9a9082;
}
.site-footer__bar p { margin: 0; }

/* --- hero --- */

.hero-banner {
    position: relative;
    margin-top: -3rem; /* cancels .site-main top padding to meet the sticky header flush */
    min-height: clamp(300px, 48vh, 460px);
    display: flex;
    align-items: center;
    color: #fff;
    isolation: isolate;
    background-color: #2f2a22;
    /* Scrim (front) over photo over earthy fallback (back). Drop
       app/static/img/hero.jpg and it is used automatically; while the
       file is absent that layer is empty and the gradient shows through. */
    background-image:
        linear-gradient(95deg,
            rgba(24, 16, 9, 0.72) 0%,
            rgba(24, 16, 9, 0.52) 36%,
            rgba(24, 16, 9, 0.24) 64%,
            rgba(24, 16, 9, 0.14) 100%),
        url('../img/hero.jpg'),
        linear-gradient(135deg, #3a3025 0%, #4a3b27 25%, #6b5232 55%, #9a6f3a 85%, #b07a3a 110%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    width: 100%;
}

.hero-banner__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    margin: 0 0 1rem;
    color: #ead9bf;
}

.hero-banner h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    max-width: 16ch;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-banner h1 em { font-style: italic; color: #f0d9b3; }

.hero-banner__lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    max-width: 46ch;
    margin: 0 0 2rem;
    color: #f4ecdf;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 0.95rem 1.9rem;
    font: inherit;
    font-size: 1rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 22px rgba(176, 122, 58, 0.35);
    transition: transform 180ms var(--ease), background 160ms var(--ease),
        box-shadow 180ms var(--ease);
}
.btn:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(148, 101, 48, 0.4);
}
.btn:active { transform: translateY(0); }
.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}
.btn .arrow { transition: transform 180ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- intro / section heads --- */

.intro {
    text-align: center;
    padding: 4.5rem 1rem 3rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: var(--accent);
    margin: 0 0 0.85rem;
}

.intro h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    margin: 0 0 0.6rem;
    line-height: 1.1;
}

.intro .lede {
    font-size: 1.08rem;
    color: var(--muted);
    margin: 0 auto;
    max-width: 620px;
    line-height: 1.65;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 1.6rem auto 0;
    color: var(--accent);
}
.divider::before,
.divider::after {
    content: "";
    height: 1px;
    width: clamp(40px, 12vw, 110px);
    background: linear-gradient(90deg, transparent, var(--border));
}
.divider::after { transform: scaleX(-1); }
.divider span {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--accent);
    display: inline-block;
}

/* --- product grid --- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2.25rem;
    padding-bottom: 1rem;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
        border-color 220ms var(--ease);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d8ccb6;
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-tint);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__body {
    padding: 1.5rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.product-card h2 {
    font-size: 1.18rem;
    margin: 0;
    line-height: 1.25;
}

.product-card .price {
    margin: 0.35rem 0 0;
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 1.02rem;
}

/* --- "one of one" reassurance band --- */

.assurance {
    background: var(--bg-tint);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.assurance__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    text-align: center;
}
@media (max-width: 680px) {
    .assurance__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
.assurance__item .mark {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
}
.assurance__item .mark svg { width: 20px; height: 20px; }
.assurance__item h3 {
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
}
.assurance__item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* --- "Our Story" teaser (homepage) --- */

.story-teaser {
    padding: 4.5rem 0;
}
.story-teaser__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 820px) {
    .story-teaser__inner { grid-template-columns: 1fr; gap: 2rem; }
    .story-teaser { padding: 3rem 0; }
}

.story-teaser__media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #2f2a22;
    /* Drop app/static/img/our-story.jpg to replace the placeholder; until
       then the photo layer is empty and the gradient shows through. */
    background-image:
        url('../img/our-story.jpg'),
        linear-gradient(150deg, #4a3b27 0%, #6b5232 55%, #9a6f3a 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.story-teaser__media::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    pointer-events: none;
}

.story-teaser__body h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    margin: 0.4rem 0 1rem;
    line-height: 1.12;
}
.story-teaser__body p {
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}
.story-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    color: var(--accent-deep);
    font-weight: 600;
    text-decoration: none;
}
.story-link .arrow { transition: transform 180ms var(--ease); }
.story-link:hover .arrow { transform: translateX(4px); }

/* --- empty-state hero (no products) --- */

.hero {
    text-align: center;
    padding: 5rem 1rem;
}
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.25rem);
    margin: 0 0 0.6rem;
}
.hero .lede {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0;
    font-style: italic;
}

/* --- product detail --- */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    padding-top: 0.5rem;
}

@media (max-width: 720px) {
    .product-detail { grid-template-columns: 1fr; gap: 1.75rem; }
    .product-detail__info { position: static; }
}

.product-detail__image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.product-detail__image img {
    width: 100%;
    display: block;
}

.product-detail__info { position: sticky; top: 6rem; }

.product-detail__info .crumbs { margin: 0 0 1.25rem; font-size: 0.9rem; }
.product-detail__info .crumbs a { color: var(--muted); text-decoration: none; }
.product-detail__info .crumbs a:hover { color: var(--accent); }

.product-detail__info h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.price-lg {
    margin: 0 0 1.5rem;
    color: var(--accent-deep);
    font-size: 1.6rem;
    font-weight: 600;
}

.description {
    margin: 0 0 1.75rem;
    color: var(--ink);
    line-height: 1.75;
}

.buy-btn {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 0.9rem 1.7rem;
    font: inherit;
    font-size: 1.02rem;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(176, 122, 58, 0.28);
    transition: transform 180ms var(--ease), background 160ms var(--ease),
        box-shadow 180ms var(--ease);
}

.buy-btn:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(148, 101, 48, 0.34);
}

.buy-btn--disabled,
.buy-btn--disabled:hover {
    background: #c8b9a4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.one-off-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-style: italic;
}

.sold-note {
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

/* --- "Our Story" page --- */

.story {
    max-width: 680px;
    margin: 1.5rem auto 3rem;
}

.story-hero { text-align: center; margin-bottom: 2.5rem; }

.story h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

.story p {
    margin: 0 0 1.4rem;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--ink);
}

.story > p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 3.4rem;
    line-height: 0.82;
    float: left;
    padding: 0.1rem 0.7rem 0 0;
    color: var(--accent);
    font-weight: 600;
}

.story p:last-child { margin-bottom: 0; }

/* --- scroll reveal (only active when JS adds .js-reveal) --- */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 720ms var(--ease), transform 720ms var(--ease);
    will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- shared utilities (public pages only load style.css) --- */

.muted { color: var(--muted); font-size: 0.9rem; }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}
.link-btn:hover { text-decoration: underline; }

.title-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.title-link:hover { color: var(--accent); }

.crumbs { margin: 0 0 1rem; font-size: 0.9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.form-error {
    background: #f7e5e1;
    border: 1px solid #d9a59a;
    color: #7a2418;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.notice {
    background: #fbf0dd;
    border: 1px solid #e6d2a8;
    color: #8a6321;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}
.notice--ok { background: #e3f0e3; border-color: #b9d8bb; color: #2f6b34; }

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: capitalize;
    border: 1px solid transparent;
}
.status-badge--paid      { background: #e3f0e3; color: #2f6b34; border-color: #b9d8bb; }
.status-badge--pending   { background: #fbf0dd; color: #8a6321; border-color: #e6d2a8; }
.status-badge--cancelled { background: #efe9e4; color: #6b6258; border-color: #d8cfc5; }
.status-badge--failed    { background: #f7e5e1; color: #7a2418; border-color: #d9a59a; }

/* --- header cart link --- */

.nav-icon { display: inline-flex; align-items: center; color: var(--muted); }
.nav-icon svg { width: 22px; height: 22px; display: block; }
.nav-icon::after { display: none; }
.nav-icon:hover { color: var(--accent); }

.cart-link { position: relative; }
.cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- buy actions --- */

.buy-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.buy-form { margin: 0; }

.buy-btn--ghost {
    background: transparent;
    color: var(--accent-deep);
    border: 1px solid var(--accent);
    box-shadow: none;
}
.buy-btn--ghost:hover {
    background: var(--accent-soft);
    color: var(--accent-deep);
    box-shadow: none;
}

a.buy-btn { display: inline-block; text-decoration: none; }

/* --- cart --- */

.cart-page, .checkout, .account-page, .auth-card { max-width: 760px; margin: 0 auto; }

h1 { line-height: 1.15; }

.cart-list { list-style: none; margin: 1.5rem 0; padding: 0; }

.cart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-row__main { flex: 1; }
.cart-row__main .title-link { font-size: 1.05rem; }
.cart-row__price { color: var(--accent-deep); font-weight: 600; white-space: nowrap; }

.cart-totals { margin: 1.5rem 0 1.5rem auto; max-width: 320px; }
.cart-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    color: var(--muted);
}
.cart-totals__grand {
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
    padding-top: 0.7rem !important;
    color: var(--ink) !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- checkout --- */

.checkout { max-width: 960px; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}
@media (max-width: 760px) {
    .checkout-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.checkout-order {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.checkout-items, .cell-list { list-style: none; margin: 0.75rem 0; padding: 0; }
.checkout-items li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.checkout-form label,
.auth-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
}
.checkout-form input,
.checkout-form select,
.auth-form input,
.auth-form select {
    margin-top: 0.35rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.checkout-form input[disabled] { background: #f0ece5; color: var(--muted); }

.form-row { display: flex; gap: 1rem; }
.form-row label { flex: 1; }
@media (max-width: 520px) { .form-row { flex-direction: column; gap: 0; } }

.checkout-form h3, .auth-form h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.save-account {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0 1.5rem;
}
label.checkbox {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 500;
    margin: 0;
}
label.checkbox input { width: auto; margin-top: 0.2rem; }

.secure-note { margin: 0.75rem 0 0; }

/* --- account / auth --- */

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 460px;
    margin: 2rem auto;
    box-shadow: var(--shadow-sm);
}
.auth-card--wide { max-width: 640px; }
.auth-card h1 { margin-top: 0; }
.auth-alt { margin: 1rem 0 0; font-size: 0.95rem; color: var(--muted); }
.auth-alt a { color: var(--accent); }

.account-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.account-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.account-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.account-card h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }

.account-summary dl, .auth-card dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.5rem 1rem;
    margin: 1rem 0 1.5rem;
}
.account-summary dt { color: var(--muted); margin: 0; }
.account-summary dd, .auth-card dd { margin: 0; }

.order-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.order-card__total { text-align: right; margin-top: 0.5rem; }

/* --- admin extras --- */

.cell-list li { padding: 0.1rem 0; }
.admin-detail dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.5rem 1rem;
    margin: 1rem 0 2rem;
}
.admin-detail dt { color: var(--muted); }
.admin-detail dd { margin: 0; }
.badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #e3f0e3;
    color: #2f6b34;
    text-decoration: none;
    vertical-align: middle;
}
.badge--muted { background: #efe9e4; color: #6b6258; }
