/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0D5C63;
    --primary-dark: #094449;
    --primary-light: #0f7680;
    --secondary-color: #FFA500;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #27ae60;
    --shadow: rgba(13, 92, 99, 0.1);
    --shadow-strong: rgba(13, 92, 99, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.btn-cart {
    position: relative;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-strong);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Categorias Tabs */
.categorias-section {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 72px;
    z-index: 999;
}

.categorias-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.categorias-tabs::-webkit-scrollbar {
    height: 6px;
}

.categorias-tabs::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.categorias-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.tab-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Sections */
.produtos-section,
.destaque-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 1.8rem;
}

.categoria-descricao {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Produtos Grid */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.produto-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-strong);
}

.produto-imagem {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

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

.produto-card:hover .produto-imagem img {
    transform: scale(1.1);
}

.produto-imagem.sem-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 4rem;
}

.badge-promocao {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.badge-destaque {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.produto-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.produto-nome {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.produto-descricao {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.produto-precos {
    margin-bottom: 1rem;
}

.preco-grupo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.preco-antigo {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
}

.preco-atual {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.preco-atual.promocao {
    color: var(--danger);
}

.preco-atacado {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 6px 10px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
}

.preco-atacado small {
    color: var(--text-light);
}

.produto-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantidade-control {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 50px;
    overflow: hidden;
}

.quantidade-control button {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.quantidade-control button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantidade-control input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-adicionar {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-adicionar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-strong);
}

/* Modal Carrinho */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.modal-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-close:hover {
    background: var(--bg-light);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.carrinho-vazio {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.carrinho-vazio i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.carrinho-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.item-info {
    flex: 1;
}

.item-nome {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.item-tipo {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.item-preco {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.item-quantidade {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-quantidade button {
    background: var(--white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.item-quantidade button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.item-quantidade span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.btn-remover {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-remover:hover {
    color: var(--text-dark);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--bg-light);
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .categorias-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .produto-actions {
        flex-direction: column;
    }

    .quantidade-control {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .carrinho-item {
        flex-direction: column;
    }

    .item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

