/* ═══════════════════════════════════════════════════════════════
   Storefront Order Console
   Loaded only by storefront/menu.html and storefront/item_detail.html.

   Every color, font and radius comes from the tenant-driven --sf-*
   custom properties declared in templates/storefront/layout.html —
   nothing brand-specific is hardcoded here.

   Presentation modes:
     .sf-order-page  >=1200px   cat rail | item grid | order rail
                                (rails sticky, bottom bar hidden)
     .sf-order-page  <1200px    sticky chip bar on top, order rail
                                becomes a right drawer + bottom bar
     .sf-order-standalone       drawer + bottom bar at EVERY width
                                (item detail page — no rail column)
   The drawer styling is the default; the 3-pane desktop look is the
   override, scoped to .sf-order-page at >=1200px.
   ═══════════════════════════════════════════════════════════════ */

.sf-order-console {
    padding-top: 2rem;
    padding-bottom: 6.5rem; /* room for the fixed bottom bar */
}

.sf-order-console [hidden] {
    display: none !important; /* search-filter hiding beats any display rule */
}

/* ── Page header: heading + search ─────────────────────────────── */

.sf-order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.sf-order-search {
    position: relative;
    flex: 0 1 340px;
    min-width: 220px;
}

.sf-order-search .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sf-text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

.sf-order-search input {
    padding-left: 2.5rem;
    width: 100%;
}

/* ── Three-pane layout grid ────────────────────────────────────── */

/* Base is plain flow: below 1200px the chip bar must stick against the
   page itself (a grid cell can only stick within its own row). The grid
   kicks in at >=1200px with default stretch so each column spans the full
   row height — that stretched cell is the travel room the sticky rails
   inside need. */
.sf-order-layout > * + * {
    margin-top: 1.25rem;
}

@media (min-width: 1200px) {
    .sf-order-layout {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr) 360px;
        gap: 2.25rem;
    }

    .sf-order-layout > * + * {
        margin-top: 0;
    }
}

/* Wide displays: Bootstrap's container-xxl caps at 1320px, which reads as
   a narrow strip on 1440p/4K monitors. Let the console breathe — wider
   shell, wider rails, and the card grid goes 4-up (col-xxl-3). */
@media (min-width: 1400px) {
    .sf-order-console.container-xxl {
        max-width: min(94vw, 1760px);
    }

    .sf-order-layout {
        grid-template-columns: 250px minmax(0, 1fr) 385px;
        gap: 2.75rem;
    }
}

@media (min-width: 1920px) {
    .sf-order-console.container-xxl {
        max-width: min(92vw, 2000px);
    }

    .sf-order-layout {
        grid-template-columns: 270px minmax(0, 1fr) 410px;
        gap: 3.5rem;
    }

    /* A touch more typographic presence at 4K distances */
    .sf-order-cat-title {
        font-size: 1.65rem;
    }

    .sf-cat-link {
        font-size: 1rem;
    }

    .sf-order-rail-title {
        font-size: 1.3rem;
    }
}

/* ── Category rail (shared markup, two presentations) ──────────── */

.sf-cat-rail-label {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sf-accent);
    margin-bottom: 0.9rem;
}

.sf-cat-rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative; /* offsetLeft anchor for sfOrderCenterChip */
}

/* FAQ link under the categories (desktop rail only — the mobile chip bar
   stays a pure category strip) */
.sf-cat-rail-faq {
    display: none;
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--sf-border-light);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sf-text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}
.sf-cat-rail-faq:hover { color: var(--sf-warm-900); }
@media (min-width: 1200px) {
    .sf-cat-rail-faq { display: inline-block; }
}

/* Desktop: sticky vertical table of contents (sticky lives on the inner
   nav — the grid cell itself spans the row, so it can't stick) */
