/**
 * 300dpi.co - Premium D2C Design System
 * "Silent Luxury" - Dark gradients, editorial typography, warm accents
 */

/* ============================================
   CSS VARIABLES - Premium Design System
   ============================================ */
:root {
    /* Typography - SUSE Font Family */
    --font-display: 'SUSE', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'SUSE', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Legacy compatibility */
    --font-serif: var(--font-display);
    --font-sans: var(--font-body);

    /* Backgrounds - Warm Luxury */
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f2ed;
    --bg-tertiary: #ebe7e0;
    --bg-elevated: #ffffff;
    --bg-hover: #f0ede6;
    --bg-dark: #0a0a0f;
    --bg-dark-secondary: #1a1a2e;
    --bg-dark-tertiary: #16213e;

    /* Borders */
    --border: #e5e0d8;
    --border-hover: #d4cec5;
    --border-focus: #e94560;
    --border-color: #e5e0d8;

    /* Text - Refined Contrast */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #757575;
    --text-muted: #9a9a9a;
    --text-light: #fafafa;
    --text-light-secondary: rgba(255,255,255,0.7);

    /* Accent - Crimson Luxury */
    --accent: #e94560;
    --accent-hover: #d63d56;
    --accent-light: #fff1f3;
    --accent-glow: rgba(233, 69, 96, 0.15);
    --accent-subtle: rgba(233, 69, 96, 0.05);

    /* Secondary Accents */
    --gold: #c9a227;
    --gold-light: #f5e6b8;
    --success-green: #22c55e;
    --sale-badge: #e94560;
    --star-gold: #f5a623;

    /* WhatsApp */
    --whatsapp: #25D366;
    --whatsapp-hover: #1EBE57;
    --whatsapp-glow: rgba(37, 211, 102, 0.15);

    /* Category Colors */
    --cat-cards: #7B5E57;
    --cat-pamphlets: #2D6A4F;
    --cat-tags: #9C6644;
    --cat-promo: #B56576;

    /* Spacing - 8px scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius - Refined */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --radius-card: 16px;

    /* Typography Sizes */
    --text-hero: clamp(40px, 8vw, 72px);
    --text-title: clamp(28px, 5vw, 48px);
    --text-heading: 24px;
    --text-subheading: 18px;
    --text-body: 16px;
    --text-small: 14px;
    --text-micro: 12px;

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

    /* Shadows - Premium Depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Grid */
    --grid-gap: 24px;
    --container-max: 1400px;

    /* Header Heights */
    --header-height: 72px;
    --header-height-mobile: 64px;
}

/* ============================================
   DARK MODE THEME
   ============================================ */
