/* Vitrina pública — mini storefront premium (sfv-) */

body:has(.sfv-store) {
    margin: 0;
}

.sfv-store {
    --sfv-layout-max: 76rem;
    --sfv-layout-gutter: 2rem;
    --sfv-layout-width: min(var(--sfv-layout-max), calc(100% - var(--sfv-layout-gutter)));
    --sfv-bg: #f6f7f8;
    --sfv-surface: #ffffff;
    --sfv-text: #0f172a;
    --sfv-muted: #64748b;
    --sfv-border: rgba(15, 23, 42, 0.08);
    --sfv-shadow: 0 18px 46px -30px rgba(15, 23, 42, 0.32);
    --sf-cart-bar-clearance: 0px;
    min-height: 100vh;
    background: var(--sfv-bg);
    color: var(--sfv-text);
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    font-family: Inter, system-ui, sans-serif;
}

.sfv-store,
.sfv-store * {
    box-sizing: border-box;
}

.sfv-store.has-cart-bar {
    --sf-cart-bar-clearance: calc(4.75rem + env(safe-area-inset-bottom));
    padding-bottom: calc(2rem + var(--sf-cart-bar-clearance));
}

.sfv-store.has-cart-bar .sfv-panels,
.sfv-store.has-cart-bar .sfv-foot {
    scroll-margin-bottom: var(--sf-cart-bar-clearance);
}

.sfv-store.has-cart-bar .sfv-product-grid,
.sfv-store.has-cart-bar .sfv-service-list {
    padding-bottom: 1.25rem;
}

/* Hero */
.sfv-hero {
    position: relative;
}

.sfv-hero-cover {
    position: relative;
    height: clamp(9rem, 30vw, 12rem);
    overflow: hidden;
    background: linear-gradient(145deg, #f4f4f5 0%, #ecfdf5 45%, #e4e4e7 100%);
}

.sfv-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfv-hero-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.12) 0%,
        rgba(15, 23, 42, 0.45) 55%,
        rgba(15, 23, 42, 0.62) 100%
    );
}

.sfv-hero-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    width: var(--sfv-layout-width);
    max-width: none;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
}

.sfv-brand-link {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.sfv-hero-card {
    position: relative;
    z-index: 3;
    width: var(--sfv-layout-width);
    margin: -2.75rem auto 0;
    padding: 1.05rem;
    border: 1px solid var(--sfv-card-border, var(--sfv-border));
    border-radius: 18px;
    background: var(--sfv-card-bg, var(--sfv-surface));
    box-shadow: var(--sfv-shadow);
    display: grid;
    gap: 1rem;
}

/* Con banner: card flotante encima, franja superior vacía + gradiente limpio */
.sfv-hero--has-cover .sfv-hero-cover {
    height: clamp(10rem, 30vw, 13rem);
}

.sfv-hero--has-cover .sfv-hero-cover-shade {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.06) 0%,
        rgba(15, 23, 42, 0.14) 55%,
        rgba(15, 23, 42, 0.24) 100%
    );
}

