/* ================================================
   STOREFRONT UI - Design System para Vortex
   Adaptado de https://storefrontui.io/v2
   ================================================ */

/* ========================================
   0. UTILITY CLASSES - Display & Visibility
   ======================================== */

/* Display utilities */
.sf-d-none { display: none !important; }
.sf-d-block { display: block !important; }
.sf-d-flex { display: flex !important; }
.sf-d-inline { display: inline !important; }
.sf-d-inline-block { display: inline-block !important; }
.sf-d-inline-flex { display: inline-flex !important; }

/* Small screens (>= 576px) */
@media (min-width: 576px) {
    .sf-d-sm-none { display: none !important; }
    .sf-d-sm-block { display: block !important; }
    .sf-d-sm-flex { display: flex !important; }
    .sf-d-sm-inline { display: inline !important; }
    .sf-d-sm-inline-block { display: inline-block !important; }
    .sf-d-sm-inline-flex { display: inline-flex !important; }
}

/* Medium screens (>= 768px) */
@media (min-width: 768px) {
    .sf-d-md-none { display: none !important; }
    .sf-d-md-block { display: block !important; }
    .sf-d-md-flex { display: flex !important; }
    .sf-d-md-inline { display: inline !important; }
    .sf-d-md-inline-block { display: inline-block !important; }
    .sf-d-md-inline-flex { display: inline-flex !important; }
}

/* Large screens (>= 992px) */
@media (min-width: 992px) {
    .sf-d-lg-none { display: none !important; }
    .sf-d-lg-block { display: block !important; }
    .sf-d-lg-flex { display: flex !important; }
    .sf-d-lg-inline { display: inline !important; }
    .sf-d-lg-inline-block { display: inline-block !important; }
    .sf-d-lg-inline-flex { display: inline-flex !important; }
}

/* Extra large screens (>= 1200px) */
@media (min-width: 1200px) {
    .sf-d-xl-none { display: none !important; }
    .sf-d-xl-block { display: block !important; }
    .sf-d-xl-flex { display: flex !important; }
    .sf-d-xl-inline { display: inline !important; }
    .sf-d-xl-inline-block { display: inline-block !important; }
    .sf-d-xl-inline-flex { display: inline-flex !important; }
}

/* Text utilities */
.sf-text-muted { color: var(--sf-neutral-500) !important; }
.sf-text-primary { color: var(--sf-primary) !important; }
.sf-text-danger { color: var(--sf-negative) !important; }

/* ========================================
   1. CSS VARIABLES / DESIGN TOKENS
   ======================================== */
:root {
    /* Primary Colors - Vortex Brand (Vortex) */
    --sf-primary: #0A84FF;           /* Main Brand Blue */
    --sf-primary-dark: #005BB5;      /* Hover/Active Blue */
    --sf-primary-light: #dbeafe;     /* Light Green for backgrounds */
    --sf-primary-50: #eff6ff;        /* Very light green */
    --sf-primary-100: #dbeafe;
    --sf-primary-200: #bfdbfe;
    --sf-primary-300: #93c5fd;
    --sf-primary-400: #60a5fa;
    --sf-primary-500: #0A84FF;       /* Brand Primary */
    --sf-primary-600: #005BB5;       /* Brand Secondary */
    --sf-primary-700: #0060C7;       /* For text on light bg */
    --sf-primary-800: #1e3a8a;
    --sf-primary-900: #172554;
    
    /* Brand color for text (darker for contrast) */
    --sf-primary-text: #0060C7;      /* Use this for text links */

    /* Secondary Colors */
    --sf-secondary: #1F4ED8;
    --sf-secondary-50: #eff6ff;
    --sf-secondary-100: #dbeafe;
    --sf-secondary-200: #bfdbfe;
    --sf-secondary-500: #3b82f6;
    --sf-secondary-600: #1F4ED8;
    --sf-secondary-700: #1d4ed8;

    /* Vortex Accent + Secondary Brand */
    --sf-accent: #30D5C8;
    --sf-accent-hover: #28B8AC;
    --sf-accent-subtle: rgba(48, 213, 200, 0.12);
    --sf-brand-secondary: #BF5AF2;
    --sf-brand-secondary-hover: #A347D1;
    --sf-brand-secondary-subtle: rgba(191, 90, 242, 0.12);

    /* Neutral Colors (WCAG AA Contrast Compliant) */
    --sf-neutral-50: #fafafa;
    --sf-neutral-100: #f4f4f5;
    --sf-neutral-200: #e4e4e7;
    --sf-neutral-300: #d4d4d8;
    --sf-neutral-400: #71717a;   /* Darkened for text use */
    --sf-neutral-500: #52525b;   /* 7:1 contrast on white */
    --sf-neutral-600: #3f3f46;   /* 9.5:1 contrast on white */
    --sf-neutral-700: #27272a;   /* High contrast */
    --sf-neutral-800: #18181b;   /* Very high contrast */
    --sf-neutral-900: #09090b;   /* Maximum contrast */

    /* Base Colors */
    --sf-white: #ffffff;
    --sf-black: #000000;
    --sf-overlay: rgba(0, 0, 0, 0.5);

    /* Secondary Colors - Extended */
    --sf-secondary-300: #93c5fd;
    --sf-secondary-400: #60a5fa;
    --sf-secondary-800: #1e40af;
    --sf-secondary-900: #1e3a8a;

    /* Cores Semanticas - Padronizado com o design system */
    --sf-positive: #10b981;
    --sf-positive-light: rgba(16, 185, 129, 0.1);
    --sf-positive-50: #ecfdf5;
    --sf-positive-100: #d1fae5;
    --sf-positive-600: #059669;
    --sf-positive-700: #047857;
    --sf-positive-800: #065f46;
    --sf-negative: #dc2626;
    --sf-negative-light: #fee2e2;
    --sf-negative-50: #fef2f2;
    --sf-negative-100: #fee2e2;
    --sf-negative-500: #ef4444;
    --sf-negative-600: #dc2626;
    --sf-negative-700: #b91c1c;
    --sf-negative-800: #991b1b;
    --sf-negative-900: #7f1d1d;
    --sf-warning: #f59e0b;
    --sf-warning-light: #fef3c7;
    --sf-warning-50: #fffbeb;
    --sf-warning-100: #fef3c7;
    --sf-warning-400: #fbbf24;
    --sf-warning-500: #f59e0b;
    --sf-warning-600: #d97706;
    --sf-warning-700: #b45309;
    --sf-warning-800: #92400e;
    --sf-info: #0ea5e9;
    --sf-info-light: #e0f2fe;
    --sf-info-50: #f0f9ff;
    --sf-info-100: #e0f2fe;
    --sf-info-500: #0ea5e9;
    --sf-info-600: #0284c7;
    --sf-info-700: #0369a1;

    /* Extended Color Palette */
    --sf-indigo-50: #eef2ff;
    --sf-indigo-100: #e0e7ff;
    --sf-indigo-500: #6366f1;
    --sf-indigo-600: #4f46e5;
    --sf-indigo-700: #4338ca;
    --sf-indigo-800: #3730a3;

    --sf-purple-50: #faf5ff;
    --sf-purple-100: #f3e8ff;
    --sf-purple-500: #8b5cf6;
    --sf-purple-600: #7c3aed;
    --sf-purple-700: #6d28d9;

    --sf-orange-50: #fff7ed;
    --sf-orange-100: #ffedd5;
    --sf-orange-500: #f97316;
    --sf-orange-600: #ea580c;
    --sf-orange-700: #c2410c;

    --sf-cyan-50: #ecfeff;
    --sf-cyan-100: #cffafe;
    --sf-cyan-500: #06b6d4;
    --sf-cyan-600: #0891b2;

    --sf-teal-50: #f0fdfa;
    --sf-teal-500: #14b8a6;
    --sf-teal-600: #0d9488;

    --sf-pink-50: #fdf2f8;
    --sf-pink-500: #ec4899;
    --sf-pink-600: #db2777;

    /* Apple HIG Button Blue */
    --sf-apple-blue: #0071e3;
    --sf-apple-blue-dark: #005bb5;

    /* Brand Colors */
    --sf-color-whatsapp: #25d366;
    --sf-color-whatsapp-dark: #128c7e;
    --sf-color-waze: #0099CC;
    --sf-color-waze-dark: #007aa3;

    /* Typography (Apple HIG) */
    --sf-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --sf-font-size-xs: 0.75rem;
    --sf-font-size-sm: 0.875rem;
    --sf-font-size-base: 1rem;
    --sf-font-size-lg: 1.125rem;
    --sf-font-size-xl: 1.25rem;
    --sf-font-size-2xl: 1.5rem;
    --sf-font-size-3xl: 1.875rem;
    --sf-font-size-4xl: 2.25rem;

    /* Font Size Aliases (shorthand) */
    --sf-text-xs: var(--sf-font-size-xs);
    --sf-text-sm: var(--sf-font-size-sm);
    --sf-text-base: var(--sf-font-size-base);
    --sf-text-lg: var(--sf-font-size-lg);
    --sf-text-xl: var(--sf-font-size-xl);
    --sf-text-2xl: var(--sf-font-size-2xl);
    --sf-text-3xl: var(--sf-font-size-3xl);
    --sf-text-4xl: var(--sf-font-size-4xl);

    /* Spacing */
    --sf-space-px: 1px;
    --sf-space-0: 0;
    --sf-space-0-5: 0.125rem;
    --sf-space-1: 0.25rem;
    --sf-space-1-5: 0.375rem;
    --sf-space-2: 0.5rem;
    --sf-space-3: 0.75rem;
    --sf-space-4: 1rem;
    --sf-space-5: 1.25rem;
    --sf-space-6: 1.5rem;
    --sf-space-8: 2rem;
    --sf-space-10: 2.5rem;
    --sf-space-12: 3rem;
    --sf-space-16: 4rem;
    --sf-space-20: 5rem;
    --sf-space-24: 6rem;

    /* Size Scale (for components) */
    --size-16: 1rem;
    --size-18: 1.125rem;
    --size-20: 1.25rem;
    --size-24: 1.5rem;
    --size-32: 2rem;
    --size-40: 2.5rem;
    --size-44: 2.75rem;
    --size-48: 3rem;
    --size-56: 3.5rem;
    --size-64: 4rem;
    --size-80: 5rem;
    --size-100: 6.25rem;

    /* Container Widths */
    --container-sm: 40rem;
    --container-md: 48rem;
    --container-lg: 64rem;
    --container-xl: 80rem;
    --container-2xl: 96rem;

    /* Border Radius */
    --sf-rounded-none: 0;
    --sf-rounded-sm: 0.125rem;
    --sf-rounded: 0.25rem;
    --sf-rounded-md: 0.375rem;
    --sf-rounded-lg: 0.5rem;
    --sf-rounded-xl: 0.75rem;
    --sf-rounded-2xl: 1rem;
    --sf-rounded-3xl: 1.5rem;
    --sf-rounded-full: 9999px;

    /* Shadows */
    --sf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sf-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --sf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --sf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --sf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --sf-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --sf-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --sf-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index - Valores altos para garantir sobreposicao correta */
    --sf-z-dropdown: 1000;
    --sf-z-sticky: 1020;
    --sf-z-drawer: 1035;
    --sf-z-modal-backdrop: 1040;
    --sf-z-modal: 1050;
    --sf-z-tooltip: 1070;

    /* ========================================
       APPLE HIG + GOLDEN RATIO TOKENS
       ======================================== */

    /* Line Heights - Golden Ratio inspired */
    --sf-leading-none: 1;
    --sf-leading-tight: 1.25;
    --sf-leading-snug: 1.375;
    --sf-leading-normal: 1.5;
    --sf-leading-relaxed: 1.618;
    --sf-leading-loose: 1.75;

    /* Letter Spacing / Tracking */
    --sf-tracking-tighter: -0.05em;
    --sf-tracking-tight: -0.025em;
    --sf-tracking-normal: 0;
    --sf-tracking-wide: 0.025em;
    --sf-tracking-wider: 0.05em;

    /* Fibonacci Spacing (for section/layout spacing) */
    --sf-fib-1: 0.25rem;
    --sf-fib-2: 0.5rem;
    --sf-fib-3: 0.75rem;
    --sf-fib-5: 1.25rem;
    --sf-fib-8: 2rem;
    --sf-fib-13: 3.25rem;
    --sf-fib-21: 5.25rem;
    --sf-fib-34: 8.5rem;
    --sf-fib-55: 13.75rem;

    /* Golden Ratio Layout */
    --sf-golden-major: 61.8%;
    --sf-golden-minor: 38.2%;
    --sf-golden-ratio: 1.618;

    /* Glass / Vibrancy Effect - Apple Liquid Glass */
    --sf-glass-bg: rgba(255, 255, 255, 0.72);
    --sf-glass-border: rgba(255, 255, 255, 0.18);
    --sf-glass-blur: 20px;
    --sf-glass-saturate: 180%;

    /* Easing Curves - Apple Style */
    --sf-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --sf-ease-in: cubic-bezier(0.42, 0, 1, 1);
    --sf-ease-out: cubic-bezier(0, 0, 0.58, 1);
    --sf-ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
    --sf-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Animation Durations - NNGroup recommended */
    --sf-duration-instant: 100ms;
    --sf-duration-fast: 150ms;
    --sf-duration-base: 250ms;
    --sf-duration-slow: 350ms;
    --sf-duration-slower: 500ms;

    /* Breakpoints (for JS access) */
    --sf-screen-sm: 640px;
    --sf-screen-md: 768px;
    --sf-screen-lg: 1024px;
    --sf-screen-xl: 1280px;
    --sf-screen-2xl: 1536px;

    /* Semantic Layout Colors - Light Mode */
    --bg-card: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    --border-color: #e2e8f0;
}