[data-theme="dark"] {
    /* Backgrounds - Dark Luxury */
    --bg-primary: #0f0f14;
    --bg-secondary: #1a1a24;
    --bg-tertiary: #252532;
    --bg-elevated: #1e1e2a;
    --bg-hover: #2a2a3a;

    /* Borders */
    --border: #2d2d3d;
    --border-hover: #3d3d4d;
    --border-color: #2d2d3d;

    /* Text */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;

    /* Accent adjustments for dark mode */
    --accent-light: rgba(233, 69, 96, 0.15);
    --accent-subtle: rgba(233, 69, 96, 0.08);
    --accent-glow: rgba(233, 69, 96, 0.25);

    /* Shadows - Subtle in dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Dark mode specific overrides */
[data-theme="dark"] .navbar {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .testimonial-card-premium,
[data-theme="dark"] .tool-card {
    background: var(--bg-elevated);
    border-color: var(--border);
}

[data-theme="dark"] .btn-premium-outline {
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .btn-premium-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="dark"] .social-proof-bar {
    background: var(--bg-secondary);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .craft-story {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .process-section {
    background: var(--bg-secondary);
    border-top-color: var(--border);
}

[data-theme="dark"] .tools-section {
    background: var(--bg-secondary);
    border-top-color: var(--border);
}

[data-theme="dark"] .final-cta {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top-color: var(--border);
}

[data-theme="dark"] .craft-feature .feature-icon {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .input,
[data-theme="dark"] .select,
[data-theme="dark"] .textarea {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary);
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Sun icon visible in dark mode, moon in light mode */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Smooth transition for theme change */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-small);
    z-index: 10000;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   TYPOGRAPHY - Premium Editorial
   ============================================ */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
}

.text-display { font-family: var(--font-display); }
.text-body { font-family: var(--font-body); }

.text-hero {
    font-size: var(--text-hero);
    font-family: var(--font-display);
    line-height: 1.1;
}

.text-title {
    font-size: var(--text-title);
    font-family: var(--font-display);
}

.text-heading {
    font-size: var(--text-heading);
    font-weight: 600;
}

.text-subheading {
    font-size: var(--text-subheading);
    font-weight: 500;
}

.text-body { font-size: var(--text-body); }
.text-small { font-size: var(--text-small); }
.text-micro { font-size: var(--text-micro); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.page-content {
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .page-content {
        padding-bottom: 0;
    }
}

/* ============================================
   PREMIUM BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-size: var(--text-body);
    font-weight: 500;
    font-family: var(--font-body);
    line-height: 1;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(233, 69, 96, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-dark {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.btn-dark:hover {
    background: #333;
    border-color: #333;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    border-color: var(--whatsapp);
    box-shadow: 0 4px 14px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    border-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--whatsapp-glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: var(--text-small);
}

.btn-lg {
    padding: 18px 36px;
    font-size: var(--text-subheading);
}

.btn-icon {
    padding: 14px;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   PREMIUM CARDS
   ============================================ */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-xl);
    transition: all var(--transition-smooth);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.card-flat {
    background: var(--bg-secondary);
    border: none;
}

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   FORMS - Refined
   ============================================ */
.input, .select, .textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-body);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

.input:focus, .select:focus, .textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.input::placeholder, .textarea::placeholder {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================
   PILLS & TAGS
   ============================================ */
.pill {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.pill:hover, .pill.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.option {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option:hover {
    border-color: var(--border-hover);
}

.option.selected {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-subtle);
}

/* ============================================
   NAVIGATION - Site Header
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ============================================
   BOTTOM NAVIGATION (Mobile)
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: var(--space-sm) 0 calc(var(--space-sm) + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--text-micro);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item-icon {
    font-size: 20px;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: var(--space-lg);
    z-index: 99;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp);
    border-radius: var(--radius-full);
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-lg), 0 0 20px var(--whatsapp-glow);
    transition: all var(--transition-base);
    animation: pulse-fab 3s infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 40px var(--whatsapp-glow);
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
}

@keyframes pulse-fab {
    0%, 100% { box-shadow: var(--shadow-lg), 0 0 20px var(--whatsapp-glow); }
    50% { box-shadow: var(--shadow-lg), 0 0 30px var(--whatsapp-glow); }
}

@media (min-width: 768px) {
    .whatsapp-fab {
        bottom: var(--space-xl);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-size: var(--text-title);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

/* ============================================
   PREMIUM PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

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

/* ============================================
   PREMIUM PRODUCT CARD
   ============================================ */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-elevated);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.4;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
    z-index: 2;
}

.product-card:hover .favorite-btn {
    opacity: 1;
    transform: scale(1);
}

.favorite-btn:hover {
    background: var(--accent-light);
}

.favorite-btn .heart-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    transition: fill var(--transition-fast);
}

.favorite-btn:hover .heart-icon,
.favorite-btn.active .heart-icon {
    fill: var(--accent);
}

/* Product Info */
.product-card-info {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-shop {
    font-size: var(--text-micro);
    color: var(--text-muted);
    margin: 0 0 var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-title {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-link:hover .product-card-title {
    color: var(--accent);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.product-card-rating .stars {
    color: var(--star-gold);
    font-size: var(--text-small);
    letter-spacing: -1px;
}

.product-card-rating .rating-count {
    font-size: var(--text-micro);
    color: var(--text-tertiary);
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.product-card-price .price {
    font-size: var(--text-subheading);
    font-weight: 600;
    color: var(--text-primary);
}

.product-card-price .price-suffix {
    font-size: var(--text-micro);
    color: var(--text-tertiary);
}

.product-card-shipping {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-micro);
    color: var(--success-green);
    margin: 0;
}

/* Add to Cart Button */
.product-card-buy {
    padding: var(--space-md);
    padding-top: 0;
    margin-top: auto;
}

.product-card-buy .add-to-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-small);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-card-buy .add-to-cart-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.add-to-cart-btn.success {
    background: var(--success-green);
}

.add-to-cart-btn.error {
    background: #ef4444;
}

.add-to-cart-btn .spin {
    animation: spin 1s linear infinite;
}

/* Toast Notifications - Enhanced */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: var(--space-lg);
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-sm);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    touch-action: pan-x;
    cursor: grab;
}

.toast.toast-removing {
    animation: toastSlideOut 0.25s ease-in forwards;
}

.toast.toast-swiping {
    transition: none;
    cursor: grabbing;
}

/* Toast Types */
.toast-success {
    border-left: 4px solid var(--success-green);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-info {
    border-left: 4px solid var(--accent);
}

/* Toast Icon */
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-green);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.toast-info .toast-icon {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
}

.toast-icon svg {
    width: 12px;
    height: 12px;
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s;
    border-radius: var(--radius-sm);
}

.toast-close:hover {
    opacity: 1;
    background: var(--bg-secondary);
}

.toast-close svg {
    width: 14px;
    height: 14px;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--text-muted);
    opacity: 0.3;
    transform-origin: left;
}

.toast-success .toast-progress { background: var(--success-green); }
.toast-error .toast-progress { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-info .toast-progress { background: var(--accent); }

/* Toast Animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: 80px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* Dark Mode Toast */
[data-theme="dark"] .toast {
    background: var(--bg-tertiary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
}

/* Legacy toast-notification support (backwards compatibility) */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

.toast-notification.toast-success {
    background: var(--success-green);
}

.toast-notification.toast-error {
    background: #ef4444;
}

.toast-notification button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.toast-notification button:hover {
    opacity: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

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

.category-card {
    text-align: center;
    padding: var(--space-xl);
    text-decoration: none;
    color: inherit;
}

.category-icon {
    font-size: 32px;
    margin-bottom: var(--space-md);
}

.category-name {
    font-size: var(--text-body);
    font-weight: 500;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.feature-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-desc {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-3xl) 0 calc(var(--space-3xl) + 80px);
    border-top: 1px solid var(--border);
}

.footer-brand {
    margin-bottom: var(--space-lg);
}

.footer-tagline {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-link {
    font-size: var(--text-small);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: var(--text-micro);
    color: var(--text-tertiary);
}

@media (min-width: 768px) {
    .footer {
        padding-bottom: var(--space-3xl);
    }
}

/* ============================================
   PREMIUM ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Heart Pop Animation */
@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.favorite-btn.active .heart-icon {
    animation: heartPop 0.4s ease;
}

/* Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200px 100%;
    animation: shimmer 1.2s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* Card Lift Effect */
.card-lift {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* ============================================
   UTILITIES
   ============================================ */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

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

@media (min-width: 768px) {
    .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .md-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--text-small);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--accent);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    display: grid;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.product-detail-image {
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
}

.product-detail-title {
    font-size: var(--text-title);
    margin-bottom: var(--space-sm);
}

.product-detail-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.product-options {
    margin-bottom: var(--space-xl);
}

.product-option-label {
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.product-detail-price {
    font-size: 36px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.product-meta {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--accent);
    color: white;
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
    a, button, [role="button"], input[type="submit"] {
        min-height: 44px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }

    .btn-lg {
        padding: 16px 32px;
        min-height: 52px;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price .price {
        font-size: 15px;
    }

    .product-card-info {
        padding: 12px;
    }

    :root {
        --text-hero: 32px;
        --text-title: 24px;
        --text-heading: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

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

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .page-content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    @media (min-width: 769px) {
        .page-content {
            padding-bottom: 0;
        }
    }
}

@media (hover: none) {
    .btn:focus,
    .option:focus,
    input:focus,
    select:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .favorite-btn {
        opacity: 1 !important;
    }
}

/* Print styles */
@media print {
    .bottom-nav,
    .site-header,
    .chat-widget,
    .footer-newsletter,
    .whatsapp-fab {
        display: none !important;
    }

    .page-content {
        padding: 0;
    }

    body {
        background: white;
    }
}

/* ============================================
   MICRO-INTERACTIONS - Enhanced States
   ============================================ */

/* Button Press States */
.btn:active,
.btn-premium:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

.btn-primary:active {
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.2);
}

.btn-whatsapp:active {
    box-shadow: 0 2px 8px var(--whatsapp-glow);
}

/* Form Field Animations */
.input,
.select,
.textarea {
    transition: all var(--transition-base), box-shadow 0.3s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    transform: translateY(-1px);
}

/* Input with floating label effect */
.form-group-float {
    position: relative;
}

.form-group-float .input {
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-group-float .form-label {
    position: absolute;
    top: 50%;
    left: var(--space-lg);
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    margin: 0;
}

.form-group-float .input:focus ~ .form-label,
.form-group-float .input:not(:placeholder-shown) ~ .form-label {
    top: 12px;
    font-size: var(--text-micro);
    color: var(--accent);
}

/* Link hover underline animation */
.link-animated {
    position: relative;
    display: inline-block;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.link-animated:hover::after {
    width: 100%;
}

/* Card press effect */
.card:active,
.product-card:active {
    transform: translateY(-2px) scale(0.995);
}

/* Checkbox/Radio custom styles with animation */
.checkbox-custom,
.radio-custom {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.checkbox-custom input,
.radio-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom .checkmark,
.radio-custom .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-custom .checkmark {
    border-radius: 50%;
}

.checkbox-custom input:checked ~ .checkmark,
.radio-custom input:checked ~ .checkmark {
    background: var(--accent);
    border-color: var(--accent);
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checkbox-custom .checkmark svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox-custom input:checked ~ .checkmark svg {
    opacity: 1;
    transform: scale(1);
}

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Icon rotation on hover */
.icon-rotate-hover:hover svg,
.icon-rotate-hover:hover .icon {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}

/* Bounce on hover */
.bounce-hover:hover {
    animation: bounceSmall 0.5s ease;
}

@keyframes bounceSmall {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-6px); }
    50% { transform: translateY(-3px); }
    75% { transform: translateY(-6px); }
}

/* ============================================
   PREMIUM HOMEPAGE STYLES
   ============================================ */

/* Premium Hero Section */
.premium-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 968px) {
    .premium-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 16px 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.9); /* WCAG AA fix: improved from 0.7 */
    letter-spacing: 0.5px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 400;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-line {
    display: block;
}

.hero-line-accent {
    color: var(--accent);
}

.hero-description {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255,255,255,0.85); /* WCAG AA fix: improved from 0.6 */
    max-width: 440px;
    margin-bottom: 32px;
}

@media (max-width: 968px) {
    .hero-description {
        margin: 0 auto 32px;
    }
}

/* Hero CTAs */
.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 968px) {
    .hero-cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-group .btn-premium {
        width: 100%;
        max-width: 280px;
    }
}

/* Premium Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Button press state */
.btn-premium:active {
    transform: translateY(0) scale(0.98);
}

.btn-premium-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 24px rgba(233, 69, 96, 0.3);
}

.btn-premium-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.4);
}

.btn-premium-primary:active {
    box-shadow: 0 2px 12px rgba(233, 69, 96, 0.3);
}

.btn-premium-secondary {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-premium-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}

.btn-premium-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-premium-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-premium-light {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-premium-light:hover {
    background: rgba(255,255,255,0.22);
}

.btn-premium.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 968px) {
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .hero-stat-divider {
        display: none;
    }
}

.hero-stat {
    text-align: left;
}

@media (max-width: 968px) {
    .hero-stat {
        text-align: center;
    }
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 2px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.7); /* WCAG AA: 0.7 on dark bg passes for small text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

@media (max-width: 968px) {
    .hero-visual {
        display: none;
    }
}

.hero-image-stack {
    position: relative;
    aspect-ratio: 4/3;
}

.stack-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.stack-card:hover {
    transform: scale(1.02);
}

.stack-card-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent) 0%, #c73e54 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.4);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.badge-sub {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
}

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
.social-proof-bar {
    padding: 20px 0;
    background: #f8f6f3;
    border-bottom: 1px solid var(--border);
}

.proof-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.proof-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.proof-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
}

.proof-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.metric-icon {
    color: var(--accent);
    display: flex;
}

@media (max-width: 768px) {
    .proof-content {
        flex-direction: column;
        gap: 12px;
    }
    .proof-metrics {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ============================================
   COLLECTIONS SECTION
   ============================================ */
.collections-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-intro {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-desc {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

.collection-card {
    position: relative;
    aspect-ratio: 1;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.collection-card:active {
    transform: translateY(-4px) scale(0.98);
}

.collection-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.collection-icon {
    font-size: 40px;
    margin-bottom: auto;
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-icon {
    transform: scale(1.1) rotate(-5deg);
}

.collection-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
}

.collection-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--card-accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.collection-card:hover .collection-cta {
    opacity: 1;
    transform: translateX(0);
}

.collection-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.collection-card:hover .collection-shine {
    left: 100%;
}

/* ============================================
   CRAFT STORY SECTION
   ============================================ */
.craft-story {
    padding: 100px 0;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f2ed 100%);
}

.craft-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 968px) {
    .craft-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.craft-content {
    max-width: 520px;
}

@media (max-width: 968px) {
    .craft-content {
        max-width: 100%;
    }
}

.craft-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.craft-headline {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.craft-headline .text-accent {
    color: var(--accent);
}

.craft-desc {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.craft-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.craft-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s ease;
}

.craft-feature:hover {
    transform: translateX(4px);
}

.craft-feature .feature-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.craft-feature:hover .feature-icon {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.craft-feature .feature-text strong {
    display: block;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.craft-feature .feature-text span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.craft-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.craft-link:hover {
    gap: 12px;
}

/* Craft Visual */
.craft-visual {
    position: relative;
}

.craft-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.craft-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
}

.process-badge {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.process-badge .badge-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 50%;
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.process-badge span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .craft-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 24px;
}

@media (max-width: 600px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

.see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.see-all-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
    padding: 100px 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.process-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 48px;
}

@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        gap: 32px;
    }
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-marker {
    position: relative;
    margin-bottom: 24px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent) 0%, #c73e54 100%);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 20px;
    color: #ffffff;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
}

.step-line {
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100% + 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--border));
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .step-line {
        display: none;
    }
}

.step-content {
    max-width: 240px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

.process-cta {
    text-align: center;
}

/* ============================================
   CONCIERGE SECTION
   ============================================ */
.concierge-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.concierge-card {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concierge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.25);
}

.concierge-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .concierge-content {
        flex-direction: column;
        text-align: center;
    }
}

.concierge-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.concierge-card:hover .concierge-icon {
    transform: scale(1.1) rotate(-5deg);
}

.concierge-text {
    flex: 1;
}

.concierge-text h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
}

.concierge-text p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.9); /* WCAG AA fix */
    margin: 0;
}

