/* =================================================================
   Pre-launch screens: Coming Soon (Components/ComingSoon.razor)
   and the public merch shop (Layout/ShopLayout.razor, Pages/Shop.razor, Pages/ShopOrders.razor).
   Selectors are prefixed with .soon-shell / .shop-shell so they outrank the
   layout files' element rules (e.g. html[data-layout="vertical"] h2).
   ================================================================= */

:root {
    --shop-cream: #F7F4EC;
    --shop-gold: #E3B341;
    --shop-gold-deep: #B7861B;
}

/* ---------- Shared: gold button ---------- */
.btn-gold {
    color: #1a0d2b;
    background: var(--shop-gold);
    border: 1px solid var(--shop-gold-deep);
    font-weight: 600;
}
.btn-gold:hover, .btn-gold:focus-visible { color: #1a0d2b; background: #EDC35F; border-color: var(--shop-gold-deep); }
.btn-gold:active { background: var(--shop-gold-deep) !important; color: #fff !important; }

/* ================= Coming Soon ================= */
.soon-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(60rem 40rem at 85% -10%, rgba(227, 179, 65, 0.16), transparent 60%),
        radial-gradient(120% 120% at 0% 0%, var(--bms-tint-hover) 0%, var(--bms-tint) 45%, var(--bms-primary-deep) 100%);
}

.soon-shell .soon-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(3rem + env(safe-area-inset-top)) 1.5rem 2rem;
    max-width: 46rem;
    margin: 0 auto;
}

.soon-shell .soon-seal {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(227, 179, 65, 0.35), 0 18px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.75rem;
}

.soon-shell .soon-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shop-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.soon-shell .soon-title {
    font-family: var(--bms-font-serif);
    font-size: clamp(2.2rem, 6vw, 3.75rem);
    line-height: 1.08;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #fff;
}

.soon-shell .soon-lede {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 34rem;
    margin: 0 auto 2.25rem;
}

.soon-shell .soon-date { margin-bottom: 2.5rem; }
.soon-shell .soon-date-label { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 1rem; }
.soon-shell .soon-date-label strong { color: var(--shop-gold); font-weight: 700; }

.soon-shell .soon-countdown { display: flex; gap: 0.75rem; justify-content: center; }

.soon-shell .soon-unit {
    min-width: 5.5rem;
    padding: 0.9rem 0.75rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soon-shell .soon-num {
    font-family: var(--bms-font-serif);
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums;
}

.soon-shell .soon-cap {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.35rem;
}

.soon-shell .soon-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.soon-shell .soon-actions .btn { min-width: 15rem; border-radius: 999px; padding-left: 1.5rem; padding-right: 1.5rem; }

.soon-shell .soon-footer {
    text-align: center;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 575.98px) {
    .soon-shell .soon-unit { min-width: 4.6rem; }
    .soon-shell .soon-num { font-size: 2rem; }
    .soon-shell .soon-actions .btn { width: 100%; min-width: 0; }
}

/* ================= Shop layout ================= */
.shop-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--shop-cream);
    color: var(--bms-ink);
}

.shop-shell .shop-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(26, 0, 50, 0.96);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid rgba(227, 179, 65, 0.55);
}

.shop-shell .shop-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 64px;               /* fixed so the sticky tabs/cart can sit exactly below it */
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shop-shell .shop-brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.shop-shell .shop-brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(227, 179, 65, 0.6); }
.shop-shell .shop-brand-name { display: block; font-family: var(--bms-font-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.shop-shell .shop-brand-sub { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--shop-gold); }
.shop-shell .shop-header .btn-outline-light { border-color: rgba(255, 255, 255, 0.45); font-weight: 600; }
.shop-shell .shop-header .btn-outline-light:hover { background: #fff; color: var(--bms-primary-deep); }
.shop-shell .shop-stripe { display: none; }

.shop-shell .shop-main { flex: 1; outline: none; }

.shop-shell .shop-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 2.5rem 1rem calc(6.5rem + env(safe-area-inset-bottom)); /* room for the mobile cart bar */
    color: var(--bms-ink-2);
    font-size: 0.85rem;
    background: #EFE9DC;
}
@media (min-width: 992px) { .shop-shell .shop-footer { padding-bottom: 2.5rem; } }

.shop-shell .shop-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.shop-shell [id] { scroll-margin-top: calc(130px + env(safe-area-inset-top)); }

/* ---------- Hero ---------- */
.shop-shell .shop-hero {
    color: #fff;
    padding: 4rem 0;
    background:
        radial-gradient(45rem 28rem at 92% 10%, rgba(227, 179, 65, 0.22), transparent 62%),
        linear-gradient(135deg, #1A0032 0%, var(--bms-tint) 58%, var(--bms-tint-hover) 100%);
    overflow: hidden;
}

.shop-shell .shop-hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .shop-shell .shop-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; } }

