:root {
    color-scheme: light;
    --sf-ink: #0f172a;
    --sf-muted: #4b5563;
    --sf-soft: #9ca3af;
    --sf-line: #e5e7eb;
    --sf-line-soft: #f1f2f5;
    --sf-bg: #fafafb;
    --sf-bg-soft: #f6f6f9;
    --sf-surface: #ffffff;
    --sf-brand: #7c3aed;
    --sf-brand-strong: #6d28d9;
    --sf-brand-soft: #ede9fe;
    --sf-brand-tint: #f5f3ff;
    --sf-brand-accent: #a78bfa;
    --sf-success: #15803d;
    --sf-danger: #b91c1c;
    --sf-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --sf-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    --sf-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
    --sf-radius: 14px;
    --sf-radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

/* Forza [hidden] anche quando una regola .class assegna display:grid/flex */
[hidden] { display: none !important; }

/* Skip link a11y */

/* Focus visibile globale */
:focus-visible {
    outline: 2px solid var(--sf-brand);
    outline-offset: 2px;
    border-radius: 6px;
}
button:focus-visible,
a:focus-visible {
    outline-offset: 3px;
}

/* Reduced motion: disabilita animazioni superflue */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}

/* main con tabindex=-1 non deve mostrare outline al focus programmatico */
main:focus { outline: none; }

body {
    font-family: "Inter", "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--sf-bg);
    color: var(--sf-ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01", "ss03";
    letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sf-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.sf-promo {
    background: linear-gradient(90deg, #5b21b6, #7c3aed);
    color: #ffffff;
    text-align: center;
    font-size: 0.82rem;
    padding: 8px 12px;
}

.sf-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--sf-line);
    backdrop-filter: saturate(120%) blur(10px);
}

.sf-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--sf-ink);
    letter-spacing: -0.01em;
}

.sf-brand__mark {
    display: block;
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.sf-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    min-height: 38px;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: var(--sf-bg-soft);
    color: var(--sf-muted);
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.sf-search:focus-within {
    background: var(--sf-surface);
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.sf-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: var(--sf-ink);
    min-width: 0;
}

.sf-search input::placeholder { color: var(--sf-soft); }

.sf-header__actions { display: flex; align-items: center; gap: 8px; }

.sf-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
    color: var(--sf-muted);
    transition: border-color 0.14s, color 0.14s, background 0.14s;
}

.sf-icon-link:hover {
    border-color: var(--sf-brand);
    color: var(--sf-brand);
    background: var(--sf-brand-tint);
}

.sf-icon-link__badge { position: relative; }
.sf-icon-link__badge::after {
    content: attr(data-count);
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sf-brand);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.sf-icon-link__badge[data-count="0"]::after,
.sf-icon-link__badge:not([data-count])::after { display: none; }

.sf-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--sf-bg-soft);
    border: 1px solid var(--sf-line);
}

.sf-lang a {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sf-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.14s, color 0.14s;
}

.sf-lang a.is-active { background: var(--sf-brand); color: #fff; }
.sf-lang a:not(.is-active):hover { color: var(--sf-ink); }
.sf-currency { display: inline-flex; align-items: center; }
.sf-currency select {
    appearance: none;
    background: transparent;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--sf-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.sf-currency select:hover { color: var(--sf-ink); border-color: var(--sf-brand); }
.sf-currency select:focus-visible { outline: 2px solid var(--sf-brand); outline-offset: 1px; }

/* Top categories bar */
.sf-catbar {
    border-bottom: 1px solid var(--sf-line);
    background: var(--sf-surface);
    overflow-x: auto;
}

.sf-catbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    font-size: 0.92rem;
    white-space: nowrap;
}

.sf-catbar a {
    color: var(--sf-muted);
    font-weight: 500;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
}

.sf-catbar a:hover { color: var(--sf-brand); border-bottom-color: var(--sf-brand); }

/* Main */
.sf-main { padding: 56px 0 80px; }
.sf-section + .sf-section { margin-top: 64px; }

.sf-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.sf-section__head h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.sf-section__head p { margin: 6px 0 0; color: var(--sf-muted); }

.sf-section__link { color: var(--sf-brand); font-weight: 600; font-size: 0.92rem; }

/* Hero */
.sf-hero {
    position: relative;
    border-radius: 22px;
    padding: 56px;
    background:
        radial-gradient(at 100% 0%, rgba(167, 139, 250, 0.45), transparent 55%),
        radial-gradient(at 0% 100%, rgba(91, 33, 182, 0.35), transparent 55%),
        linear-gradient(135deg, #1f1147 0%, #3a1d6b 60%, #5b21b6 100%);
    color: #fff;
    overflow: hidden;
}

.sf-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e8defc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sf-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 720px;
}

.sf-hero p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.sf-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--sf-brand-strong);
    font-weight: 700;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.5);
    transition: transform 0.12s;
}

.sf-hero__cta:hover { transform: translateY(-1px); }

/* Category cards */
.sf-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.sf-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px;
    padding: 20px;
    border-radius: var(--sf-radius);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(167, 139, 250, 0.12)), var(--sf-surface);
    border: 1px solid var(--sf-line);
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.14s;
}

.sf-cat-card:hover {
    border-color: var(--sf-brand);
    transform: translateY(-2px);
    box-shadow: var(--sf-shadow-sm);
}

.sf-cat-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sf-ink);
    letter-spacing: -0.01em;
}

.sf-cat-card__cta {
    margin-top: 6px;
    color: var(--sf-brand);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Product cards */
.sf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.sf-card {
    display: flex;
    flex-direction: column;
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    overflow: hidden;
    transition: border-color 0.14s, box-shadow 0.14s, transform 0.12s;
}

.sf-card:hover {
    border-color: var(--sf-brand-soft);
    box-shadow: var(--sf-shadow);
    transform: translateY(-2px);
}

.sf-card__thumb {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background:
        linear-gradient(45deg, var(--sf-bg-soft) 25%, transparent 25%, transparent 75%, var(--sf-bg-soft) 75%) 0 0/16px 16px,
        linear-gradient(45deg, var(--sf-bg-soft) 25%, transparent 25%, transparent 75%, var(--sf-bg-soft) 75%) 8px 8px/16px 16px,
        #fff;
    overflow: hidden;
}

.sf-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    padding: 14px;
}
.sf-card__thumb-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    color: var(--sf-soft);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}
.sf-card__thumb-empty svg { opacity: 0.65; }

/* Category toolbar (filters) */
.sf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-sm);
}

.sf-toolbar__left,
.sf-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sf-toolbar__count {
    color: var(--sf-muted);
    font-size: 0.86rem;
    font-weight: 500;
    margin-right: 6px;
}

.sf-filter {
    position: relative;
}

.sf-filter__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    min-height: 36px;
    background: var(--sf-bg-soft);
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    color: var(--sf-ink);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.sf-filter.is-open .sf-filter__trigger,
.sf-filter__trigger:hover {
    border-color: var(--sf-brand);
    color: var(--sf-brand);
    background: var(--sf-brand-tint);
}

.sf-filter__badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sf-brand);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
}

.sf-filter__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 10px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    box-shadow: var(--sf-shadow-lg);
    z-index: 25;
    display: none;
}

.sf-filter__panel--right { right: 0; left: auto; }

.sf-filter.is-open .sf-filter__panel { display: block; }

.sf-filter__list { max-height: 260px; overflow-y: auto; }

.sf-filter__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--sf-ink);
}

.sf-filter__option:hover { background: var(--sf-brand-tint); }

