/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header moderno */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 60px;
    transition: transform 0.3s ease;
}

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

header h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Menu hambúrguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navegação responsiva */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

nav ul li a:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Container principal */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Seção de produtos */
.produtos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
}

.produtos h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Grid de produtos responsivo */
.lista-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards de produtos modernos */
.produto-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.produto-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.produto-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-item:hover img {
    transform: scale(1.05);
}

.produto-item h3 {
    font-size: 1.3rem;
    margin: 1rem;
    color: #333;
    font-weight: 600;
}

.produto-item p {
    margin: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.produto-item .preco {
    display: block;
    font-size: 1.4rem;
    color: #667eea;
    margin: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Botões modernos */
.btn-detalhes {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    margin: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-detalhes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-detalhes:hover::before {
    left: 100%;
}

.btn-detalhes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Footer moderno */
footer {
    text-align: center;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Barra de pesquisa (para futuras implementações) */
.search-container {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#search-input:focus {
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.3);
    background: white;
}

/* Menu mobile - removido duplicação */

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        position: relative;
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .logo-container {
        flex: 1;
    }
    
    .menu-toggle {
        display: flex;
        position: relative;
        margin-left: auto;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 15px 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        margin: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        padding: 1rem;
        border-radius: 10px;
        margin: 0.25rem 0;
        text-align: center;
        font-size: 1.1rem;
        border: 1px solid transparent;
    }
    
    nav ul li a:hover {
        background: linear-gradient(45deg, #667eea, #764ba2);
        border-color: rgba(255, 255, 255, 0.2);
        transform: none;
    }
    
    main {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .lista-produtos {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .produtos h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .logo {
        height: 45px;
        max-width: 45px;
    }
    
    main {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .lista-produtos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .produto-item {
        max-width: 100%;
    }
    
    .produto-item img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    
    .produto-item h3 {
        font-size: 1.1rem;
    }
    
    .produto-item p {
        font-size: 0.9rem;
    }
    
    .preco {
        font-size: 1.2rem;
    }
    
    .produtos h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    nav ul li a {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.produto-item {
    animation: fadeInUp 0.6s ease forwards;
}

.produto-item:nth-child(1) { animation-delay: 0.1s; }
.produto-item:nth-child(2) { animation-delay: 0.2s; }
.produto-item:nth-child(3) { animation-delay: 0.3s; }
.produto-item:nth-child(4) { animation-delay: 0.4s; }

/* Estados de loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Melhorias para acessibilidade */
.btn-detalhes:focus,
nav ul li a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* Atalho para Área Administrativa */
.admin-shortcut {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-shortcut a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.admin-shortcut a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.admin-shortcut a:active {
    transform: translateY(0) scale(0.95);
}

.admin-shortcut svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Responsividade para o atalho */
@media (max-width: 768px) {
    .admin-shortcut {
        bottom: 15px;
        right: 15px;
    }
    
    .admin-shortcut a {
        width: 48px;
        height: 48px;
    }
    
    .admin-shortcut svg {
        width: 20px;
        height: 20px;
    }
    
    .produto-actions {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .btn-ver-produto,
    .btn-whatsapp {
        font-size: 0.8rem;
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .btn-whatsapp svg {
        width: 16px;
        height: 16px;
    }
}

/* Estilos para ações dos produtos */
.produto-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: space-between;
}

/* Botão Ver Detalhes */
.btn-ver-produto {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 36px;
}

.btn-ver-produto:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Botão WhatsApp */
.btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 36px;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    background: linear-gradient(45deg, #20b858, #0f7a6b);
}

.btn-whatsapp-large {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
}

.btn-whatsapp-large svg {
    width: 20px;
    height: 20px;
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* Responsividade para logo e header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        height: 50px;
        max-width: 50px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
        max-width: 40px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}

.btn-whatsapp svg {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
    margin-right: 4px;
}

/* Responsividade para ações dos produtos */
@media (max-width: 768px) {
    .produto-actions {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .btn-ver-produto,
    .btn-whatsapp {
        font-size: 0.8rem;
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .btn-whatsapp svg {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
}