/* ========================================
   1.1 DARK MODE - Desabilitado no Storefront
   O Storefront sempre usa tema claro
   Para ativar dark mode, usar classe .dark ou data-theme="dark"
   ======================================== */

/* ========================================
   1.2 GLASS EFFECT - Apple Liquid Glass
   ======================================== */
.sf-glass {
    background: var(--sf-glass-bg);
    backdrop-filter: blur(var(--sf-glass-blur)) saturate(var(--sf-glass-saturate));
    -webkit-backdrop-filter: blur(var(--sf-glass-blur)) saturate(var(--sf-glass-saturate));
    border: 1px solid var(--sf-glass-border);
}

.sf-glass--ultra-thin {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px) saturate(120%);
    -webkit-backdrop-filter: blur(4px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sf-glass--thin, .sf-glass--subtle {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sf-glass--thick {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Glass dark variants - apenas via classe .dark */
.dark .sf-glass--ultra-thin { background: rgba(28, 28, 30, 0.3); }
.dark .sf-glass--thin, .dark .sf-glass--subtle { background: rgba(28, 28, 30, 0.5); }
.dark .sf-glass--thick { background: rgba(28, 28, 30, 0.85); }

/* ========================================
   1.3 ACCESSIBILITY - Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --sf-duration-instant: 0ms;
        --sf-duration-fast: 0ms;
        --sf-duration-base: 0ms;
        --sf-duration-slow: 0ms;
        --sf-duration-slower: 0ms;
        --sf-transition-fast: 0ms;
        --sf-transition-base: 0ms;
        --sf-transition-slow: 0ms;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Apple HIG Focus Ring */
*:focus-visible {
    outline: 3px solid var(--sf-info);
    outline-offset: 2px;
}

/* 44px minimum touch targets on mobile (Apple HIG) */
@media (max-width: 768px) {
    .sf-button {
        min-height: 44px;
    }
    .sf-icon-button {
        min-width: 44px;
        min-height: 44px;
    }
    a[class*="sf-button"],
    button[class*="sf-button"] {
        min-height: 44px;
    }
}

/* ========================================
   1.4 TYPOGRAPHY UTILITIES - Apple HIG
   ======================================== */

/* Apple-style display title (responsive tracking + line-height) */
.sf-display-title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08365; /* Apple desktop title */
    letter-spacing: -0.003em;
    color: var(--sf-neutral-900);
}

@media (max-width: 1068px) {
    .sf-display-title {
        line-height: 1.1;
        letter-spacing: 0;
    }
}

@media (max-width: 735px) {
    .sf-display-title {
        line-height: 1.125;
        letter-spacing: 0.004em;
    }
}

/* Golden Ratio body text */
.sf-body-golden {
    line-height: var(--sf-leading-relaxed); /* 1.618 */
    letter-spacing: var(--sf-tracking-wide);
}

/* ========================================
   1.5 LAYOUT UTILITIES - Golden Ratio
   ======================================== */

/* Golden Ratio two-column layout */
.sf-golden-grid {
    display: grid;
    grid-template-columns: var(--sf-golden-major) var(--sf-golden-minor);
    gap: var(--sf-fib-8);
}

.sf-golden-grid--reverse {
    grid-template-columns: var(--sf-golden-minor) var(--sf-golden-major);
}

@media (max-width: 768px) {
    .sf-golden-grid,
    .sf-golden-grid--reverse {
        grid-template-columns: 1fr;
    }
}

/* Fibonacci section spacing */
.sf-section-fib {
    padding-top: var(--sf-fib-21);
    padding-bottom: var(--sf-fib-21);
}

.sf-section-fib--sm {
    padding-top: var(--sf-fib-13);
    padding-bottom: var(--sf-fib-13);
}

/* ========================================
   2. BASE COMPONENTS - SFUI Style
   ======================================== */

/* SfButton - Base Button Component */
.sf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sf-space-2);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--sf-radius-md);
    padding: 0.75rem 1rem;
    min-height: var(--size-40);
    cursor: pointer;
    transition: all var(--sf-transition-base);
    white-space: nowrap;
}

.sf-button:focus-visible {
    outline: 2px solid var(--sf-primary);
    outline-offset: 2px;
}

.sf-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.sf-button--sm {
    padding: var(--sf-space-2) var(--sf-space-3);
    font-size: var(--sf-font-size-sm);
    border-radius: var(--sf-rounded-lg);
    min-height: var(--size-32);
}

.sf-button--base {
    padding: var(--sf-space-3) var(--sf-space-4);
    font-size: var(--sf-font-size-base);
    border-radius: var(--sf-rounded-lg);
    min-height: var(--size-40);
}

.sf-button--lg {
    padding: var(--sf-space-4) var(--sf-space-6);
    font-size: var(--sf-font-size-lg);
    border-radius: var(--sf-rounded-xl);
    min-height: var(--size-48);
}

/* Button Variants - Vortex Brand Colors */
.sf-button--primary {
    background: #0A84FF;  /* Vortex Blue */
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

.sf-button--primary:hover:not(:disabled) {
    background: #005BB5;  /* Vortex Blue Dark */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
}

.sf-button--secondary {
    background: #ffffff;
    color: #18181b;
    border: 1px solid #e4e4e7;
    font-weight: 500;
}

.sf-button--secondary:hover:not(:disabled) {
    background: #f4f4f5;
    border-color: #a1a1aa;  /* 3.6:1 on white - was #d4d4d8 (1.6:1 FAIL) */
}

.sf-button--tertiary {
    background: transparent;
    color: #005BB5;  /* Darker blue for better contrast */
    font-weight: 500;
}

.sf-button--tertiary:hover:not(:disabled) {
    background: rgba(10, 132, 255, 0.08);
    color: #0060C7;
}

/* Button Success - High contrast */
.sf-button--success {
    background: #10b981;
    color: #ffffff;
    font-weight: 600;
}

.sf-button--success:hover:not(:disabled) {
    background: #059669;
}

/* Button Danger - High contrast */
.sf-button--danger {
    background: #dc2626;
    color: #ffffff;
    font-weight: 600;
}

.sf-button--danger:hover:not(:disabled) {
    background: #b91c1c;
}

/* Button Outline Primary */
.sf-button--outline {
    background: transparent;
    color: #005BB5;
    border: 2px solid #0A84FF;
    font-weight: 600;
}

.sf-button--outline:hover:not(:disabled) {
    background: #0A84FF;
    color: #ffffff;
}

/* SfIconButton */
.sf-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-lg);
    cursor: pointer;
    transition: all var(--sf-transition-fast);
    color: var(--sf-neutral-700);
}

.sf-icon-button--sm {
    width: var(--size-32);
    height: var(--size-32);
}

.sf-icon-button--base {
    width: var(--size-40);
    height: var(--size-40);
}

.sf-icon-button--lg {
    width: var(--size-48);
    height: var(--size-48);
}

.sf-icon-button:hover {
    background: var(--sf-neutral-100);
    border-color: var(--sf-neutral-300);
}

.sf-icon-button:focus-visible {
    outline: 2px solid var(--sf-primary);
    outline-offset: 2px;
}

/* SfInput */
.sf-input-wrapper {
    position: relative;
    width: 100%;
}

.sf-input {
    width: 100%;
    padding: var(--sf-space-3) var(--sf-space-4);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-base);
    color: #18181b;  /* High contrast text */
    background: #ffffff;
    border: 1px solid #a1a1aa;  /* 3.6:1 on white - was #d4d4d8 (1.6:1 FAIL for UI components) */
    border-radius: var(--sf-rounded-lg);
    transition: all var(--sf-transition-fast);
}

.sf-input:hover:not(:disabled) {
    border-color: #71717a;  /* 4.7:1 on white - was #a1a1aa (2.7:1 FAIL for UI components) */
}

.sf-input:focus {
    outline: none;
    border-color: #0A84FF;  /* Vortex Blue */
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.sf-input::placeholder {
    color: #71717a;  /* Better contrast placeholder */
}

.sf-input:disabled {
    background: var(--sf-neutral-100);
    cursor: not-allowed;
}

.sf-input--lg {
    padding: var(--sf-space-4) var(--sf-space-5);
    font-size: var(--sf-font-size-lg);
}

/* SfSelect */
.sf-select {
    appearance: none;
    width: 100%;
    padding: var(--sf-space-3) var(--sf-space-10) var(--sf-space-3) var(--sf-space-4);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-base);
    color: var(--sf-neutral-900);
    background: var(--sf-neutral-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2371717a' d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E") no-repeat right var(--sf-space-3) center;
    border: 1px solid var(--sf-neutral-400);  /* UI component needs 3:1 */
    border-radius: var(--sf-rounded-lg);
    cursor: pointer;
    transition: all var(--sf-transition-fast);
}

.sf-select:hover:not(:disabled) {
    border-color: var(--sf-neutral-500);
}

.sf-select:focus {
    outline: none;
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 3px var(--sf-primary-100);
}

/* SfChip */
.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sf-space-1);
    padding: var(--sf-space-1) var(--sf-space-3);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-sm);
    font-weight: 500;
    border-radius: var(--sf-rounded-full);
    transition: all var(--sf-transition-fast);
}

.sf-chip--sm {
    padding: var(--sf-space-0-5) var(--sf-space-2);
    font-size: var(--sf-font-size-xs);
}

.sf-chip--primary {
    background: #0A84FF;
    color: #ffffff;
    font-weight: 600;
}

.sf-chip--secondary {
    background: #f4f4f5;
    color: #18181b;  /* High contrast */
    font-weight: 500;
}

.sf-chip--outline {
    background: transparent;
    border: 1px solid #a1a1aa;  /* 3.6:1 on white - was #d4d4d8 (1.6:1 FAIL) */
    color: #3f3f46;  /* High contrast */
    font-weight: 500;
}