.sf-filter__option input[type="checkbox"],
.sf-filter__option input[type="radio"] {
    accent-color: var(--sf-brand);
    width: 15px;
    height: 15px;
}

.sf-filter__option-name { flex: 1; }

.sf-filter__option-count {
    color: var(--sf-soft);
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.sf-filter__option--radio { font-weight: 500; }

.sf-filter__price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 6px;
}

.sf-filter__price label { display: grid; gap: 4px; font-size: 0.76rem; color: var(--sf-muted); font-weight: 500; }

.sf-filter__price input {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: var(--sf-surface);
    font: inherit;
    color: var(--sf-ink);
}

.sf-filter__price input:focus {
    outline: 0;
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.sf-filter__hint {
    margin: 8px 6px 4px;
    color: var(--sf-soft);
    font-size: 0.74rem;
}

.sf-chip-reset {
    color: var(--sf-brand);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 8px;
}

.sf-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--sf-brand-soft);
    background: var(--sf-brand-tint);
    color: var(--sf-brand-strong);
    font-size: 0.78rem;
    font-weight: 600;
}

.sf-chip span { font-weight: 700; opacity: 0.65; }
.sf-chip:hover { background: var(--sf-brand-soft); }

.sf-btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.85rem; border-radius: 10px; }

.sf-empty-state {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 60px 20px;
    border: 1px dashed var(--sf-line);
    border-radius: var(--sf-radius);
    background: var(--sf-bg-soft);
    text-align: center;
}

.sf-empty-state h2,
.sf-empty-state h3 { margin: 0; font-size: 1.1rem; }
.sf-empty-state p { margin: 0; color: var(--sf-muted); max-width: 360px; }

/* Search storefront */
.sf-search-form { margin-bottom: 28px; }
.sf-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    background: var(--sf-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.14s, box-shadow 0.14s;
}
.sf-search-input:focus-within {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}
.sf-search-input svg { color: var(--sf-soft); flex: 0 0 auto; margin-left: 4px; }
.sf-search-input input {
    flex: 1;
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sf-ink);
    font: inherit;
    font-size: 0.95rem;
}
.sf-search-input input::placeholder { color: var(--sf-soft); }

.sf-pagination {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.sf-pagination__info {
    color: var(--sf-muted);
    font-size: 0.88rem;
    font-weight: 500;
}
.sf-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.sf-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;
}

/* Modulo plugin: banner promozionale */
.sf-module--promo-banner {
    padding: 8px 22px;
    background: var(--sf-brand-tint);
    color: var(--sf-brand-strong);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid var(--sf-brand-soft);
}

/* Wishlist button (cuore) */
.sf-card-wrap {
    position: relative;
}
.sf-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
    color: var(--sf-soft);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transition: color 0.14s, border-color 0.14s, transform 0.08s;
}
.sf-wishlist-btn:hover {
    color: var(--sf-brand, #7c3aed);
    border-color: var(--sf-brand-soft, #c7b9f5);
    transform: scale(1.05);
}
.sf-wishlist-btn.is-on {
    color: #e11d48;
    border-color: #fda4af;
    background: #fff1f2;
}
.sf-wishlist-btn.is-on svg {
    fill: currentColor;
}
.sf-wishlist-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

/* Blog */
.sf-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.sf-blog-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.16s, box-shadow 0.16s, transform 0.08s;
}
.sf-blog-card:hover {
    border-color: var(--sf-brand-soft, #c7b9f5);
    box-shadow: 0 6px 22px -8px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}
.sf-blog-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.sf-blog-card__cover {
    aspect-ratio: 16 / 9;
    background: var(--sf-bg-soft);
    overflow: hidden;
}
.sf-blog-card__cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.sf-blog-card__cover.is-empty {
    background: linear-gradient(135deg, var(--sf-bg-soft), var(--sf-brand-tint, #f5f3ff));
}
.sf-blog-card__body {
    display: grid;
    gap: 8px;
    padding: 16px 18px 20px;
}
.sf-blog-card__meta {
    color: var(--sf-soft);
    font-size: 0.78rem;
    font-weight: 500;
}
.sf-blog-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.005em;
}
.sf-blog-card__summary {
    margin: 0;
    color: var(--sf-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sf-blog-card__cta {
    margin-top: 4px;
    color: var(--sf-brand);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Blog article page */
.sf-blog-article {
    max-width: 760px;
    margin: 0 auto;
}
.sf-blog-article__head h1 {
    margin: 8px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 700;
}
.sf-blog-article__summary {
    margin: 14px 0 0;
    color: var(--sf-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.sf-blog-article__cover {
    margin: 28px 0;
}
.sf-blog-article__cover img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}
.sf-blog-article__body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--sf-ink);
}
.sf-blog-article__body h2,
.sf-blog-article__body h3 { margin-top: 28px; }
.sf-blog-article__body img { max-width: 100%; height: auto; border-radius: 10px; }
.sf-blog-article__body p { margin: 0 0 18px; }

/* Auth + account */
.sf-auth {
    display: grid;
    place-items: center;
    padding: 32px 0 60px;
}
.sf-auth__card {
    width: 100%;
    max-width: 440px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-sm);
    padding: 32px;
}
.sf-auth__card h1 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.sf-auth__sub { margin: 0 0 22px; color: var(--sf-muted); font-size: 0.92rem; }
.sf-auth__switch { margin: 18px 0 0; text-align: center; color: var(--sf-soft); font-size: 0.88rem; }
.sf-auth__switch a { color: var(--sf-brand-strong); font-weight: 600; text-decoration: none; }
.sf-auth__switch a:hover { text-decoration: underline; }

.sf-form { display: grid; gap: 14px; min-width: 0; }
.sf-form--card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-sm);
    padding: 26px;
    max-width: 720px;
}
.sf-form__row { display: grid; gap: 14px; min-width: 0; }
.sf-form__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sf-form__row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 640px) {
    .sf-form__row--2, .sf-form__row--3 { grid-template-columns: 1fr; }
}
.sf-form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.sf-field { display: grid; gap: 6px; min-width: 0; }
.sf-field__label { color: var(--sf-ink); font-size: 0.86rem; font-weight: 500; }
.sf-field input,
.sf-field select {
    min-width: 0;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sf-line);
    border-radius: 10px;
    background: var(--sf-surface);
    color: var(--sf-ink);
    font: inherit;
    font-size: 0.92rem;
    box-sizing: border-box;
}
.sf-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--sf-muted) 50%), linear-gradient(135deg, var(--sf-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 36px;
}
.sf-field input:focus,
.sf-field select:focus {
    border-color: var(--sf-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.sf-field__hint { color: var(--sf-soft); font-size: 0.8rem; }
.sf-field__error { color: #b91c1c; font-size: 0.82rem; font-weight: 500; }

.sf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sf-ink);
    font-size: 0.88rem;
    cursor: pointer;
}
.sf-checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--sf-brand);
}

