/* ========================================
   RESET E VARIÁVEIS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores da Marca */
    --verde-claro: #b8e6d5;
    --verde-escuro: #2d5f4c;
    --laranja: #ff8c42;
    --laranja-hover: #ff6f1f;
    --branco: #ffffff;
    --cinza-claro: #f8f9fa;
    --cinza-texto: #6c757d;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-hover: rgba(0, 0, 0, 0.15);
    
    /* Tipografia */
    --font-principal: 'Quicksand', sans-serif;
    --font-secundaria: 'Poppins', sans-serif;
    
    /* Espaçamentos */
    --padding-section: 80px 20px;
    --border-radius: 20px;
    --border-radius-small: 12px;
}

body {
    font-family: var(--font-principal);
    background: linear-gradient(135deg, var(--verde-claro) 0%, #d4f1e8 100%);
    color: var(--verde-escuro);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   BOTÃO FLUTUANTE WHATSAPP
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ========================================
   HEADER / HERO SECTION
   ======================================== */
.hero {
    position: relative;
    padding: 100px 20px 120px;
    text-align: center;
    overflow: hidden;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    display: inline-block;
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-principal);
    line-height: 1;
}

.logo-sorvetes {
    color: var(--verde-escuro);
    display: block;
    text-transform: lowercase;
}

.logo-benbiel {
    color: var(--laranja);
    display: block;
    text-transform: lowercase;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--verde-escuro);
    margin-bottom: 20px;
    font-family: var(--font-secundaria);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--verde-escuro);
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-principal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--laranja), #ff6f1f);
    color: var(--branco);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 140, 66, 0.5);
}

.btn-hero {
    animation: btnFloat 3s ease-in-out infinite;
}

@keyframes btnFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Elementos decorativos flutuantes */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-shape {
    position: absolute;
    font-size: 60px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ========================================
   SEÇÃO DE PRODUTOS
   ======================================== */
.produtos {
    padding: var(--padding-section);
    background: var(--branco);
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--verde-escuro);
    text-align: center;
    margin-bottom: 15px;
    font-family: var(--font-secundaria);
}

.section-subtitle {
    font-size: 18px;
    color: var(--cinza-texto);
    text-align: center;
    margin-bottom: 50px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.produto-card {
    position: relative;
    background: var(--branco);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--sombra);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.produto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px var(--sombra-hover);
    border-color: var(--laranja);
}

.produto-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--branco);
}

.produto-badge.best-seller {
    background: linear-gradient(135deg, #ff6b9d, #c73866);
}

.produto-badge.novidade {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.produto-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--verde-claro), #d4f1e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.produto-card:hover .produto-image {
    transform: rotate(10deg) scale(1.1);
}

.produto-icon {
    font-size: 60px;
}

.produto-nome {
    font-size: 22px;
    font-weight: 700;
    color: var(--verde-escuro);
    margin-bottom: 10px;
    font-family: var(--font-secundaria);
}

.produto-desc {
    font-size: 15px;
    color: var(--cinza-texto);
    margin-bottom: 15px;
    min-height: 40px;
}

.produto-preco {
    font-size: 32px;
    font-weight: 700;
    color: var(--laranja);
    margin-bottom: 20px;
    font-family: var(--font-secundaria);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--laranja), #ff6f1f);
    color: var(--branco);
    padding: 12px 30px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
    width: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

/* ========================================
   SEÇÃO INSTITUCIONAL
   ======================================== */
.institucional {
    padding: var(--padding-section);
    background: linear-gradient(135deg, var(--verde-claro) 0%, #d4f1e8 100%);
}

.institucional-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.institucional-text {
    font-size: 18px;
    color: var(--verde-escuro);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ========================================
   SEÇÃO DE CONFIANÇA
   ======================================== */
.confianca {
    padding: var(--padding-section);
    background: var(--branco);
}

.confianca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.confianca-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--cinza-claro);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.confianca-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--sombra);
}

.confianca-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.confianca-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--verde-escuro);
    margin-bottom: 12px;
    font-family: var(--font-secundaria);
}

.confianca-card p {
    font-size: 15px;
    color: var(--cinza-texto);
    line-height: 1.6;
}

/* ========================================
   SEÇÃO DE INDICAÇÃO (DIFERENCIAL)
   ======================================== */
.indicacao {
    padding: var(--padding-section);
    background: linear-gradient(135deg, var(--laranja), #ff6f1f);
    position: relative;
    overflow: hidden;
}

.indicacao::before {
    content: '🍫';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: -50px;
    right: -50px;
    transform: rotate(-15deg);
}

.indicacao-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.indicacao-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.indicacao-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--branco);
    margin-bottom: 15px;
    font-family: var(--font-secundaria);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.indicacao-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--branco);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.indicacao-obs {
    font-size: 16px;
    color: var(--branco);
    opacity: 0.95;
    margin-bottom: 30px;
}

.indicacao .btn-primary {
    background: var(--branco);
    color: var(--laranja);
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.indicacao .btn-primary:hover {
    background: var(--cinza-claro);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RODAPÉ
   ======================================== */
.footer {
    padding: 60px 20px 30px;
    background: var(--verde-escuro);
    color: var(--branco);
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-logo {
    display: inline-block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-principal);
}

.footer-logo .logo-sorvetes {
    color: var(--verde-claro);
}

.footer-logo .logo-benbiel {
    color: var(--laranja);
}

.footer-text {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #25D366;
    color: var(--branco);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .logo {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .confianca-grid {
        grid-template-columns: 1fr;
    }
    
    .indicacao-title {
        font-size: 24px;
    }
    
    .indicacao-subtitle {
        font-size: 22px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .float-shape {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --padding-section: 50px 15px;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .produto-card {
        padding: 25px;
    }
    
    .indicacao-icon {
        font-size: 60px;
    }
}

/* ========================================
   SACOLA / CARRINHO - FUNCIONALIDADE NOVA
   ======================================== */

/* Ícone fixo da sacola no topo */
.sacola-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--laranja), var(--laranja-hover));
    color: var(--branco);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.45);
    z-index: 1001;
    transition: all 0.3s ease;
}

.sacola-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(255, 140, 66, 0.65);
}