.sf-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--size-16);
    height: var(--size-16);
    margin-left: var(--sf-space-1);
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--sf-rounded-full);
    cursor: pointer;
    transition: background var(--sf-transition-fast);
}

.sf-chip__remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* SfBadge */
.sf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sf-space-0-5) var(--sf-space-2);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-xs);
    font-weight: 600;
    border-radius: var(--sf-rounded);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.sf-badge--primary {
    background: #0A84FF;
    color: #ffffff;
}

.sf-badge--secondary {
    background: #27272a;
    color: #ffffff;
}

.sf-badge--positive {
    background: #dbeafe;
    color: #1e3a8a;  /* Dark green for contrast */
}

.sf-badge--negative {
    background: #fee2e2;
    color: #991b1b;  /* Dark red for contrast */
}

.sf-badge--warning {
    background: #fef3c7;
    color: #92400e;  /* Dark orange for contrast */
}

/* SfRating */
.sf-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.sf-rating__icon {
    color: var(--sf-warning);
    font-size: var(--sf-font-size-base);
}

.sf-rating__icon--empty {
    color: var(--sf-neutral-400);  /* #71717a - 4.7:1 on white, was --sf-neutral-300 (#d4d4d8 1.6:1 FAIL) */
}

.sf-rating__count {
    margin-left: var(--sf-space-2);
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-500);
}

/* SfCounter / Quantity Selector */
.sf-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--sf-neutral-400);  /* UI component needs 3:1 */
    border-radius: var(--sf-rounded-lg);
    overflow: hidden;
}

.sf-counter__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--size-40);
    height: var(--size-40);
    background: var(--sf-neutral-50);
    border: none;
    cursor: pointer;
    transition: background var(--sf-transition-fast);
    color: var(--sf-neutral-700);
}

.sf-counter__button:hover:not(:disabled) {
    background: var(--sf-neutral-100);
}

.sf-counter__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sf-counter__input {
    width: var(--size-48);
    height: var(--size-40);
    padding: 0;
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-base);
    font-weight: 500;
    text-align: center;
    color: var(--sf-neutral-900);
    background: var(--sf-neutral-50);
    border: none;
    border-left: 1px solid var(--sf-neutral-300);
    border-right: 1px solid var(--sf-neutral-300);
}

.sf-counter__input:focus {
    outline: none;
}

/* SfLoaderCircular */
.sf-loader {
    display: inline-block;
    width: var(--size-24);
    height: var(--size-24);
    border: 2px solid var(--sf-neutral-200);
    border-top-color: var(--sf-primary);
    border-radius: var(--sf-rounded-full);
    animation: sf-spin 0.8s linear infinite;
}

.sf-loader--sm {
    width: var(--size-16);
    height: var(--size-16);
    border-width: 2px;
}

.sf-loader--lg {
    width: var(--size-32);
    height: var(--size-32);
    border-width: 3px;
}

@keyframes sf-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   3. ECOMMERCE BLOCKS
   ======================================== */

/* Product Card - Enhanced for better UX */
.sf-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;  /* Pure white for clean look */
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-xl);
    overflow: hidden;
    transition: all var(--sf-transition-base);
}

.sf-product-card:hover {
    border-color: var(--sf-primary);
    box-shadow: 0 8px 30px rgba(10, 132, 255, 0.15);
    transform: translateY(-4px);
}

.sf-product-card__image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faf8 0%, #f4f4f5 100%);
}

.sf-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Changed to contain for better product display */
    object-position: center;
    padding: var(--sf-space-2);
    background: #ffffff;
    transition: transform var(--sf-transition-slow);
}

.sf-product-card:hover .sf-product-card__image {
    transform: scale(1.05);
}

.sf-product-card__badges {
    position: absolute;
    top: var(--sf-space-3);
    left: var(--sf-space-3);
    display: flex;
    flex-direction: column;
    gap: var(--sf-space-1);
}

.sf-product-card__wishlist {
    position: absolute;
    top: var(--sf-space-3);
    right: var(--sf-space-3);
}

.sf-product-card__wishlist-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--sf-neutral-50);
    border: none;
    border-radius: var(--sf-rounded-full);
    box-shadow: var(--sf-shadow);
    cursor: pointer;
    transition: all var(--sf-transition-fast);
    color: var(--sf-neutral-500);
}

.sf-product-card__wishlist-button:hover {
    color: var(--sf-negative);
    transform: scale(1.1);
}

.sf-product-card__wishlist-button.active {
    color: var(--sf-negative);
    background: var(--sf-negative-light);
}

.sf-product-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: var(--sf-space-4);
}

.sf-product-card__category {
    font-size: var(--sf-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sf-primary);
    margin-bottom: var(--sf-space-1);
}

.sf-product-card__name {
    font-size: var(--sf-font-size-base);
    font-weight: 600;
    color: #18181b;  /* High contrast dark */
    margin: 0 0 var(--sf-space-2) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-product-card__name a {
    color: inherit;
    text-decoration: none;
}

.sf-product-card__name a:hover {
    color: var(--sf-primary-600);
}

.sf-product-card__description {
    font-size: var(--sf-font-size-sm);
    color: #374151;  /* Improved contrast - 10:1 ratio */
    line-height: 1.5;
    margin-bottom: var(--sf-space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.sf-product-card__price {
    margin-bottom: var(--sf-space-3);
}

.sf-product-card__price-old {
    font-size: var(--sf-font-size-sm);
    color: #6b7280;  /* Better contrast for strikethrough */
    text-decoration: line-through;
}

.sf-product-card__price-current {
    font-size: var(--sf-font-size-xl);
    font-weight: 700;
    color: #18181b;  /* Maximum contrast */
}

.sf-product-card__price-installment {
    font-size: var(--sf-font-size-xs);
    color: var(--sf-neutral-500);
    margin-top: 2px;
}

.sf-product-card__actions {
    display: flex;
    gap: var(--sf-space-2);
    margin-top: auto;
}

.sf-product-card__view-button {
    flex: 1;
}

/* Product Gallery */
.sf-gallery {
    display: grid;
    gap: var(--sf-space-4);
}

.sf-gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--sf-rounded-xl);
    overflow: hidden;
    background: var(--sf-neutral-100);
}

.sf-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-gallery__thumbs {
    display: flex;
    gap: var(--sf-space-2);
    overflow-x: auto;
    padding: var(--sf-space-1) 0;
}

.sf-gallery__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--sf-rounded-lg);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--sf-transition-fast);
}

.sf-gallery__thumb:hover,
.sf-gallery__thumb.active {
    border-color: var(--sf-primary);
}

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

/* Order Summary */
.sf-order-summary {
    background: var(--sf-neutral-50);
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-xl);
    padding: var(--sf-space-6);
}

.sf-order-summary__title {
    font-size: var(--sf-font-size-lg);
    font-weight: 600;
    color: var(--sf-neutral-900);
    margin: 0 0 var(--sf-space-4) 0;
}

.sf-order-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sf-space-3) 0;
    border-bottom: 1px solid var(--sf-neutral-100);
}

.sf-order-summary__row:last-of-type {
    border-bottom: none;
}

.sf-order-summary__label {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-600);
}

.sf-order-summary__value {
    font-size: var(--sf-font-size-sm);
    font-weight: 500;
    color: var(--sf-neutral-900);
}

.sf-order-summary__total {
    padding-top: var(--sf-space-4);
    margin-top: var(--sf-space-2);
    border-top: 2px solid var(--sf-neutral-200);
}

.sf-order-summary__total .sf-order-summary__label {
    font-size: var(--sf-font-size-base);
    font-weight: 600;
    color: var(--sf-neutral-900);
}

.sf-order-summary__total .sf-order-summary__value {
    font-size: var(--sf-font-size-xl);
    font-weight: 700;
    color: var(--sf-positive);
}

/* Cart Item */
.sf-cart-item {
    display: flex;
    gap: var(--sf-space-4);
    padding: var(--sf-space-4);
    background: var(--sf-neutral-50);
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-xl);
    transition: all var(--sf-transition-fast);
}

.sf-cart-item:hover {
    border-color: var(--sf-neutral-300);
    box-shadow: var(--sf-shadow);
}

.sf-cart-item__image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--sf-rounded-lg);
    overflow: hidden;
    background: var(--sf-neutral-100);
}

.sf-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-cart-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sf-cart-item__name {
    font-size: var(--sf-font-size-base);
    font-weight: 500;
    color: var(--sf-neutral-900);
    margin: 0 0 var(--sf-space-1) 0;
}

.sf-cart-item__details {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-500);
    margin-bottom: var(--sf-space-2);
}

.sf-cart-item__price {
    font-size: var(--sf-font-size-lg);
    font-weight: 600;
    color: var(--sf-neutral-900);
    margin-top: auto;
}

.sf-cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sf-space-2);
}

.sf-cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--size-32);
    height: var(--size-32);
    background: transparent;
    border: none;
    border-radius: var(--sf-rounded-lg);
    cursor: pointer;
    color: var(--sf-neutral-400);
    transition: all var(--sf-transition-fast);
}

.sf-cart-item__remove:hover {
    background: var(--sf-negative-light);
    color: var(--sf-negative);
}

/* Empty State */
.sf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sf-space-16) var(--sf-space-4);
    text-align: center;
}

.sf-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--sf-space-6);
    background: var(--sf-neutral-100);
    border-radius: var(--sf-rounded-full);
    color: var(--sf-neutral-400);
    font-size: 2rem;
}

.sf-empty-state__title {
    font-size: var(--sf-font-size-xl);
    font-weight: 600;
    color: var(--sf-neutral-900);
    margin: 0 0 var(--sf-space-2) 0;
}

.sf-empty-state__description {
    font-size: var(--sf-font-size-base);
    color: var(--sf-neutral-500);
    margin: 0 0 var(--sf-space-6) 0;
    max-width: 400px;
}

/* Trust Badges */
.sf-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sf-space-6);
    padding: var(--sf-space-4) 0;
}

.sf-trust-badge {
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
    font-size: var(--sf-font-size-sm);
    font-weight: 500;
    color: var(--sf-neutral-700);
}

.sf-trust-badge i {
    font-size: var(--sf-font-size-lg);
    color: var(--sf-primary);
}

/* Search Bar */
.sf-search {
    display: flex;
    width: 100%;
    max-width: 480px;
}

.sf-search__input {
    flex: 1;
    padding: var(--sf-space-3) var(--sf-space-4);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-base);
    color: var(--sf-neutral-900);
    background: var(--sf-neutral-50);
    border: 2px solid var(--sf-neutral-200);
    border-right: none;
    border-radius: var(--sf-rounded-lg) 0 0 var(--sf-rounded-lg);
    transition: border-color var(--sf-transition-fast);
}

.sf-search__input:focus {
    outline: none;
    border-color: var(--sf-primary);
}

.sf-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--sf-space-5);
    background: var(--sf-primary);
    border: 2px solid var(--sf-primary);
    border-radius: 0 var(--sf-rounded-lg) var(--sf-rounded-lg) 0;
    color: white;
    cursor: pointer;
    transition: all var(--sf-transition-fast);
}

.sf-search__button:hover {
    background: var(--sf-primary-dark);
    border-color: var(--sf-primary-dark);
}

/* Filter Bar */
.sf-filter-bar {
    background: var(--sf-neutral-50);
    border-bottom: 1px solid var(--sf-neutral-200);
    padding: var(--sf-space-3) 0;
    position: sticky;
    top: 0;
    z-index: var(--sf-z-sticky);
}

.sf-filter-bar__content {
    display: flex;
    align-items: center;
    gap: var(--sf-space-3);
    flex-wrap: wrap;
}