.sf-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    border: 1px solid transparent;
}
.sf-alert--error { background: #fee2e2; border-color: #f4b6b3; color: #b91c1c; }
.sf-alert--success { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }

.sf-auth__forgot {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.85rem;
}
.sf-auth__forgot a {
    color: var(--sf-muted);
    text-decoration: none;
}
.sf-auth__forgot a:hover { color: var(--sf-brand-strong); text-decoration: underline; }

.sf-btn--full {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}
.sf-back-link {
    color: var(--sf-soft);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}
.sf-back-link:hover { color: var(--sf-ink); }

.sf-account__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.sf-account__head h1 { margin: 4px 0 0; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.sf-account__sub { margin: 6px 0 0; color: var(--sf-muted); font-size: 0.92rem; }
.sf-account__greet { margin: 0; color: var(--sf-soft); font-size: 0.88rem; }
.sf-account__greet strong { color: var(--sf-ink); }
.sf-account__logout { margin: 0; }

.sf-account__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.sf-account-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-sm);
    padding: 22px;
    display: grid;
    gap: 12px;
    align-content: start;
}
.sf-account-card h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.sf-account-card__hint { margin: 0; color: var(--sf-muted); font-size: 0.85rem; }
.sf-account-card__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.9rem; }
.sf-account-card__list dt { color: var(--sf-soft); font-weight: 500; }
.sf-account-card__list dd { margin: 0; color: var(--sf-ink); }
.sf-account-card__addresses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.88rem; }
.sf-account-card__addresses li { padding: 10px; border: 1px solid var(--sf-line-soft); border-radius: 10px; display: grid; gap: 2px; }
.sf-account-card__orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.88rem; }
.sf-account-card__orders li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--sf-line-soft);
    border-radius: 10px;
}
.sf-account-card__orders small {
    display: block;
    margin-top: 2px;
    color: var(--sf-soft);
    font-size: 0.78rem;
}
.sf-account-card__orders li > span:last-child {
    display: grid;
    justify-items: end;
    gap: 2px;
    white-space: nowrap;
}
.sf-account-card__orders a {
    color: var(--sf-brand-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.sf-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sf-brand-tint);
    color: var(--sf-brand-strong);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
}
.sf-tag--warn {
    background: #fef3c7;
    color: #92400e;
}
.sf-soft { color: var(--sf-soft); }

.sf-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.sf-address-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--sf-shadow-sm);
    display: grid;
    gap: 12px;
}
.sf-address-card header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sf-address-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--sf-ink); }
.sf-address-card footer { display: flex; gap: 6px; }

/* Orders table (account) */
.sf-account__back {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sf-soft);
    text-decoration: none;
    font-size: 0.88rem;
}
.sf-account__back:hover { color: var(--sf-brand-strong); }
.sf-orders-table-wrap {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--sf-shadow-sm);
}
.sf-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.sf-orders-table thead th {
    text-align: left;
    padding: 14px 18px;
    background: #fafafa;
    border-bottom: 1px solid var(--sf-line);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sf-soft);
    font-weight: 600;
}
.sf-orders-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--sf-ink);
    vertical-align: middle;
}
.sf-orders-table tbody tr:last-child td { border-bottom: 0; }
.sf-orders-table tbody tr:hover { background: #fafafa; }
.sf-orders-table__action { text-align: right; white-space: nowrap; }
.sf-btn-sm { min-height: 30px; padding: 0 12px; font-size: 0.82rem; border-radius: 8px; }

.sf-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #4b5563;
    white-space: nowrap;
}
.sf-pill--pending { background: #fef3c7; color: #92400e; }
.sf-pill--confirmed { background: #dbeafe; color: #1e40af; }
.sf-pill--processing { background: #ede9fe; color: #5b21b6; }
.sf-pill--shipped { background: #d1fae5; color: #065f46; }
.sf-pill--delivered { background: #d1fae5; color: #065f46; }
.sf-pill--cancelled { background: #f3f4f6; color: #4b5563; }
.sf-pill--refunded { background: #f3f4f6; color: #4b5563; }
.sf-pill--paid { background: #d1fae5; color: #065f46; }
.sf-pill--failed { background: #fee2e2; color: #991b1b; }

.sf-order-detail {
    display: grid;
    gap: 16px;
}
.sf-order-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sf-order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
    gap: 16px;
    align-items: start;
}
.sf-order-side {
    display: grid;
    gap: 16px;
}
.sf-order-history ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.sf-order-history li {
    padding: 12px 14px;
    border: 1px solid var(--sf-line-soft);
    border-radius: 10px;
    background: #fafafa;
}
.sf-order-history li span {
    display: block;
    margin-top: 2px;
    color: var(--sf-soft);
    font-size: 0.8rem;
}
.sf-order-history li p {
    margin: 6px 0 0;
    color: var(--sf-muted);
    font-size: 0.86rem;
}

.sf-empty {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    padding: 36px 28px;
    text-align: center;
    display: grid;
    gap: 8px;
    justify-items: center;
    box-shadow: var(--sf-shadow-sm);
}
.sf-empty h2 { margin: 0; font-size: 1.15rem; }
.sf-empty p { margin: 0; color: var(--sf-muted); max-width: 360px; }
.sf-empty .sf-btn { margin-top: 10px; }

/* Cart */
.sf-cart__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}
@media (max-width: 880px) {
    .sf-cart__grid { grid-template-columns: 1fr; }
}
.sf-cart__list {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-sm);
    padding: 14px 18px;
}
.sf-cart-table { width: 100%; border-collapse: collapse; }
.sf-cart-table th {
    text-align: left;
    color: var(--sf-soft);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 8px;
    border-bottom: 1px solid var(--sf-line-soft);
}
.sf-cart-table td {
    padding: 14px 8px;
    border-bottom: 1px solid var(--sf-line-soft);
    vertical-align: middle;
    font-size: 0.92rem;
}
.sf-cart-table tbody tr:last-child td { border-bottom: 0; }
.sf-cart-table tr.is-unavailable { opacity: 0.55; }
.sf-cart-table__thumb { width: 76px; }
.sf-cart-table__thumb a { display: block; }
.sf-cart-table__thumb img {
    width: 64px;
    height: 64px;
    box-sizing: border-box;
    object-fit: contain;
    padding: 5px;
    background: var(--sf-bg-soft);
    border-radius: 10px;
    display: block;
}
.sf-cart-table__no-img {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    background: var(--sf-bg-soft);
    border-radius: 10px;
    color: var(--sf-soft);
    font-weight: 700;
    font-size: 0.8rem;
}
.sf-cart-table__name { color: var(--sf-ink); font-weight: 600; text-decoration: none; }
.sf-cart-table__name:hover { color: var(--sf-brand); }
.sf-cart-table__qty {
    width: 76px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: var(--sf-surface);
    color: var(--sf-ink);
    font: inherit;
}
.sf-cart-table__qty:focus {
    outline: none;
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.sf-cart__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.sf-cart__summary {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-sm);
    padding: 22px;
    position: sticky;
    top: 90px;
}
.sf-cart__summary h2 { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--sf-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.sf-cart__total { margin: 8px 0 16px; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sf-cart__guest {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--sf-line-soft);
}
.sf-cart__guest p {
    margin: 0 0 10px;
    color: var(--sf-muted);
    font-size: 0.85rem;
}

/* Checkout */
.sf-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.sf-fieldset legend {
    margin: 0 0 4px;
    color: var(--sf-ink);
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0;
}
.sf-payment-option {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    background: var(--sf-bg-soft);
    cursor: pointer;
    align-items: flex-start;
}
.sf-payment-option input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--sf-brand);
}
.sf-payment-option > div { display: grid; gap: 2px; }

.sf-checkout-summary {
    list-style: none;
    margin: 0 0 16px;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--sf-line-soft);
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
}
.sf-checkout-summary li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: var(--sf-ink);
}
.sf-checkout-summary li > span:last-child { font-variant-numeric: tabular-nums; }
.sf-checkout-summary__row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: var(--sf-muted);
    font-size: 0.9rem;
}
.sf-checkout-summary__row--total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sf-line-soft);
    font-size: 1.05rem;
    color: var(--sf-ink);
    font-weight: 700;
}
.sf-checkout-summary__row--total strong { font-size: 1.15rem; }