.sacola-icon:active {
    transform: scale(0.95);
}

.sacola-contador {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--verde-escuro);
    color: var(--branco);
    font-family: var(--font-secundaria);
    font-weight: 700;
    font-size: 12px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--branco);
    transition: transform 0.25s ease;
}

.sacola-contador.pulse {
    animation: contadorPulse 0.5s ease;
}

@keyframes contadorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Overlay de fundo */
.sacola-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sacola-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

/* Sidebar lateral da sacola */
.sacola-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--branco);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sacola-sidebar.ativo {
    transform: translateX(0);
}

.sacola-header {
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--verde-escuro), #1f4536);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sacola-header h2 {
    font-family: var(--font-secundaria);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.sacola-fechar {
    background: rgba(255, 255, 255, 0.15);
    color: var(--branco);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sacola-fechar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sacola-conteudo {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sacola-itens {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.sacola-vazia {
    text-align: center;
    color: var(--cinza-texto);
    font-size: 16px;
    padding: 40px 20px;
    line-height: 1.8;
}

.sacola-vazia small {
    font-size: 13px;
    opacity: 0.8;
}

/* Item da sacola */
.sacola-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--cinza-claro);
    border-radius: var(--border-radius-small);
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sacola-item-icone {
    font-size: 32px;
    width: 50px;
    height: 50px;
    background: var(--branco);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sacola-item-info {
    flex: 1;
    min-width: 0;
}

.sacola-item-nome {
    font-family: var(--font-secundaria);
    font-weight: 600;
    font-size: 14px;
    color: var(--verde-escuro);
    margin-bottom: 4px;
    line-height: 1.3;
}

.sacola-item-preco {
    font-size: 13px;
    color: var(--laranja);
    font-weight: 600;
}

.sacola-item-controles {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-qtd {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--verde-escuro);
    background: var(--branco);
    color: var(--verde-escuro);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-qtd:hover {
    background: var(--verde-escuro);
    color: var(--branco);
}

.sacola-item-qtd {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    color: var(--verde-escuro);
    font-family: var(--font-secundaria);
}

.btn-remover {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    margin-left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remover:hover {
    background: #ffe5e0;
}

/* Rodapé com nome, total e botão de pedido */
.sacola-rodape {
    border-top: 2px solid var(--cinza-claro);
    padding: 20px 24px;
    background: var(--branco);
    flex-shrink: 0;
}

.sacola-nome-cliente {
    margin-bottom: 16px;
}

.sacola-nome-cliente label {
    display: block;
    font-family: var(--font-secundaria);
    font-weight: 600;
    color: var(--verde-escuro);
    font-size: 14px;
    margin-bottom: 8px;
}

.sacola-nome-cliente input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    font-family: var(--font-principal);
    font-size: 15px;
    color: var(--verde-escuro);
    transition: border-color 0.2s ease;
    outline: none;
}

.sacola-nome-cliente input:focus {
    border-color: var(--laranja);
}

.sacola-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
}

.sacola-total span {
    font-family: var(--font-secundaria);
    font-size: 16px;
    color: var(--verde-escuro);
    font-weight: 600;
}

.sacola-total strong {
    font-family: var(--font-secundaria);
    font-size: 24px;
    color: var(--laranja);
    font-weight: 700;
}

.btn-finalizar-pedido {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--branco);
    border: none;
    border-radius: var(--border-radius-small);
    font-family: var(--font-secundaria);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-finalizar-pedido:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-finalizar-pedido:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Botões dentro do card de produto */
.produto-acoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.produto-acoes .btn {
    width: 100%;
    margin: 0;
}

.btn-add-sacola {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: var(--branco);
    border: none;
    padding: 12px 16px;
    border-radius: var(--border-radius-small);
    font-family: var(--font-secundaria);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.btn-add-sacola:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(46, 204, 113, 0.45);
    background: linear-gradient(135deg, #27ae60, #229954);
}

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

.btn-pedir-agora {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: var(--branco) !important;
}

.btn-pedir-agora:hover {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
}

/* Toast de feedback ao adicionar */
.sacola-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--verde-escuro);
    color: var(--branco);
    padding: 14px 24px;
    border-radius: 30px;
    font-family: var(--font-secundaria);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sacola-toast.ativo {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Body scroll lock quando sacola aberta */
body.sacola-aberta {
    overflow: hidden;
}

/* Responsividade */
@media (max-width: 480px) {
    .sacola-sidebar {
        width: 100%;
    }

    .sacola-icon {
        top: 14px;
        right: 14px;
        width: 50px;
        height: 50px;
    }

    .sacola-icon svg {
        width: 24px;
        height: 24px;
    }

    .sacola-header h2 {
        font-size: 18px;
    }

    .sacola-itens {
        padding: 16px;
    }

    .sacola-rodape {
        padding: 16px;
    }
}

/* Ajuste para o ícone da sacola não conflitar com o header em telas pequenas */
@media (max-width: 768px) {
    .hero {
        padding-top: 90px;
    }
}