.sf-filter-bar__button {
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
    padding: var(--sf-space-2) var(--sf-space-4);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-sm);
    font-weight: 500;
    color: var(--sf-neutral-700);
    background: var(--sf-neutral-50);
    border: 1px solid var(--sf-neutral-300);
    border-radius: var(--sf-rounded-lg);
    cursor: pointer;
    transition: all var(--sf-transition-fast);
}

.sf-filter-bar__button:hover {
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

.sf-filter-bar__button.active {
    background: var(--sf-primary);
    border-color: var(--sf-primary);
    color: white;
}

.sf-filter-bar__select {
    padding: var(--sf-space-2) var(--sf-space-8) var(--sf-space-2) var(--sf-space-3);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-sm);
    font-weight: 500;
    color: var(--sf-neutral-700);
    background: var(--sf-neutral-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right var(--sf-space-2) center;
    border: 1px solid var(--sf-neutral-300);
    border-radius: var(--sf-rounded-lg);
    cursor: pointer;
    transition: all var(--sf-transition-fast);
    appearance: none;
}

.sf-filter-bar__select:focus {
    outline: none;
    border-color: var(--sf-primary);
}

.sf-filter-bar__select.has-value {
    border-color: var(--sf-primary);
    background-color: var(--sf-primary-50);
}

/* Product Grid */
.sf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sf-space-6);
}

@media (min-width: 1200px) {
    .sf-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .sf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sf-space-3);
    }
}

@media (max-width: 480px) {
    .sf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sf-space-2);
    }

    .sf-product-card__content {
        padding: var(--sf-space-3);
    }

    .sf-product-card__name {
        font-size: var(--sf-font-size-sm);
    }

    .sf-product-card__price-current {
        font-size: var(--sf-font-size-lg);
    }

    .sf-product-card__description {
        display: none;
    }
}

/* Breadcrumb */
.sf-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sf-space-2);
    padding: var(--sf-space-4) 0;
    font-size: var(--sf-font-size-sm);
}

.sf-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
    color: var(--sf-neutral-500);
}

.sf-breadcrumb__item a {
    color: var(--sf-neutral-600);
    text-decoration: none;
    transition: color var(--sf-transition-fast);
}

.sf-breadcrumb__item a:hover {
    color: var(--sf-primary);
}

.sf-breadcrumb__item--active {
    color: var(--sf-neutral-900);
    font-weight: 500;
}

.sf-breadcrumb__separator {
    color: var(--sf-neutral-400);
}

/* Pagination */
.sf-pagination {
    display: flex;
    justify-content: center;
    gap: var(--sf-space-1);
    padding: var(--sf-space-8) 0;
}

.sf-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--size-40);
    height: var(--size-40);
    padding: 0 var(--sf-space-3);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-sm);
    font-weight: 500;
    color: var(--sf-neutral-700);
    background: var(--sf-neutral-50);
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-lg);
    text-decoration: none;
    transition: all var(--sf-transition-fast);
}

.sf-pagination__item:hover:not(.sf-pagination__item--active):not(.sf-pagination__item--disabled) {
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

.sf-pagination__item--active {
    background: var(--sf-primary);
    border-color: var(--sf-primary);
    color: white;
}

.sf-pagination__item--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sf-pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--size-40);
    height: var(--size-40);
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-400);
    user-select: none;
}

/* Toast / Notification (UX-004 Enhanced) */
.sf-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: var(--sf-space-3);
    padding: var(--sf-space-4) var(--sf-space-5);
    background: var(--sf-neutral-900);
    color: white;
    border-radius: var(--sf-rounded-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    max-width: 400px;
    min-width: 280px;
    opacity: 0;
    overflow: hidden;
}

.sf-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.sf-toast.sf-toast--hiding {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
}

/* Progress bar for auto-dismiss countdown */
.sf-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 var(--sf-rounded-xl) var(--sf-rounded-xl);
    animation: sfToastProgress linear forwards;
}

@keyframes sfToastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.sf-toast--success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.sf-toast--error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.sf-toast--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1e293b;
}

.sf-toast--warning .sf-toast__close {
    color: #1e293b;
}

.sf-toast--warning .sf-toast__progress {
    background: rgba(0, 0, 0, 0.2);
}

.sf-toast--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.sf-toast__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.sf-toast__content {
    flex: 1;
    min-width: 0;
}

.sf-toast__title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: var(--sf-font-size-base);
}

.sf-toast__message {
    font-size: var(--sf-font-size-sm);
    opacity: 0.95;
    line-height: 1.4;
}

.sf-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: var(--sf-space-1);
    border-radius: var(--sf-rounded-md);
    transition: all 0.2s ease;
    font-size: 1.125rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-toast__close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Stacked toasts */
.sf-toast:nth-child(2) { top: 148px; }
.sf-toast:nth-child(3) { top: 216px; }

/* ---- UNDO TOAST ---- */
.sf-toast--undo {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left: 4px solid #f59e0b;
    min-width: 320px;
}

.sf-toast__undo-bar {
    display: flex;
    align-items: center;
    gap: var(--sf-space-3);
    margin-top: var(--sf-space-2);
}

.sf-toast__undo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: var(--sf-rounded-md);
    font-size: var(--sf-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sf-toast__undo-btn:hover {
    background: rgba(245, 158, 11, 0.35);
    border-color: #fbbf24;
    color: #fef3c7;
}

.sf-toast__countdown {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, monospace;
}

.sf-toast__progress--undo {
    background: rgba(245, 158, 11, 0.5);
    animation-name: sfToastProgress;
}

/* ========================================
   CONFIRMATION DIALOG (UX-004)
   ======================================== */

.sf-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sf-confirm-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.sf-confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10101;
    background: var(--sf-neutral-50);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: calc(100% - 2rem);
    padding: 1.75rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-confirm-dialog.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.sf-confirm-dialog__icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    /* Default danger colors - overridden by JS */
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.2);
    transition: all 0.2s ease;
}

.sf-confirm-dialog__icon-wrapper[data-variant="warning"] {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.sf-confirm-dialog__icon-wrapper[data-variant="primary"] {
    background: rgba(10, 132, 255, 0.1);
    color: #0A84FF;
    border-color: rgba(10, 132, 255, 0.2);
}

.sf-confirm-dialog__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sf-neutral-900);
    margin: 0 0 0.5rem;
}

.sf-confirm-dialog__message {
    font-size: 0.9rem;
    color: var(--sf-neutral-600);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.sf-confirm-dialog__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.sf-confirm-dialog__actions .sf-button {
    min-height: 44px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
}

.sf-confirm-dialog__actions .sf-button--negative {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.sf-confirm-dialog__actions .sf-button--negative[data-variant="warning"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.sf-confirm-dialog__actions .sf-button--negative[data-variant="primary"] {
    background: linear-gradient(135deg, #0A84FF 0%, #005BB5 100%);
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

@media (max-width: 480px) {
    .sf-confirm-dialog {
        padding: 1.25rem;
        width: calc(100% - 1rem);
    }
    .sf-confirm-dialog__actions {
        flex-direction: column-reverse;
    }
    .sf-confirm-dialog__actions .sf-button {
        width: 100%;
    }
}

/* ========================================
   4. UTILITY CLASSES
   ======================================== */

/* Flex */
.sf-flex { display: flex; }
.sf-flex-col { flex-direction: column; }
.sf-flex-wrap { flex-wrap: wrap; }
.sf-items-center { align-items: center; }
.sf-items-start { align-items: flex-start; }
.sf-items-end { align-items: flex-end; }
.sf-justify-center { justify-content: center; }
.sf-justify-between { justify-content: space-between; }
.sf-justify-end { justify-content: flex-end; }
.sf-flex-1 { flex: 1; }
.sf-gap-1 { gap: var(--sf-space-1); }
.sf-gap-2 { gap: var(--sf-space-2); }
.sf-gap-3 { gap: var(--sf-space-3); }
.sf-gap-4 { gap: var(--sf-space-4); }
.sf-gap-6 { gap: var(--sf-space-6); }
.sf-gap-8 { gap: var(--sf-space-8); }

/* Grid */
.sf-grid { display: grid; }
.sf-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sf-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sf-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing */
.sf-p-0 { padding: 0; }
.sf-p-2 { padding: var(--sf-space-2); }
.sf-p-4 { padding: var(--sf-space-4); }
.sf-p-6 { padding: var(--sf-space-6); }
.sf-p-8 { padding: var(--sf-space-8); }
.sf-px-4 { padding-left: var(--sf-space-4); padding-right: var(--sf-space-4); }
.sf-py-4 { padding-top: var(--sf-space-4); padding-bottom: var(--sf-space-4); }
.sf-py-8 { padding-top: var(--sf-space-8); padding-bottom: var(--sf-space-8); }
.sf-py-16 { padding-top: var(--sf-space-16); padding-bottom: var(--sf-space-16); }

.sf-m-0 { margin: 0; }
.sf-mb-2 { margin-bottom: var(--sf-space-2); }
.sf-mb-4 { margin-bottom: var(--sf-space-4); }
.sf-mb-6 { margin-bottom: var(--sf-space-6); }
.sf-mb-8 { margin-bottom: var(--sf-space-8); }
.sf-mt-4 { margin-top: var(--sf-space-4); }
.sf-mt-8 { margin-top: var(--sf-space-8); }
.sf-mt-auto { margin-top: auto; }

/* Typography */
.sf-text-xs { font-size: var(--sf-font-size-xs); }
.sf-text-sm { font-size: var(--sf-font-size-sm); }
.sf-text-base { font-size: var(--sf-font-size-base); }
.sf-text-lg { font-size: var(--sf-font-size-lg); }
.sf-text-xl { font-size: var(--sf-font-size-xl); }
.sf-text-2xl { font-size: var(--sf-font-size-2xl); }
.sf-text-3xl { font-size: var(--sf-font-size-3xl); }

.sf-font-medium { font-weight: 500; }
.sf-font-semibold { font-weight: 600; }
.sf-font-bold { font-weight: 700; }

.sf-text-center { text-align: center; }
.sf-text-left { text-align: left; }
.sf-text-right { text-align: right; }

.sf-text-primary { color: #0060C7; }  /* Vortex green - accessible */
.sf-text-secondary { color: #3f3f46; }  /* 9.5:1 contrast */
.sf-text-muted { color: #52525b; }  /* 7:1 contrast - WCAG AA */
.sf-text-tertiary { color: #71717a; }  /* 4.7:1 - AA for large text only */
.sf-text-success { color: #059669; }  /* Dark green for contrast */
.sf-text-danger { color: #dc2626; }  /* High contrast red */
.sf-text-warning { color: #d97706; }  /* Dark orange for contrast */
.sf-text-info { color: #0284c7; }  /* Dark blue for contrast */
.sf-text-warning { color: var(--sf-warning); }

/* Background */
.sf-bg-white { background: var(--sf-neutral-50); }
.sf-bg-primary { background: var(--sf-primary); }
.sf-bg-primary-light { background: var(--sf-primary-50); }
.sf-bg-neutral-50 { background: var(--sf-neutral-50); }
.sf-bg-neutral-100 { background: var(--sf-neutral-100); }

/* Border */
.sf-border { border: 1px solid var(--sf-neutral-200); }
.sf-border-primary { border-color: var(--sf-primary); }
.sf-rounded { border-radius: var(--sf-rounded); }
.sf-rounded-lg { border-radius: var(--sf-rounded-lg); }
.sf-rounded-xl { border-radius: var(--sf-rounded-xl); }
.sf-rounded-full { border-radius: var(--sf-rounded-full); }

/* Shadow */
.sf-shadow { box-shadow: var(--sf-shadow); }
.sf-shadow-md { box-shadow: var(--sf-shadow-md); }
.sf-shadow-lg { box-shadow: var(--sf-shadow-lg); }

/* Width */
.sf-w-full { width: 100%; }
.sf-max-w-md { max-width: 28rem; }
.sf-max-w-lg { max-width: 32rem; }
.sf-max-w-xl { max-width: 36rem; }

/* Display */
.sf-hidden { display: none; }
.sf-block { display: block; }
.sf-inline-block { display: inline-block; }
.sf-inline-flex { display: inline-flex; }

/* Position */
.sf-relative { position: relative; }
.sf-absolute { position: absolute; }
.sf-fixed { position: fixed; }
.sf-sticky { position: sticky; }

/* Overflow */
.sf-overflow-hidden { overflow: hidden; }
.sf-overflow-auto { overflow: auto; }

/* Cursor */
.sf-cursor-pointer { cursor: pointer; }

/* Transition */
.sf-transition { transition: all var(--sf-transition-base); }

/* ========================================
   5. ANIMATIONS
   ======================================== */

@keyframes sf-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sf-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sf-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.sf-animate-fade-in {
    animation: sf-fade-in var(--sf-transition-base) ease-out;
}

.sf-animate-slide-up {
    animation: sf-slide-up var(--sf-transition-slow) ease-out;
}

.sf-animate-scale-in {
    animation: sf-scale-in var(--sf-transition-base) ease-out;
}

/* Stagger animation for product grid */
.sf-product-grid > * {
    animation: sf-fade-in 0.4s ease-out backwards;
}

.sf-product-grid > *:nth-child(1) { animation-delay: 0.05s; }
.sf-product-grid > *:nth-child(2) { animation-delay: 0.1s; }
.sf-product-grid > *:nth-child(3) { animation-delay: 0.15s; }
.sf-product-grid > *:nth-child(4) { animation-delay: 0.2s; }
.sf-product-grid > *:nth-child(5) { animation-delay: 0.25s; }
.sf-product-grid > *:nth-child(6) { animation-delay: 0.3s; }
.sf-product-grid > *:nth-child(7) { animation-delay: 0.35s; }
.sf-product-grid > *:nth-child(8) { animation-delay: 0.4s; }

/* ========================================
   6. ADVANCED BASE COMPONENTS
   ======================================== */

/* SfCheckbox */
.sf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--sf-space-3);
    cursor: pointer;
    user-select: none;
}

.sf-checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sf-checkbox__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--sf-neutral-300);
    border-radius: var(--sf-rounded);
    transition: all var(--sf-transition-fast);
    flex-shrink: 0;
}

.sf-checkbox__box i {
    font-size: 12px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--sf-transition-fast);
}

.sf-checkbox__input:checked + .sf-checkbox__box {
    background: var(--sf-primary);
    border-color: var(--sf-primary);
}

.sf-checkbox__input:checked + .sf-checkbox__box i {
    opacity: 1;
    transform: scale(1);
}

.sf-checkbox__input:focus + .sf-checkbox__box {
    box-shadow: 0 0 0 3px var(--sf-primary-100);
}

.sf-checkbox:hover .sf-checkbox__box {
    border-color: var(--sf-primary);
}

.sf-checkbox__label {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-700);
}

/* SfRadio */
.sf-radio {
    display: inline-flex;
    align-items: center;
    gap: var(--sf-space-3);
    cursor: pointer;
    user-select: none;
}

.sf-radio__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sf-radio__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--sf-neutral-300);
    border-radius: var(--sf-rounded-full);
    transition: all var(--sf-transition-fast);
    flex-shrink: 0;
}

.sf-radio__circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--sf-primary);
    border-radius: var(--sf-rounded-full);
    opacity: 0;
    transform: scale(0);
    transition: all var(--sf-transition-fast);
}

.sf-radio__input:checked + .sf-radio__circle {
    border-color: var(--sf-primary);
}

.sf-radio__input:checked + .sf-radio__circle::after {
    opacity: 1;
    transform: scale(1);
}

.sf-radio__input:focus + .sf-radio__circle {
    box-shadow: 0 0 0 3px var(--sf-primary-100);
}

.sf-radio:hover .sf-radio__circle {
    border-color: var(--sf-primary);
}

.sf-radio__label {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-700);
}

/* SfSwitch */
.sf-switch {
    display: inline-flex;
    align-items: center;
    gap: var(--sf-space-3);
    cursor: pointer;
    user-select: none;
}

.sf-switch__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sf-switch__track {
    position: relative;
    width: 44px;
    height: var(--size-24);
    background: var(--sf-neutral-300);
    border-radius: var(--sf-rounded-full);
    transition: all var(--sf-transition-fast);
    flex-shrink: 0;
}

.sf-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: var(--sf-rounded-full);
    box-shadow: var(--sf-shadow);
    transition: all var(--sf-transition-fast);
}

.sf-switch__input:checked + .sf-switch__track {
    background: var(--sf-primary);
}

.sf-switch__input:checked + .sf-switch__track .sf-switch__thumb {
    left: 22px;
}

.sf-switch__input:focus + .sf-switch__track {
    box-shadow: 0 0 0 3px var(--sf-primary-100);
}

.sf-switch__label {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-700);
}

