/*
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
*/

* {
    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: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-principal {
    display: flex;
    list-style: none;
    gap: 15px;
}

.menu-principal li {
    position: relative;
}

.menu-principal a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s;
    display: block;
    border-radius: 5px;
}

.menu-principal a:hover {
    color: #3498db;
    background: #f8f9fa;
}

.menu-principal .destaque a {
    background: #27ae60;
    color: white;
    font-weight: bold;
}

.menu-principal .destaque a:hover {
    background: #2ecc71;
    color: white;
}

.menu-principal .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    list-style: none;
}

.menu-principal li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-principal .sub-menu a {
    padding: 8px 20px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s;
}

/* WhatsApp no Header */
.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    margin-left: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
}

.whatsapp-header:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.whatsapp-icone {
    font-size: 20px;
}

.whatsapp-texto {
    font-size: 14px;
    font-weight: 500;
}

/* Slider */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 400px;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    text-align: center;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 18px;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Seção de Destaques */
.destaques-titulo {
    text-align: center;
    font-size: 36px;
    margin: 50px 0 30px;
    color: #2c3e50;
    position: relative;
}

.destaques-titulo:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #27ae60;
    margin: 15px auto;
}

.produtos-destaque {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.produto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.produto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.produto-imagem {
    height: 250px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.1);
}

.produto-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.produto-info {
    padding: 20px;
}

.produto-titulo {
    font-size: 20px;
    margin-bottom: 10px;
}

.produto-titulo a {
    color: #2c3e50;
    text-decoration: none;
}

.produto-preco {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.produto-preco-antigo {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: normal;
}

.produto-resumo {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-whatsapp {
    background: #25D366;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 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 p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.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: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #2ecc71;
}

/* Footer */
.site-footer {
    background: #1a2634;
    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: #27ae60;
}

.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;
    display: inline-block;
}

.footer-links a:hover {
    color: #27ae60;
    transform: translateX(5px);
}

.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: #27ae60;
    transform: translateY(-3px);
}

.contato-info {
    color: #b0b0b0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contato-info i {
    color: #27ae60;
    width: 20px;
}

.pagamento-icones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.pagamento-icones span {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #b0b0b0;
}

.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;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 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;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@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;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .header-content {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-principal {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .menu-principal li {
        width: 100%;
    }
    
    .menu-principal a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .menu-principal .destaque a {
        margin-top: 10px;
    }
    
    .menu-principal .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        width: 100%;
    }
    
    .menu-principal li:hover .sub-menu {
        display: block;
    }
    
    .whatsapp-header {
        order: 1;
        margin-left: auto;
        padding: 8px 12px;
    }
    
    .whatsapp-texto {
        display: none;
    }
}