.btn-whatsapp-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ffffff;
    color: #128c7e;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-whatsapp-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-whatsapp-premium:active {
    transform: scale(1.02);
}

.concierge-badge {
    position: absolute;
    bottom: 16px;
    right: 24px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.8); /* WCAG AA fix */
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools-section {
    padding: 80px 0;
    background: #f8f6f3;
    border-top: 1px solid var(--border);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.tool-card:active {
    transform: translateY(-2px) scale(0.98);
}

.tool-icon {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(-10deg);
}

.tool-info h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.tool-audience {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--whatsapp);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

.testimonial-card-premium {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial-card-premium:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    margin-bottom: 16px;
}

.testimonial-card-premium blockquote {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.testimonial-author-premium {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent) 0%, #c73e54 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.testimonial-card-premium:hover .author-avatar {
    transform: scale(1.1);
}

.author-info strong {
    display: block;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.verified-badge {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--whatsapp);
}

/* ============================================
   ENTERPRISE SECTION - Enhanced Visual
   ============================================ */
.enterprise-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.enterprise-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    overflow: hidden;
    min-height: 280px;
    position: relative;
}

@media (max-width: 768px) {
    .enterprise-card {
        grid-template-columns: 1fr;
    }
}

.enterprise-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.enterprise-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #c73e54 100%);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 16px;
    width: fit-content;
}

