* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ✅ ESTILOS BASE */
.header .logo-container {
    margin-bottom: 15px;
    text-align: center;
    padding: 0px 0px;
}

.header .logo-img {
    max-height: 200px !important;
    height: 200px !important;
    width: auto !important;
    border-radius: 8px;
    padding: 0px 0px;
    display: inline-block !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    padding-bottom: 55px;
}

.header {
    background: linear-gradient(135deg, #70a60f, #5a850c);
    color: white;
    padding: 30px 20px;
    text-align: center;
    vertical-align: top;
}

.header h1 {
    margin-bottom: 10px;
    font-size: 2.8rem;
    font-weight: 700;
}

.header p {
    opacity: 0.9;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ✅ CARROSSEL */
.carrossel {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    touch-action: pan-y;
}

.carrossel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carrossel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carrossel-controle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

.carrossel-prev { left: 10px; }
.carrossel-next { right: 10px; }

/* ✅ CATEGORIAS FIXAS - CARROSSEL HORIZONTAL */
.categorias-container {
    position: sticky;
    top: 0;
    border: 50px;
    z-index: 1000;
    background: #e8f5e8;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categorias {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    padding: 5px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap !important;
}

.categorias::-webkit-scrollbar {
    display: none;
}

.categoria-btn {
    background: white;
    border: 2px solid #70a60f;
    color: #70a60f;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(112, 166, 15, 0.4);
    min-width: max-content;
}

.categoria-btn.active,
.categoria-btn:hover {
    background: #70a60f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(112, 166, 15, 0.4);
}

/* Botões de navegação */
.categoria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #70a60f;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.categoria-nav:hover {
    background: #5a850c;
    transform: translateY(-50%) scale(1.1);
}

.categoria-prev {
    left: 5px;
}

.categoria-next {
    right: 5px;
}

/* ✅ MOBILE - CATEGORIAS FIXAS SEMPRE HORIZONTAIS */
@media (max-width: 768px) {
    .categorias-container {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 5px 0;
        margin-bottom: 0px;
    }
    
    .categorias {
        gap: 6px;
        padding: 3px 0;
        padding: 5px 5px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .categoria-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(112, 166, 15, 0.4);
        display: inline-flex;
    }
    
    .categoria-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .categoria-prev {
        left: 2px;
    }
    
    .categoria-next {
        right: 2px;
    }
}

@media (max-width: 480px) {
    .categorias {
        gap: 4px;
    }
    
    .categoria-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: 20px;
        box-shadow: 0 4px 12px rgba(112, 166, 15, 0.4);
    }
    
    .categoria-nav {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .categoria-nav:active {
        background: #5a850c;
        transform: translateY(-50%) scale(0.95);
    }
}

/* ✅ SKELETON LOADING */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.skeleton-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    animation: pulse 1.5s infinite;
}

.skeleton-categoria, .skeleton-nome, .skeleton-preco, .skeleton-btn {
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
}

.skeleton-categoria { width: 40%; height: 20px; }
.skeleton-nome { width: 80%; height: 24px; }
.skeleton-preco { width: 30%; height: 28px; }
.skeleton-btn { width: 100%; height: 44px; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ✅ PRODUTOS */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 7px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.produto-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: visible !important;
    display: grid;
    grid-template-columns: 1fr auto; /* ✅ SEMPRE LADO A LADO */
    gap: 20px;
    align-items: start;
    min-height: 160px;
}

.produto-card:hover {
    transform: translateY(-5px);
}

