/* VARIÁVEIS DE CORES & SETUP GLOBAL */
:root {
    --primary: #25b0df;
    --secondary: #4056b2;
    --accent: #ff6b35;
    --success: #4CAF50;
    --danger: #ff6b6b;
    --dark: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --border: #e0e4e8;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* BOTOES E BADGES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 176, 223, 0.4);
}

.btn-secondary {
    background-color: #25D366;
    color: white;
}

.btn-secondary:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-cart {
    background-color: var(--dark);
    color: white;
    width: 100%;
    font-size: 0.9rem;
    padding: 10px;
}

.btn-cart:hover {
    background: var(--primary);
}

/* HEADER & NAVBAR */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-icon {
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    position: relative;
    cursor: pointer;
    color: var(--dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
    overflow: hidden;
}

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

.badge-new {
    background-color: rgba(37, 176, 223, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image-container {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
}

/* SECTIONS COMUNS, CARDS & PRODUTOS */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.categorias, .produtos, .como-funciona, .depoimentos {
    padding: 80px 0;
}

.como-funciona { background-color: var(--light-bg); }

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img, .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.produto-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.product-badge.danger { background-color: var(--danger); }
.product-badge.success { background-color: var(--success); }

.rating {
    color: #ffb100;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.price-wrapper {
    margin: 15px 0;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}

.price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

/* PASSO A PASSO (COMO FUNCIONA) */
.step-item {
    text-align: center;
    padding: 20px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: white;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* TESTIMONIALS */
.testimonial-card {
    padding: 30px;
    border-left: 4px solid var(--primary);
}

.user-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* NOTIFICAÇÃO DINÂMICA */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* MODAL DE CARRINHO */
.cart-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal-backdrop.active .cart-modal {
    right: 0;
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--light-bg);
}

.cart-total-wrapper {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
}

/* FOOTER */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #bbb;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav.active { left: 0; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-content h1 { font-size: 2.2rem; }
}

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