.enterprise-card h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
}

.enterprise-card p {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.85); /* WCAG AA fix */
    margin-bottom: 24px;
    max-width: 400px;
}

.enterprise-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 480px) {
    .enterprise-actions {
        flex-direction: column;
    }
}

/* Enhanced Enterprise Visual */
.enterprise-visual {
    position: relative;
    background: linear-gradient(135deg, rgba(233,69,96,0.15) 0%, rgba(22,33,62,0.3) 100%);
    overflow: hidden;
}

.enterprise-pattern {
    position: absolute;
    inset: 0;
    /* Geometric pattern with animated elements */
    background-image:
        radial-gradient(circle at 25% 25%, rgba(233,69,96,0.4) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(233,69,96,0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* Animated floating shapes */
.enterprise-visual::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 4s ease-in-out infinite;
}

.enterprise-visual::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), transparent);
    border-radius: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: rotate-shape 8s linear infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }
}

@keyframes rotate-shape {
    from { transform: translate(-50%, -50%) rotate(45deg); }
    to { transform: translate(-50%, -50%) rotate(405deg); }
}

/* Add floating icons/elements */
.enterprise-visual .float-element {
    position: absolute;
    font-size: 48px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.enterprise-visual .float-element:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.enterprise-visual .float-element:nth-child(2) {
    top: 60%;
    right: 25%;
    animation-delay: 2s;
}

.enterprise-visual .float-element:nth-child(3) {
    bottom: 20%;
    left: 40%;
    animation-delay: 4s;
}

@media (max-width: 768px) {
    .enterprise-visual {
        display: none;
    }
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f6f3 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border);
}