/* ✅ PRODUTO COM OFERTA - ESTILO ESPECIAL */
.produto-oferta {
    position: relative;
    border: 2px solid #ff6b35 !important;
    background: linear-gradient(135deg, #fff9f9, #fff5f5) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15) !important;
}

.produto-oferta:hover {
    border-color: #ff8e35 !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2) !important;
    transform: translateY(-5px) !important;
}

/* ✅ PRODUTO ORGÂNICO COM OFERTA */
.produto-card[data-organico="true"].produto-oferta {
    border: 2px solid rgba(255, 107, 53, 0.3) !important;
    background: linear-gradient(135deg, #f8fff9, #fff9f9) !important;
}

.produto-card[data-oferta="true"]::before {
    content: '🔥';
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 1.2rem;
    z-index: 5;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.produto-categoria {
    display: none !important;
}

.produto-nome {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a3311;
    line-height: 1.4;
}

/* ✅ BADGE DE INFO DA OFERTA */
.oferta-info-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: bold;
    animation: pulse-oferta 2s infinite;
    vertical-align: middle;
}



/* ✅ PARA PRODUTOS SEM OFERTA */
.preco-normal {
    font-size: 1.2em !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.produto-formas {
    font-size: 1rem;
    font-weight: bold;
    color: #2c5e1a;
    background: #f0f7e6;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid #70a60f;
}

/* ✅ FORMAS DE VENDA COM OFERTA */
.produto-formas-container {
    margin: 8px 0;
}

.formas-venda-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forma-venda-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85em;
    border-left: 3px solid #70a60f;
}

/* ✅ Forma com oferta específica */
.forma-com-oferta {
    background: #fff0e8;
    border: 1px solid #ffd1b3;
    border-left: 3px solid #ff6b35;
}

.forma-emoji {
    font-size: 0.9em;
}

.forma-precos {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.forma-precos .preco-original {
    font-size: 0.8em;
    color: #8c8c8c;
    text-decoration: line-through;
}

.forma-precos .preco-oferta {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.85em;
}

.preco-normal {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.85em;
}

.forma-unidade {
    color: #6c757d;
    font-size: 0.8em;
    margin-left: auto;
}

.produto-estoque {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.produto-origem {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

.btn-comprar {
    background: #70a60f;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
    min-height: auto;
}

.btn-comprar:hover {
    background: #5a850c;
    transform: translateY(-2px);
}

/* ✅ BOTÃO DE COMPRA PARA OFERTA */
.btn-comprar-oferta {
    background: linear-gradient(135deg, #ff6b35, #ff8e35) !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.btn-comprar-oferta:hover {
    background: linear-gradient(135deg, #ff8e35, #ff6b35) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
}

/* ✅ TOAST NOTIFICATIONS */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast-content {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #28a745;
}

.toast-erro .toast-content {
    border-left-color: #dc3545;
}

.toast-aviso .toast-content {
    border-left-color: #ffc107;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    color: #666;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ✅ MODAL DE COMPRA */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #70a60f;
    padding-bottom: 15px;
}

.modal-title {
    font-size: 1.5rem;
    color: #1a3311;
    margin: 0;
}

.close-modal {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #70a60f;
    outline: none;
}

.form-control.erro {
    border-color: #dc3545;
}

.erro-validacao {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.formas-venda-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.forma-venda-option {
    flex: 1;
    text-align: center;
}

.forma-venda-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #70a60f;
    background: white;
    color: #70a60f;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.forma-venda-btn.active {
    background: #70a60f;
    color: white;
}

.quantidade-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary {
    background: #70a60f;
    color: white;
}

.btn-primary:hover {
    background: #5a850c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ✅ CARRINHO FIXO - POSIÇÃO RELATIVA */
.carrinho-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid #70a60f;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

.carrinho-header {
    background: #70a60f;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.carrinho-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #70a60f;
    background-color: white;
    border-radius: 20px;
    padding: 5px;;
}

.carrinho-contador {
    background: white;
    color: #70a60f;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.carrinho-conteudo {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.carrinho-aberto .carrinho-conteudo {
    max-height: 400px;
    overflow-y: auto;
}

.carrinho-itens {
    padding: 20px;
}

.carrinho-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* ✅ ITEM NO CARRINHO COM OFERTA */
.carrinho-item[data-oferta="true"] {
    background: #fff9f9;
    border-left: 3px solid #ff6b35;
}

.carrinho-item[data-oferta="true"] .carrinho-item-nome::after {
    content: ' 🔥';
    color: #ff6b35;
    font-size: 0.8em;
}

.item-oferta-info {
    display: inline-block;
    background: #ffe8e8;
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 6px;
    font-weight: 500;
}

.carrinho-item-info {
    flex: 1;
}

.carrinho-item-nome {
    font-weight: 600;
    margin-bottom: 5px;
}

.carrinho-item-detalhes {
    font-size: 0.9rem;
    color: #666;
}

.carrinho-item-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-editar, .btn-remover {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-editar {
    background: #17a2b8;
    color: white;
}

.btn-remover {
    background: #dc3545;
    color: white;
}

.carrinho-total {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.total-valor {
    font-size: 1.3rem;
    font-weight: bold;
    color: #70a60f;
    margin-bottom: 15px;
}

.btn-finalizar {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-finalizar:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ✅ MODAL FINALIZAR PEDIDO */
.modal-cliente {
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.footer {
    background: #1a3311;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* ✅ ESTOQUE BAIXO */
.estoque-baixo {
    color: #dc3545;
    font-weight: 600;
}

/* ✅ ACESSIBILIDADE */
button:focus, input:focus, select:focus {
    outline: 2px solid #70a60f;
    outline-offset: 2px;
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 5px;
        position: relative;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .carrossel {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 15px !important;
    }
    
    .header .logo-img {
        max-height: 60px !important;
        height: 60px !important;
    }
    
    .header h1 {
        font-size: 1.8rem !important;
        margin-bottom: 8px;
    }
    
    .header p {
        font-size: 1rem !important;
    }
    
    .carrossel {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .carrossel-controle {
        padding: 10px;
        font-size: 1.2rem;
    }
    
    .container {
        padding-top: 10px;
    }
    
    .categorias {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 0px;
    }
    
    .categoria-btn {
        min-width: max-content;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 30px;
    }
    
    .produto-card {
        padding: 20px;
        grid-template-columns: 1fr auto;
        gap: 15px;
        min-height: 140px;
        align-items: center;
    }
    
    .produto-info {
        order: 0;
        text-align: left;
    }
    
    .produto-imagem-container {
        order: 1;
        margin: 0;
        width: 100px;
        height: 100px;
    }
    
    .produto-nome {
        font-size: 1.2rem;
    }
    
    .produto-preco {
        font-size: 1.4rem;
    }
    
    .btn-comprar {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .carrinho-header {
        padding: 12px 15px;
    }
    
    .carrinho-titulo {
        font-size: 1.1rem;
    }
    
    .carrinho-contador {
        padding: 3px 10px;
        font-size: 0.9rem;
    }
    
    .carrinho-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .carrinho-item-acoes {
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-finalizar {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .formas-venda-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer {
        padding: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 10px !important;
    }
    
    .header .logo-img {
        max-height: 50px !important;
        height: 50px !important;
    }
    
    .header h1 {
        font-size: 1.6rem !important;
    }
    
    .header p {
        font-size: 0.9rem !important;
    }
    
    .carrossel {
        height: 200px;
    }
    
    .produto-card {
        padding: 15px;
        gap: 12px;
        min-height: 130px;
    }
    
    .produto-imagem-container {
        width: 90px;
        height: 90px;
    }
    
    .produto-nome {
        font-size: 1.1rem;
    }
    
    .produto-preco {
        font-size: 1.3rem;
    }
    
    .categoria-btn {
        max-width: 50%;
        font-size: 0.85rem;
        padding: 10px 15px;
        border: 5px solid transparent;
    }
    
    .carrinho-itens {
        padding: 15px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 10px auto;
    }
    
    .footer {
        padding: 15px 10px;
    }
}

/* ✅ ESTILO PARA BOTÕES DE ENTREGA */
.formas-entrega-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.forma-entrega-option {
    flex: 1;
    text-align: center;
}

.forma-entrega-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #70a60f;
    background: white;
    color: #70a60f;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.forma-entrega-btn.active {
    background: #70a60f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 166, 15, 0.3);
}

.forma-entrega-btn:hover:not(.active) {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* ✅ ESTILO PARA MENSAGEM DE DELIVERY */
.aviso-delivery {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 768px) {
    .formas-entrega-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .forma-entrega-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .aviso-delivery div {
        padding: 12px !important;
    }
    
    .aviso-delivery div div {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .forma-entrega-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .aviso-delivery div {
        padding: 10px !important;
    }
    
    .aviso-delivery div div {
        font-size: 0.8rem !important;
    }
}

/* ✅ ESTILO PARA INFORMAÇÕES IMPORTANTES */
.informacoes-importantes {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px 0;
    border-bottom: 1px solid #dee2e6;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    background: #e8f5e8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.info-icon {
    font-size: 1.5rem;
    background: #70a60f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-title {
    color: #1a3311;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.info-content {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-days {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.info-hours {
    color: #70a60f;
    font-weight: 700;
    font-size: 1rem;
}

.info-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #70a60f, transparent);
    margin: 20px 0;
}

.info-pagamento {
    margin-top: 20px;
}

.info-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #70a60f;
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 768px) {
    .informacoes-importantes {
        padding: 20px 0;
    }
    
    .info-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .info-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .info-icon {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
    
    .info-title {
        font-size: 1.1rem;
    }
    
    .info-days,
    .info-hours {
        font-size: 0.9rem;
    }
    
    .info-text {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .info-divider {
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .informacoes-importantes {
        padding: 15px 0;
    }
    
    .info-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .info-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 10px 0;
    }
    
    .info-days,
    .info-hours {
        font-size: 0.85rem;
    }
    
    .info-text {
        font-size: 0.85rem;
        padding: 10px;
        text-align: center;
    }
    
    .info-divider {
        margin: 12px 0;
    }
}

/* ✅ ESTILOS PARA BOTÕES DO CARRINHO */
.carrinho-item-acoes {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-editar, .btn-remover {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 80px;
}

.btn-editar {
    background: #17a2b8;
    color: white;
}

.btn-editar:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.btn-remover {
    background: #dc3545;
    color: white;
}

.btn-remover:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 768px) {
    .carrinho-item-acoes {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-editar, .btn-remover {
        flex: 1;
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-editar, .btn-remover {
        padding: 8px;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

/* ✅ ESTILOS PARA VARIAÇÕES */
.variacoes-group {
    margin-bottom: 20px;
}

.variacao-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.variacoes-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.variacao-opcao {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.variacao-btn {
    width: 100%;
    padding: 10px 8px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.variacao-btn:hover {
    border-color: #70a60f;
    color: #70a60f;
}

.variacao-btn.selected {
    background: #70a60f;
    color: white;
    border-color: #70a60f;
}

.variacao-btn:disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

.preco-variacao {
    font-size: 0.8rem;
    color: #28a745;
    margin-top: 4px;
}

.estoque-variacao {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

/* ✅ ESTILOS PARA VARIAÇÕES - COMPLEMENTO */
.variacao-tipo-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.variacao-btn.selected {
    background: #70a60f !important;
    color: white !important;
    border-color: #70a60f !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(112, 166, 15, 0.3);
}

.variacao-btn:disabled {
    background: #f8f9fa !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    border-color: #eee !important;
    transform: none !important;
}

.variacao-btn:disabled:hover {
    transform: none !important;
}

.preco-variacao {
    font-size: 0.75rem;
    color: #28a745;
    margin-top: 4px;
    font-weight: 600;
}

.estoque-variacao {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
}

/* ✅ RESPONSIVIDADE PARA VARIAÇÕES */
@media (max-width: 768px) {
    .variacoes-opcoes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .variacao-tipo-group {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .variacoes-opcoes {
        grid-template-columns: 1fr;
    }
    
    .variacao-btn {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
}

/* ✅ ESTILOS PARA VARIAÇÕES SIMPLIFICADAS */
.variacao-btn-simples {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.variacao-btn-simples:hover {
    border-color: #70a60f;
    color: #70a60f;
}

.variacao-btn-simples.selecionado {
    background: #70a60f;
    color: white;
    border-color: #70a60f;
}

/* ✅ ESTILOS PARA VARIAÇÕES COM SELEÇÃO ÚNICA */
.variacao-btn-simples {
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.variacao-btn-simples:hover {
    border-color: #70a60f;
    color: #70a60f;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(112, 166, 15, 0.2);
}

.variacao-btn-simples.selecionado {
    background: #70a60f;
    color: white;
    border-color: #70a60f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 166, 15, 0.3);
}


/* ✅ ANIMAÇÃO PULSE PARA DESTAQUE */
@keyframes pulse-oferta {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.pulse-animation {
    animation: pulse 0.5s ease-in-out 3;
}

/* ✅ ESTILOS PARA IMAGENS DOS PRODUTOS */
.produto-imagem-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #e8f5e8;
    background: #f8f9fa;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.produto-imagem-container:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(112, 166, 15, 0.3);
}

.produto-imagem-container:hover .produto-imagem {
    transform: scale(1.05);
}

/* ✅ BADGE DE OFERTA NA IMAGEM */
.badge-oferta-imagem {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff8e35);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    z-index: 2;
    animation: pulse-oferta 2s infinite;
}

/* ✅ BADGE MINI NA CATEGORIA */
.badge-oferta-mini {
    background: #ff6b35;
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.6em;
    margin-left: 4px;
    vertical-align: middle;
}

/* ✅ BADGE DE CLICK NA IMAGEM */
.badge-click-imagem {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(112, 166, 15, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.produto-imagem-container:hover .badge-click-imagem {
    opacity: 1;
}

/* ✅ IMAGEM QUE CABE NO QUADRADO SEM CORTAR */
.produto-imagem {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: white;
}

.produto-imagem-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #70a60f;
    font-size: 2.5rem;
}

/* ✅ CONTROLE DE TAMANHO DA IMAGEM */
.imagem-pequena .produto-imagem-container {
    width: 100px;
    height: 100px;
}

.imagem-media .produto-imagem-container {
    width: 120px;
    height: 120px;
}

.imagem-grande .produto-imagem-container {
    width: 140px;
    height: 140px;
}

/* ✅ RESPONSIVIDADE - AJUSTES PARA TELAS PEQUENAS */
@media (max-width: 1024px) {
    .produto-card {
        padding: 18px;
        gap: 18px;
        min-height: 150px;
    }
    
    .produto-imagem-container {
        width: 110px;
        height: 110px;
    }
    
    .imagem-pequena .produto-imagem-container {
        width: 90px;
        height: 90px;
    }
    
    .imagem-grande .produto-imagem-container {
        width: 120px;
        height: 120px;
    }
    
    .produto-imagem-placeholder {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .produto-card {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 15px;
        min-height: 140px;
        align-items: center;
    }
    
    .produto-info {
        order: 0;
        text-align: left;
    }
    
    .produto-imagem-container {
        width: 100px;
        height: 100px;
        order: 1;
        margin: 0;
    }
    
    .imagem-pequena .produto-imagem-container {
        width: 80px;
        height: 80px;
    }
    
    .imagem-grande .produto-imagem-container {
        width: 110px;
        height: 110px;
    }
    
    .produto-imagem-placeholder {
        font-size: 2rem;
    }
    
    .produto-nome {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .produto-formas {
        font-size: 0.9rem;
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    
    .produto-estoque,
    .produto-origem {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .btn-comprar {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .oferta-info-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
        margin-left: 4px;
    }
    
    .badge-oferta-imagem {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 0.65em;
    }
}

@media (max-width: 480px) {
    .produto-card {
        padding: 12px;
        gap: 12px;
        min-height: 130px;
    }
    
    .produto-imagem-container {
        width: 90px;
        height: 90px;
    }
    
    .imagem-pequena .produto-imagem-container {
        width: 70px;
        height: 70px;
    }
    
    .imagem-grande .produto-imagem-container {
        width: 100px;
        height: 100px;
    }
    
    .produto-imagem-placeholder {
        font-size: 1.8rem;
    }
    
    .produto-nome {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .produto-formas {
        font-size: 0.85rem;
        padding: 5px 8px;
        margin-bottom: 8px;
    }
    
    .produto-categoria {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-bottom: 8px;
    }
    
    .btn-comprar {
        padding: 7px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .badge-oferta-imagem {
        top: 4px;
        right: 4px;
        padding: 2px 4px;
        font-size: 0.6em;
    }
    
    .oferta-info-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

/* ✅ GARANTIR QUE O GRID SEJA SEMPRE DE UMA COLUNA EM CELULAR */
@media (max-width: 768px) {
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* ✅ ESTILOS PARA MODAL DE IMAGEM */
.modal-imagem {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-imagem-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-imagem-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.modal-imagem-content img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.modal-imagem-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-imagem-close:hover {
    color: #70a60f;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-imagem-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-imagem-info h3 {
    color: #1a3311;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.modal-imagem-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* ✅ CONTROLES DE NAVEGAÇÃO DE IMAGEM */
.modal-imagem-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(112, 166, 15, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3001;
}

.modal-imagem-nav:hover {
    background: rgba(90, 133, 12, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-imagem-prev {
    left: 20px;
}

.modal-imagem-next {
    right: 20px;
}

/* ✅ INDICADORES DE IMAGEM */
.modal-imagem-indicators {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-imagem-indicator {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.modal-imagem-indicator:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-imagem-indicator.active {
    border-color: #70a60f;
    opacity: 1;
    transform: scale(1.1);
}

.modal-imagem-indicator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ RESPONSIVIDADE DO MODAL DE IMAGEM */
@media (max-width: 768px) {
    .modal-imagem-content {
        width: 95%;
        padding: 15px;
    }
    
    .modal-imagem-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-imagem-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-imagem-prev {
        left: 10px;
    }
    
    .modal-imagem-next {
        right: 10px;
    }
    
    .modal-imagem-info {
        padding: 15px;
    }
    
    .modal-imagem-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-imagem-indicator {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .modal-imagem-content {
        width: 98%;
        padding: 10px;
    }
    
    .modal-imagem-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-imagem-info {
        padding: 12px;
    }
    
    .modal-imagem-info h3 {
        font-size: 1.1rem;
    }
    
    .modal-imagem-indicator {
        width: 40px;
        height: 40px;
    }
}

/* ✅ ESTILOS PARA BOTÕES DE FORMA DE VENDA COM TOGGLE */
.forma-venda-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #70a60f;
    background: white;
    color: #70a60f;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}

/* ✅ INDICADOR DE SELECIONADO/DESSELECIONADO */
.forma-venda-btn::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s;
}

.forma-venda-btn.active::after {
    opacity: 1;
}

/* ✅ ESTADO DE DESSELECIONADO */
.forma-venda-btn:not(.active) {
    border-color: #e0e0e0;
    color: #666;
}

.forma-venda-btn:not(.active):hover {
    border-color: #70a60f;
    color: #70a60f;
}

/* ✅ BOTÃO COM CLIQUE DUPLO */
.forma-venda-btn.double-click {
    animation: pulse-double 0.5s ease-in-out;
}

@keyframes pulse-double {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ✅ BOTÕES FLUTUANTES */
.floating-buttons {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1005;
}

.floating-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.search-floating {
    background: linear-gradient(135deg, #70a60f, #5a850c);
}

.whatsapp-floating {
    background: linear-gradient(135deg, #25D366, #128C7E);
    position: fixed;
    bottom: 90px;
    right: 20px;
    top: auto;
    z-index: 1005;
}

/* ✅ MODAL DE PESQUISA */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #70a60f, #5a850c);
    color: white;
}

.search-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.search-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.search-input-container {
    position: relative;
    padding: 25px;
}

#searchInput {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#searchInput:focus {
    border-color: #70a60f;
    background: white;
    box-shadow: 0 0 0 3px rgba(112, 166, 15, 0.1);
}

.search-input-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #70a60f;
    font-size: 1.2rem;
}

/* ✅ RESULTADOS DA PESQUISA */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 25px 25px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background: white;
}

.search-result-item:hover {
    border-color: #70a60f;
    background: #f8fff8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 166, 15, 0.1);
}

.search-result-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #70a60f;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 1rem;
}

.search-result-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.search-result-price {
    font-weight: 700;
    color: #70a60f;
    font-size: 1.1rem;
    text-align: right;
    min-width: 100px;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #e0e0e0;
}

/* ✅ ANIMAÇÕES */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 768px) {
    .floating-buttons {
        top: 70px;
        right: 15px;
    }
    
    .floating-button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .whatsapp-floating {
        bottom: 80px;
        right: 15px;
    }
    
    .search-modal.active {
        padding-top: 60px;
    }
    
    .search-modal-content {
        width: 95%;
        border-radius: 15px;
    }
    
    .search-modal-header {
        padding: 15px 20px;
    }
    
    .search-input-container {
        padding: 20px;
    }
    
    #searchInput {
        font-size: 1rem;
        padding: 12px 45px 12px 15px;
    }
    
    .search-results {
        padding: 0 20px 20px;
        max-height: 50vh;
    }
}

/* ✅ DESTAQUE DO PRODUTO SELECIONADO */
.produto-card[data-destaque="true"] {
    border: 3px solid #70a60f !important;
    box-shadow: 0 0 25px rgba(112, 166, 15, 0.4) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.selected-product-badge {
    position: absolute;
    top: 10px;
    left: 260px;
    background: linear-gradient(135deg, #70a60f, #5a850c);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 750;
    z-index: 10;
    animation: pulse 1.5s infinite;
    box-shadow: 0 4px 12px rgba(112, 166, 15, 0.3);
}

@media (max-width: 768px) {
    .selected-product-badge {
        position: absolute;
        top: 10px;
        left: 260px;
        background: linear-gradient(135deg, #70a60f, #5a850c);
        color: white;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 700;
        z-index: 10;
        animation: pulse 1.5s infinite;
        box-shadow: 0 4px 12px rgba(112, 166, 15, 0.3);
    }
}

/* ✅ BOTÃO DA CATEGORIA ATIVA */
.categoria-btn.active {
    background: #70a60f !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(112, 166, 15, 0.4);
    animation: pulse 2s infinite;
}

/* ✅ SELO ORGÂNICO - ESTILO VAZADO */
.selo-organico {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    z-index: 100;
    filter: drop-shadow(0 3px 6px rgba(40, 167, 69, 0.4));
    pointer-events: none;
}

.selo-organico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

/* Efeito hover no card com selo */
.produto-card[data-organico="true"]:hover .selo-organico {
    transform: scale(1.1) rotate(5deg);
    filter: 
        drop-shadow(0 4px 8px rgba(40, 167, 69, 0.4))
        drop-shadow(0 8px 16px rgba(40, 167, 69, 0.3));
}

/* Destaque extra para produtos orgânicos */
.produto-card[data-organico="true"] {
    border: 2px solid rgba(40, 167, 69, 0.1);
    background: linear-gradient(135deg, #ffffff, #f8fff9);
}

.produto-card[data-organico="true"]:hover {
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

/* ✅ RESPONSIVIDADE - Ajuste para mobile */
@media (max-width: 768px) {
    .selo-organico {
        width: 50px;
        height: 50px;
        bottom: -12px;
        right: -12px;
    }
}

@media (max-width: 480px) {
    .selo-organico {
        width: 40px;
        height: 40px;
        bottom: -10px;
        right: -10px;
    }
}

/* Fallback se a imagem não carregar */
.selo-organico:empty::after {
    content: '🌱';
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.4);
    border: 2px solid #28a745;
}

/* ✅ ESTILOS PARA SUBCATEGORIAS */
.subcategorias-container {
    padding: 10px;
    padding-top: 15px;
    background: #f8fff8;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.subcategorias-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #f1f1f1;
}

.subcategorias-wrapper::-webkit-scrollbar {
    height: 6px;
}

.subcategorias-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.subcategorias-wrapper::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

.subcategorias {
    display: flex;
    gap: 8px;
    padding: 10px 5PX 10PX 5PX;
    min-width: max-content;
}

.subcategoria-btn {
    background: white;
    border: 2px solid #70a60f;
    color: #70a60f;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(112, 166, 15, 0.4);
    min-width: max-content;
}

/* ✅ SUBCATEGORIA COM OFERTA ATIVA */
.subcategoria-btn.active[data-oferta="true"] {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    border-color: #ff6b35;
}

.subcategoria-btn:hover {
    border-color: #70a60f;
    color: #70a60f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(112, 166, 15, 0.2);
}

.subcategoria-btn.active {
    background: #70a60f;
    color: white;
    border-color: #70a60f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(112, 166, 15, 0.3);
}

/* Indicador de categoria ativa */
.categoria-btn.active {
    position: relative;
}

.categoria-btn.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #70a60f;
}

/* Responsividade */
@media (max-width: 768px) {
    .subcategoria-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .subcategorias-container {
        padding: 10px;
    }
}

/* ✅ ESTILOS PARA CONTROLES DE QUANTIDADE */
.quantidade-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.quantidade-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #70a60f;
    background: white;
    color: #70a60f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantidade-btn:hover:not(:disabled) {
    background: #70a60f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 166, 15, 0.3);
}

.quantidade-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quantidade-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.quantidade-input:focus {
    border-color: #70a60f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(112, 166, 15, 0.1);
}

.quantidade-input.erro {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.quantidade-info {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #70a60f;
}

.quantidade-info .preco-unitario {
    font-weight: 600;
    color: #70a60f;
}

.quantidade-info .preco-total {
    font-weight: 700;
    color: #2c5e1a;
    font-size: 1rem;
}

/* ✅ ANIMAÇÃO PARA MUDANÇAS DE QUANTIDADE */
@keyframes pulse-quantidade {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quantidade-changed {
    animation: pulse-quantidade 0.3s ease;
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 768px) {
    .quantidade-control-group {
        gap: 8px;
    }
    
    .quantidade-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .quantidade-input {
        padding: 10px 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .quantidade-control-group {
        gap: 6px;
    }
    
    .quantidade-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .quantidade-input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* ✅ ESTILOS PARA MENSAGEM INTELIGENTE */
@keyframes pulse-gentle {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.forma-venda-btn.pulse-gentle {
    animation: pulse-gentle 2s ease-in-out infinite;
}

.mensagem-inteligente {
    background: linear-gradient(135deg, #e8f5e8, #d4edda) !important;
    border: 2px solid #28a745 !important;
    border-left: 6px solid #28a745 !important;
}

/* Efeito de brilho suave */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
}

.forma-venda-btn.glow {
    animation: glow 2s ease-in-out infinite;
}

/* ✅ BOTÕES LADO A LADO - COMPRAR E DESCRIÇÃO */
.botoes-produto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.btn-comprar {
    background: #70a60f;
    color: white;
    border: none;
    padding: 10px 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    min-height: auto;
    width: 100%;
}

.btn-descricao {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    width: 100%;
}

.btn-descricao:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ✅ PARA OFERTAS - BOTÃO DESCRIÇÃO COM COR HARMONIZADA */
.btn-descricao-oferta {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3) !important;
}

.btn-descricao-oferta:hover {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.4) !important;
}

/* ✅ SKELETON LOADING ATUALIZADO */
.skeleton-imagem {
    width: 120px;
    height: 120px;
    background: #e0e0e0;
    border-radius: 12px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .skeleton-imagem {
        width: 140px;
        height: 140px;
        margin: 0 auto 15px;
    }
}

/* ✅ GARANTIR QUE FICAM ACIMA DO CARRINHO */
.carrinho-fixo {
    z-index: 1000;
}

.floating-button {
    z-index: 1005;
}

.search-modal {
    z-index: 2000;
}

/* ✅ CELULARES MUITO PEQUENOS (MENOS DE 360px) */
@media (max-width: 360px) {
    .produto-card {
        grid-template-columns: 1fr 80px;
        gap: 10px;
        padding: 10px;
    }
    
    .produto-imagem-container {
        width: 80px;
        height: 80px;
    }
    
    .imagem-pequena .produto-imagem-container {
        width: 60px;
        height: 60px;
    }
    
    .imagem-grande .produto-imagem-container {
        width: 90px;
        height: 90px;
    }
    
    .produto-imagem-placeholder {
        font-size: 1.6rem;
    }
}

/* ✅ ESTILOS PARA PRODUTOS EM OFERTA */
.produto-oferta {
    border: 3px solid #ff6b6b !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3) !important;
    position: relative;
    animation: pulse-oferta 2s ease-in-out infinite;
}

.produto-oferta::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px dashed #ff6b6b;
    border-radius: 12px;
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

/* ✅ BADGE DE OFERTA */
.badge-oferta-imagem {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
    animation: badge-pulse 1.5s ease-in-out infinite;
}

/* ✅ BOTÃO ESPECIAL PARA OFERTAS */
.btn-comprar-oferta {
    background: linear-gradient(135deg, #ff6b6b, #ff4757) !important;
    color: white !important;
    font-weight: bold !important;
    animation: btn-pulse 2s ease-in-out infinite;
}

/* ✅ ANIMAÇÕES */
@keyframes pulse-oferta {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.5); }
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@media screen and (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select {
        font-size: 16px !important;
        transform: scale(1) !important;
        zoom: 1 !important;
    }
    
    /* Prevenir zoom automático */
    input:focus, textarea:focus {
        transform: scale(1) !important;
    }
}
.variacao-btn-compact {
    padding: 10px;
    border: 2px solid #70a60f;
    background: white;
    color: #70a60f;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}
/* ✅ ESTILOS PARA BOTÕES DE VARIAÇÃO COM ID DO PRODUTO */
.variacao-btn-compact {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.variacao-btn-compact:hover {
    border-color: #70a60f;
    color: #70a60f;
    transform: translateY(-1px);
}

.variacao-btn-compact.selecionado {
    background: #70a60f;
    color: white;
    border-color: #70a60f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(112, 166, 15, 0.3);
}

.variacao-btn-compact[data-produto-id] {
    position: relative;
}

/* Indicador visual de qual produto está sendo editado */
.variacao-btn-compact[data-produto-id]::before {
    content: '#' attr(data-produto-id);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #70a60f;
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.variacao-btn-compact.selecionado::before {
    opacity: 1;
}
/* ✅ ANIMAÇÃO FADE IN PARA AVISOS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ✅ ESTILO PARA AVISO DE FORMA DE VENDA */
.aviso-forma-venda {
    animation: fadeIn 0.5s ease;
    transition: all 0.3s ease;
}

.aviso-forma-venda:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ✅ ESTILO PARA BOTÕES DE FORMA DE VENDA COM AVISO ATIVO */
.forma-venda-btn[data-tem-aviso="true"] {
    position: relative;
    border-width: 3px !important;
}

.forma-venda-btn[data-tem-aviso="true"]::after {
    content: '💡';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8em;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* ✅ ESTILOS PARA FORMAS DE VENDA COM DESCONTO */
.forma-com-oferta {
    animation: pulse-suave 2s infinite !important;
}

@keyframes pulse-suave {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Ajuste para grid de produtos */
.produto-card .formas-venda-grid {
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .forma-venda-item {
        padding: 8px 10px !important;
    }
    
    .forma-venda-item .preco-original {
        font-size: 0.85rem !important;
    }
    
    .forma-venda-item .preco-oferta {
        font-size: 1rem !important;
    }
}