@media (min-width: 1200px) {
    .sf-order-left .sf-cat-rail {
        position: sticky;
        top: 96px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 1rem;
    }

    .sf-cat-rail-list {
        border-left: 1px solid var(--sf-border);
    }

    .sf-cat-link {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        margin-left: -1px;
        border-left: 2px solid transparent;
        border-radius: 0 var(--sf-radius-sm) var(--sf-radius-sm) 0;
        color: var(--sf-text-muted);
        font-size: 0.92rem;
        text-decoration: none;
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .sf-cat-link:hover {
        color: var(--sf-text);
        background: color-mix(in srgb, var(--sf-warm-50), transparent 40%);
    }

    .sf-cat-link.active {
        color: var(--sf-warm-900);
        font-weight: 600;
        border-left-color: var(--sf-accent);
    }

    .sf-cat-count {
        font-size: 0.72rem;
        font-weight: 500;
        color: var(--sf-text-light);
    }

    .sf-cat-link.active .sf-cat-count {
        color: var(--sf-accent);
    }
}

/* Below desktop: sticky horizontal chip bar under the navbar */
@media (max-width: 1199.98px) {
    .sf-order-page .sf-order-left {
        position: sticky;
        top: 64px; /* sticky navbar height */
        z-index: 1010; /* under the navbar (1020), over the cards */
        margin: 0 -12px; /* bleed across the container gutter */
        padding: 0.55rem 12px;
        background: color-mix(in srgb, var(--sf-cream), transparent 10%);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--sf-border-light);
    }

    .sf-cat-rail-label {
        display: none;
    }

    .sf-cat-rail-list {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }

    .sf-cat-rail-list::-webkit-scrollbar {
        display: none;
    }

    .sf-cat-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
        padding: 0.4rem 0.95rem;
        border-radius: var(--sf-radius-full);
        border: 1.5px solid var(--sf-border);
        background: white;
        color: var(--sf-text-muted);
        font-size: 0.82rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .sf-cat-link.active {
        background: var(--sf-warm-900);
        border-color: var(--sf-warm-900);
        color: white;
    }

    .sf-cat-count {
        font-size: 0.7rem;
        opacity: 0.6;
    }
}

/* ── Item grid: category sections ──────────────────────────────── */

.sf-order-cat {
    margin-bottom: 2.75rem;
    scroll-margin-top: 132px; /* navbar + chip bar clearance */
}

@media (min-width: 1200px) {
    .sf-order-cat {
        scroll-margin-top: 100px; /* navbar only */
    }
}

.sf-order-cat-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.sf-order-cat-title {
    font-family: var(--sf-font-heading);
    font-size: 1.45rem;
    color: var(--sf-warm-900);
    margin: 0;
}

.sf-order-cat-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sf-text-light);
    background: var(--sf-warm-50);
    border: 1px solid var(--sf-border-light);
    border-radius: var(--sf-radius-full);
    padding: 0.1rem 0.55rem;
}

.sf-order-cat-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--sf-border), transparent);
}

.sf-order-search-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--sf-text-muted);
}

.sf-order-search-empty .bi {
    display: block;
    font-size: 1.8rem;
    color: var(--sf-text-light);
    margin-bottom: 0.6rem;
}

/* ── "Your Order" rail card ────────────────────────────────────── */

.sf-order-rail {
    background: white;
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sf-order-rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 0.9rem;
    border-bottom: 1px solid var(--sf-border-light);
}

.sf-order-rail-title {
    font-family: var(--sf-font-heading);
    font-size: 1.15rem;
    color: var(--sf-warm-900);
    margin: 0;
}

.sf-order-rail-count {
    font-size: 0.78rem;
    color: var(--sf-text-muted);
}

/* Line items — long orders scroll inside the card */
.sf-order-rail-lines {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.35rem 0;
}

.sf-order-line {
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    transition: background 0.2s ease;
}

.sf-order-line:hover {
    background: var(--sf-warm-50);
}

.sf-order-line + .sf-order-line {
    border-top: 1px solid var(--sf-border-light);
}

.sf-order-line-thumb {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: var(--sf-radius-sm);
    background: var(--sf-warm-50);
    color: var(--sf-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sf-order-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-order-line-main {
    flex: 1 1 auto;
    min-width: 0;
}

.sf-order-line-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.sf-order-line-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
    color: var(--sf-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-order-line-remove {
    border: none;
    background: none;
    color: var(--sf-text-light);
    padding: 0 0.1rem;
    font-size: 1.05rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.sf-order-line-remove:hover {
    color: var(--sf-danger);
}

.sf-order-line-unit {
    font-size: 0.75rem;
    color: var(--sf-text-light);
    margin: 0.1rem 0 0.45rem;
}

.sf-order-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Compact variant of layout.html's .sf-qty stepper */
.sf-qty-sm button {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
}

.sf-qty-sm .sf-qty-value {
    width: 28px;
    font-size: 0.82rem;
}

.sf-order-line-total {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--sf-warm-900);
}

/* Summary + CTA */
.sf-order-rail-summary {
    border-top: 1px solid var(--sf-border-light);
    padding: 0.9rem 1.25rem 0.4rem;
}

.sf-order-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--sf-text-muted);
    margin-bottom: 0.35rem;
}

.sf-order-sum-val {
    font-weight: 600;
    color: var(--sf-text);
}

.sf-order-sum-note {
    font-size: 0.76rem;
    color: var(--sf-text-light);
}

.sf-order-min-note {
    font-size: 0.76rem;
    color: var(--sf-text-light);
    background: var(--sf-warm-50);
    border-radius: var(--sf-radius-sm);
    padding: 0.4rem 0.6rem;
    margin-top: 0.4rem;
}

.sf-order-rail-cta {
    padding: 0.9rem 1.25rem 1.15rem;
}

.sf-order-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 1.15rem;
    font-size: 0.95rem;
}