/* SfTextarea */
.sf-textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--sf-space-3) var(--sf-space-4);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-base);
    color: var(--sf-neutral-900);
    background: var(--sf-neutral-50);
    border: 1px solid var(--sf-neutral-300);
    border-radius: var(--sf-rounded-lg);
    resize: vertical;
    transition: all var(--sf-transition-fast);
}

.sf-textarea:hover:not(:disabled) {
    border-color: var(--sf-neutral-400);
}

.sf-textarea:focus {
    outline: none;
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 3px var(--sf-primary-100);
}

.sf-textarea::placeholder {
    color: var(--sf-neutral-400);
}

.sf-textarea:disabled {
    background: var(--sf-neutral-100);
    cursor: not-allowed;
}

/* SfAccordion */
.sf-accordion {
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-xl);
    overflow: hidden;
}

.sf-accordion__item {
    border-bottom: 1px solid var(--sf-neutral-200);
}

.sf-accordion__item:last-child {
    border-bottom: none;
}

.sf-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sf-space-4) var(--sf-space-5);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-base);
    font-weight: 600;
    color: var(--sf-neutral-900);
    background: var(--sf-neutral-50);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--sf-transition-fast);
}

.sf-accordion__header:hover {
    background: var(--sf-neutral-50);
}

.sf-accordion__icon {
    font-size: var(--sf-font-size-lg);
    color: var(--sf-neutral-500);
    transition: transform var(--sf-transition-fast);
}

.sf-accordion__item.open .sf-accordion__icon {
    transform: rotate(180deg);
}

.sf-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--sf-transition-slow);
}

.sf-accordion__item.open .sf-accordion__content {
    max-height: 1000px;
}

.sf-accordion__body {
    padding: 0 var(--sf-space-5) var(--sf-space-4);
    color: var(--sf-neutral-600);
    font-size: var(--sf-font-size-sm);
    line-height: 1.6;
}

/* SfModal */
.sf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--sf-z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--sf-transition-fast);
}

.sf-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.sf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--sf-neutral-50);
    border-radius: var(--sf-rounded-2xl);
    box-shadow: var(--sf-shadow-xl);
    z-index: var(--sf-z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--sf-transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sf-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.sf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sf-space-5) var(--sf-space-6);
    border-bottom: 1px solid var(--sf-neutral-100);
}

.sf-modal__title {
    font-size: var(--sf-font-size-lg);
    font-weight: 700;
    color: var(--sf-neutral-900);
    margin: 0;
}

.sf-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--sf-rounded-lg);
    cursor: pointer;
    color: var(--sf-neutral-500);
    transition: all var(--sf-transition-fast);
}

.sf-modal__close:hover {
    background: var(--sf-neutral-100);
    color: var(--sf-neutral-900);
}

.sf-modal__body {
    padding: var(--sf-space-6);
    overflow-y: auto;
    flex: 1;
}

.sf-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--sf-space-3);
    padding: var(--sf-space-4) var(--sf-space-6);
    border-top: 1px solid var(--sf-neutral-100);
    background: var(--sf-neutral-50);
}

/* Bootstrap Modal Override - Garantir visibilidade acima de header/sidebar */
.modal {
    z-index: 1080 !important;
}

.modal-backdrop {
    z-index: 1070 !important;
}

.modal-dialog {
    z-index: 1085 !important;
    position: relative;
}

.modal-content {
    z-index: 1090 !important;
    position: relative;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.modal.show .modal-dialog {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Garantir que elementos fixos nao sobreponham modais */
body.modal-open .sf-header,
body.modal-open .sf-navbar {
    z-index: 100 !important;
}

/* SfDrawer */
.sf-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--sf-z-drawer);
    opacity: 0;
    visibility: hidden;
    transition: all var(--sf-transition-fast);
}

.sf-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.sf-drawer {
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 400px;
    background: var(--sf-neutral-50);
    box-shadow: var(--sf-shadow-xl);
    z-index: calc(var(--sf-z-drawer) + 1);
    transition: transform var(--sf-transition-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sf-drawer--left {
    left: 0;
    transform: translateX(-100%);
}

.sf-drawer--right {
    right: 0;
    transform: translateX(100%);
}

.sf-drawer.open {
    transform: translateX(0);
}

.sf-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sf-space-4) var(--sf-space-5);
    border-bottom: 1px solid var(--sf-neutral-100);
    flex-shrink: 0;
}

.sf-drawer__title {
    font-size: var(--sf-font-size-lg);
    font-weight: 700;
    color: var(--sf-neutral-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
}

.sf-drawer__logo {
    border-radius: 6px;
}

.sf-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--sf-rounded-lg);
    cursor: pointer;
    color: var(--sf-neutral-500);
    transition: all var(--sf-transition-fast);
}

.sf-drawer__close:hover {
    background: var(--sf-neutral-100);
    color: var(--sf-neutral-900);
}

.sf-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--sf-space-4);
}

.sf-drawer__footer {
    padding: var(--sf-space-4) var(--sf-space-5);
    border-top: 1px solid var(--sf-neutral-100);
    background: var(--sf-neutral-50);
    flex-shrink: 0;
}

/* SfTooltip */
.sf-tooltip {
    position: relative;
    display: inline-flex;
}

.sf-tooltip__content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--sf-space-2) var(--sf-space-3);
    background: var(--sf-neutral-900);
    color: white;
    font-size: var(--sf-font-size-xs);
    font-weight: 500;
    border-radius: var(--sf-rounded-lg);
    white-space: nowrap;
    z-index: var(--sf-z-tooltip);
    opacity: 0;
    visibility: hidden;
    transition: all var(--sf-transition-fast);
    pointer-events: none;
}

.sf-tooltip__content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--sf-neutral-900);
}

.sf-tooltip:hover .sf-tooltip__content {
    opacity: 1;
    visibility: visible;
}

/* SfProgress */
.sf-progress {
    width: 100%;
    height: 8px;
    background: var(--sf-neutral-200);
    border-radius: var(--sf-rounded-full);
    overflow: hidden;
}

.sf-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sf-primary) 0%, var(--sf-primary-400) 100%);
    border-radius: var(--sf-rounded-full);
    transition: width var(--sf-transition-slow);
}

.sf-progress--sm {
    height: 4px;
}

.sf-progress--lg {
    height: 12px;
}

/* SfProgressCircular */
.sf-progress-circular {
    position: relative;
    width: var(--size-48);
    height: var(--size-48);
}

.sf-progress-circular__svg {
    transform: rotate(-90deg);
}

.sf-progress-circular__track {
    fill: none;
    stroke: var(--sf-neutral-200);
    stroke-width: 4;
}

.sf-progress-circular__bar {
    fill: none;
    stroke: var(--sf-primary);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset var(--sf-transition-slow);
}

.sf-progress-circular__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sf-font-size-xs);
    font-weight: 700;
    color: var(--sf-neutral-900);
}

/* SfTabs */
.sf-tabs {
    width: 100%;
}

