/* Global Variables */
:root {
    --primary-color: #010B19;
    --secondary-color: #40C4FF;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}
.loader-content { text-align: center; }
.loader-logo {
    height: 120px;
    margin-bottom: 25px;
    animation: loaderPulse 2s infinite ease-in-out;
}
.loader-text {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1.1rem;
    margin: 0;
}
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.7; } }
.loader-hidden { opacity: 0; visibility: hidden; }

/* Navbar Custom */
.navbar {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    z-index: 1030;
}

.navbar.scrolled {
    background: #ffffff;
    backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    position: relative;
    transition: 0.3s;
    padding: 0.5rem 0 !important;
}

.nav-link:hover { 
    color: var(--secondary-color) !important; 
}

/* Efeito de linha animada no Hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.navbar-brand .brand-title {
    font-style: italic;
    letter-spacing: -1px;
}
.navbar-brand .brand-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
}

/* Logo Styles */
.navbar-logo {
    height: 75px;
    width: auto;
    transition: height 0.3s ease;
}
@media (max-width: 576px) {
    .navbar-logo { height: 55px; }
    .footer-logo { height: 50px; }
}
.footer-logo {
    height: 70px;
    width: auto;
}

/* Mobile Navbar Adjustment */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        margin-top: 15px;
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border: 1px solid rgba(64, 196, 255, 0.1);
    }
    .navbar { background: #ffffff !important; padding: 10px 0; }
    .nav-link::after { display: none; } /* Remove underline on mobile for cleaner look */
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: radial-gradient(circle at 10% 20%, rgba(64, 196, 255, 0.1), transparent);
}
.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}
.text-accent { color: var(--secondary-color); }

/* Botões */
.btn-top-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 800;
    border-radius: 50px;
    padding: 15px 35px;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.3s;
}
.btn-top-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(64, 196, 255, 0.3);
    background-color: #31b0e8;
}
.btn-buy { background: var(--primary-color); color: white; border-radius: 50px; font-weight: 600; }

/* Stats Section */
.stats-section {
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.stat-item h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

/* Cards */
.card-produto {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}
.card-produto:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
}

.card-produto img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.card-produto:hover img { transform: scale(1.1); }

.badge-top {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-style: italic;
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 0.7rem;
}
.price-tag { color: var(--secondary-color); font-weight: 800; font-size: 1.25rem; }

/* Footer */
footer { background: #ffffff; color: var(--primary-color); padding: 80px 0 30px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-link { color: #555; text-decoration: none; transition: 0.3s; }
.footer-link:hover { color: var(--secondary-color); }

.nav-link.active {
    color: var(--secondary-color) !important;
}
.nav-link.active::after {
    width: 100%;
}

.social-links .footer-link {
    width: 40px;
    height: 40px;
    background: rgba(1, 11, 25, 0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-color) !important;
}

.social-links .footer-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* WhatsApp & Back to Top */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50px;
    text-align: center; font-size: 30px; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

.back-to-top {
    position: fixed; bottom: 100px; right: 30px;
    background-color: var(--primary-color); color: white;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 999; transition: 0.3s; opacity: 0; visibility: hidden;
}
.back-to-top.show { opacity: 1; visibility: visible; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Pagination Styles */
.pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    transition: 0.3s;
}
.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}
.pagination .page-link:hover:not(.active) {
    color: var(--secondary-color);
    background-color: var(--light-bg);
}

.category-filters .btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}