.sf-order-checkout-total {
    font-weight: 700;
}

.sf-order-secure {
    text-align: center;
    font-size: 0.72rem;
    color: var(--sf-text-light);
    margin: 0.6rem 0 0;
}

/* Empty state */
.sf-order-rail-empty {
    padding: 2.2rem 1.25rem 2.6rem;
    text-align: center;
}

.sf-order-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    border: 1.5px dashed var(--sf-border);
    background: var(--sf-warm-50);
    color: var(--sf-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sf-order-empty-title {
    font-family: var(--sf-font-heading);
    color: var(--sf-warm-800);
    margin-bottom: 0.2rem;
}

.sf-order-empty-hint {
    font-size: 0.82rem;
    color: var(--sf-text-muted);
    margin: 0;
}

/* ── Drawer shell (default presentation) ───────────────────────── */

.sf-order-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1044;
    background: rgba(28, 25, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.sf-order-rail-shell.is-open .sf-order-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.sf-order-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    width: min(400px, 94vw);
    background: var(--sf-cream);
    box-shadow: -12px 0 40px rgba(28, 25, 23, 0.18);
    transform: translateX(102%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 3.4rem 1rem 1rem;
}

.sf-order-rail-shell.is-open .sf-order-panel {
    transform: translateX(0);
}

.sf-order-close {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sf-border);
    background: white;
    color: var(--sf-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sf-order-close:hover {
    color: var(--sf-text);
    border-color: var(--sf-text-light);
}

.sf-order-panel .sf-order-rail {
    flex: 1 1 auto;
    min-height: 0;
}

/* Lock page scroll while the drawer is open (open never becomes true on
   the desktop 3-pane view — nothing dispatches sf-order-open there) */
body.sf-order-drawer-open {
    overflow: hidden;
}

/* Desktop 3-pane override: the shell becomes a plain sticky column */
@media (min-width: 1200px) {
    .sf-order-page .sf-order-rail-shell {
        position: sticky;
        top: 96px;
    }

    .sf-order-page .sf-order-backdrop,
    .sf-order-page .sf-order-close {
        display: none;
    }

    .sf-order-page .sf-order-panel {
        position: static;
        z-index: auto;
        width: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
        transition: none;
        padding: 0;
    }

    .sf-order-page .sf-order-rail {
        max-height: calc(100vh - 128px);
    }

    .sf-order-page .sf-order-bottom-bar {
        display: none;
    }
}

/* ── Bottom bar ────────────────────────────────────────────────── */

.sf-order-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1042;
    padding: 0.6rem max(0.9rem, env(safe-area-inset-right))
             max(0.75rem, env(safe-area-inset-bottom))
             max(0.9rem, env(safe-area-inset-left));
    pointer-events: none; /* only the button is interactive */
    background: linear-gradient(to top,
        color-mix(in srgb, var(--sf-cream), transparent 15%), transparent);
}

.sf-order-bottom-bar.is-empty {
    display: none;
}

.sf-order-bottom-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0.85rem 1.4rem;
    border: none;
    border-radius: var(--sf-radius-full);
    background: var(--sf-warm-900);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--sf-shadow-lg);
    transition: transform 0.2s ease, background 0.25s ease;
}

.sf-order-bottom-btn:hover {
    background: var(--sf-primary);
    transform: translateY(-1px);
}

.sf-order-bottom-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 0.45rem;
    border-radius: var(--sf-radius-full);
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
}

.sf-order-bottom-label {
    flex: 1;
    text-align: left;
}

.sf-order-bottom-total {
    font-weight: 700;
}

/* ── Console CTAs ──────────────────────────────────────────────────
   btn-sf-primary keys off --sf-primary, which defaults to a cold blue
   when the tenant hasn't set primary_color. Console CTAs (rail
   Checkout, quick-view / detail Add to Cart) instead key off the same
   warm button token the card +Add buttons use, so the page reads as
   one palette. btn-sf-primary itself is untouched elsewhere. */