/* Order confirmation */
.sf-order-confirmation { max-width: 820px; margin: 0 auto; }
.sf-order-confirmation__head {
    text-align: center;
    padding: 30px 20px 24px;
    background: var(--sf-bg-soft);
    border: 1px solid var(--sf-line);
    border-radius: 16px;
    margin-bottom: 22px;
}
.sf-order-confirmation__icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
}
.sf-order-confirmation__head h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
.sf-order-confirmation__head p { margin: 0; color: var(--sf-muted); }
.sf-order-confirmation__meta { margin-top: 14px !important; font-size: 0.88rem; color: var(--sf-ink) !important; }
.sf-order-confirmation__body { display: grid; gap: 14px; }

/* CMS page */
.sf-page {
    max-width: 760px;
    margin: 0 auto;
}
.sf-page__body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--sf-ink);
}
.sf-page__body h2,
.sf-page__body h3 { margin-top: 28px; }
.sf-page__body p { margin: 0 0 18px; }
.sf-page__body img { max-width: 100%; height: auto; border-radius: 10px; }

.sf-card__body { padding: 16px 18px 20px; display: grid; gap: 6px; }

.sf-card__brand {
    color: var(--sf-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sf-card__name { color: var(--sf-ink); font-weight: 600; font-size: 1rem; line-height: 1.3; }

.sf-card__price-row { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.sf-card__price { font-size: 1.15rem; font-weight: 700; color: var(--sf-ink); font-variant-numeric: tabular-nums; }
.sf-card__price-old { color: var(--sf-soft); font-size: 0.84rem; text-decoration: line-through; }
.sf-co__line-meta del,
.sf-co__line-total del,
.sf-co__item-price del { color: var(--sf-soft); font-size: 0.82em; font-weight: 500; }
.sf-co__line-total,
.sf-co__item-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 6px; }
.sf-product__age-check { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; color: var(--sf-ink); font-size: 0.9rem; }
.sf-product__age-check input { margin-top: 3px; }
.sf-search { position: relative; }
.sf-live-search { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; max-height: min(420px, 65vh); overflow-y: auto; padding: 6px; border: 1px solid var(--sf-line); background: var(--sf-surface); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14); }
.sf-live-search__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 5px 7px; color: var(--sf-ink); text-decoration: none; }
.sf-live-search__item:hover, .sf-live-search__item.is-active { background: var(--sf-soft-bg, #f7f7f8); }
.sf-live-search__item img, .sf-live-search__placeholder { width: 48px; height: 48px; object-fit: contain; padding: 3px; background: #fff; }
.sf-live-search__copy, .sf-live-search__prices { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.sf-live-search__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.sf-live-search__copy small, .sf-live-search__prices del { color: var(--sf-soft); font-size: 0.74rem; }
.sf-live-search__prices { align-items: flex-end; white-space: nowrap; font-size: 0.84rem; }
@media (max-width: 720px) { .sf-live-search__item { grid-template-columns: 42px minmax(0, 1fr); } .sf-live-search__item img, .sf-live-search__placeholder { width: 42px; height: 42px; } .sf-live-search__prices { grid-column: 2; align-items: flex-start; flex-direction: row; } }

.sf-card__cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--sf-brand-tint);
    color: var(--sf-brand);
    font-weight: 600;
    font-size: 0.86rem;
    transition: background 0.14s, color 0.14s;
}

.sf-card:hover .sf-card__cta { background: var(--sf-brand); color: #fff; }

.sf-wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
}
.sf-wishlist-card .sf-card {
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Breadcrumb */
.sf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--sf-soft);
    font-size: 0.82rem;
    margin-bottom: 20px;
}

.sf-breadcrumb a { color: var(--sf-muted); }
.sf-breadcrumb a:hover { color: var(--sf-brand); }
.sf-breadcrumb__sep { opacity: 0.45; }

/* Brand tiles */
.sf-brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.sf-brand-tile {
    display: grid;
    place-items: center;
    min-height: 88px;
    padding: 18px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font-weight: 600;
    transition: border-color 0.14s, color 0.14s;
}

.sf-brand-tile:hover { border-color: var(--sf-brand); color: var(--sf-brand); }

/* Product page */
.sf-product {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
    align-items: start;
}

.sf-gallery__main {
    aspect-ratio: 1 / 1;
    border-radius: var(--sf-radius);
    background:
        linear-gradient(45deg, var(--sf-bg-soft) 25%, transparent 25%, transparent 75%, var(--sf-bg-soft) 75%) 0 0/16px 16px,
        linear-gradient(45deg, var(--sf-bg-soft) 25%, transparent 25%, transparent 75%, var(--sf-bg-soft) 75%) 8px 8px/16px 16px,
        #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    position: relative;
    width: 100%;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: zoom-in;
    appearance: none;
}

.sf-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.sf-gallery__main-empty { color: var(--sf-soft); font-size: 0.86rem; }

.sf-gallery__zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sf-gallery__main:hover .sf-gallery__zoom-hint,
.sf-gallery__main:focus-visible .sf-gallery__zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.sf-gallery__thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.sf-gallery__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.sf-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sf-gallery__thumb.is-active { border-color: var(--sf-brand); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }

.sf-lightbox-open {
    overflow: hidden;
}

.sf-gallery__lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 34px);
    background: rgba(8, 12, 20, 0.88);
    backdrop-filter: blur(8px);
}

.sf-gallery__lightbox[hidden] {
    display: none;
}

.sf-gallery__lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92vw, 1180px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--sf-radius);
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.sf-gallery__lightbox-close,
.sf-gallery__lightbox-nav {
    position: absolute;
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--sf-text);
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.sf-gallery__lightbox-close:hover,
.sf-gallery__lightbox-nav:hover,
.sf-gallery__lightbox-close:focus-visible,
.sf-gallery__lightbox-nav:focus-visible {
    background: var(--sf-brand);
    color: #fff;
}

.sf-gallery__lightbox-close {
    top: 24px;
    right: 24px;
}

.sf-gallery__lightbox-nav--prev {
    left: 24px;
}

.sf-gallery__lightbox-nav--next {
    right: 24px;
}

@media (max-width: 640px) {
    .sf-gallery__lightbox {
        padding: 12px;
    }

    .sf-gallery__lightbox-img {
        max-width: 94vw;
        max-height: 82vh;
    }

    .sf-gallery__lightbox-close {
        top: 12px;
        right: 12px;
    }

    .sf-gallery__lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .sf-gallery__lightbox-nav--prev {
        left: 12px;
    }

    .sf-gallery__lightbox-nav--next {
        right: 12px;
    }
}