.sfv-hero.sfv-hero--has-cover .sfv-hero-card {
    margin-top: -2.75rem;
    padding-top: 2.1rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 38%, var(--sfv-card-border, rgba(15, 23, 42, 0.08)));
    border-top: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 62%, transparent);
    border-radius: var(--sfv-card-radius, 18px);
    box-shadow:
        var(--sfv-card-shadow, 0 18px 46px -30px rgba(15, 23, 42, 0.32)),
        0 16px 42px color-mix(in srgb, var(--sfv-accent, #02a504) 14%, rgba(15, 23, 42, 0.18)) !important;
    background:
        radial-gradient(120% 90% at 50% -20%, color-mix(in srgb, var(--sfv-accent, #02a504) 28%, transparent), transparent 58%),
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--sfv-accent, #02a504) 12%, transparent) 0%,
            transparent 11%,
            color-mix(in srgb, var(--sfv-card-bg, #fff) 82%, var(--sfv-accent, #02a504) 18%) 28%,
            color-mix(in srgb, var(--sfv-card-bg, #fff) 70%, var(--sfv-accent, #02a504) 30%) 100%
        ) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Línea de acento + brillo superior */
.sfv-hero.sfv-hero--has-cover .sfv-hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--sfv-accent, #02a504) 18%,
        color-mix(in srgb, var(--sfv-accent, #02a504) 70%, #fff) 50%,
        var(--sfv-accent, #02a504) 82%,
        transparent 100%
    );
    opacity: 0.95;
}

.sfv-hero.sfv-hero--has-cover .sfv-hero-card::after {
    display: none;
}

.sfv-hero.sfv-hero--has-cover .sfv-hero-main,
.sfv-hero.sfv-hero--has-cover .sfv-hero-actions {
    position: relative;
    z-index: 1;
}

.sfv-hero.sfv-hero--has-cover .sfv-logo {
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 45%, var(--sfv-card-border, #e2e8f0));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sfv-accent, #02a504) 18%, transparent);
}

.sfv-hero.sfv-hero--has-cover .sfv-hero-stats > li {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 10%, var(--sfv-card-bg, #fff));
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 28%, var(--sfv-card-border, #e2e8f0));
}

.sfv-hero.sfv-hero--has-cover .sfv-hero-stat--open {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 18%, transparent);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 36%, transparent);
    color: color-mix(in srgb, var(--sfv-accent, #02a504) 82%, #111827);
}

@media (min-width: 768px) {
    .sfv-hero-cover {
        height: clamp(12rem, 22vw, 15rem);
    }

    .sfv-hero.sfv-hero--has-cover .sfv-hero-card {
        margin-top: -3rem;
        padding-top: 2rem;
    }

    .sfv-hero-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        padding: 1.25rem 1.45rem;
    }
}

.sfv-hero-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
}

.sfv-logo {
    width: 4.25rem;
    height: 4.25rem;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.45);
    margin-top: -0.25rem;
}

.sfv-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfv-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    font-family: var(--sfv-font-heading, 'Inter', system-ui, sans-serif);
}

.sfv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.72rem;
    color: var(--sfv-muted);
    line-height: 1.35;
}

.sfv-hero-stats > li {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sfv-card-bg, #fff) 90%, var(--sfv-accent, #02a504) 10%);
    border: 1px solid color-mix(in srgb, var(--sfv-card-border, #e2e8f0) 75%, transparent);
    font-weight: 600;
}

.sfv-hero-stats > li:not(:last-child)::after {
    content: none;
}

.sfv-hero-stats .ss-stars {
    font-size: inherit;
}

.sfv-hero-stat--open {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 14%, transparent);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 28%, transparent);
    color: var(--sfv-accent, #02a504);
    font-weight: 600;
}

.sfv-hero-stat--closed {
    background: color-mix(in srgb, #ef4444 12%, transparent);
    border-color: color-mix(in srgb, #ef4444 24%, transparent);
    color: #b91c1c;
    font-weight: 600;
}

.sfv-hero-tagline {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--sfv-muted);
    max-width: 36rem;
}

.sfv-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.sfv-meta-pill {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.sfv-meta-pill--open {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 18%, transparent);
    color: var(--sfv-accent, #02a504);
}

.sfv-meta-pill--closed {
    background: #fef2f2;
    color: #b91c1c;
}

.sfv-meta-pill-sub {
    font-weight: 500;
    opacity: 0.92;
}

.sfv-meta-pill--location::before {
    content: "";
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    margin-right: 0.25rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    vertical-align: 0.05em;
}

/* Actions */
.sfv-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: min(100%, 16rem);
}

.sfv-wa-form {
    margin: 0;
}

.sfv-hero-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.sfv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--sfv-border);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sfv-icon-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.sfv-icon-btn:hover {
    border-color: color-mix(in srgb, var(--sfv-accent), transparent 45%);
    color: var(--sfv-text);
}

.sfv-icon-btn.is-saved,
.sfv-icon-btn.is-saved svg {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

/* Redes del negocio junto a Compartir */
.sfv-network-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
    color: #fff;
}

.sfv-network-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.sfv-network-btn:hover,
.sfv-network-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    outline: none;
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.45);
}

.sfv-network-btn--instagram {
    background: #fff;
    border-color: #e2e8f0;
    color: #be185d;
}

.sfv-network-btn--instagram:hover,
.sfv-network-btn--instagram:focus-visible {
    background: #fdf2f8;
    border-color: #f9a8d4;
    color: #9d174d;
}

.sfv-network-btn--facebook {
    background: #1877f2;
}

.sfv-network-btn--tiktok {
    background: #010101;
}

.sfv-hero-stat--meta {
    color: #64748b;
    font-weight: 500;
}

.sfv-owner-viewing-hint {
    margin: 0;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--sfv-muted);
    line-height: 1.35;
}

.sfv-owner-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.sfv-owner-banner__copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.sfv-owner-banner__copy strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

.sfv-owner-banner__copy p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
}

.sfv-owner-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sfv-owner-banner__actions .sfv-btn {
    min-height: 2.375rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--sfv-btn-radius, 10px);
    box-shadow: none;
}

.sfv-owner-banner__actions .sfv-btn--primary {
    box-shadow: 0 1px 3px color-mix(in srgb, var(--sfv-accent, #02a504) 35%, transparent);
}

.sfv-owner-banner__actions .sfv-btn--primary:hover {
    box-shadow: 0 2px 6px color-mix(in srgb, var(--sfv-accent, #02a504) 48%, transparent);
}

.sfv-action-btn--panel {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 12%, #fff);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 24%, #fff);
    color: color-mix(in srgb, var(--sfv-accent, #02a504) 68%, #111827);
}

.sfv-action-btn--panel:hover {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 18%, #fff);
    color: color-mix(in srgb, var(--sfv-accent, #02a504) 78%, #111827);
}

@media (max-width: 640px) {
    .sfv-owner-banner {
        gap: 0.45rem;
        margin: 0 0 0.65rem;
        padding: 0.55rem 0.65rem;
        border-radius: 10px;
    }

    .sfv-owner-banner__copy strong {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .sfv-owner-banner__copy p {
        display: none;
    }

    .sfv-owner-banner__actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .sfv-owner-banner__actions .sfv-btn {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 2rem;
        padding: 0.28rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 8px;
    }
}

.sfv-action-btn--edit {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.sfv-action-btn--edit:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Seguir / Favoritos / Compartir */
.sfv-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--sfv-border);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.2s;
}

.sfv-action-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.sfv-action-btn--follow.is-following {
    background: #F3FFFA;
    border-color: #bbf7d0;
    color: #02a504;
}

.sfv-action-btn--favorite .sfv-favorite-icon {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.sfv-action-btn--favorite.is-saved {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

.sfv-action-btn--favorite.is-saved .sfv-favorite-icon {
    color: #e11d48;
}

.sfv-action-btn--favorite.is-animating .sfv-favorite-icon {
    animation: sfv-favorite-pop 0.45s ease;
}

@keyframes sfv-favorite-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.sfv-action-btn:hover {
    border-color: color-mix(in srgb, var(--sfv-accent), transparent 45%);
    color: var(--sfv-text);
}

/* Toast */
.store-toast-root {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    max-width: min(22rem, calc(100vw - 2rem));
}

.store-toast {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: #18181b;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.store-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.store-toast--success {
    background: #14532d;
}

/* Modal login favoritos */
.sfv-login-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(24rem, calc(100vw - 2rem));
}

.sfv-login-modal::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.sfv-login-modal__panel {
    position: relative;
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 24px 64px -24px rgba(15, 23, 42, 0.35);
}

.sfv-login-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #71717a;
    cursor: pointer;
}

.sfv-login-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #18181b;
}

.sfv-login-modal__text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #52525b;
}

.sfv-login-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sfv-btn--primary {
    background: var(--sfv-accent, #02a504);
    color: #fff;
    border-color: transparent;
}

.sfv-btn--secondary {
    background: var(--sfv-card-bg, #fff);
    color: var(--sfv-text, #18181b);
    border: 1px solid var(--sfv-card-border, #e4e4e7);
}

.sfv-btn--ghost {
    background: transparent;
    color: #71717a;
    border: 0;
}

.sfv-share-menu--compact {
    display: inline-block;
}

.sfv-share-menu--compact > summary {
    list-style: none;
}

.sfv-share-menu--compact > summary::-webkit-details-marker {
    display: none;
}

.sfv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    border-radius: var(--sfv-btn-radius, 12px);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    min-height: 2.75rem;
}

.sfv-btn--whatsapp {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--sfv-accent, #25D366);
    color: #fff;
    border-color: var(--sfv-accent, #25D366);
    box-shadow:
        0 10px 28px -14px color-mix(in srgb, var(--sfv-accent, #02a504) 70%, transparent);
}

.sfv-btn--whatsapp:hover {
    background: color-mix(in srgb, var(--sfv-accent, #25D366) 86%, #000 14%);
}

.sfv-btn--whatsapp.is-disabled,
.sfv-btn--whatsapp:disabled {
    background: #94a3b8;
    border-color: #94a3b8;
    color: #fff;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}

.sfv-wa-unavailable-note,
.pdp-wa-unavailable-note {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.sfv-btn--secondary {
    padding: 0.65rem 0.85rem;
    background: var(--sfv-card-bg, #fff);
    border-color: var(--sfv-card-border, var(--sfv-border));
    color: var(--sfv-text);
}

.sfv-btn--ghost {
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--sfv-border);
    color: var(--sfv-muted, #475569);
}

.sfv-btn:focus-visible,
.sfv-share-item:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--sfv-accent), transparent 55%);
    outline-offset: 2px;
}

.sfv-btn--soft {
    padding: 0.55rem 0.75rem;
    background: #f1f5f9;
    color: #334155;
}

.sfv-btn--primary {
    padding: 0.55rem 0.85rem;
    background: var(--sfv-accent, #02a504);
    color: #fff;
    border-color: var(--sfv-accent, #02a504);
    box-shadow:
        0 6px 18px -10px color-mix(in srgb, var(--sfv-accent, #02a504) 65%, transparent);
}

.sfv-btn--primary:hover {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 82%, #000 18%);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 82%, #000 18%);
}

.sfv-btn--outline {
    padding: 0.55rem 0.85rem;
    background: var(--sfv-card-bg, #fff);
    border-color: var(--sfv-card-border, #cbd5e1);
    color: var(--sfv-muted, #475569);
}

.sfv-btn--outline:hover {
    border-color: var(--sfv-accent);
    color: var(--sfv-accent);
    background: rgba(255, 255, 255, 0.06);
}

.sfv-btn--sm {
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    min-height: 2.5rem;
}

.sfv-wa-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

/* Shell */
.sfv-shell {
    width: var(--sfv-layout-width);
    margin: 1rem auto 0;
}

.sfv-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    row-gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.sfv-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--sfv-border);
    color: #475569;
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: nowrap;
}

.sfv-badge--ok {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 14%, #fff);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 28%, #fff);
    color: color-mix(in srgb, var(--sfv-accent, #02a504) 72%, #111827);
}

.sfv-badge--neutral {
    background: #f8fafc;
}

/* Tabs — minimal underline */
.sfv-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.35rem;
    border: 1px solid var(--sfv-border);
    border-radius: 14px;
    background: #fff;
    overflow-x: auto;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sfv-tabs::-webkit-scrollbar {
    display: none;
}

.sfv-tab {
    flex: 0 0 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sfv-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sfv-tab:hover {
    color: var(--sfv-text);
}

.sfv-tab.is-active {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 12%, #fff);
    color: color-mix(in srgb, var(--sfv-accent, #02a504) 74%, #111827);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 30%, #fff);
    box-shadow: none;
}

.sfv-tab.is-active .sfv-tab__count {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 12%, #fff);
    color: var(--sfv-accent, #02a504);
}

.sfv-search {
    position: relative;
    margin-bottom: 0;
}

.sfv-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
}

.sfv-catalog-toolbar {
    margin-bottom: 0.8rem;
}

.sfv-catalog-filters,
.sfv-catalog-sorts,
.sfv-catalog-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    margin-bottom: 0.5rem;
}

.sfv-catalog-filters::-webkit-scrollbar,
.sfv-catalog-sorts::-webkit-scrollbar,
.sfv-catalog-categories::-webkit-scrollbar {
    display: none;
}

.sfv-filter-chip {
    flex-shrink: 0;
    border: 1px solid var(--sfv-border);
    background: #fff;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sfv-filter-chip:hover {
    border-color: color-mix(in srgb, var(--sfv-accent), transparent 50%);
}

.sfv-filter-chip.is-active {
    background: color-mix(in srgb, var(--sfv-accent), transparent 88%);
    border-color: color-mix(in srgb, var(--sfv-accent), transparent 55%);
    color: var(--sfv-text);
    font-weight: 600;
}

.sfv-catalog-view {
    display: none;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.15rem;
    border: 1px solid var(--sfv-border);
    border-radius: 999px;
    background: #fff;
}

.sfv-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sfv-view-btn.is-active {
    background: color-mix(in srgb, var(--sfv-accent), transparent 88%);
    color: #064e3b;
}

.sfv-view-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--sfv-accent), transparent 40%);
    outline-offset: 1px;
}

.sfv-filter-chip--cat {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 5%, #fff);
}

.sfv-catalog-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px dashed var(--sfv-border);
    border-radius: 14px;
    background: #fafafa;
    margin-top: 0.5rem;
}

.sfv-catalog-empty[hidden] {
    display: none !important;
}

.sfv-product-card[hidden],
.sfv-service-card[hidden],
[data-catalog-item][hidden] {
    display: none !important;
}

.sfv-catalog-empty h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.sfv-catalog-empty p {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: #71717a;
}

.sfv-store.is-catalog-filtering .sfv-tab.is-active {
    opacity: 0.65;
}

.sfv-search input {
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 0.9rem 0.72rem 2.65rem;
    border: 1px solid var(--sfv-card-border, var(--sfv-border));
    border-radius: 13px;
    background: var(--sfv-card-bg, #fff);
    color: var(--sfv-text, #0f172a);
    font-size: 0.9rem;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sfv-search input::placeholder {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-search input:focus {
    outline: none;
    border-color: var(--sfv-accent, #02a504);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--sfv-accent, #02a504), transparent 78%),
        0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Panels */
.sfv-panels {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.35rem;
    background: transparent;
}

.sfv-panel {
    margin-bottom: 1.75rem;
    background: transparent;
}

.sfv-panel[hidden] {
    display: none !important;
}

.sfv-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.1rem 0 0.75rem;
}

.sfv-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.sfv-panel-head span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sfv-muted);
}

/* Empty */
.sfv-empty-block {
    margin-bottom: 1rem;
}

.sfv-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff;
}

.sfv-empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.sfv-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.sfv-empty > p {
    margin: 0 auto;
    max-width: 22rem;
    font-size: 0.9rem;
    color: var(--sfv-muted);
    line-height: 1.55;
}

.sfv-empty form {
    margin-top: 1.15rem;
}

.sfv-empty .sfv-btn--whatsapp {
    width: auto;
    min-width: 14rem;
}

.sfv-empty-note {
    margin: 1rem 0 0 !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

/* Products */
.sfv-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 19.5rem));
    gap: 1rem;
    align-items: start;
    justify-content: start;
}

.sfv-product-card {
    position: relative;
    scroll-margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    border: 1px solid var(--sfv-card-border, var(--sfv-border));
    border-radius: var(--sfv-card-radius, 14px);
    background: var(--sfv-card-bg, #fff);
    overflow: hidden;
    box-shadow: var(--sfv-card-shadow, 0 1px 2px rgba(15, 23, 42, 0.04));
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sfv-product-save-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 4;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #71717a;
}

.sfv-product-save-btn.is-saved {
    color: #dc2626;
}

.sfv-product-save-btn.is-animating {
    transform: scale(1.12);
    transition: transform 0.2s ease;
}

.sfv-product-card:hover {
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.28);
    transform: translateY(-1px);
}

.sfv-product-media {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3.45;
    height: auto;
    background: #f1f5f9;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.sfv-product-media .blur-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sfv-product-media .blur-image__img,
.sfv-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sfv-product-media.is-image-missing::before {
    content: "Sin imagen";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    z-index: 1;
}

.sfv-product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0.35rem;
    padding: 0.75rem;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(14, 143, 102, 0.08)),
        #eef2f1;
}

.sfv-product-placeholder span {
    font-size: 1.35rem;
    line-height: 1;
}

.sfv-product-placeholder small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.sfv-stock-chip {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #02a504;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.sfv-stock-chip.is-muted {
    color: #64748b;
}

.sfv-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 1.15rem 1.1rem 1.15rem;
    gap: 0.4rem;
}

.sfv-product-card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-family: var(--sfv-font-heading, 'Inter', system-ui, sans-serif);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.sfv-product-card__title a {
    color: var(--sfv-text, #0f172a);
    text-decoration: none;
}

.sfv-product-card__title a:hover {
    color: var(--sfv-accent, #02a504);
}

.sfv-product-card__desc {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--sfv-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.sfv-product-foot {
    margin-top: auto;
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sfv-product-card__price {
    margin: 0.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--sfv-text, #0f172a);
    letter-spacing: -0.03em;
}

.sfv-store .sfv-product-card .sfv-product-card__title a {
    color: var(--sfv-text, #0f172a);
}

.sfv-store .sfv-product-card .sfv-product-card__price,
.sfv-store .sfv-product-card .sfv-product-card__amount {
    color: var(--sfv-text, #0f172a);
}

/* ── Dark theme overrides ─────────────────────────────── */
.sfv-store.is-dark-theme .sfv-product-card .sfv-product-card__title a,
.sfv-store.is-dark-theme .sfv-product-card .sfv-product-card__price,
.sfv-store.is-dark-theme .sfv-product-card .sfv-product-card__amount {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-hero-card {
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}

.sfv-store.is-dark-theme .sfv-hero--has-cover .sfv-hero-cover-shade {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 0%,
        color-mix(in srgb, var(--sfv-accent, #d4a017) 8%, rgba(0, 0, 0, 0.18)) 55%,
        color-mix(in srgb, var(--sfv-accent, #d4a017) 12%, rgba(0, 0, 0, 0.34)) 100%
    );
}

.sfv-store.is-dark-theme .sfv-hero.sfv-hero--has-cover .sfv-hero-card {
    background:
        radial-gradient(115% 85% at 50% -18%, color-mix(in srgb, var(--sfv-accent, #d4a017) 42%, transparent), transparent 55%),
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--sfv-accent, #d4a017) 16%, transparent) 0%,
            transparent 10%,
            color-mix(in srgb, var(--sfv-card-bg, rgba(41, 37, 36, 0.92)) 58%, var(--sfv-accent, #d4a017) 42%) 28%,
            color-mix(in srgb, var(--sfv-card-bg, rgba(41, 37, 36, 0.92)) 48%, var(--sfv-accent, #d4a017) 52%) 100%
        ) !important;
    border-color: color-mix(in srgb, var(--sfv-accent, #d4a017) 45%, var(--sfv-card-border, rgba(212, 160, 23, 0.25)));
    box-shadow:
        var(--sfv-card-shadow, 0 8px 28px rgba(0, 0, 0, 0.35)),
        0 20px 48px color-mix(in srgb, var(--sfv-accent, #d4a017) 22%, rgba(0, 0, 0, 0.45)) !important;
}

.sfv-store.is-dark-theme .sfv-hero.sfv-hero--has-cover .sfv-hero-stats > li {
    background: color-mix(in srgb, var(--sfv-accent, #d4a017) 14%, rgba(255, 255, 255, 0.06));
    border-color: color-mix(in srgb, var(--sfv-accent, #d4a017) 32%, rgba(255, 255, 255, 0.12));
}

.sfv-store.is-dark-theme .sfv-hero.sfv-hero--has-cover .sfv-hero-stat--open {
    background: color-mix(in srgb, var(--sfv-accent, #d4a017) 24%, transparent);
    border-color: color-mix(in srgb, var(--sfv-accent, #d4a017) 45%, transparent);
    color: var(--sfv-accent, #d4a017);
}

.sfv-store.is-dark-theme .sfv-product-card {
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sfv-store.is-dark-theme .sfv-product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: color-mix(in srgb, var(--sfv-accent), transparent 50%);
}

.sfv-store.is-dark-theme .sfv-product-body {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-product-card__meta,
.sfv-store.is-dark-theme .sfv-product-card__desc {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-btn--secondary,
.sfv-store.is-dark-theme .sfv-btn--outline {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.22);
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-btn--secondary:hover,
.sfv-store.is-dark-theme .sfv-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--sfv-accent);
}

.sfv-store.is-dark-theme .sfv-search input,
.sfv-store.is-dark-theme .sfv-search-input,
.sfv-store.is-dark-theme [data-catalog-q],
.sfv-store.is-dark-theme [data-catalog-search] {
    background: color-mix(in srgb, var(--sfv-card-bg, rgba(15, 23, 42, 0.72)) 88%, rgba(255, 255, 255, 0.04));
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.18));
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-search input::placeholder,
.sfv-store.is-dark-theme .sfv-search-input::placeholder {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-search input:focus,
.sfv-store.is-dark-theme .sfv-search-input:focus,
.sfv-store.is-dark-theme [data-catalog-q]:focus,
.sfv-store.is-dark-theme [data-catalog-search]:focus {
    border-color: var(--sfv-accent, #02a504);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--sfv-accent, #02a504), transparent 72%),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

.sfv-store.is-dark-theme .sfv-search-icon {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-badge--ok {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 16%, transparent);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 34%, rgba(148, 163, 184, 0.16));
    color: var(--sfv-accent, #02a504);
}

.sfv-store.is-dark-theme .sfv-stock-chip {
    background: rgba(0, 0, 0, 0.7);
    color: var(--sfv-accent);
    backdrop-filter: blur(8px);
}

.sfv-store.is-dark-theme .sfv-product-save-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #e2e8f0;
    backdrop-filter: blur(8px);
}

.sfv-store.is-dark-theme .sfv-hero-name,
.sfv-store.is-dark-theme .sfv-hero-cat,
.sfv-store.is-dark-theme .sfv-hero-copy h1 {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-hero-meta,
.sfv-store.is-dark-theme .sfv-hero-desc,
.sfv-store.is-dark-theme .sfv-hero-tagline,
.sfv-store.is-dark-theme .sfv-hero-stats {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-meta-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sfv-muted, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sfv-store.is-dark-theme .sfv-logo {
    border-color: rgba(255, 255, 255, 0.15);
}

.sfv-store.is-dark-theme .sfv-product-card__title a {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-product-card__desc {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-product-card__price,
.sfv-store.is-dark-theme .sfv-product-card__amount {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-btn--primary {
    background: var(--sfv-accent);
    color: #fff;
    border-color: transparent;
}

.sfv-store.is-dark-theme .sfv-product-media {
    background: rgba(0, 0, 0, 0.3);
}

.sfv-store.is-dark-theme .sfv-owner-banner {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--sfv-accent, #02a504) 10%, transparent), transparent 85%),
        var(--sfv-card-bg, rgba(255, 255, 255, 0.04));
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
}

.sfv-store.is-dark-theme .sfv-owner-banner__copy strong {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-owner-banner__copy p {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-action-btn--panel {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 14%, rgba(255, 255, 255, 0.03));
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 32%, rgba(148, 163, 184, 0.16));
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-hero-stats > li {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-hero-stat--open {
    background: color-mix(in srgb, var(--sfv-accent) 16%, transparent);
    border-color: color-mix(in srgb, var(--sfv-accent) 32%, transparent);
    color: var(--sfv-accent);
}

.sfv-store.is-dark-theme .sfv-hero-stat--closed {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.sfv-store.is-dark-theme .sfv-tabs {
    background: var(--sfv-card-bg, rgba(15, 23, 42, 0.7));
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
    box-shadow: var(--sfv-card-shadow, 0 8px 28px rgba(0, 0, 0, 0.25));
}

.sfv-store.is-dark-theme .sfv-tab {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-tab.is-active {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 18%, rgba(255, 255, 255, 0.04));
    color: var(--sfv-text, #f8fafc);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 36%, rgba(148, 163, 184, 0.16));
}

.sfv-store.is-dark-theme .sfv-tab__count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sfv-accent);
}

.sfv-store.is-dark-theme .sfv-filter-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-filter-chip--cat {
    background: rgba(255, 255, 255, 0.08);
}

.sfv-store.is-dark-theme .sfv-filter-chip.is-active {
    background: color-mix(in srgb, var(--sfv-accent), transparent 76%);
    border-color: color-mix(in srgb, var(--sfv-accent), transparent 40%);
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-panel-head h2 {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-catalog-toolbar {
    /* Evita el "bloque" de fondo detrás de filtros/tabs en temas oscuros.
       El fondo general ya viene de `--sfv-bg` (tema). */
    background: transparent;
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
    box-shadow: none;
}

.sfv-store.is-dark-theme .sfv-empty {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-hero-stats,
.sfv-store.is-dark-theme .sfv-hero-stats li {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-hero-stats strong {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-meta-pill--open {
    background: color-mix(in srgb, var(--sfv-accent), transparent 82%);
    color: var(--sfv-accent);
}

.sfv-store.is-dark-theme .sfv-meta-pill--closed {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.sfv-store.is-dark-theme .sfv-panel--info {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-info-section__title {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-info-card,
.sfv-store.is-dark-theme .sfv-info-block,
.sfv-store.is-dark-theme .sfv-share-compact {
    background: var(--sfv-card-bg, rgba(15, 23, 42, 0.72));
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
    box-shadow: var(--sfv-card-shadow, 0 1px 2px rgba(15, 23, 42, 0.18));
}

.sfv-store.is-dark-theme .sfv-info-card__label {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-info-card__body,
.sfv-store.is-dark-theme .sfv-info-card p {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-hours-status {
    border-bottom-color: color-mix(in srgb, var(--sfv-card-border, rgba(148, 163, 184, 0.16)), transparent 10%);
}

.sfv-store.is-dark-theme .sfv-hours-status__label {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-hours-status__detail {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-hours-status--open .sfv-hours-status__label {
    color: var(--sfv-accent, #02a504);
}

.sfv-store.is-dark-theme .sfv-hours-summary {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-hours-uniform__lead {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-hours-uniform__time {
    color: var(--sfv-text, #f8fafc);
}

.sfv-store.is-dark-theme .sfv-service-card {
    background: var(--sfv-card-bg, rgba(15, 23, 42, 0.72));
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
    box-shadow: var(--sfv-card-shadow, 0 10px 28px -18px rgba(0, 0, 0, 0.25));
}

.sfv-store.is-dark-theme .sfv-service-card__media {
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.sfv-store.is-dark-theme .sfv-service-card__badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-service-card__badge--today {
    background: color-mix(in srgb, var(--sfv-accent, #02a504), transparent 80%);
    color: var(--sfv-accent, #02a504);
}

.sfv-store.is-dark-theme .sfv-service-card__badge--muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-service-card__category {
    color: var(--sfv-muted, #94a3b8);
}

.sfv-store.is-dark-theme .sfv-catalog-sorts,
.sfv-store.is-dark-theme .sfv-catalog-categories {
    scrollbar-color: var(--sfv-muted, #475569) transparent;
}

.sfv-store.is-dark-theme .sfv-product-card {
    background: var(--sfv-card-bg, rgba(15, 23, 42, 0.7));
    border-color: var(--sfv-card-border, rgba(148, 163, 184, 0.16));
    box-shadow: var(--sfv-card-shadow, 0 8px 28px rgba(0, 0, 0, 0.3));
}

.sfv-store.is-dark-theme .sfv-sold-out-label {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--sfv-muted, #94a3b8);
}

/* ── Themed accent tint on card buttons ──────────────── */
.sfv-product-card__actions .sfv-btn--primary.sfv-btn--card {
    box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--sfv-accent, #02a504) 60%, transparent);
}

.sfv-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.sfv-product-card__actions .sfv-btn--card,
.sfv-btn--card {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: 9px;
    text-align: center;
    line-height: 1.25;
}

.sfv-product-card__actions .sfv-btn--primary.sfv-btn--card {
    box-shadow: 0 2px 8px -4px rgba(14, 143, 102, 0.4);
}

.sfv-product-card__actions .sfv-btn--outline.sfv-btn--card {
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
}

.sfv-sold-out-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
}

/* Panel filters + empty */
.sfv-panel-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sfv-panel-empty {
    padding: 2rem 1.25rem;
    border: 1px dashed var(--sfv-border);
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.sfv-panel-empty p {
    margin: 0 0 0.85rem;
    color: var(--sfv-muted);
    font-size: 0.9rem;
}

/* Services */
.sfv-service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sfv-service-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem 1.15rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--sfv-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.22);
    align-items: start;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sfv-service-card:hover {
    box-shadow: 0 16px 36px -16px rgba(15, 23, 42, 0.26);
    transform: translateY(-1px);
}

@media (min-width: 720px) {
    .sfv-service-card {
        grid-template-columns: 96px 1fr auto;
        gap: 1.15rem 1.25rem;
        align-items: center;
    }
}

.sfv-service-card__media {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border: 1px solid var(--sfv-border);
    flex-shrink: 0;
}

@media (min-width: 720px) {
    .sfv-service-card__media {
        width: 96px;
        height: 96px;
    }
}

.sfv-service-card__media .blur-image,
.sfv-service-card__media .sfv-service-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sfv-service-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sfv-accent, #02a504);
    background: color-mix(in srgb, var(--sfv-accent, #02a504), #fff 90%);
}

.sfv-service-card__media:has(.blur-image) .sfv-service-card__placeholder,
.sfv-service-card__media:has(.sfv-service-card__photo) .sfv-service-card__placeholder {
    display: none;
}

.sfv-service-card__media.is-image-missing .sfv-service-card__placeholder {
    display: flex;
}

.sfv-service-card__content {
    min-width: 0;
}

.sfv-service-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}

.sfv-service-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--sfv-text);
    flex: 1 1 12rem;
}

.sfv-service-card__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--sfv-text);
    white-space: nowrap;
}

.sfv-service-card__price-prefix {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sfv-muted);
    margin-right: 0.15rem;
}

.sfv-service-card__description {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--sfv-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.sfv-service-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.sfv-service-card__badge {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
}

.sfv-service-card__badge--today {
    background: #eff6ff;
    color: #1d4ed8;
}

.sfv-service-card__badge--muted {
    background: #f8fafc;
    color: #64748b;
}

.sfv-service-card__category {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.sfv-service-card__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

@media (min-width: 720px) {
    .sfv-service-card__actions {
        grid-column: 3;
        grid-row: 1 / span 2;
        min-width: 11rem;
        align-self: center;
    }
}

.sfv-service-card__actions .sfv-btn {
    width: 100%;
    min-height: 2.5rem;
}

@media (max-width: 719px) {
    .sfv-service-card {
        grid-template-columns: 72px 1fr;
    }

    .sfv-service-card__media {
        width: 72px;
        height: 72px;
    }

    .sfv-service-card__actions {
        padding-top: 0.15rem;
    }
}

.sfv-panel--reviews {
    padding-top: 0.35rem;
}

.sfv-panel--reviews .ss-reviews {
    margin-top: 0;
}

@media (max-width: 640px) {
    .sfv-tabs {
        margin-bottom: 0.5rem;
    }

    .sfv-tab {
        padding: 0.7rem 0.85rem;
        font-size: 0.875rem;
    }

    .sfv-tab.is-active {
        font-weight: 700;
    }
}

/* Info */
.sfv-panel--info {
    margin-bottom: 1.25rem;
}

.sfv-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sfv-info-section__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}

.sfv-info-card,
.sfv-info-block,
.sfv-share-compact {
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--sfv-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sfv-info-card__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.sfv-info-card__body,
.sfv-info-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
}

.sfv-info-section--contact {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .sfv-info-section--contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sfv-info-card--inline p {
    margin: 0;
    font-size: 0.875rem;
}

.sfv-info-card a {
    color: var(--sfv-accent);
    text-decoration: none;
    word-break: break-word;
}

.sfv-info-card a:hover {
    text-decoration: underline;
}

/* Hours */
.sfv-hours-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sfv-hours-status {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #f1f5f9;
}

.sfv-hours-status__label {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.sfv-hours-status__detail {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.sfv-hours-status--open .sfv-hours-status__label {
    color: #02a504;
}

.sfv-hours-status--closed .sfv-hours-status__label {
    color: #b91c1c;
}

.sfv-hours-summary {
    margin: 0;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

.sfv-hours-uniform__lead {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.sfv-hours-uniform__time {
    margin: 0.2rem 0 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.sfv-hours-details {
    margin-top: 0.15rem;
}

.sfv-hours-details__toggle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sfv-accent);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sfv-hours-details__toggle::-webkit-details-marker {
    display: none;
}

.sfv-hours-details[open] .sfv-hours-details__toggle {
    margin-bottom: 0.45rem;
}

.sfv-hours-schedule {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfv-hours-schedule__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.sfv-hours-schedule__row.is-today {
    background: #F3FFFA;
    box-shadow: inset 0 0 0 1px rgba(14, 143, 102, 0.12);
}

.sfv-hours-schedule__row.is-today .sfv-hours-schedule__day {
    color: #02a504;
    font-weight: 700;
}

.sfv-hours-schedule__row.is-closed .sfv-hours-schedule__time {
    color: #94a3b8;
}

.sfv-hours-schedule__day {
    color: #475569;
    font-weight: 600;
}

.sfv-hours-schedule__time {
    color: #0f172a;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

/* Location */
.sfv-location-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sfv-location-address__primary {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}

.sfv-location-address__secondary {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.sfv-location-note {
    margin: 0 !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    line-height: 1.45 !important;
}

.sfv-store-map,
.sfv-mini-map {
    width: 100%;
    height: 17.5rem;
    margin-top: 0.15rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sfv-border);
    background: #f1f5f9;
}

.sfv-location-directions {
    align-self: flex-start;
    gap: 0.35rem;
}

.sfv-location-directions svg {
    flex-shrink: 0;
}

.sfv-info-block h3,
.sfv-share-compact h3 {
    margin: 0 0 0.45rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.sfv-info-block p,
.sfv-info-block li {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.sfv-hours-list,
.sfv-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfv-hours-list li {
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    color: #475569;
}

@media (max-width: 767px) {
    .sfv-info-section__title {
        font-size: 1.125rem;
    }

    .sfv-store-map,
    .sfv-mini-map {
        height: 15rem;
    }

    .sfv-hours-schedule__row {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .sfv-store-map,
    .sfv-mini-map {
        height: 20rem;
        max-height: 22.5rem;
    }
}

.sfv-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sfv-ext-link {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--sfv-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}

.sfv-ext-link:hover {
    border-color: var(--sfv-accent);
    color: var(--sfv-accent);
}

.sfv-info-block a {
    color: var(--sfv-accent);
}

.sfv-share-compact {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.sfv-share-url {
    margin: 0 0 0.65rem !important;
    font-size: 0.78rem !important;
    word-break: break-all;
    color: var(--sfv-muted) !important;
}

.sfv-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sfv-share-menu {
    position: relative;
}

.sfv-share-menu > summary {
    list-style: none;
}

.sfv-share-menu > summary::-webkit-details-marker {
    display: none;
}

.sfv-share-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 12rem;
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid var(--sfv-border);
    background: #fff;
    box-shadow: 0 20px 38px -28px rgba(15, 23, 42, 0.55);
    z-index: 12;
}

.sfv-share-menu--inline .sfv-share-popover {
    right: auto;
    left: 0;
}

.sfv-share-item {
    width: 100%;
    border: 0;
    background: #fff;
    color: #334155;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    display: block;
    text-align: left;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.sfv-share-item:hover {
    background: #f8fafc;
}

/* Footer */
.sfv-foot {
    margin: 2rem 0 0;
    text-align: center;
}

.sfv-foot a {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: none;
}

.sfv-foot a:hover {
    color: var(--sfv-accent);
}

.sfv-location-note {
    margin: 0.35rem 0 0 !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

/* legacy alias */
.sfv-mini-map {
    height: 17.5rem;
}

/* Mobile sticky CTA — ocultar si el carrito inferior está activo */
.sfv-mobile-bar,
.sf-mobile-cta {
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sfv-store.has-cart-bar .sfv-mobile-bar,
.sfv-store.has-mobile-cart-active .sfv-mobile-bar,
.sfv-store.has-cart-bar .sf-mobile-cta,
.sfv-store.has-mobile-cart-active .sf-mobile-cta,
.sfv-mobile-bar.is-cart-suppressed,
.sf-mobile-cta.is-cart-suppressed {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sfv-store.has-cart-bar.has-mobile-cta {
    --sf-cart-bar-clearance: calc(4.75rem + env(safe-area-inset-bottom));
}

/* Mobile sticky CTA */
.sfv-mobile-bar {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--sfv-border);
    backdrop-filter: blur(12px);
}

.sfv-store.has-cart-bar .sfv-mobile-bar {
    bottom: calc(3.35rem + env(safe-area-inset-bottom));
    padding-bottom: 0.55rem;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.12);
}

.sfv-mobile-bar form {
    max-width: 28rem;
    margin: 0 auto;
}

.sfv-mobile-bar .sfv-btn--whatsapp {
    width: 100%;
}

@media (min-width: 768px) {
    .sfv-mobile-bar {
        display: none;
    }

    .sfv-store.has-cart-bar {
        --sf-cart-bar-clearance: calc(4.5rem + env(safe-area-inset-bottom));
    }

}

@media (max-width: 767px) {
    .sfv-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sfv-hero-copy {
        width: 100%;
    }

    .sfv-hero-stats {
        justify-content: center;
    }

    .sfv-hero-actions {
        width: 100%;
        min-width: 0;
    }

    .sfv-hero-actions-secondary {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .sfv-hero-actions-row {
        grid-template-columns: 1fr;
    }
}

/* Floating order summary bar — fixed to viewport, outside catalog flow */
.sf-cart-bar {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    pointer-events: none;
    opacity: 0;
    transform: translateY(110%);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-cart-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sf-cart-bar.is-hidden {
    display: block !important;
    opacity: 0;
    transform: translateY(110%);
    pointer-events: none;
    visibility: hidden;
}

.sf-cart-bar.is-drawer-suppressed,
html.is-cart-drawer-open .sf-cart-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(110%) !important;
}

.sf-cart-bar__dock {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: min(26rem, calc(100vw - 1.5rem));
    margin: 0 auto;
    padding: 0.35rem 0.4rem 0.35rem 0.45rem;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    box-shadow:
        0 12px 32px -10px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.sf-cart-bar__summary {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.2rem 0.35rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.sf-cart-bar__icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sf-cart-bar__meta {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    line-height: 1.25;
}

.sf-cart-bar__count {
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-cart-bar__total {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

.sf-cart-bar__cta {
    flex-shrink: 0;
    min-height: 2.25rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 10px;
    background: #02a504;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

.sf-cart-bar__cta:hover {
    background: #02a504;
}

.sf-cart-bar__cta:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .sf-cart-bar {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
    }

    .sf-cart-bar__dock {
        max-width: 24rem;
    }

    .sf-cart-bar__meta {
        flex-direction: row;
        align-items: baseline;
        gap: 0.45rem;
    }

    .sf-cart-bar__total::before {
        content: "·";
        margin-right: 0.15rem;
        opacity: 0.65;
    }
}

@media (max-width: 767px) {
    .sf-cart-bar {
        left: 12px;
        right: 12px;
        width: auto;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .sf-cart-bar__dock {
        max-width: none;
        width: 100%;
        padding: 0.3rem 0.35rem;
        border-radius: 13px;
    }

    .sf-cart-bar__cta {
        min-height: 2.35rem;
        max-height: 2.55rem;
        padding: 0 0.75rem;
        font-size: 0.75rem;
    }

    .sf-cart-bar__icon {
        width: 1.9rem;
        height: 1.9rem;
    }
}

@media (max-width: 767px) {
    .sfv-panel-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem 0.5rem;
    }

    .sfv-panel-filters .sfv-catalog-filters,
    .sfv-panel-filters .sfv-catalog-sorts,
    .sfv-panel-filters .sfv-catalog-categories {
        flex: 1 1 100%;
        margin-bottom: 0;
    }

    .sfv-catalog-view {
        display: inline-flex;
    }

    .sfv-product-grid:not(.is-list-view) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .sfv-product-grid.is-list-view {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-card {
        border-radius: 12px;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-media {
        aspect-ratio: 1;
        border-radius: 12px 12px 0 0;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-body {
        padding: 0.55rem 0.5rem 0.65rem;
        gap: 0.15rem;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-card__title {
        font-size: 0.8125rem;
        line-height: 1.25;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-card__desc,
    .sfv-product-grid:not(.is-list-view) .sfv-price-compare {
        display: none;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-card__price {
        margin-top: 0.1rem;
        font-size: 0.875rem;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-wholesale-badge {
        font-size: 0.5625rem;
        padding: 0.1rem 0.35rem;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-foot {
        padding-top: 0.35rem;
        gap: 0.35rem;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-stock-chip {
        top: 0.35rem;
        left: 0.35rem;
        max-width: calc(100% - 2.35rem);
        padding: 0.16rem 0.38rem;
        font-size: 0.5625rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-save-btn {
        top: 0.35rem;
        right: 0.35rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.95rem;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-card__actions .sfv-btn--outline {
        display: none;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-btn--card {
        min-height: 2rem;
        padding: 0.38rem 0.45rem;
        font-size: 0.6875rem;
    }

    .sfv-product-grid:not(.is-list-view) .sfv-product-card__actions {
        gap: 0.3rem;
    }

    .sfv-product-card {
        max-width: none;
    }
}

@media (max-width: 639px) {
    .sfv-hero-actions-row {
        grid-template-columns: 1fr;
    }
}

/* Cart FAB spacing on store page */
.sfv-store .sf-cart-fab {
    display: none !important;
}

/* Cart modal overrides — ver whatsapp-cart.css */

/* Inline cart control: the product card becomes the quantity control after adding. */
.sfv-card-cart-control {
    width: 100%;
}

.sfv-card-cart-control > [data-cart-add][hidden] {
    display: none !important;
}

.sfv-card-qty {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr) 2.55rem;
    align-items: stretch;
    min-height: 2.5rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 55%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 6%, var(--sfv-card-bg, #fff));
}

.sfv-card-qty[hidden] {
    display: none;
}

.sfv-card-qty button {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--sfv-accent-strong, #02a504);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}

.sfv-card-qty button:hover {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 12%, transparent);
}

.sfv-card-qty button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfv-card-qty button.is-remove {
    background: #ecfdf5;
    color: #02a504;
}

.sfv-card-qty button.is-remove:hover {
    background: #d1fae5;
    color: #02a504;
}

.sfv-card-qty button.is-remove:focus-visible {
    outline-color: #02a504;
}

.sfv-card-qty button:focus-visible {
    outline: 2px solid var(--sfv-accent, #02a504);
    outline-offset: -2px;
}

.sfv-card-qty > span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-inline: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 18%, transparent);
    color: var(--sfv-text, #13232a);
    font-size: 0.78rem;
    white-space: nowrap;
}

.sfv-card-qty strong {
    font-size: 0.9rem;
}

@media (max-width: 639px) {
    .sfv-card-qty {
        grid-template-columns: 2rem minmax(0, 1fr) 2rem;
        min-height: 2rem;
    }
}

.sf-cart-fab .sf-cart-fab-label {
    display: none;
    font-size: 0.8125rem;
    font-weight: 600;
    font-style: normal;
}

@media (min-width: 480px) {
    .sf-cart-fab .sf-cart-fab-label { display: inline; }
}

