/*
Theme Name: Loja Index Simples
Theme URI: 
Author: Seu Nome
Author URI: 
Description: Tema de loja virtual com slider e produtos em destaque
Version: 1.0
License: GPL v2 or later
Text Domain: loja-index
*/

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(to bottom, #FFDB58 0%, #FFDB58 85%, #000000 100%);
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Menu Principal Desktop */
.menu-principal {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.menu-principal a {
    display: block;
    padding: 12px 20px;
    color: black !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    transition: all 0.3s ease;
    background: transparent !important;
}

.menu-principal a:hover {
    background: transparent !important;
    color: black !important;
}

.menu-principal a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: black;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.menu-principal a:hover::after {
    width: calc(100% - 40px);
}

/* Menu Toggle Mobile */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.newsletter h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #FFDB58;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #FFDB58;
}

.footer-col p {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFDB58;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 20px;
}

.social-links a:hover {
    background: #FFDB58;
    transform: translateY(-3px);
}

.contato-info {
    color: #b0b0b0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contato-info i {
    color: #FFDB58;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
}

.footer-bottom a {
    color: #27ae60;
    text-decoration: none;
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-flutuante:hover {
    transform: scale(1.15) rotate(5deg);
    background: #128C7E;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .produtos-destaque,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .produtos-destaque {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .slide {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #FFDB58;
        z-index: 10000;
        transition: all 0.4s ease-in-out;
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: hidden;
    }
    
    body.menu-aberto .nav-menu {
        right: 0;
        visibility: visible;
    }
    
    .menu-principal {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 15px;
    }
    
    .menu-principal a {
        font-size: 24px;
        padding: 20px;
    }
    
    body.menu-aberto #menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    body.menu-aberto #menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.menu-aberto #menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    body.menu-aberto {
        overflow: hidden;
    }
}