.sf-product__brand {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--sf-brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sf-product__title {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.sf-product__meta { margin: 12px 0 24px; display: flex; gap: 16px; color: var(--sf-soft); font-size: 0.86rem; }

.sf-product__pricebox {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    border-radius: var(--sf-radius);
    background: var(--sf-brand-tint);
    border: 1px solid var(--sf-brand-soft);
    margin-bottom: 24px;
}

.sf-product__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sf-product__price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--sf-brand-strong);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.sf-product__old-price {
    color: var(--sf-soft);
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sf-product__price-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sf-product__price-secondary { color: var(--sf-muted); font-size: 0.86rem; }

.sf-product__paylater {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding-top: 4px;
    color: var(--sf-muted);
    font-size: 0.84rem;
}

.sf-product__paylater strong {
    color: #003087;
    font-weight: 800;
}

.sf-product__actions {
    display: grid;
    gap: 12px;
    margin-bottom: 26px;
}

.sf-product__purchase {
    display: grid;
    gap: 14px;
}

.sf-product__cta-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 0; }

.sf-product__quantity {
    display: grid;
    gap: 6px;
    width: 118px;
    color: var(--sf-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.sf-product__quantity input,
.sf-product__option input,
.sf-product__option select,
.sf-product__option textarea {
    width: 100%;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sf-product__quantity input,
.sf-product__option input,
.sf-product__option select {
    min-height: 50px;
    padding: 0 12px;
}

.sf-product__option textarea {
    min-height: 92px;
    padding: 11px 12px;
    resize: vertical;
}

.sf-product__quantity input:focus,
.sf-product__option input:focus,
.sf-product__option select:focus,
.sf-product__option textarea:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px var(--sf-brand-soft);
}

.sf-product__options {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-soft);
}

.sf-product__option {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sf-product__option legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--sf-ink);
    font-size: 0.84rem;
    font-weight: 800;
}

.sf-product__option legend span {
    color: var(--sf-danger);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sf-option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-option-choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.sf-option-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sf-option-choice img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--sf-bg-soft);
}

.sf-option-choice small {
    display: block;
    margin-top: 2px;
    color: var(--sf-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.sf-option-choice:has(input:checked) {
    border-color: var(--sf-brand);
    background: var(--sf-brand-tint);
    box-shadow: 0 0 0 1px var(--sf-brand);
}

.sf-option-choices.is-invalid .sf-option-choice {
    border-color: var(--sf-danger);
}

.sf-option-choices--image .sf-option-choice {
    min-width: 96px;
    justify-content: center;
}

.sf-product__discounts {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
}

.sf-product__discounts h2 {
    margin: 0 0 10px;
    color: var(--sf-ink);
    font-size: 1rem;
}

.sf-product__discount-list {
    display: grid;
    gap: 8px;
}

.sf-product__discount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-soft);
    color: var(--sf-muted);
    font-size: 0.88rem;
}

.sf-product__discount-row strong {
    color: var(--sf-ink);
    font-variant-numeric: tabular-nums;
}

.sf-product__discount-row em {
    color: var(--sf-success);
    font-style: normal;
    font-weight: 800;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.14s, color 0.14s, transform 0.08s;
}

.sf-btn-primary {
    background: linear-gradient(180deg, #8b5cf6, var(--sf-brand));
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.55);
}

.sf-btn-primary:hover { transform: translateY(-1px); }
.sf-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.sf-btn-ghost { background: var(--sf-surface); color: var(--sf-ink); border-color: var(--sf-line); }
.sf-btn-ghost:hover { background: var(--sf-bg-soft); }

.sf-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--sf-success);
    font-weight: 600;
}

.sf-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sf-stock.is-out { color: var(--sf-danger); }