.sf-tabs__list {
    display: flex;
    border-bottom: 2px solid var(--sf-neutral-200);
    gap: var(--sf-space-1);
    overflow-x: auto;
}

.sf-tabs__tab {
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
    padding: var(--sf-space-3) var(--sf-space-5);
    font-family: var(--sf-font-family);
    font-size: var(--sf-font-size-sm);
    font-weight: 600;
    color: var(--sf-neutral-500);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--sf-transition-fast);
    white-space: nowrap;
}

.sf-tabs__tab:hover {
    color: var(--sf-neutral-900);
}

.sf-tabs__tab.active {
    color: var(--sf-primary);
    border-bottom-color: var(--sf-primary);
}

.sf-tabs__panel {
    display: none;
    padding: var(--sf-space-5) 0;
}

.sf-tabs__panel.active {
    display: block;
    animation: sf-fade-in var(--sf-transition-fast) ease-out;
}

/* SfAlert */
.sf-alert {
    display: flex;
    gap: var(--sf-space-3);
    padding: var(--sf-space-4);
    border-radius: var(--sf-rounded-xl);
    border: 1px solid;
}

.sf-alert__icon {
    flex-shrink: 0;
    font-size: var(--sf-font-size-xl);
}

.sf-alert__content {
    flex: 1;
    min-width: 0;
}

.sf-alert__title {
    font-weight: 600;
    margin-bottom: var(--sf-space-1);
}

.sf-alert__message {
    font-size: var(--sf-font-size-sm);
    line-height: 1.5;
}

.sf-alert__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: var(--sf-rounded);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--sf-transition-fast);
}

.sf-alert__close:hover {
    opacity: 1;
}

.sf-alert--info {
    background: var(--sf-info-light);
    border-color: var(--sf-info);
    color: var(--sf-neutral-900);
}

.sf-alert--success {
    background: var(--sf-positive-light);
    border-color: var(--sf-positive);
    color: var(--sf-neutral-900);
}

.sf-alert--warning {
    background: var(--sf-warning-light);
    border-color: var(--sf-warning);
    color: var(--sf-neutral-900);
}

.sf-alert--error {
    background: var(--sf-negative-light);
    border-color: var(--sf-negative);
    color: var(--sf-neutral-900);
}

/* ============================================================
   7. NAVIGATION - Apple HIG Design System
   Single source of truth for all navigation components
   ============================================================ */

/* --- Top Navbar --- */
.sf-navbar {
    /* Design Tokens */
    --nav-height: 44px;
    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-bg-solid: #ffffff;
    --nav-border: rgba(60, 60, 67, 0.12);
    --nav-text: #1d1d1f;
    --nav-text-secondary: #6e6e73;  /* 5.3:1 on white - was #86868b (3.7:1 FAIL for 14px text) */
    --nav-hover: rgba(0, 0, 0, 0.04);
    --nav-active: #0071e3;
    
    /* Layout */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--nav-border);
    z-index: 9990;
}

.sf-navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

/* Ensure proper flex distribution */
.sf-navbar__logo {
    flex: 0 0 auto;
}

.sf-navbar__nav {
    flex: 0 1 auto;
}

.sf-navbar__search {
    flex: 1 1 auto;
    min-width: 0;
}

.sf-navbar__actions {
    flex: 0 0 auto;
}

/* Logo */
.sf-navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sf-navbar__logo img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.sf-navbar__logo-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--nav-text);
    letter-spacing: -0.022em;
}

/* Hide logo text on medium-large screens to save space */
@media (max-width: 1399px) {
    .sf-navbar__logo-text {
        display: none;
    }
}

/* Navigation Links */
.sf-navbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sf-navbar__nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 400;
    color: var(--nav-text-secondary);
    text-decoration: none;
    border-radius: 980px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.sf-navbar__nav-link:hover {
    color: var(--nav-text);
}

.sf-navbar__nav-link.active {
    color: var(--nav-text);
    font-weight: 500;
}

.sf-navbar__nav-link i {
    font-size: 15px;
    opacity: 0.85;  /* Increased from 0.7 for better contrast */
}

/* Search - flex handled above */
.sf-navbar__search {
    max-width: 240px;
    min-width: 100px;
}

/* Actions - flex handled above */
.sf-navbar__actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sf-navbar__action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--nav-text-secondary);
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.sf-navbar__action:hover {
    background: var(--nav-hover);
    color: var(--nav-text);
}

.sf-navbar__action i {
    font-size: 18px;
}

.sf-navbar__action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sf-navbar__menu-toggle {
    display: none;
}

/* --- Bottom Navbar (Mobile Tab Bar) --- */
.sf-navbar-bottom {
    --tab-height: 49px;
    --tab-bg: rgba(249, 249, 249, 0.94);
    
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
    background: var(--tab-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.33px solid rgba(60, 60, 67, 0.29);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 9989;
    display: none;
}

.sf-navbar-bottom__nav {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: var(--tab-height);
    max-width: 500px;
    margin: 0 auto;
    padding: 0 8px;
}

.sf-navbar-bottom__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 50px;
    max-width: 80px;
    height: 100%;
    padding: 4px 0;
    text-decoration: none;
    color: #636366;  /* was #8e8e93 (3.3:1 FAIL) - now 5.8:1 on white */
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.sf-navbar-bottom__item.active {
    color: #007aff;
}

.sf-navbar-bottom__item i {
    font-size: 22px;
}

.sf-navbar-bottom__item span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- Body Spacing for Fixed Navbars --- */
body.has-fixed-navbar {
    padding-top: 44px;
}

body.has-bottom-navbar {
    padding-bottom: calc(49px + env(safe-area-inset-bottom, 0px));
}

/* --- Mobile Responsive (< 768px) --- */
@media (max-width: 767.98px) {
    .sf-navbar {
        --nav-height: 48px;
    }
    
    .sf-navbar__container {
        padding: 0 12px;
    }
    
    .sf-navbar__nav,
    .sf-navbar__search {
        display: none !important;
    }
    
    .sf-navbar__menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: -4px -8px -4px 0;
        background: transparent;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        color: var(--nav-text);
        -webkit-tap-highlight-color: transparent;
    }
    
    .sf-navbar-bottom {
        display: block;
    }
    
    body.has-fixed-navbar {
        padding-top: 48px;
    }
}

/* --- Medium screens (768px - 991px) --- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sf-navbar__nav {
        display: none !important;
    }
    
    .sf-navbar__search {
        max-width: 180px;
    }
    
    .sf-navbar__menu-toggle {
        display: flex;
    }
}

/* --- Large screens (992px - 1199px) - Hide nav, show menu toggle --- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .sf-navbar__nav {
        display: none !important;
    }
    
    .sf-navbar__menu-toggle {
        display: flex;
    }
    
    .sf-navbar__search {
        max-width: 200px;
        min-width: 100px;
    }
}

.sf-navbar-bottom__badge {
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--sf-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--sf-rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(10, 132, 255, 0.3);
}

/* SfMegaMenu */
.sf-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sf-neutral-50);
    border-top: 1px solid var(--sf-neutral-200);
    box-shadow: var(--sf-shadow-xl);
    padding: var(--sf-space-6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--sf-transition-fast);
    z-index: var(--sf-z-dropdown);
}

.sf-megamenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sf-megamenu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sf-space-8);
}

.sf-megamenu__column-title {
    font-size: var(--sf-font-size-sm);
    font-weight: 700;
    color: var(--sf-neutral-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sf-space-4);
    padding-bottom: var(--sf-space-2);
    border-bottom: 2px solid var(--sf-primary);
}

.sf-megamenu__links {
    display: flex;
    flex-direction: column;
    gap: var(--sf-space-2);
}

.sf-megamenu__link {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-600);
    text-decoration: none;
    padding: var(--sf-space-1) 0;
    transition: all var(--sf-transition-fast);
}

.sf-megamenu__link:hover {
    color: var(--sf-primary);
    padding-left: var(--sf-space-2);
}

/* SfFooter */
.sf-footer {
    background: var(--sf-footer-bg, #18181b);
    color: var(--sf-footer-text, #d4d4d8);  /* Solid color on dark bg - 10.5:1 contrast */
    margin-top: auto;
}

.sf-footer__main {
    padding: var(--sf-space-16) 0;
}

.sf-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--sf-space-10);
}

.sf-footer__brand {
    padding-right: var(--sf-space-8);
}

.sf-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
    margin-bottom: var(--sf-space-4);
}

.sf-footer__logo img {
    height: var(--size-48);
    width: auto;
}

.sf-footer__logo-text {
    font-size: var(--sf-font-size-xl);
    font-weight: 800;
    color: var(--sf-footer-heading, white);
}

.sf-footer__description {
    font-size: var(--sf-font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--sf-space-5);
}

.sf-footer__social {
    display: flex;
    gap: var(--sf-space-3);
}

.sf-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--size-40);
    height: var(--size-40);
    background: var(--sf-footer-social-bg, #27272a);
    border-radius: var(--sf-rounded-lg);
    color: var(--sf-footer-social-icon, #d4d4d8);  /* Light text on dark bg #27272a - 10.5:1 contrast */
    text-decoration: none;
    transition: all var(--sf-transition-fast);
}

.sf-footer__social-link:hover {
    background: var(--sf-primary);
    color: white;
    transform: translateY(-2px);
}

.sf-footer__column-title {
    font-size: var(--sf-font-size-sm);
    font-weight: 700;
    color: var(--sf-footer-heading, white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sf-space-5);
}

.sf-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--sf-space-3);
}

.sf-footer__link {
    display: block;
    color: #e4e4e7;  /* Light text on dark bg #18181b - 14.5:1 contrast */
    text-decoration: none;
    transition: color var(--sf-transition-fast);
}

.sf-footer__link:hover {
    color: #60a5fa;  /* Vortex green on hover */
}

.sf-footer__link:hover {
    color: var(--sf-footer-heading, white);
}

.sf-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sf-space-3);
    font-size: var(--sf-font-size-sm);
    margin-bottom: var(--sf-space-3);
}

.sf-footer__contact-item i {
    color: var(--sf-primary);
    margin-top: 2px;
}

.sf-footer__bottom {
    border-top: 1px solid var(--sf-footer-border, #27272a);
    padding: var(--sf-space-5) 0;
}

.sf-footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sf-space-4);
}

.sf-footer__copyright {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-footer-text, #d4d4d8);  /* Light text on dark bg #18181b - 10.5:1 */
}

.sf-footer__payments {
    display: flex;
    gap: var(--sf-space-2);
}

.sf-footer__payment-icon {
    height: var(--size-24);
    opacity: 0.7;
    transition: opacity var(--sf-transition-fast);
}

.sf-footer__payment-icon:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .sf-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-footer__brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .sf-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--sf-space-8);
    }

    .sf-footer__brand {
        grid-column: span 1;
    }

    .sf-footer__bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* SfHero / Banner */
.sf-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sf-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.sf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.sf-hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: white;
}

.sf-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sf-space-2);
    padding: var(--sf-space-2) var(--sf-space-4);
    background: var(--sf-primary);
    border-radius: var(--sf-rounded-full);
    font-size: var(--sf-font-size-sm);
    font-weight: 600;
    margin-bottom: var(--sf-space-4);
}

.sf-hero__title {
    font-size: var(--sf-font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 var(--sf-space-4) 0;
}

.sf-hero__subtitle {
    font-size: var(--sf-font-size-lg);
    opacity: 0.9;
    margin: 0 0 var(--sf-space-6) 0;
    line-height: 1.6;
}

.sf-hero__actions {
    display: flex;
    gap: var(--sf-space-4);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .sf-hero {
        min-height: 400px;
    }

    .sf-hero__title {
        font-size: var(--sf-font-size-2xl);
    }

    .sf-hero__subtitle {
        font-size: var(--sf-font-size-base);
    }
}

/* SfBanner (Promotional) */
.sf-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-dark) 100%);
    border-radius: var(--sf-rounded-2xl);
    overflow: hidden;
}