.sf-order-cta {
    background: var(--sf-warm-900);
    border-color: var(--sf-warm-900);
    color: #fff;
}

.sf-order-cta:hover,
.sf-order-cta:focus {
    background: var(--sf-warm-800);
    border-color: var(--sf-warm-800);
    color: #fff;
}

.sf-order-cta:focus-visible {
    outline: none;
    box-shadow: var(--sf-shadow-glow);
}

/* ── Item quick-view modal ─────────────────────────────────────────
   z-ladder: navbar 1020 < bottom bar 1042 < drawer 1044/45 < QV 1050/51.
   #sf-qv-body stays in the DOM permanently (hx-target); .is-open on the
   shell drives all visibility. Mobile-first bottom sheet, centered
   dialog from 768px. */

.sf-qv-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(28, 25, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.sf-qv-shell.is-open .sf-qv-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.sf-qv-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1051;
    background: var(--sf-cream);
    border-radius: var(--sf-radius) var(--sf-radius) 0 0;
    box-shadow: var(--sf-shadow-lg);
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateY(103%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    outline: none;
}

.sf-qv-shell.is-open .sf-qv-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .sf-qv-panel {
        left: 50%;
        top: 50%;
        right: auto;
        bottom: auto;
        width: min(880px, 94vw);
        max-height: min(680px, 90vh);
        border-radius: var(--sf-radius);
        padding-bottom: 0;
        transform: translate(-50%, -50%) scale(0.97);
    }

    .sf-qv-shell.is-open .sf-qv-panel {
        transform: translate(-50%, -50%) scale(1);
    }
}

.sf-qv-close {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sf-border);
    background: white;
    color: var(--sf-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sf-qv-close:hover {
    color: var(--sf-text);
    border-color: var(--sf-text-light);
}

.sf-qv-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-warm-900);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.sf-qv-loading.htmx-request {
    opacity: 1;
}

/* Reserve height while empty/loading so the dialog doesn't collapse */
.sf-qv-body {
    min-height: 220px;
}

body.sf-qv-lock {
    overflow: hidden;
}

/* Fragment layout: stacked (sheet) → two-column dialog at 768px */
.sf-qv-media {
    background: var(--sf-warm-50);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 38vh;
    min-height: 180px;
    overflow: hidden;
    color: var(--sf-text-light);
    font-size: 3rem;
}

.sf-qv-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-qv-info {
    padding: 1.35rem 1.5rem 1.5rem;
}

@media (min-width: 768px) {
    .sf-qv {
        display: grid;
        grid-template-columns: 45% minmax(0, 1fr);
        min-height: 440px;
    }

    .sf-qv-media {
        max-height: none;
        min-height: 100%;
    }

    .sf-qv-info {
        padding: 2rem 2.25rem 1.75rem;
        display: flex;
        flex-direction: column;
    }
}

.sf-qv-category {
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
    align-self: flex-start; /* don't stretch in the flex column */
}

.sf-qv-name {
    font-family: var(--sf-font-heading);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--sf-warm-900);
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.sf-qv-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sf-warm-900);
    margin-bottom: 0.9rem;
}

.sf-qv-desc {
    color: var(--sf-text-muted);
    line-height: 1.65;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.sf-qv-ingredients {
    padding: 0.8rem 1rem;
    background: var(--sf-warm-50);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    font-size: 0.84rem;
    color: var(--sf-text-muted);
    line-height: 1.5;
    margin-bottom: 1.1rem;
}

.sf-qv-ingredients-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sf-text-muted);
    margin-bottom: 0.3rem;
}

.sf-qv-form {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: auto 0 1rem; /* pins to the bottom of the flex column on desktop */
}

.sf-qv-add {
    flex: 1 1 auto;
    max-width: 300px;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
}

.sf-qv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.sf-qv-badges .sf-pill {
    font-size: 0.75rem;
}

.sf-qv-detail-link {
    font-size: 0.82rem;
    color: var(--sf-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sf-qv-detail-link:hover {
    color: var(--sf-warm-900);
}

/* ── Reduced motion ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .sf-order-panel,
    .sf-order-backdrop,
    .sf-order-bottom-btn,
    .sf-cat-link,
    .sf-order-line,
    .sf-qv-panel,
    .sf-qv-backdrop,
    .sf-qv-loading {
        transition: none !important;
    }
}