.sf-product__short {
    min-width: 0;
    max-width: 100%;
    margin-bottom: 28px;
    color: var(--sf-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.sf-product__short > * {
    min-width: 0;
    max-width: 100% !important;
}
.sf-product__short p,
.sf-product__short > div,
.sf-product__short ul,
.sf-product__short ol,
.sf-product__short blockquote {
    margin-top: 0;
    margin-bottom: 0.72rem;
}
.sf-product__short p:last-child,
.sf-product__short > div:last-child,
.sf-product__short ul:last-child,
.sf-product__short ol:last-child,
.sf-product__short blockquote:last-child {
    margin-bottom: 0;
}
.sf-product__short ul,
.sf-product__short ol { padding-left: 1.4rem; }
.sf-product__short img,
.sf-product__short video,
.sf-product__short iframe {
    max-width: 100% !important;
    height: auto;
}
.sf-product__short table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
}
.sf-product__short col,
.sf-product__short td,
.sf-product__short th {
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.sf-product__short pre,
.sf-product__short code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.sf-product__short font { font-family: inherit !important; }

.sf-product__description {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--sf-line);
    line-height: 1.7;
    color: var(--sf-ink);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.sf-product__description h3 { margin: 0 0 14px; font-size: 1.25rem; }
.sf-product__description > div {
    min-width: 0;
    max-width: 100%;
}
.sf-product__description > div > div,
.sf-product__description > div > p,
.sf-product__description > div > ul,
.sf-product__description > div > ol,
.sf-product__description > div > blockquote {
    margin-top: 0;
    margin-bottom: 1rem;
}
.sf-product__description > div h2,
.sf-product__description > div h3,
.sf-product__description > div h4 {
    margin: 1.5rem 0 0.7rem;
    line-height: 1.3;
}
.sf-product__description ul,
.sf-product__description ol {
    padding-left: 1.4rem;
}
.sf-product__description img,
.sf-product__description video,
.sf-product__description iframe {
    max-width: 100% !important;
    height: auto;
}
.sf-product__description table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
}
.sf-product__description col,
.sf-product__description td,
.sf-product__description th {
    width: auto !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
}
.sf-product__description td,
.sf-product__description th {
    padding: 8px;
    vertical-align: top;
}
.sf-product__description pre,
.sf-product__description code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.sf-product__description font {
    font-family: inherit !important;
}

.sf-reviews { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--sf-line); }
.sf-reviews__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sf-reviews__head h2 { margin: 0; font-size: 1.4rem; }
.sf-reviews__avg { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; }
.sf-reviews__stars { display: inline-flex; gap: 2px; font-size: 1.1rem; color: var(--sf-line); letter-spacing: 1px; }
.sf-reviews__stars .on { color: #f59e0b; }
.sf-alert { border-radius: var(--sf-radius-sm); padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.sf-alert--success { background: #ecfdf5; color: var(--sf-success); }
.sf-alert--error { background: #fef2f2; color: var(--sf-danger); }
.sf-reviews__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.sf-review { padding: 16px 18px; background: var(--sf-bg-soft); border-radius: var(--sf-radius-sm); }
.sf-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.sf-review p { margin: 4px 0 0; line-height: 1.55; color: var(--sf-ink); }
.sf-review-form { padding: 20px 22px; background: var(--sf-brand-tint); border-radius: var(--sf-radius-sm); margin-top: 8px; }
.sf-review-form h3 { margin: 0 0 14px; font-size: 1.05rem; }
.sf-review-form__rating { display: inline-flex; direction: rtl; border: none; padding: 0; margin: 0 0 14px; }
.sf-review-form__rating input { display: none; }
.sf-review-form__rating label { font-size: 1.6rem; color: var(--sf-line); cursor: pointer; padding: 0 2px; transition: color .15s; }
.sf-review-form__rating input:checked ~ label,
.sf-review-form__rating label:hover,
.sf-review-form__rating label:hover ~ label { color: #f59e0b; }
.sf-review-form__field { display: block; margin-bottom: 12px; }
.sf-review-form__field span { display: block; font-size: .82rem; font-weight: 600; color: var(--sf-muted); margin-bottom: 4px; }
.sf-review-form__field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--sf-line); border-radius: var(--sf-radius-sm); font: inherit; resize: vertical; }
.sf-review-form__field textarea:focus-visible { outline: 2px solid var(--sf-brand); outline-offset: 1px; border-color: var(--sf-brand); }
.sf-review-cta { padding: 22px; background: var(--sf-bg-soft); border-radius: var(--sf-radius-sm); text-align: center; }
.sf-review-cta p { margin: 0 0 12px; }

.sf-product__specs {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.sf-spec {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--sf-bg-soft);
    border: 1px solid var(--sf-line-soft);
}

.sf-spec__label {
    color: var(--sf-soft);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sf-spec__value { margin-top: 4px; color: var(--sf-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Footer */
.sf-footer { margin-top: 80px; padding: 60px 0 30px; background: #0f172a; color: #cbd5f5; }

.sf-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.sf-footer__brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.sf-footer__group h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.sf-footer__group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sf-footer__group a { color: #cbd5f5; font-size: 0.92rem; }
.sf-footer__group a:hover { color: #fff; }

.sf-footer__bar {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    color: #94a3b8;
    font-size: 0.82rem;
}

@media (max-width: 880px) {
    .sf-header__inner { grid-template-columns: auto auto; }
    .sf-search { grid-column: 1 / -1; max-width: none; margin-top: 12px; }
    .sf-product { grid-template-columns: 1fr; }
    .sf-hero { padding: 36px 28px; border-radius: 18px; }
    .sf-order-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-order-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .sf-main { padding: 36px 0 60px; }
    .sf-section + .sf-section { margin-top: 44px; }
    .sf-section__head h2 { font-size: 1.4rem; }
    .sf-product__pricebox { padding: 18px 20px; }
    .sf-order-meta-grid { grid-template-columns: 1fr; }
    .sf-account-card__orders li { flex-direction: column; }
    .sf-account-card__orders li > span:last-child { justify-items: start; }
}

/* Mini-cart drawer + toast (S5) */
.sf-minicart {
    position: fixed; inset: 0; z-index: 90;
    display: flex; justify-content: flex-end;
    pointer-events: none; opacity: 0;
    transition: opacity .18s ease;
}
.sf-minicart.is-open { pointer-events: auto; opacity: 1; }
.sf-minicart__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.42);
}
.sf-minicart__panel {
    position: relative;
    width: min(420px, 100%);
    height: 100%;
    display: flex; flex-direction: column;
    background: var(--sf-surface);
    border-left: 1px solid var(--sf-line);
    box-shadow: var(--sf-shadow-lg);
    transform: translateX(20px);
    transition: transform .22s ease;
}
.sf-minicart.is-open .sf-minicart__panel { transform: translateX(0); }
.sf-minicart__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--sf-line);
}
.sf-minicart__title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.sf-minicart__close {
    background: transparent; border: 0; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: var(--sf-muted);
    padding: 4px 8px;
}
.sf-minicart__close:hover { color: var(--sf-ink); }
.sf-minicart__body {
    flex: 1; overflow-y: auto;
    padding: 16px 22px;
    display: flex; flex-direction: column; gap: 14px;
}
.sf-minicart__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sf-minicart__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px; align-items: start;
}
.sf-minicart__item img,
.sf-minicart__thumb-empty {
    width: 56px; height: 56px; border-radius: 8px;
    box-sizing: border-box;
    object-fit: contain;
    padding: 5px;
    background: var(--sf-brand-soft);
}
.sf-minicart__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sf-minicart__meta a { color: var(--sf-ink); text-decoration: none; min-width: 0; display: block; }
.sf-minicart__meta a:hover { color: var(--sf-brand-strong); }
.sf-minicart__meta strong {
    display: block;
    font-size: .9rem; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sf-minicart__meta .sf-soft { font-size: .8rem; }
.sf-minicart__options {
    color: var(--sf-soft);
    font-size: .76rem;
    line-height: 1.35;
}
.sf-minicart__line {
    align-self: start;
    padding-top: 1px;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}
.sf-minicart__foot {
    padding: 16px 22px;
    border-top: 1px solid var(--sf-line);
    display: flex; flex-direction: column; gap: 10px;
    background: var(--sf-bg);
}
.sf-minicart__totals {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 1rem;
}
.sf-minicart__totals strong { font-size: 1.15rem; }

.sf-toast {
    position: fixed; left: 50%; bottom: 26px;
    transform: translate(-50%, 18px);
    background: #111827; color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 95;
}
.sf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
    .sf-minicart__item {
        grid-template-columns: 52px minmax(0, 1fr);
    }
    .sf-minicart__line {
        grid-column: 2;
        justify-self: start;
        padding-top: 0;
        text-align: left;
    }
}

/* =====================================================================
   Checkout (core .sf-co__*) — struttura condivisa da tutti i temi.
   I temi possono ridefinire i colori tramite le variabili --sf-*.
   ===================================================================== */
.sf-co {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 72px;
}
.sf-co__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--sf-muted);
    font-size: 0.88rem;
    font-weight: 700;
}
.sf-co__back:hover { color: var(--sf-brand); }
.sf-co__hero { margin-bottom: 22px; }
.sf-co__hero h1 {
    margin: 0;
    color: var(--sf-ink);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.05;
}
.sf-co__hero p { margin: 8px 0 0; color: var(--sf-muted); }
.sf-co__hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.sf-co__progress {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sf-co__progress li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: var(--sf-surface);
    color: var(--sf-muted);
    font-size: 0.78rem;
    font-weight: 800;
}
.sf-co__progress li span {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--sf-bg-soft);
    color: var(--sf-muted);
    font-size: 0.72rem;
}
.sf-co__progress li.is-active {
    border-color: var(--sf-brand-soft);
    background: var(--sf-brand-tint);
    color: var(--sf-brand-strong);
}
.sf-co__progress li.is-active span {
    background: var(--sf-brand);
    color: #fff;
}

.sf-co__alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--sf-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}
.sf-co__alert--success { background: #ecfdf5; color: var(--sf-success); }
.sf-co__alert--error { background: #fef2f2; color: var(--sf-danger); }

.sf-co__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
.sf-co__form { display: grid; gap: 18px; min-width: 0; }

.sf-co__card {
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
    padding: 22px;
}
.sf-co__card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.sf-co__num {
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--sf-brand-soft);
    color: var(--sf-brand-strong);
    font-size: 0.8rem;
    font-weight: 800;
}
.sf-co__card-head h2 {
    margin: 0;
    color: var(--sf-ink);
    font-size: 1.05rem;
    line-height: 1.25;
}
.sf-co__card-head p { margin: 4px 0 0; color: var(--sf-muted); font-size: 0.86rem; }
.sf-co__card-head a { color: var(--sf-brand); font-weight: 600; }

.sf-co__empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    padding: 44px 20px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
}
.sf-co__empty-state svg { color: var(--sf-soft); }
.sf-co__empty-state h2 { margin: 0; color: var(--sf-ink); font-size: 1.2rem; }
.sf-co__empty-state p { margin: 0; color: var(--sf-muted); }

