/* === RESET E BASE OTIMIZADO === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #0c0c0c 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === HERO PREMIUM SIMPLIFICADO === */
.hero-premium {
    margin-bottom: -100px;
    position: relative;
    min-height: 70vh;
    padding: 2rem 0;
    overflow: visible;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-glass-main {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-glass-main:hover {
    transform: translateY(-2px);
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* === TEXTOS OTIMIZADOS === */
.hero-main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    background: linear-gradient(135deg, #10b981, #06d6a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 480px;
}

/* === BOTÕES SIMPLIFICADOS === */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-glass,
.btn-secondary-glass {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary-glass {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary-glass:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* === CARD FLUTUANTE SIMPLIFICADO === */
.floating-card-main {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
    max-height: 400px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.card-dots span:first-child {
    background: #ef4444;
}

.card-dots span:nth-child(2) {
    background: #f59e0b;
}

.card-dots span:last-child {
    background: #10b981;
}

.card-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
}

.categories-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.categories-scroll::-webkit-scrollbar {
    width: 4px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

/* === BOTÕES DE CATEGORIA OTIMIZADOS === */
.category-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.category-icon-small {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-info h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.category-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin: 0.1rem 0 0;
}

.category-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.category-button:hover .category-arrow {
    color: rgba(99, 102, 241, 0.8);
    transform: translateX(2px);
}

/* === CONTADORES SIMPLIFICADOS === */
.clients-counter-container,
.support-counter-container {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    z-index: 5;
    width: 200px;
}

.clients-counter-container {
    right: 30px;
}

.support-counter-container {
    left: 30px;
}

.clients-counter-glass,
.support-counter-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.clients-counter-glass:hover,
.support-counter-glass:hover {
    transform: translateY(-2px);
}

.clients-number,
.support-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
}

.clients-label,
.support-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* === PRODUTOS OTIMIZADOS === */
.products-section {
    padding: 2rem 0;
}

#category-section {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: visible;
}

.section-title-glass {
    margin-bottom: 2rem;
    display: block;
}

.title-content {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.title-content:hover {
    transform: translateY(-1px);
}

/* === GRID OTIMIZADO === */
.grid {
    display: grid;
    gap: 1rem;
    padding: 0.5rem;
    overflow: visible;
}

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

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

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1536px) {
    .2xl\:grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* === HOVER PRODUTOS SIMPLIFICADO === */
a[href*="/products/"] {
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

a[href*="/products/"]:hover {
    border-color: \<\%=hexToRgb(store\.theme\.primaryColor) \%\>;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    background: rgba(255, 255, 255, 0.08);
    z-index: 10;
}

/* === FEATURES SIMPLIFICADAS === */
.why-choose-us-section {
    padding: 3rem 0;
    position: relative;
}

.why-choose-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 3rem;
}

.features-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-glass-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

.feature-icon.shield {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

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

.feature-icon.support {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.feature-glass-card h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-glass-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === CONTAINER PRINCIPAL === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible;
}

/* === RESPONSIVIDADE MOBILE === */
@media (max-width: 768px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-premium {
        margin-bottom: -50px;
        min-height: 60vh;
    }

    .hero-glass-main {
        padding: 2rem 1.5rem;
    }

    .clients-counter-container,
    .support-counter-container {
        display: none;
    }

    .features-glass-grid {
        grid-template-columns: 1fr;
    }

    .floating-card-main {
        max-height: 300px;
    }

    #category-section {
        padding: 1.5rem 0.5rem;
        margin-bottom: 2rem;
    }

    .grid {
        gap: 0.75rem;
        padding: 0.25rem;
    }
}

/* === DISABLE ANIMAÇÕES PESADAS === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === LOGO OTIMIZADA === */
.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    transition: transform 0.2s ease;
    object-fit: cover;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* === PERFORMANCE HINTS === */
a[href*="/products/"] {
    will-change: auto;
}

a[href*="/products/"]:hover {
    will-change: transform;
}

a[href*="/products/"]:not(:hover) {
    will-change: auto;
}