.final-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.final-cta p {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .final-cta-buttons .btn-premium {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Base hidden state for scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .scroll-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .scroll-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animation Variants */

    /* Fade Up (default) */
    .scroll-hidden[data-animate="fade-up"],
    .scroll-hidden:not([data-animate]) {
        transform: translateY(30px);
    }

    /* Fade In (no movement) */
    .scroll-hidden[data-animate="fade-in"] {
        transform: none;
    }

    /* Slide from Left */
    .scroll-hidden[data-animate="slide-left"] {
        transform: translateX(-50px);
    }
    .scroll-visible[data-animate="slide-left"],
    .scroll-visible.animate-slide-left {
        transform: translateX(0);
    }

    /* Slide from Right */
    .scroll-hidden[data-animate="slide-right"] {
        transform: translateX(50px);
    }
    .scroll-visible[data-animate="slide-right"],
    .scroll-visible.animate-slide-right {
        transform: translateX(0);
    }

    /* Scale Up */
    .scroll-hidden[data-animate="scale"] {
        transform: scale(0.9);
    }
    .scroll-visible[data-animate="scale"],
    .scroll-visible.animate-scale {
        transform: scale(1);
    }

    /* Zoom In */
    .scroll-hidden[data-animate="zoom"] {
        transform: scale(0.8);
        opacity: 0;
    }
    .scroll-visible[data-animate="zoom"],
    .scroll-visible.animate-zoom {
        transform: scale(1);
        opacity: 1;
    }

    /* Flip */
    .scroll-hidden[data-animate="flip"] {
        transform: perspective(600px) rotateX(-15deg);
        opacity: 0;
    }
    .scroll-visible[data-animate="flip"],
    .scroll-visible.animate-flip {
        transform: perspective(600px) rotateX(0);
        opacity: 1;
    }

    /* Blur In */
    .scroll-hidden[data-animate="blur"] {
        filter: blur(10px);
        opacity: 0;
    }
    .scroll-visible[data-animate="blur"],
    .scroll-visible.animate-blur {
        filter: blur(0);
        opacity: 1;
        transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
    }

    /* Stagger delay utilities */
    .scroll-visible:nth-child(1) { transition-delay: 0s; }
    .scroll-visible:nth-child(2) { transition-delay: 0.1s; }
    .scroll-visible:nth-child(3) { transition-delay: 0.2s; }
    .scroll-visible:nth-child(4) { transition-delay: 0.3s; }
    .scroll-visible:nth-child(5) { transition-delay: 0.4s; }
    .scroll-visible:nth-child(6) { transition-delay: 0.5s; }

    /* Hero animations (immediate, not scroll-triggered) */
    .premium-hero .hero-content,
    .premium-hero .hero-visual {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }
    .premium-hero .hero-content { animation-delay: 0.2s; }
    .premium-hero .hero-visual { animation-delay: 0.4s; }

    /* Section-specific tweaks */
    .craft-feature.scroll-visible:nth-child(1) { transition-delay: 0s; }
    .craft-feature.scroll-visible:nth-child(2) { transition-delay: 0.15s; }
    .craft-feature.scroll-visible:nth-child(3) { transition-delay: 0.3s; }

    .process-step.scroll-visible:nth-child(1) { transition-delay: 0s; }
    .process-step.scroll-visible:nth-child(2) { transition-delay: 0.15s; }
    .process-step.scroll-visible:nth-child(3) { transition-delay: 0.3s; }
}

/* Keyframe animations for more complex effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Counter animation for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Parallax-lite effect for supported elements */
.parallax-lite {
    transition: transform 0.1s ease-out;
}

/* Animate numbers/stats when visible */
.stat-value.scroll-visible,
.hero-stat .stat-value {
    animation: countUp 0.6s ease forwards;
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    .scroll-hidden,
    .scroll-visible,
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   SKELETON LOADING STATES
   ============================================ */

/* Base skeleton styles */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-hover) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        var(--bg-hover) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 200% 100%;
}

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