.sf-co__lines {
    display: grid;
    gap: 12px;
}
.sf-co__line {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 94px auto 34px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--sf-line-soft);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-soft);
}
.sf-co__line.is-unavailable { opacity: 0.62; }
.sf-co__line-thumb {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
}
.sf-co__line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.sf-co__line-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.sf-co__line-name {
    color: var(--sf-ink);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
}
.sf-co__line-name:hover { color: var(--sf-brand); }
.sf-co__line-meta,
.sf-co__line-options {
    color: var(--sf-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}
.sf-co__line-warn {
    color: var(--sf-danger);
    font-size: 0.82rem;
    font-weight: 800;
}
.sf-co__line-qty input {
    width: 76px;
    min-height: 42px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font: inherit;
    font-weight: 800;
    text-align: center;
}
.sf-co__line-total {
    color: var(--sf-ink);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sf-co__line-remove {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: var(--sf-surface);
    color: var(--sf-muted);
    cursor: pointer;
}
.sf-co__line-remove:hover {
    border-color: rgba(220, 38, 38, 0.28);
    color: var(--sf-danger);
    background: #fef2f2;
}
.sf-co__lines-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}
.sf-co__lines-actions .sf-co__btn-ghost {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.sf-co__field, .sf-co__notes { display: grid; gap: 7px; margin-top: 12px; }
.sf-co__field:first-of-type { margin-top: 0; }
.sf-co__field label, .sf-co__notes label {
    color: var(--sf-ink);
    font-size: 0.82rem;
    font-weight: 700;
}
.sf-co__field small, .sf-co__notes small { color: var(--sf-soft); font-weight: 600; }
.sf-co__field input,
.sf-co__field textarea,
.sf-co__field select,
.sf-co__notes textarea,
.sf-co__discount-row input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font: inherit;
    padding: 11px 12px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.sf-co__field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--sf-muted) 50%), linear-gradient(135deg, var(--sf-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 36px;
}
.sf-co__notes textarea { min-height: 92px; resize: vertical; }
.sf-co__field input:focus,
.sf-co__field textarea:focus,
.sf-co__field select:focus,
.sf-co__notes textarea:focus,
.sf-co__discount-row input:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px var(--sf-brand-soft);
}

.sf-co__row { display: grid; gap: 14px; margin-top: 12px; }
.sf-co__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-co__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-co__row .sf-co__field { margin-top: 0; }
.sf-co__field--2x { grid-column: span 2; }

/* Indirizzi salvati + metodi: card/tile cliccabili */
.sf-co__addresses, .sf-co__methods { display: grid; gap: 10px; margin-top: 12px; }
.sf-co__addr, .sf-co__method {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.sf-co__addr input[type="radio"], .sf-co__method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sf-co__addr-dot {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid var(--sf-soft);
    transition: border-color 0.15s;
}
.sf-co__addr:has(input:checked),
.sf-co__method:has(input:checked) {
    border-color: var(--sf-brand);
    background: var(--sf-brand-tint);
    box-shadow: 0 0 0 1px var(--sf-brand);
}
.sf-co__addr:has(input:checked) .sf-co__addr-dot,
.sf-co__method:has(input:checked) .sf-co__addr-dot {
    border-color: var(--sf-brand);
    border-width: 6px;
}
.sf-co__addr-body, .sf-co__method-body { display: grid; gap: 3px; min-width: 0; }
.sf-co__addr-label { font-weight: 700; color: var(--sf-ink); font-size: 0.9rem; }
.sf-co__addr-label em {
    font-style: normal;
    margin-left: 6px;
    font-size: 0.72rem;
    color: var(--sf-brand-strong);
    background: var(--sf-brand-soft);
    padding: 1px 7px;
    border-radius: 999px;
}
.sf-co__addr-detail { color: var(--sf-muted); font-size: 0.84rem; }
.sf-co__method-body strong { color: var(--sf-ink); font-size: 0.92rem; }
.sf-co__method-body small { color: var(--sf-muted); font-size: 0.83rem; }
.sf-co__method-price { font-weight: 700; color: var(--sf-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sf-co__payment-discount {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--sf-line-soft);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-soft);
    color: var(--sf-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}
.sf-co__payment-discount strong { color: var(--sf-ink); font-size: 0.9rem; }
.sf-co__payment-discount.is-applied {
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(22, 163, 74, 0.07);
    color: #166534;
}
.sf-co__payment-discount.is-applied strong { color: #166534; }

.sf-co__discount { margin-top: 14px; border-top: 1px solid var(--sf-line-soft); padding-top: 14px; }
.sf-co__discount summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--sf-ink); }
.sf-co__discount-row { display: flex; gap: 8px; margin-top: 10px; }
.sf-co__discount-row input { flex: 1; }
.sf-co__btn-ghost {
    flex: none;
    border: 1px solid var(--sf-line);
    background: var(--sf-bg-soft);
    color: var(--sf-ink);
    border-radius: var(--sf-radius-sm);
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.sf-co__btn-ghost:hover { border-color: var(--sf-brand); color: var(--sf-brand); }

.sf-co__aside-coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 14px;
}
.sf-co__aside-coupon input {
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    color: var(--sf-ink);
    font: inherit;
    padding: 0 12px;
    outline: none;
}
.sf-co__aside-coupon input:focus {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px var(--sf-brand-soft);
}
.sf-co__aside-coupon .sf-co__btn-ghost { min-height: 42px; }

/* Checkbox termini/privacy/marketing */
.sf-co__checkbox {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 22px;
    margin-top: 16px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--sf-muted);
    cursor: pointer;
}
.sf-co__checkbox input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.sf-co__checkbox a { color: var(--sf-brand); font-weight: 600; text-decoration: underline; }
.sf-co__checkbox-box {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--sf-line);
    border-radius: 5px;
    background: var(--sf-surface);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.sf-co__checkbox-box::after {
    content: "";
    width: 5px;
    height: 10px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
    transition: opacity 0.15s, transform 0.15s;
}
.sf-co__checkbox input[type="checkbox"]:checked + .sf-co__checkbox-box {
    border-color: var(--sf-brand);
    background: var(--sf-brand);
}
.sf-co__checkbox input[type="checkbox"]:checked + .sf-co__checkbox-box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}
.sf-co__checkbox input[type="checkbox"]:focus-visible + .sf-co__checkbox-box {
    border-color: var(--sf-brand);
    box-shadow: 0 0 0 3px var(--sf-brand-soft);
}
.sf-co__checkbox-text { min-width: 0; overflow-wrap: anywhere; }

/* Keep checkout consent controls stable across storefront themes. */
.sf-co .sf-co__checkbox {
    position: relative;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
}
.sf-co .sf-co__checkbox > input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.sf-co .sf-co__checkbox > .sf-co__checkbox-box {
    grid-column: 1;
    display: inline-grid !important;
    box-sizing: border-box;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    flex: 0 0 20px !important;
    writing-mode: horizontal-tb !important;
}
.sf-co .sf-co__checkbox > .sf-co__checkbox-box::before {
    content: none !important;
}
.sf-co .sf-co__checkbox > .sf-co__checkbox-text {
    grid-column: 2;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    writing-mode: horizontal-tb !important;
    line-height: 1.45 !important;
}
.sf-co__legal-note {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: var(--sf-radius-sm);
    background: rgba(245, 158, 11, 0.08);
    color: #7c2d12;
    font-size: 0.84rem;
    line-height: 1.45;
}
.sf-co__legal-note strong { color: #7c2d12; font-size: 0.9rem; }
.sf-co__legal-note p { margin: 0; }
.sf-co__legal-note a {
    justify-self: start;
    color: #7c2d12;
    font-weight: 700;
    text-decoration: underline;
}

.sf-co__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
    min-height: 52px;
    border: 0;
    border-radius: var(--sf-radius-sm);
    background: var(--sf-brand);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}
.sf-co__submit:hover:not(:disabled) { background: var(--sf-brand-strong); }
.sf-co__submit:disabled { background: var(--sf-soft); cursor: not-allowed; }
.sf-co__empty { color: var(--sf-muted); font-size: 0.9rem; }

.sf-co__trust {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.sf-co__trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sf-muted);
    font-size: 0.82rem;
}
.sf-co__trust svg { color: var(--sf-brand); flex: none; }