.sf-banner__content {
    flex: 1;
    padding: var(--sf-space-8);
    color: white;
}

.sf-banner__title {
    font-size: var(--sf-font-size-2xl);
    font-weight: 800;
    margin: 0 0 var(--sf-space-2) 0;
}

.sf-banner__text {
    font-size: var(--sf-font-size-base);
    opacity: 0.9;
    margin: 0 0 var(--sf-space-4) 0;
}

.sf-banner__image {
    flex-shrink: 0;
    width: 40%;
    align-self: stretch;
}

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

@media (max-width: 768px) {
    .sf-banner {
        flex-direction: column;
    }

    .sf-banner__image {
        width: 100%;
        height: 200px;
        order: -1;
    }
}

/* SfReview */
.sf-review {
    display: flex;
    gap: var(--sf-space-4);
    padding: var(--sf-space-5);
    background: var(--sf-neutral-50);
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-xl);
}

.sf-review__avatar {
    flex-shrink: 0;
    width: var(--size-48);
    height: var(--size-48);
    background: var(--sf-primary-100);
    border-radius: var(--sf-rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--sf-primary);
}

.sf-review__avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--sf-rounded-full);
    object-fit: cover;
}

.sf-review__content {
    flex: 1;
    min-width: 0;
}

.sf-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sf-space-2);
    margin-bottom: var(--sf-space-2);
}

.sf-review__author {
    font-weight: 600;
    color: var(--sf-neutral-900);
}

.sf-review__date {
    font-size: var(--sf-font-size-xs);
    color: var(--sf-neutral-500);
}

.sf-review__rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--sf-space-2);
}

.sf-review__text {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-600);
    line-height: 1.6;
}

/* SfNewsletter */
.sf-newsletter {
    background: linear-gradient(135deg, var(--sf-neutral-900) 0%, var(--sf-neutral-800) 100%);
    border-radius: var(--sf-rounded-2xl);
    padding: var(--sf-space-10);
    text-align: center;
    color: white;
}

.sf-newsletter__icon {
    width: 64px;
    height: 64px;
    background: var(--sf-primary);
    border-radius: var(--sf-rounded-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sf-space-5);
    font-size: 1.75rem;
}

.sf-newsletter__title {
    font-size: var(--sf-font-size-2xl);
    font-weight: 800;
    margin: 0 0 var(--sf-space-2) 0;
}

.sf-newsletter__text {
    font-size: var(--sf-font-size-base);
    opacity: 0.8;
    margin: 0 0 var(--sf-space-6) 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.sf-newsletter__form {
    display: flex;
    gap: var(--sf-space-3);
    max-width: 440px;
    margin: 0 auto;
}

.sf-newsletter__input {
    flex: 1;
    padding: var(--sf-space-4);
    font-size: var(--sf-font-size-base);
    border: none;
    border-radius: var(--sf-rounded-lg);
    background: var(--sf-neutral-50);
    color: var(--sf-neutral-900);
}

.sf-newsletter__input:focus {
    outline: 3px solid var(--sf-primary);
    outline-offset: 0;
}

.sf-newsletter__input::placeholder {
    color: var(--sf-neutral-400);
}

@media (max-width: 640px) {
    .sf-newsletter__form {
        flex-direction: column;
    }
}

/* SfFilters (Sidebar) */
.sf-filters {
    background: var(--sf-neutral-50);
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-xl);
    padding: var(--sf-space-5);
}

.sf-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sf-space-5);
    padding-bottom: var(--sf-space-4);
    border-bottom: 1px solid var(--sf-neutral-200);
}

.sf-filters__title {
    font-size: var(--sf-font-size-lg);
    font-weight: 700;
    color: var(--sf-neutral-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
}

.sf-filters__clear {
    font-size: var(--sf-font-size-sm);
    color: var(--sf-primary);
    text-decoration: none;
    font-weight: 500;
}

.sf-filters__clear:hover {
    text-decoration: underline;
}

.sf-filters__section {
    margin-bottom: var(--sf-space-5);
    padding-bottom: var(--sf-space-5);
    border-bottom: 1px solid var(--sf-neutral-100);
}

.sf-filters__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sf-filters__section-title {
    font-size: var(--sf-font-size-sm);
    font-weight: 600;
    color: var(--sf-neutral-900);
    margin: 0 0 var(--sf-space-3) 0;
}

.sf-filters__options {
    display: flex;
    flex-direction: column;
    gap: var(--sf-space-2);
}

.sf-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sf-space-2);
}

.sf-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sf-space-1);
    padding: var(--sf-space-2) var(--sf-space-3);
    background: var(--sf-neutral-100);
    border: 1px solid var(--sf-neutral-200);
    border-radius: var(--sf-rounded-full);
    font-size: var(--sf-font-size-sm);
    color: var(--sf-neutral-700);
    cursor: pointer;
    transition: all var(--sf-transition-fast);
}

.sf-filters__chip:hover {
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

.sf-filters__chip.active {
    background: var(--sf-primary);
    border-color: var(--sf-primary);
    color: white;
}

/* SfRangeSlider */
.sf-range {
    padding: var(--sf-space-2) 0;
}

.sf-range__values {
    display: flex;
    justify-content: space-between;
    font-size: var(--sf-font-size-sm);
    font-weight: 600;
    color: var(--sf-neutral-900);
    margin-bottom: var(--sf-space-3);
}

.sf-range__slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--sf-neutral-200);
    border-radius: var(--sf-rounded-full);
    outline: none;
}

.sf-range__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--sf-primary);
    border-radius: var(--sf-rounded-full);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--sf-shadow);
}

.sf-range__slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--sf-primary);
    border-radius: var(--sf-rounded-full);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--sf-shadow);
}

/* SfColorSwatch */
.sf-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sf-space-2);
}

.sf-color-swatch {
    width: var(--size-32);
    height: var(--size-32);
    border-radius: var(--sf-rounded-full);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--sf-transition-fast);
    position: relative;
}

.sf-color-swatch:hover {
    transform: scale(1.1);
}

.sf-color-swatch.active {
    border-color: var(--sf-neutral-900);
}

.sf-color-swatch.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--sf-primary);
    border-radius: var(--sf-rounded-full);
}

/* ========================================
   8. RESPONSIVE UTILITIES
   ======================================== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .sf-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sf-grid-2 { grid-template-columns: 1fr; }
    .sf-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .sf-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sf-hidden-mobile { display: none !important; }
    .sf-flex-col-mobile { flex-direction: column; }

    .sf-trust-badges {
        gap: var(--sf-space-3);
    }

    .sf-trust-badge {
        flex: 1 1 45%;
        justify-content: center;
        font-size: var(--sf-font-size-xs);
    }

    /* Navbar Bottom padding for mobile */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    /* Footer padding for mobile navbar */
    .sf-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Main content spacing */
    main {
        min-height: calc(100vh - 200px);
    }

    /* Product grid responsive */
    .sf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sf-space-3);
    }

    /* Card improvements */
    .sf-product-card {
        border-radius: var(--sf-rounded-lg);
    }

    .sf-product-card__image {
        aspect-ratio: 1/1;
    }

    .sf-product-card__content {
        padding: var(--sf-space-3);
    }

    .sf-product-card__title {
        font-size: var(--sf-font-size-sm);
        -webkit-line-clamp: 2;
    }

    .sf-product-card__price {
        font-size: var(--sf-font-size-base);
    }

    /* Button improvements */
    .sf-button {
        padding: var(--sf-space-3) var(--sf-space-4);
    }

    .sf-button--lg {
        padding: var(--sf-space-4) var(--sf-space-5);
    }

    /* Hero responsive */
    .sf-hero {
        min-height: 400px;
    }

    .sf-hero__title {
        font-size: var(--sf-font-size-2xl);
    }

    .sf-hero__actions {
        flex-direction: column;
    }

    /* Container padding */
    .sf-container {
        padding-left: var(--sf-space-4);
        padding-right: var(--sf-space-4);
    }

    /* Grid columns */
    .sf-grid-3, .sf-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Toast mobile positioning */
    .sf-toast {
        right: 12px;
        left: 12px;
        max-width: none;
        min-width: 0;
        top: 70px;
    }
    .sf-toast:nth-child(2) { top: 138px; }
    .sf-toast:nth-child(3) { top: 206px; }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .sf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sf-space-2);
    }

    .sf-product-card__content {
        padding: var(--sf-space-2);
    }

    .sf-product-card__title {
        font-size: 0.8rem;
    }

    .sf-product-card__price {
        font-size: var(--sf-font-size-sm);
    }

    .sf-hero {
        min-height: 350px;
        padding: var(--sf-space-4);
    }

    .sf-hero__title {
        font-size: var(--sf-font-size-xl);
    }

    .sf-hero__subtitle {
        font-size: var(--sf-font-size-sm);
    }

    .sf-container {
        padding-left: var(--sf-space-3);
        padding-right: var(--sf-space-3);
    }

    .sf-section {
        padding: var(--sf-space-8) 0;
    }

    .sf-section__title {
        font-size: var(--sf-font-size-xl);
    }

    /* Form responsive */
    .sf-input, .sf-select, .sf-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (min-width: 769px) {
    .sf-hidden-desktop { display: none !important; }
}

/* ========================================
   9. NEW COMPONENTS - Redesign v4.0
   ======================================== */

