/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo-circle {
    width: 60px;
    height: 60px;        
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #8bc34a;
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #8bc34a;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
}

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

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Filter Buttons */
.filters {
    padding: 30px 0;
    background: white;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #8bc34a;
    color: white;
    border-color: #8bc34a;
}

/* Products Section */
.products {
    padding: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #333;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 20px;
}

.product-location {
    color: #8bc34a;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.add-to-cart {
    width: 40px;
    height: 40px;
    border: 2px solid #8bc34a;
    background: white;
    color: #8bc34a;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: #8bc34a;
    color: white;
}

/* Shopping Cart Modal */
.cart-modal {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

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

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

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: calc(100vh - 300px);
    scrollbar-width: thin;
    padding-right: 5px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.cart-item-price {
    color: #8bc34a;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.cart-footer {
    padding: 5px;
    border-top: 1px solid #eee;
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #1db954;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* Footer Styles Corrigido */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 0 30px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h3 {
    color: #8bc34a;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: #8bc34a;
}

.footer-logo {
    margin-bottom: 20px;
    text-align: center;
}

.footer-logo .logo-circle {
    margin: 0 auto;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 25px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(139, 195, 74, 0.1);
    border: 2px solid #8bc34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8bc34a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8bc34a;
    color: #2c3e50;
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #8bc34a;
}

.footer-section ul li i {
    color: #8bc34a;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Atendimento Section - Corrigindo alinhamento */
.footer-section:nth-child(3) ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.footer-section:nth-child(3) ul li span {
    flex: 1;
    color: #bdc3c7;
    font-size: 0.95rem;
}

/* Footer Bottom - Corrigido */
.footer-divider {
    height: 1px;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(139, 195, 74, 0.3) 50%, 
        transparent 100%
    );
    margin: 30px 0 20px;
    grid-column: 1 / -1;
}

.footer-bottom {
    padding: 20px 0;
    grid-column: 1 / -1;
    text-align: center;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-credits p {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
}

.developer-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bdc3c7;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.heart-icon {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.developer-link {
    color: #8bc34a;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: #a4d96a;
    text-decoration: underline;
}

.year {
    color: #8bc34a;
    font-weight: bold;
}

/* Ajustes para o carrinho na versão mobile - CORRIGIDO */
@media (max-width: 768px) {
    .cart-modal {
        width: 100%;
        height: 85vh;
        max-height: 85vh;
        top: auto;
        bottom: -100%;
        right: 0;
        left: 0;
        transform: none;
        border-radius: 20px 20px 0 0;
        transition: bottom 0.3s ease;
    }
    
    .cart-modal.active {
        bottom: 0;
        right: 0;
    }
    
    .cart-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .cart-header {
        padding: 15px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #eee;
    }
    
    .cart-items {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
        max-height: none;
    }
    
    .cart-item {
        display: flex;
        gap: 12px;
        padding: 12px 0;
        align-items: flex-start;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 0;
    }
    
    .cart-item-name {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 5px;
        word-wrap: break-word;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 14px;
    }
    
    .quantity {
        min-width: 30px;
        text-align: center;
        font-weight: bold;
    }
    
    .cart-footer {
        padding: 15px;
        background: white;
        border-top: 1px solid #eee;
        position: sticky;
        bottom: 0;
    }
    
    .checkout-btn {
        padding: 16px;
        font-size: 16px;
    }
    
    .shipping-section {
        padding: 12px 15px;
    }
    
    .shipping-input {
        flex-direction: column;
        gap: 8px;
    }
    
    .shipping-input button {
        padding: 12px;
    }
}

/* Ajustes adicionais para telas muito pequenas */
@media (max-width: 480px) {
    .cart-modal {
        height: 90vh;
        max-height: 90vh;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .product-name {
        font-size: 1rem;
        line-height: 1.2;
    }
}

/* Garantir que o overlay cubra toda a tela */
.overlay {
    z-index: 1499;
}

/* Melhorar a visualização dos produtos em mobile */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-info {
        padding: 15px;
    }
}

/* Corrigir o header em mobile */
@media (max-width: 768px) {
    .header-content {
        padding: 10px 0;
    }
    
    .logo-circle {
        width: 45px;
        height: 45px;
    }
    
    .cart-icon {
        font-size: 20px;
    }
}

/* Responsividade do Footer Corrigida */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 10px;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul li {
        justify-content: center;
        text-align: center;
    }
    
    .footer-section:nth-child(3) ul li {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-credits {
        text-align: center;
    }
    
    .developer-credits {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 30px 0 15px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-section ul li {
        font-size: 0.9rem;
    }
    
    .footer-credits p {
        font-size: 0.85rem;
    }
    
    .developer-credits {
        font-size: 0.85rem;
    }
}

/* Garantir que todos os textos estejam alinhados */
.footer-section {
    text-align: left;
}

@media (max-width: 768px) {
    .footer-section {
        text-align: center;
    }
}

/* Correção específica para a seção de atendimento */
.atendimento-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atendimento-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.atendimento-info i {
    margin-top: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
        font-size: 9px;
    }
    
    .cart-items {
        max-height: calc(100vh - 250px);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .product-card {
        margin: 0 10px;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 48px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para a seção de frete */
.shipping-section {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 15px 0;
}

.shipping-section h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.shipping-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.shipping-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.shipping-input button {
    padding: 10px 15px;
    background: #8bc34a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.shipping-input button:hover {
    background: #7cb342;
}

.shipping-result {
    font-size: 14px;
    min-height: 20px;
}

.shipping-result .shipping-price {
    color: #8bc34a;
    font-weight: bold;
}

.shipping-result .shipping-error {
    color: #e74c3c;
}

/* Estilos para o resumo do carrinho */
.cart-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.cart-summary-item.total {
    font-weight: bold;
    font-size: 18px;
    color: #8bc34a;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.cart-item-subtotal {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Estilização da barra de rolagem para WebKit (Chrome, Safari, Edge) */
.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(139, 195, 74, 0.1);
    border-radius: 10px;
    margin: 5px 0;
}

.cart-items::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8bc34a, #7cb342);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7cb342, #689f38);
}

/* Firefox Scrollbar */
.cart-items {
    scrollbar-color: #8bc34a rgba(139, 195, 74, 0.1);
    scrollbar-width: thin;
}

/* Ajuste para quando o carrinho está vazio */
.cart-items .empty-cart {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

/* Animações suaves para melhor UX */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animação de fade para o carrinho */
.cart-modal {
    transition: right 0.4s ease, opacity 0.4s ease;
}

/* Melhorar animação do botão do WhatsApp */
.whatsapp-float a {
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float a:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Animação do coração */
@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

/* Gradiente animado para o background do footer */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.main-footer {
    background: linear-gradient(
        45deg,
        #2c3e50,
        #34495e,
        #2c3e50,
        #34495e
    );
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

/* Efeito de hover suave para todo o footer */
.footer-section {
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
}