.shop-shell .shop-eyebrow { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--bms-gold-text); margin-bottom: 0.75rem; }
.shop-shell .shop-eyebrow-light { color: var(--shop-gold); }

.shop-shell .shop-hero-title {
    font-family: var(--bms-font-serif);
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: #fff;
}

.shop-shell .shop-hero-lede { max-width: 34rem; font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); margin-bottom: 2rem; }
.shop-shell .shop-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.shop-shell .shop-hero-actions .btn-gold { border-radius: 999px; padding: 0.8rem 1.9rem; }
.shop-shell .shop-hero-link { color: #fff; text-decoration: none; font-weight: 500; padding-left: 0; padding-right: 0; }
.shop-shell .shop-hero-link:hover { color: var(--shop-gold); }

/* Featured product */
.shop-shell .shop-feature {
    display: block;
    color: #fff;
    text-decoration: none;
    border-radius: 22px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.shop-shell .shop-feature:hover { transform: translateY(-4px); border-color: rgba(227, 179, 65, 0.6); color: #fff; }
.shop-shell .shop-feature-media { display: block; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #2a1a3d; }
.shop-shell .shop-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.6s ease; }
.shop-shell .shop-feature:hover .shop-feature-media img { transform: scale(1.03); }
.shop-shell .shop-feature-body { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 0.5rem 0.4rem; }
.shop-shell .shop-feature-tag { align-self: flex-start; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #1a0d2b; background: var(--shop-gold); padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.35rem; }
.shop-shell .shop-feature-name { font-family: var(--bms-font-serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.shop-shell .shop-feature-meta { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.shop-shell .shop-feature-meta strong { color: var(--shop-gold); font-weight: 700; }
@media (max-width: 991.98px) { .shop-shell .shop-feature { max-width: 34rem; } }

/* ---------- How it works strip ---------- */
.shop-shell .shop-trust { background: #fff; border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.shop-shell .shop-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem 2.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.shop-shell .shop-trust-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.shop-shell .shop-trust-item i {
    flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bms-tint-soft); color: var(--bms-tint); font-size: 1.25rem;
}
.shop-shell .shop-trust-item strong { display: block; font-weight: 600; font-size: 0.98rem; }
.shop-shell .shop-trust-item span { display: block; font-size: 0.88rem; color: var(--bms-ink-2); line-height: 1.45; }

/* ---------- Category tabs ---------- */
.shop-shell .shop-tabs {
    position: sticky;
    top: calc(65px + env(safe-area-inset-top));
    z-index: 1010;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -1.5rem 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(247, 244, 236, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.shop-shell .shop-tabs::-webkit-scrollbar { display: none; }
.shop-shell .shop-tabs a {
    flex-shrink: 0; white-space: nowrap; text-decoration: none;
    font-size: 0.9rem; font-weight: 600; color: var(--bms-ink);
    padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.12); background: #fff;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.shop-shell .shop-tabs a:hover { border-color: var(--bms-tint); color: var(--bms-tint); }
.shop-shell .shop-tabs .shop-tabs-checkout { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--bms-tint); border-color: var(--bms-tint); color: #fff; }
.shop-shell .shop-tabs .shop-tabs-checkout:hover { background: var(--bms-tint-hover); color: #fff; }
.shop-shell .shop-tabs .shop-tabs-checkout .shop-cart-count { background: var(--shop-gold); color: #1a0d2b; }

/* ---------- Grid ---------- */
.shop-shell .shop-body { padding-top: 0; padding-bottom: 4rem; }
.shop-shell .shop-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1100px) { .shop-shell .shop-grid { grid-template-columns: minmax(0, 1fr) 21rem; } }

.shop-shell .shop-category { margin-bottom: 3.5rem; }
.shop-shell .shop-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(59, 18, 97, 0.14); }
.shop-shell .shop-category-title { font-family: var(--bms-font-serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--bms-ink); margin: 0; }
.shop-shell .shop-category-count { font-size: 0.85rem; color: var(--bms-ink-2); }

.shop-shell .shop-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }

/* ---------- Product card ---------- */
.shop-shell .shop-card {
    background: var(--bms-surface);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 20px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.shop-shell .shop-card:hover { box-shadow: 0 18px 40px -18px rgba(59, 18, 97, 0.28); transform: translateY(-2px); }
.shop-shell .shop-card.is-selected { border-color: rgba(59, 18, 97, 0.45); box-shadow: 0 0 0 1px rgba(59, 18, 97, 0.45), 0 18px 40px -18px rgba(59, 18, 97, 0.28); }

/* Uniform rounded square frame for every product photo */
.shop-shell .shop-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #EFEAF5;
    isolation: isolate;
}
.shop-shell .shop-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s ease; }
.shop-shell .shop-card:hover .shop-card-media > img { transform: scale(1.035); }
.shop-shell .shop-card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06); pointer-events: none; }
.shop-shell .shop-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.shop-shell .shop-card-placeholder img { width: 30%; opacity: 0.35; filter: grayscale(1); }

.shop-shell .shop-card-flag,
.shop-shell .shop-card-badge {
    position: absolute; top: 0.75rem; z-index: 1;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 0.3rem 0.65rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.shop-shell .shop-card-flag { left: 0.75rem; background: var(--shop-gold); color: #1a0d2b; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; }
.shop-shell .shop-card-badge { right: 0.75rem; background: var(--bms-tint); color: #fff; }

.shop-shell .shop-card-more {
    position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 1;
    border: 0; background: rgba(255, 255, 255, 0.94); color: var(--bms-ink);
    font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.shop-shell .shop-card-more:hover { background: #fff; color: var(--bms-tint); }

.shop-shell .shop-card-body { padding: 1rem 0.5rem 0.4rem; display: flex; flex-direction: column; flex: 1; }
.shop-shell .shop-card-kicker { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--bms-ink-2); margin: 0 0 0.35rem; }
.shop-shell .shop-card-kicker span { font-weight: 500; }
.shop-shell .shop-card-title { font-family: var(--bms-font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin: 0; color: var(--bms-ink); }
.shop-shell .shop-price { font-size: 1.25rem; font-weight: 700; color: var(--bms-tint); margin: 0.35rem 0 0.5rem; font-variant-numeric: lining-nums tabular-nums; }
.shop-shell .shop-card-desc {
    color: var(--bms-ink-2); font-size: 0.92rem; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-shell .shop-card-note { font-size: 0.82rem; color: var(--bms-ink-2); margin: 0.5rem 0 0; }
.shop-shell .shop-card-chart {
    align-self: flex-start; margin-top: 0.6rem; border: 0; background: none; padding: 0;
    font-size: 0.85rem; font-weight: 600; color: var(--bms-tint); text-decoration: underline; text-underline-offset: 3px;
}
.shop-shell .shop-card-chart:hover { color: var(--bms-tint-hover); }

.shop-shell .shop-card-buy { margin-top: auto; padding-top: 1rem; }
.shop-shell .shop-add { border-radius: 999px; font-weight: 600; padding-top: 0.6rem; padding-bottom: 0.6rem; }

/* ---------- Size / qty selection ---------- */
.shop-shell .shop-variant { border: 0; padding: 0; margin: 0 0 0.75rem; min-width: 0; }
.shop-shell .shop-variant:last-child { margin-bottom: 0; }
.shop-shell .shop-variant-legend { font-size: 0.8rem; font-weight: 600; color: var(--bms-ink); display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; float: none; width: auto; }
.shop-shell .shop-swatch { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); display: inline-block; }

.shop-shell .shop-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: 0.4rem; }

.shop-shell .shop-stepper { border-radius: 10px; overflow: hidden; border: 1px solid var(--bms-input-border); background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.shop-shell .shop-stepper:hover { border-color: var(--bms-tint); }
.shop-shell .shop-stepper.has-qty { border-color: var(--bms-tint); box-shadow: 0 0 0 1px var(--bms-tint); }
.shop-shell .shop-stepper-size {
    display: block; width: 100%; border: 0; background: none;
    font-size: 0.85rem; font-weight: 700; color: var(--bms-ink); padding: 0.5rem 0.25rem;
}
.shop-shell .shop-stepper.has-qty .shop-stepper-size { background: var(--bms-tint); color: #fff; padding: 0.3rem 0.25rem; }
.shop-shell .shop-stepper-ctrl { display: flex; align-items: center; justify-content: space-between; padding: 0.2rem; background: var(--bms-tint-soft); }

.shop-shell .shop-step {
    width: 2.1rem; height: 2.1rem; flex-shrink: 0;
    border-radius: 50%; border: 1px solid var(--bms-input-border);
    background: #fff; color: var(--bms-ink); font-size: 1.1rem; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.shop-shell .shop-step.shop-step-sm { width: 1.6rem; height: 1.6rem; font-size: 0.95rem; border: 0; background: transparent; color: var(--bms-tint); }
.shop-shell .shop-step:hover:not(:disabled) { border-color: var(--bms-tint); color: var(--bms-tint); background: #fff; }
.shop-shell .shop-step:disabled { opacity: 0.35; }
.shop-shell .shop-step-qty { min-width: 1.25rem; text-align: center; font-weight: 700; font-size: 0.88rem; font-variant-numeric: tabular-nums; color: var(--bms-tint); }

.shop-shell .shop-qty-wide {
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--bms-tint); border-radius: 999px; padding: 0.25rem; background: var(--bms-tint-soft);
}

.shop-shell .shop-engrave { margin-top: 1rem; padding: 0.9rem; border-radius: 12px; background: var(--bms-gold-soft); border: 1px dashed rgba(217, 119, 6, 0.45); }

/* ---------- Loading skeleton ---------- */
.shop-shell .shop-skeleton .shop-card-media,
.shop-shell .shop-skeleton .shop-card-body span {
    background: linear-gradient(90deg, #ece6da 25%, #f5f1e8 50%, #ece6da 75%);
    background-size: 200% 100%;
    animation: shop-shimmer 1.4s ease-in-out infinite;
}
.shop-shell .shop-skeleton .shop-card-body { gap: 0.6rem; }
.shop-shell .shop-skeleton .shop-card-body span { display: block; height: 0.9rem; border-radius: 6px; }
.shop-shell .shop-skeleton .shop-card-body span:nth-child(1) { width: 40%; }
.shop-shell .shop-skeleton .shop-card-body span:nth-child(2) { width: 75%; height: 1.3rem; }
.shop-shell .shop-skeleton .shop-card-body span:nth-child(3) { width: 30%; }
@keyframes shop-shimmer { to { background-position: -200% 0; } }

/* ---------- Cart sidebar ---------- */
.shop-shell .shop-cart { display: none; }
@media (min-width: 1100px) { .shop-shell .shop-cart { display: block; position: sticky; top: calc(140px + env(safe-area-inset-top)); } }
.shop-shell .shop-cart-inner {
    background: var(--bms-surface); border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 20px;
    padding: 1.4rem; box-shadow: 0 18px 40px -20px rgba(59, 18, 97, 0.25);
}
.shop-shell .shop-cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.shop-shell .shop-cart-title { font-family: var(--bms-font-serif); font-size: 1.4rem; margin: 0; }
.shop-shell .shop-cart-count {
    font-family: var(--bms-font-sans); font-size: 0.75rem; font-weight: 700; min-width: 1.5rem; text-align: center;
    background: var(--bms-tint); color: #fff; border-radius: 999px; padding: 0.15rem 0.5rem;
}
.shop-shell .shop-cart-empty { text-align: center; padding: 1.5rem 0.5rem; color: var(--bms-ink-2); font-size: 0.9rem; }
.shop-shell .shop-cart-empty i { display: block; font-size: 2rem; color: rgba(59, 18, 97, 0.3); margin-bottom: 0.5rem; }

.shop-shell .shop-cart-lines { list-style: none; padding: 0; margin: 0; max-height: 45vh; overflow-y: auto; }
.shop-shell .shop-cart-lines li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--bms-border); }
.shop-shell .shop-cart-lines li:first-child { padding-top: 0; }
.shop-shell .shop-cart-line-main { min-width: 0; }
.shop-shell .shop-cart-line-name { display: block; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.shop-shell .shop-cart-line-variant { display: block; font-size: 0.8rem; color: var(--bms-ink-2); margin-top: 0.1rem; }
.shop-shell .shop-cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; flex-shrink: 0; }
.shop-shell .shop-cart-line-price { font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.shop-shell .shop-cart-remove { border: 0; background: none; padding: 0; font-size: 0.75rem; color: var(--bms-ink-2); text-decoration: underline; text-underline-offset: 2px; }
.shop-shell .shop-cart-remove:hover { color: var(--ios-red); }
.shop-shell .shop-cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; padding-top: 1rem; font-variant-numeric: tabular-nums; }
.shop-shell .shop-cart-note { font-size: 0.78rem; color: var(--bms-ink-2); margin: 0.35rem 0 1rem; }
.shop-shell .shop-cart .btn-lg { border-radius: 999px; font-size: 1rem; }

/* Review list in checkout */
.shop-shell .shop-lines { list-style: none; padding: 0; margin: 0; }
.shop-shell .shop-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.92rem; }
.shop-shell .shop-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.shop-shell .shop-lines-total { border-top: 1px solid var(--bms-border); margin-top: 0.4rem; padding-top: 0.7rem !important; font-weight: 700; font-size: 1.1rem !important; }

/* ---------- Mobile cart bar ---------- */
.shop-shell .shop-bar {
    position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 1030;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 0.75rem 0.7rem 1.2rem; border-radius: 18px;
    background: rgba(26, 0, 50, 0.97); color: #fff; box-shadow: var(--bms-shadow-3);
    transform: translateY(150%); transition: transform 0.25s ease;
}
.shop-shell .shop-bar.is-visible { transform: none; }
.shop-shell .shop-bar-count { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }
.shop-shell .shop-bar-total { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-shell .shop-bar .btn { border-radius: 999px; padding-left: 1.6rem; padding-right: 1.6rem; }
@media (min-width: 1100px) { .shop-shell .shop-bar { display: none; } }

/* ---------- Checkout ---------- */
.shop-shell .shop-checkout { outline: none; }
.shop-shell .shop-checkout > .shop-category-title { margin-bottom: 1.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(59, 18, 97, 0.14); }
.shop-shell .shop-panel {
    background: var(--bms-surface); border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 20px;
    padding: 1.75rem; margin-bottom: 1.25rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.shop-shell .shop-panel-title { font-family: var(--bms-font-serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 1.25rem; display: flex; align-items: center; gap: 0.7rem; }
.shop-shell .shop-panel-num {
    font-family: var(--bms-font-sans); width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--bms-tint); color: #fff; font-size: 0.85rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.shop-shell .shop-panel .form-control, .shop-shell .shop-panel .form-select { border-radius: 10px; }

.shop-shell .shop-options { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.shop-shell .shop-option {
    display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer;
    border: 1px solid var(--bms-input-border); border-radius: 14px; padding: 1rem 1.1rem;
    background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shop-shell .shop-option:hover, .shop-shell .shop-pay-card:hover { border-color: var(--bms-tint); }
.shop-shell .shop-option.is-checked, .shop-shell .shop-pay-card.is-checked { border-color: var(--bms-tint); box-shadow: 0 0 0 1px var(--bms-tint); background: var(--bms-tint-soft); }
.shop-shell .shop-option .form-check-input, .shop-shell .shop-pay-head .form-check-input { margin-top: 0.15rem; flex-shrink: 0; }
.shop-shell .shop-option-title { display: block; font-weight: 600; color: var(--bms-ink); }
.shop-shell .shop-option-sub { display: block; font-size: 0.88rem; color: var(--bms-ink-2); margin-top: 0.15rem; }

.shop-shell .shop-pay { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.shop-shell .shop-pay-card {
    display: flex; flex-direction: column; gap: 0.9rem;
    border: 1px solid var(--bms-input-border); border-radius: 16px; padding: 1rem;
    background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shop-shell .shop-pay-head { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; margin: 0; }
.shop-shell .shop-qr-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; }
.shop-shell .shop-qr { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--bms-border); background: #fff; }
.shop-shell .shop-qr-zoom {
    position: absolute; right: 0.6rem; bottom: 0.6rem;
    font-size: 0.75rem; font-weight: 600; color: #fff; background: rgba(15, 23, 42, 0.75);
    padding: 0.3rem 0.65rem; border-radius: 999px;
}
.shop-shell .shop-qr-missing { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; color: var(--bms-ink-2); font-size: 0.85rem; background: var(--bms-surface-2); }

.shop-shell .shop-drop {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem; cursor: pointer;
    padding: 1.75rem 1rem; border: 2px dashed var(--bms-input-border); border-radius: 14px;
    background: var(--bms-surface-2); text-align: center; color: var(--bms-ink); margin: 0;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.shop-shell .shop-drop:hover { border-color: var(--bms-tint); background: var(--bms-tint-soft); }
.shop-shell .shop-drop i { font-size: 1.9rem; color: var(--bms-tint); }
.shop-shell .shop-drop.is-busy { cursor: progress; flex-direction: row; justify-content: center; }
.shop-shell .shop-drop:focus-within { outline: 3px solid var(--bms-tint); outline-offset: 2px; }

.shop-shell .shop-proof { display: flex; gap: 1rem; align-items: center; padding: 0.8rem; border: 1px solid var(--bms-border); border-radius: 14px; }
.shop-shell .shop-proof img { width: 4.5rem; height: 6rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--bms-border); }
.shop-shell .shop-review .btn-lg { border-radius: 999px; padding-top: 0.85rem; padding-bottom: 0.85rem; }

/* ---------- Image modal (size charts, extra photos, QR codes) ---------- */
.shop-modal-img { display: block; max-width: 100%; max-height: 75vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; }
.shop-modal-img + .shop-modal-img { margin-top: 1rem; }

/* ---------- Confirmation ---------- */
.shop-shell .shop-confirm { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.shop-shell .shop-confirm-card {
    max-width: 40rem; margin: 0 auto; text-align: center; outline: none;
    background: var(--bms-surface); border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 22px;
    padding: 2.75rem 1.75rem; box-shadow: 0 24px 50px -24px rgba(59, 18, 97, 0.3);
}
.shop-shell .shop-confirm-icon {
    width: 4.25rem; height: 4.25rem; border-radius: 50%; margin: 0 auto 1.1rem;
    background: rgba(21, 128, 61, 0.1); color: var(--ios-green); font-size: 2.1rem;
    display: flex; align-items: center; justify-content: center;
}
.shop-shell .shop-confirm-title { font-family: var(--bms-font-serif); font-size: 2.1rem; margin-bottom: 0.75rem; }
.shop-shell .shop-confirm-lede { margin-bottom: 0.25rem; color: var(--bms-ink-2); }
.shop-shell .shop-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.9rem; font-weight: 700;
    letter-spacing: 0.06em; color: var(--bms-tint); margin-bottom: 1rem;
}
.shop-shell .shop-slip { text-align: left; background: var(--bms-surface-2); border: 1px solid var(--bms-border); border-radius: 12px; }
.shop-shell .shop-slip-text { margin: 0; padding: 1rem; font-size: 0.82rem; white-space: pre-wrap; word-break: break-word; max-height: 22rem; overflow: auto; }

@media (prefers-reduced-motion: reduce) {
    .shop-shell .shop-card, .shop-shell .shop-card-media > img, .shop-shell .shop-feature,
    .shop-shell .shop-feature-media img, .shop-shell .shop-bar { transition: none; }
    .shop-shell .shop-card:hover, .shop-shell .shop-feature:hover { transform: none; }
    .shop-shell .shop-card:hover .shop-card-media > img, .shop-shell .shop-feature:hover .shop-feature-media img { transform: none; }
    .shop-shell .shop-skeleton * { animation: none; }
}

/* ---------- Council orders page (uses MainLayout) ---------- */
.merch-orders .proof-img { max-height: 75vh; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.merch-orders .status-chip { font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.merch-orders .status-Pending { background: rgba(217, 119, 6, 0.12); color: var(--bms-gold-text); }
.merch-orders .status-Verified { background: rgba(59, 18, 97, 0.1); color: var(--bms-tint); }
.merch-orders .status-Fulfilled { background: rgba(21, 128, 61, 0.12); color: var(--ios-green); }
.merch-orders .status-Cancelled { background: rgba(186, 26, 26, 0.1); color: var(--ios-red); }