/* Skeleton Loaders */
.sf-skeleton {
    background: linear-gradient(
        90deg,
        var(--skeleton-bg, #e4e4e7) 0%,
        var(--skeleton-highlight, #f4f4f5) 50%,
        var(--skeleton-bg, #e4e4e7) 100%
    );
    background-size: 200% 100%;
    animation: sf-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md, 0.5rem);
}

@keyframes sf-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* a11y: respeita preferência do usuário por menos movimento (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    .sf-skeleton,
    [class*="skeleton"],
    [class*="shimmer"] {
        animation: none !important;
        background: var(--skeleton-bg, #e4e4e7) !important;
        background-size: unset !important;
    }
}

.sf-skeleton--text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.sf-skeleton--text-short {
    width: 60%;
}

.sf-skeleton--title {
    height: 1.5rem;
    width: 80%;
    margin-bottom: 0.75rem;
}

.sf-skeleton--image {
    aspect-ratio: 4/3;
    width: 100%;
    border-radius: var(--radius-lg, 0.75rem);
}

.sf-skeleton--button {
    height: 2.5rem;
    width: 100%;
    border-radius: var(--radius-lg, 0.75rem);
}

.sf-skeleton--avatar {
    border-radius: 50%;
}

.sf-skeleton--avatar-sm { width: 2rem; height: 2rem; }
.sf-skeleton--avatar-md { width: 2.5rem; height: 2.5rem; }
.sf-skeleton--avatar-lg { width: 3rem; height: 3rem; }
.sf-skeleton--avatar-xl { width: 4rem; height: 4rem; }

.sf-skeleton--cell {
    height: 1rem;
    flex: 1;
}

.sf-skeleton-card {
    background: var(--surface-card, #fff);
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    border: 1px solid var(--surface-border, #e4e4e7);
}

.sf-skeleton-card__content {
    padding: var(--space-4, 1rem);
}

.sf-skeleton-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-skeleton-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-skeleton-table__header,
.sf-skeleton-table__row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.sf-skeleton-table__header {
    background: var(--surface-section, #f4f4f5);
    border-radius: var(--radius-md, 0.5rem);
}

/* Stat Card */
.sf-stat-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4, 1rem);
    padding: var(--space-5, 1.25rem);
    background: var(--surface-card, #fff);
    border-radius: var(--radius-xl, 1rem);
    border: 1px solid var(--surface-border, #e4e4e7);
    transition: box-shadow var(--duration-normal, 150ms) var(--ease-out);
}

.sf-stat-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.sf-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg, 0.75rem);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sf-stat-card__icon--primary {
    background: var(--color-brand-subtle, rgba(10, 132, 255, 0.1));
    color: var(--color-brand, #0A84FF);
}

.sf-stat-card__icon--success {
    background: var(--color-success-subtle);
    color: var(--color-success);
}

.sf-stat-card__icon--warning {
    background: var(--color-warning-subtle);
    color: var(--color-warning);
}

.sf-stat-card__icon--danger {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
}

.sf-stat-card__icon--info {
    background: var(--color-info-subtle);
    color: var(--color-info);
}

.sf-stat-card__content {
    flex: 1;
    min-width: 0;
}

.sf-stat-card__title {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--text-tertiary, #71717a);
    margin-bottom: var(--space-1, 0.25rem);
}

.sf-stat-card__value {
    font-size: var(--text-2xl, 1.5rem);
    font-weight: 700;
    color: var(--text-primary, #18181b);
    line-height: 1.2;
}

.sf-stat-card__subtitle {
    font-size: var(--text-xs, 0.75rem);
    color: var(--text-muted, #71717a);
    margin-top: var(--space-1, 0.25rem);
}

.sf-stat-card__change {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    padding: var(--space-1, 0.25rem) var(--space-2, 0.5rem);
    border-radius: var(--radius-full, 9999px);
}

.sf-stat-card__change--positive {
    background: var(--color-success-subtle);
    color: var(--color-success);
}

.sf-stat-card__change--negative {
    background: var(--color-danger-subtle);
    color: var(--color-danger);
}

.sf-stat-card__change--neutral {
    background: var(--surface-section, #f4f4f5);
    color: var(--text-tertiary, #71717a);
}

/* Alert */
.sf-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3, 0.75rem);
    padding: var(--space-4, 1rem);
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid;
}

.sf-alert--info {
    background: var(--color-info-subtle);
    border-color: var(--color-info-500, #0ea5e9);
    color: var(--color-info-700, #0369a1);
}

.sf-alert--success {
    background: var(--color-success-subtle);
    border-color: var(--color-success-500, #10b981);
    color: var(--color-success-700, #047857);
}

.sf-alert--warning {
    background: var(--color-warning-subtle);
    border-color: var(--color-warning-500, #f59e0b);
    color: var(--color-warning-700, #b45309);
}

.sf-alert--danger {
    background: var(--color-danger-subtle);
    border-color: var(--color-danger-500, #ef4444);
    color: var(--color-danger-700, #b91c1c);
}

.sf-alert__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sf-alert__content {
    flex: 1;
    min-width: 0;
}

.sf-alert__title {
    font-weight: 600;
    margin-bottom: var(--space-1, 0.25rem);
}

.sf-alert__message {
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.5;
}

.sf-alert__dismiss {
    background: none;
    border: none;
    padding: var(--space-1, 0.25rem);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--duration-fast, 100ms);
    color: inherit;
}

.sf-alert__dismiss:hover {
    opacity: 1;
}

/* Tabs */
.sf-tabs {
    display: flex;
    gap: var(--space-1, 0.25rem);
    border-bottom: 1px solid var(--surface-border, #e4e4e7);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sf-tabs::-webkit-scrollbar {
    display: none;
}

.sf-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    background: none;
    border: none;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    color: var(--text-tertiary, #71717a);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color var(--duration-fast, 100ms);
}

.sf-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--duration-fast, 100ms);
}

.sf-tab:hover {
    color: var(--text-primary, #18181b);
}

.sf-tab--active {
    color: var(--color-brand, #0A84FF);
}

.sf-tab--active::after {
    background: var(--color-brand, #0A84FF);
}

.sf-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--surface-section, #f4f4f5);
    border-radius: var(--radius-full, 9999px);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
}

.sf-tab--active .sf-tab__badge {
    background: var(--color-brand-subtle, rgba(10, 132, 255, 0.1));
    color: var(--color-brand, #0A84FF);
}

/* Avatar */
.sf-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-brand-subtle, rgba(10, 132, 255, 0.1));
    color: var(--color-brand, #0A84FF);
    font-weight: 600;
    overflow: hidden;
}

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

.sf-avatar--xs { width: 24px; height: 24px; font-size: 0.625rem; }
.sf-avatar--sm { width: 32px; height: 32px; font-size: 0.75rem; }
.sf-avatar--md { width: 40px; height: 40px; font-size: 0.875rem; }
.sf-avatar--lg { width: 48px; height: 48px; font-size: 1rem; }
.sf-avatar--xl { width: 64px; height: 64px; font-size: 1.25rem; }
.sf-avatar--2xl { width: 96px; height: 96px; font-size: 1.5rem; }

/* Progress Bar */
.sf-progress {
    width: 100%;
}

.sf-progress__label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary, #52525b);
}

.sf-progress__value {
    font-weight: 600;
    color: var(--text-primary, #18181b);
}

.sf-progress__track {
    width: 100%;
    background: var(--surface-section, #f4f4f5);
    border-radius: var(--radius-full, 9999px);
    overflow: hidden;
}

.sf-progress--sm .sf-progress__track { height: 4px; }
.sf-progress--md .sf-progress__track { height: 8px; }
.sf-progress--lg .sf-progress__track { height: 12px; }

.sf-progress__bar {
    height: 100%;
    border-radius: var(--radius-full, 9999px);
    transition: width var(--duration-slow, 300ms) var(--ease-out);
}

.sf-progress__bar--primary { background: var(--color-brand, #0A84FF); }
.sf-progress__bar--success { background: var(--color-success); }
.sf-progress__bar--warning { background: var(--color-warning); }
.sf-progress__bar--danger { background: var(--color-danger); }
.sf-progress__bar--info { background: var(--color-info); }

/* Tooltip (CSS-only) */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-fast, 100ms), visibility var(--duration-fast, 100ms);
    z-index: var(--z-tooltip, 1800);
    pointer-events: none;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    background: var(--color-neutral-900, #18181b);
    color: var(--color-neutral-0, #fff);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    border-radius: var(--radius-md, 0.5rem);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

[data-tooltip]::after {
    content: '';
    border: 6px solid transparent;
}

[data-tooltip][data-tooltip-position="top"]::before,
[data-tooltip]:not([data-tooltip-position])::before {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
}

[data-tooltip][data-tooltip-position="top"]::after,
[data-tooltip]:not([data-tooltip-position])::after {
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--color-neutral-900, #18181b);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Data Table Improved */
.sf-data-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid var(--surface-border, #e4e4e7);
}

.sf-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm, 0.875rem);
}

.sf-data-table__head {
    background: var(--surface-section, #f4f4f5);
}

.sf-data-table__th {
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary, #52525b);
    white-space: nowrap;
}

.sf-data-table__th--sortable {
    cursor: pointer;
    user-select: none;
}

.sf-data-table__th--sortable:hover {
    color: var(--text-primary, #18181b);
}

.sf-data-table__sort-icon {
    margin-left: var(--space-1, 0.25rem);
    opacity: 0.5;
}

.sf-data-table__th--checkbox,
.sf-data-table__td--checkbox {
    width: 48px;
    padding-left: var(--space-4, 1rem);
}

.sf-data-table__row {
    border-top: 1px solid var(--surface-border, #e4e4e7);
    transition: background var(--duration-fast, 100ms);
}

.sf-data-table__row:hover {
    background: var(--surface-hover, rgba(0, 0, 0, 0.02));
}

.sf-data-table__td {
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    color: var(--text-primary, #18181b);
}

/* Dropdown - User Menu */
.sf-dropdown {
    position: relative;
    display: inline-block;
}

.sf-dropdown__arrow {
    transition: transform var(--duration-fast, 100ms);
}

.sf-dropdown.open .sf-dropdown__arrow {
    transform: rotate(180deg);
}

.sf-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 220px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 6px;
    overflow: hidden;
}

.sf-dropdown.open .sf-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header - User Info */
.sf-dropdown__header {
    padding: 12px 12px 8px;
    border-bottom: none;
}

.sf-dropdown__header strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #18181b;
    line-height: 1.3;
}

.sf-dropdown__header small {
    display: block;
    font-size: 0.8125rem;
    color: #52525b;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Menu Items */
.sf-dropdown__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #27272a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 100ms ease-out, color 100ms ease-out;
    white-space: nowrap;
}

.sf-dropdown__menu-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: #71717a;
    transition: color 100ms ease-out;
}

.sf-dropdown__menu-item:hover {
    background: #f4f4f5;
    color: #18181b;
    text-decoration: none;
}

.sf-dropdown__menu-item:hover i {
    color: #0A84FF;
}

.sf-dropdown__menu-item--danger {
    color: #dc2626;
}

.sf-dropdown__menu-item--danger i {
    color: #dc2626;
}

.sf-dropdown__menu-item--danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.sf-dropdown__menu-item--danger:hover i {
    color: #b91c1c;
}

/* Legacy dropdown__item support */
.sf-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #27272a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 100ms ease-out;
}

.sf-dropdown__item:hover {
    background: #f4f4f5;
}

.sf-dropdown__item--danger {
    color: #dc2626;
}

.sf-dropdown__item--danger:hover {
    background: #fef2f2;
}

.sf-dropdown__divider {
    height: 1px;
    background: #e4e4e7;
    margin: 6px 0;
}

/* Timeline */
.sf-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sf-timeline__item {
    display: flex;
    gap: var(--space-4, 1rem);
    position: relative;
    padding-bottom: var(--space-6, 1.5rem);
}

.sf-timeline__item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--surface-border, #e4e4e7);
}

.sf-timeline__item:last-child::before {
    display: none;
}

.sf-timeline__item:last-child {
    padding-bottom: 0;
}

.sf-timeline__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-section, #f4f4f5);
    border: 2px solid var(--surface-border, #e4e4e7);
    color: var(--text-tertiary, #71717a);
    font-size: var(--text-sm, 0.875rem);
    flex-shrink: 0;
    z-index: 1;
}

.sf-timeline__item--active .sf-timeline__marker {
    background: var(--color-brand-subtle, rgba(10, 132, 255, 0.1));
    border-color: var(--color-brand, #0A84FF);
    color: var(--color-brand, #0A84FF);
}

.sf-timeline__content {
    flex: 1;
    min-width: 0;
    padding-top: var(--space-1, 0.25rem);
}

.sf-timeline__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2, 0.5rem);
    margin-bottom: var(--space-1, 0.25rem);
}

.sf-timeline__title {
    font-weight: 600;
    color: var(--text-primary, #18181b);
}

.sf-timeline__time {
    font-size: var(--text-xs, 0.75rem);
    color: var(--text-muted, #71717a);
}

.sf-timeline__description {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary, #52525b);
    line-height: 1.5;
}

/* Dark Mode adjustments - apenas via classe .dark */
.dark .sf-skeleton {
    --skeleton-bg: #27272a;
    --skeleton-highlight: #3f3f46;
}

.dark .sf-stat-card,
.dark .sf-skeleton-card {
    background: var(--surface-card, #18181b);
    border-color: var(--surface-border, #27272a);
}

.dark [data-tooltip]::before {
    background: var(--color-neutral-100, #f4f4f5);
    color: var(--color-neutral-900, #18181b);
}

.dark [data-tooltip][data-tooltip-position="top"]::after,
.dark [data-tooltip]:not([data-tooltip-position])::after {
    border-top-color: var(--color-neutral-100, #f4f4f5);
}

/* ========================================
   10. PRINT STYLES
   ======================================== */

@media print {
    .sf-navbar,
    .sf-navbar-bottom,
    .sf-drawer,
    .sf-modal,
    .sf-toast,
    .sf-confirm-dialog,
    .sf-confirm-backdrop {
        display: none !important;
    }
}