/* Riepilogo laterale sticky */
.sf-co__aside { position: sticky; top: 90px; min-width: 0; }
.sf-co__aside-inner {
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-sm);
    padding: 20px;
}
.sf-co__aside-inner h2 { margin: 0 0 14px; color: var(--sf-ink); font-size: 1.05rem; }
.sf-co__items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.sf-co__items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.sf-co__item-thumb { position: relative; width: 48px; height: 48px; border-radius: var(--sf-radius-sm); overflow: hidden; background: var(--sf-bg-soft); border: 1px solid var(--sf-line); }
.sf-co__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-co__item-thumb em {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--sf-ink);
    color: #fff;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
}
.sf-co__item-info { display: grid; gap: 2px; min-width: 0; }
.sf-co__item-info strong { font-size: 0.86rem; color: var(--sf-ink); font-weight: 600; }
.sf-co__item-info small { color: var(--sf-muted); font-size: 0.78rem; }
.sf-co__item-price { font-weight: 700; font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sf-co__totals { display: grid; gap: 8px; border-top: 1px solid var(--sf-line-soft); padding-top: 14px; }
.sf-co__totals > div { display: flex; justify-content: space-between; gap: 12px; color: var(--sf-muted); font-size: 0.9rem; }
.sf-co__totals span[data-total], .sf-co__totals strong { font-variant-numeric: tabular-nums; }
.sf-co__totals .is-discount { color: var(--sf-success); }
.sf-co__totals .is-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--sf-line);
    color: var(--sf-ink);
    font-size: 1.1rem;
    font-weight: 700;
}
.sf-co__totals .is-total strong { font-size: 1.25rem; }
.sf-co__totals p { margin: 4px 0 0; color: var(--sf-soft); font-size: 0.8rem; text-align: right; }
.sf-co__aside-cta { margin-top: 14px; }
.sf-co__guest-hint {
    margin: 10px 0 0;
    color: var(--sf-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}
.sf-co__guest-hint a {
    color: var(--sf-brand);
    font-weight: 800;
}

@media (max-width: 900px) {
    .sf-co__grid { grid-template-columns: 1fr; }
    .sf-co__aside { position: static; order: -1; }
    .sf-co__hero { display: grid; }
    .sf-co__line {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: start;
    }
    .sf-co__line-thumb { width: 72px; height: 72px; }
    .sf-co__line-qty { grid-column: 2; }
    .sf-co__line-total { grid-column: 3; grid-row: 2; }
    .sf-co__line-remove { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (max-width: 560px) {
    .sf-co__row--2, .sf-co__row--3 { grid-template-columns: 1fr; }
    .sf-co__field--2x { grid-column: auto; }
    .sf-co__card { padding: 18px 16px; }
    .sf-co__progress { display: grid; grid-template-columns: 1fr; }
    .sf-co__line {
        grid-template-columns: 62px minmax(0, 1fr);
    }
    .sf-co__line-thumb { width: 62px; height: 62px; }
    .sf-co__line-qty,
    .sf-co__line-total,
    .sf-co__line-remove {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
    }
    .sf-co__aside-coupon { grid-template-columns: 1fr; }
    .sf-product__cta-row { display: grid; grid-template-columns: 1fr; }
    .sf-product__quantity { width: 100%; }
    .sf-product__discount-row { grid-template-columns: 1fr auto; }
    .sf-product__discount-row em { grid-column: 2; }
}

/* =====================================================================
   Navigazione mobile (hamburger + drawer) — condivisa da tutti i temi.
   ===================================================================== */
.sf-navtoggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
    color: var(--sf-ink);
    cursor: pointer;
}
.sf-navdrawer { display: none; }
.sf-navdrawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 60;
}
.sf-navdrawer__panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 340px);
    background: var(--sf-surface);
    box-shadow: var(--sf-shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    z-index: 61;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sf-navdrawer.is-open { display: block; }
.sf-navdrawer.is-open .sf-navdrawer__backdrop { opacity: 1; }
.sf-navdrawer.is-open .sf-navdrawer__panel { transform: translateX(0); }
.sf-navdrawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--sf-line);
}
.sf-navdrawer__head strong { font-size: 1rem; color: var(--sf-ink); }
.sf-navdrawer__close {
    border: 0;
    background: transparent;
    color: var(--sf-muted);
    cursor: pointer;
    padding: 6px;
    line-height: 0;
}
.sf-navdrawer__list { list-style: none; margin: 0; padding: 8px 0; display: grid; }
.sf-navdrawer__list a {
    display: block;
    padding: 13px 20px;
    color: var(--sf-ink);
    font-weight: 600;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--sf-line-soft);
}
.sf-navdrawer__list a:hover { background: var(--sf-bg-soft); color: var(--sf-brand); }
.sf-navdrawer__foot { margin-top: auto; padding: 16px 20px; display: flex; gap: 16px; border-top: 1px solid var(--sf-line); }
.sf-navdrawer__foot a { color: var(--sf-muted); font-weight: 600; font-size: 0.9rem; }
body.sf-noscroll { overflow: hidden; }

@media (max-width: 820px) {
    .sf-navtoggle { display: inline-flex; }
    .sf-catbar { display: none; }
}

/* Registrazione: selettore tipo account + campi azienda */
.sf-segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-soft);
}
.sf-segmented__opt { position: relative; }
.sf-segmented__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sf-segmented__opt span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sf-muted);
    cursor: pointer;
}
.sf-segmented__opt input:checked + span {
    background: var(--sf-surface);
    color: var(--sf-brand);
    box-shadow: var(--sf-shadow-sm);
}
.sf-company-fields {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px dashed var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-bg-soft);
    margin-top: 4px;
}

/* Cookie banner GDPR */
.sf-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 22px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-lg);
}

.sf-cookie__text { flex: 1 1 auto; min-width: 0; }
.sf-cookie__text strong { display: block; font-size: 0.98rem; color: var(--sf-ink); margin-bottom: 4px; }
.sf-cookie__text p { margin: 0; color: var(--sf-muted); font-size: 0.86rem; line-height: 1.5; }
.sf-cookie__text a { color: var(--sf-brand-strong); font-weight: 600; text-decoration: underline; }

.sf-cookie__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-cookie__btn { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }

@media (max-width: 640px) {
    .sf-cookie {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }
    .sf-cookie__actions { flex-wrap: wrap; }
    .sf-cookie__btn { flex: 1 1 auto; }
}

/* Reso self-service cliente */
.sf-order-return-cta { margin: 0 0 20px; }
.sf-alert--info { background: var(--sf-brand-tint); color: var(--sf-brand-strong); border: 1px solid var(--sf-brand-soft); }
.sf-alert--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sf-return-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.sf-return-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface);
}
.sf-return-item__name { display: grid; gap: 2px; }
.sf-return-item__qty { display: inline-flex; align-items: center; gap: 8px; }
.sf-return-item__qty input { width: 84px; min-height: 40px; border: 1px solid var(--sf-line); border-radius: var(--sf-radius-sm); padding: 6px 10px; font: inherit; }

/* Area cliente: KPI + grafico */
.sf-account-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}
.sf-kpi {
    background: var(--sf-surface);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-sm);
    padding: 16px 18px;
    display: grid;
    gap: 6px;
}
.sf-kpi__label { color: var(--sf-muted); font-size: 0.82rem; font-weight: 600; }
.sf-kpi__value { color: var(--sf-ink); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sf-chart-card { margin-bottom: 20px; }
.sf-chart { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.sf-chart svg { flex: none; }
.sf-chart__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 200px; }
.sf-chart__legend li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--sf-ink); }
.sf-chart__legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.sf-chart__dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
@media (max-width: 720px) {
    .sf-account-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-chart { justify-content: center; }
}