/* Skeleton variants */
.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-text-lg {
    height: 24px;
    width: 80%;
}

.skeleton-title {
    height: 28px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-button {
    height: 48px;
    width: 120px;
    border-radius: var(--radius-full);
}

.skeleton-card {
    padding: var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

/* Product card skeleton */
.skeleton-product-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.skeleton-product-card .skeleton-image {
    border-radius: 0;
    aspect-ratio: 4/3;
}

.skeleton-product-card .skeleton-content {
    padding: var(--space-lg);
}

.skeleton-product-card .skeleton-badge {
    height: 24px;
    width: 60px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.skeleton-product-card .skeleton-price {
    height: 32px;
    width: 80px;
    margin-top: 12px;
}

/* Skeleton grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

/* Loading state for existing elements */
.is-loading {
    pointer-events: none;
    position: relative;
}

.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

[data-theme="dark"] .is-loading::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
}

/* Pulse loading for buttons */
.btn.is-loading {
    color: transparent;
}

.btn.is-loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    margin: -10px 0 0 -10px;
}

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

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

/* Page transition wrapper */
.page-content {
    animation: pageEnter 0.4s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Exit animation class */
.page-exit {
    animation: pageExit 0.2s ease-in forwards;
}

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

/* View Transitions API support (modern browsers) */
@supports (view-transition-name: none) {
    ::view-transition-old(root) {
        animation: pageExit 0.2s ease-in forwards;
    }

    ::view-transition-new(root) {
        animation: pageEnter 0.3s ease-out;
    }

    /* Prevent flash during transition */
    ::view-transition-old(root),
    ::view-transition-new(root) {
        mix-blend-mode: normal;
    }
}

/* Navigation loading indicator */
.nav-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    animation: nav-loading-shimmer 1s ease-in-out infinite;
    z-index: 9999;
    transform-origin: left;
    animation: nav-loading-progress 0.8s ease-out forwards, nav-loading-shimmer 1s ease-in-out infinite;
}

@keyframes nav-loading-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(0.9); }
}

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

.nav-loading.complete {
    animation: nav-loading-complete 0.3s ease-out forwards;
}

@keyframes nav-loading-complete {
    0% { transform: scaleX(0.9); opacity: 1; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}

/* Fade transition utility classes */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Slide transitions */
.slide-up-enter {
    opacity: 0;
    transform: translateY(20px);
}

.slide-up-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

/* Staggered content reveal on page load */
.page-content > section:nth-child(1) { animation-delay: 0s; }
.page-content > section:nth-child(2) { animation-delay: 0.1s; }
.page-content > section:nth-child(3) { animation-delay: 0.15s; }
.page-content > section:nth-child(4) { animation-delay: 0.2s; }
.page-content > section:nth-child(5) { animation-delay: 0.25s; }

/* Reduced motion: disable page transitions */
@media (prefers-reduced-motion: reduce) {
    .page-content,
    .page-exit,
    .nav-loading {
        animation: none !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}
