/**
 * CSS Customizado do Sistema de Delivery
 * Arquivo centralizado para todos os estilos específicos das páginas
 */

/* ========================================
   PÁGINA DE PRODUTOS (produtos/index.php)
   Estilo iFood Mobile
   ======================================== */

/* Reset e Base para Produtos */
.page-produto * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-produto body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f8f8;
    color: #333;
}

/* Botão voltar fixo */
.btn-voltar {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: #ea1d2c;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

.btn-voltar:hover {
    transform: scale(1.1);
    background: #d41920;
}

.btn-voltar i {
    color: white;
    font-size: 18px;
}

/* Container principal - Produtos */
.page-produto main.container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.produto-wrapper {
    background: white;
    min-height: 100vh;
    max-width: 100%;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    padding-bottom: 100px;
}

.page-produto #detalhesProduto {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.page-produto .info1 {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* Imagem do produto - 100% sem espaços */
.page-produto .fotoProduto {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
    background: #fff;
    position: relative;
}

.page-produto .fotoProduto figure {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto;
    line-height: 0;
}

.page-produto .fotoProduto img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-produto .fotoProduto img:hover {
    transform: none;
}

/* Garantir que o body e html não tenham overflow */
.page-produto html,
.page-produto body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Conteúdo do produto */
.produto-conteudo {
    padding: 16px;
}

/* Descrição */
.page-produto .descricao {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

/* Título - preto como na referência */
.page-produto .descricao h3,
.page-produto .titulo-produto h3 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Subtítulo/Descrição - cinza */
.page-produto .descricao p,
.page-produto .descricao .detalhe {
    font-size: 14px;
    line-height: 1.5;
    color: #5c5c5c;
    text-align: left;
    margin: 0 0 12px 0;
}

/* Preço */
.page-produto .preco-container {
    display: block;
    margin: 0;
}

.page-produto .precos-simples,
.page-produto .descricao .preco {
    text-align: left;
    margin: 0;
    padding: 0;
    border: none;
}

.page-produto .preco-unico,
.page-produto .descricao .preco {
    font-size: 18px;
    color: #000;
    font-weight: 600;
    display: inline-block;
}

.page-produto .preco-riscado {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    display: inline-block;
    margin-right: 8px;
}

.page-produto .preco-atual {
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

.page-produto .btn-favorito {
    display: none !important;
}

/* Tag de entrega grátis */
.page-produto .tag-entrega {
    display: none !important;
}

/* Info2 - Adicionais */
.page-produto .info2 {
    padding: 0;
    margin: 0;
}

/* Adicionais */
.page-produto .adicionais-section,
.page-produto .tipo {
    margin: 0;
    padding: 16px;
    background: white;
    border-radius: 0;
    border: none;
    border-top: 8px solid #f8f8f8;
}

.page-produto .adicionais-section h3,
.page-produto .tipo .topo h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #3e3e3e;
}

.page-produto .tipo .topo {
    margin-bottom: 12px;
}

.page-produto .tipo .topo .detalhe {
    font-size: 13px;
    color: #717171;
}

/* Botão fixo inferior */
.acoes-produto {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}

.btn-adicionar-carrinho {
    width: 100%;
    background: #ea1d2c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(234, 29, 44, 0.2);
}

.btn-adicionar-carrinho:hover {
    background: #d41920;
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.3);
    transform: translateY(-1px);
}

.btn-adicionar-carrinho:active {
    transform: translateY(0);
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}

.btn-text i {
    font-size: 18px;
}

.preco-total-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.2;
}

.preco-total-label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.95;
    white-space: nowrap;
}

.preco-total-label strong {
    font-weight: 600;
}

.preco-total {
    font-size: 20px;
    font-weight: 700;
}

/* Adicionais - estilo iFood */
.grupo-adicionais,
.page-produto .opcoes {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.grupo-adicionais:last-child {
    border-bottom: none;
}

.grupo-titulo {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F5F5F5;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 12px 16px;
}

.limite-info {
    font-size: 12px;
    color: #717171;
    font-weight: 400;
}

.lista-adicionais {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.adicional-item,
.page-produto .opcoes .desc {
    padding: 12px 0;
    border: none;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.adicional-item:last-child,
.page-produto .tipo > .opcoes:last-child .desc {
    border-bottom: none;
}

.adicional-info,
.page-produto .opcoes .nome {
    flex: 1;
}

.adicional-label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.adicional-checkbox {
    display: none;
}

.adicional-nome,
.page-produto .opcoes .nome b {
    font-size: 14px;
    font-weight: 400;
    color: #3e3e3e;
    display: block;
}

.adicional-descricao {
    display: none;
}

/* Controles de quantidade do adicional */
.adicional-controles,
.page-produto .qtdeProdutoOpcao {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botões de quantidade para ADICIONAIS (página de produto) - maior especificidade */
.page-produto .adicional-controles .btn-quantidade,
.page-produto .adicional-item .btn-quantidade,
.page-produto .removerQtdeOpcao,
.page-produto .adicionarQtdeOpcao {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border: 1px solid #e0e0e0 !important;
    background: white !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    color: #ea1d2c !important;
}

.page-produto .adicional-controles .btn-quantidade i,
.page-produto .adicional-item .btn-quantidade i,
.page-produto .removerQtdeOpcao i,
.page-produto .adicionarQtdeOpcao i {
    font-size: 11px !important;
    color: #ea1d2c !important;
    font-weight: 700;
}

.page-produto .adicional-controles .btn-quantidade:hover,
.page-produto .adicional-item .btn-quantidade:hover,
.page-produto .removerQtdeOpcao:hover,
.page-produto .adicionarQtdeOpcao:hover {
    background: #f8f8f8 !important;
    border-color: #ea1d2c !important;
}

.page-produto .adicional-controles .btn-quantidade:disabled,
.page-produto .adicional-item .btn-quantidade:disabled,
.page-produto .removerQtdeOpcao:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e0e0e0 !important;
    background: white !important;
}

.page-produto .adicional-controles .btn-quantidade:disabled:hover,
.page-produto .adicional-item .btn-quantidade:disabled:hover,
.page-produto .removerQtdeOpcao:disabled:hover {
    background: white !important;
    border-color: #e0e0e0 !important;
    transform: none !important;
}

.quantidade-adicional,
.page-produto .qtdeOpcao {
    font-size: 14px;
    font-weight: 500;
    color: #3e3e3e;
    min-width: 24px;
    text-align: center;
    border: none;
    background: transparent;
}

/* Ocultar elementos desnecessários */
.page-produto .galeria-produto,
.page-produto .tag-produto,
.page-produto .ingredientes,
.page-produto .observacoes,
.page-produto .quantidade-produto,
.page-produto .produtos-relacionados {
    display: none !important;
}

/* ========================================
   DASHBOARD ADMIN (admin/index.php)
   Estilo iFood Dashboard
   ======================================== */

/* Dashboard estilo iFood */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Grid de 2 colunas */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Tabs de período */
.period-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.period-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.period-tab:hover {
    background: #f8f9fa;
}

.period-tab.active {
    background: #0066ff;
    color: white;
}

/* Card de estatísticas */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    color: #717171;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.stat-value.green {
    color: #00c851;
}

.stat-value.orange {
    color: #ff8800;
}

.stat-value.purple {
    color: #9c27b0;
}

/* Valores monetários */
.money-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.money-item {
    text-align: center;
}

.money-label {
    color: #717171;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.money-value {
    font-size: 28px;
    font-weight: 700;
}

.money-value.blue {
    color: #0066ff;
}

.money-value.green {
    color: #00c851;
}

.money-value.orange {
    color: #ff8800;
}

/* Card de gráfico */
.chart-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.chart-icon {
    color: #9c27b0;
    font-size: 24px;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

#pedidosChart {
    width: 100%;
    height: 100%;
}

/* Responsividade Dashboard */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .period-tabs {
        flex-direction: column;
    }

    .stat-value {
        font-size: 36px;
    }

    .money-value {
        font-size: 24px;
    }
}

/* ========================================
   ADMIN LOGIN (admin/login.php)
   ======================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #5568d3;
}

/* ========================================
   UTILITÁRIOS GERAIS
   ======================================== */

/* Alerta de sucesso/erro */
.alert-custom {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-custom.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-custom.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-custom.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge */
.badge-custom {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-custom.green {
    background: #d4edda;
    color: #155724;
}

.badge-custom.red {
    background: #f8d7da;
    color: #721c24;
}

.badge-custom.orange {
    background: #fff3cd;
    color: #856404;
}

.badge-custom.blue {
    background: #d1ecf1;
    color: #0c5460;
}

/* ========================================
   HEADER LOJA (config/templates/header-loja.php)
   Estilo iFood - Header Moderno
   ======================================== */

/* Header Moderno - Estilo iFood */
#header-moderno {
    position: relative;
    width: 100%;
    
}

/* Imagem de Cover Grande */
.header-cover {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.header-cover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

/* Card de Informações Flutuante */
.header-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    margin-top: -40px;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    max-width: 420px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 10;
}

/* Logo Circular - CENTRALIZADA */
.header-logo {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border: 4px solid white;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conteúdo do Card */
.header-content {
    margin-top: 30px;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-subtitle span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Divisor de informações */
.info-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Avaliação - Estilo iFood */
.header-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
}

.header-rating:hover {
    opacity: 0.8;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.rating-star-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.rating-number {
    color: #111827;
    font-weight: 600;
}

.rating-count {
    color: #111827;
    font-weight: 400;
}

.rating-divider {
    color: #9ca3af;
    margin: 0 2px;
}

.super-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.super-badge-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.super-badge-text {
    font-weight: 400;
    color: #000000;
}

.rating-chevron {
    color: #cbd5e0;
    margin-left: auto;
    font-size: 16px;
}

/* Tags de Informação */
.header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #4a5568;
}

.header-tags span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-green {
    color: #38a169;
    font-weight: 600;
}

/* Status da Loja */
.header-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.header-status.aberto {
    background: #f0fff4;
    color: #38a169;
}

.header-status.fechado {
    background: #fff5f5;
    color: #e53e3e;
}

.header-status i.fa-circle {
    font-size: 8px;
}

.btn-pisca {
    animation: pisca 1.5s infinite;
}

@keyframes pisca {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Banner de Promoção - Estilo iFood */
.promo-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid #ffcdd2;
}

.promo-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.promo-text {
    flex: 1;
}

.promo-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.promo-desc {
    font-size: 12px;
    color: #4a148c;
    margin: 0;
    line-height: 1.4;
}

/* Responsividade - Header Loja */
@media (max-width: 768px) {
    .header-cover {
        height: 180px;
    }

    .header-card {
        margin: -25px 16px 0;
        padding: 16px;
    }

    .header-logo {
        width: 85px;
        height: 85px;
        top: -42px;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-title {
        font-size: 20px;
    }

    .header-content {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .header-cover {
        height: 160px;
    }

    .header-logo {
        width: 75px;
        height: 75px;
        top: -37px;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-title {
        font-size: 18px;
    }

    .header-subtitle {
        font-size: 13px;
    }

    .header-tags {
        font-size: 12px;
    }
}


/* ========================================
   CHECKOUT (checkout/index.php)
   Carrinho de Compras e Order Bumps
   ======================================== */

.item-carrinho {
            background: #f8f9fa;
            border-radius: 16px;
            margin-bottom: 12px;
            padding: 16px;
            transition: all 0.2s ease;
            border: none;
            position: relative;
        }
        
        .item-carrinho:hover {
            background: #f0f0f0;
        }
        
        /* Layout flexbox moderno */
        .produto-container {
            display: flex;
            align-items: center;
            gap: 16px;
            width: 100%;
        }
        
        .produto-imagem-container {
            position: relative;
            flex-shrink: 0;
        }
        
        .produto-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .produto-controles {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
            flex-wrap: nowrap;
        }
        
        /* Ícone de edição no canto da imagem */
        .icone-edicao {
            position: absolute;
            top: -8px;
            left: -8px;
            width: 32px;
            height: 32px;
            background: #dc3545;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        }
        
        .item-carrinho:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }
        
        .produto-imagem {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 12px;
            flex-shrink: 0;
        }
        
        /* Título do produto */
        .produto-titulo {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin: 0;
            line-height: 1.3;
        }
        
        /* Descrição do produto */
        .produto-descricao {
            font-size: 14px;
            color: #666;
            margin: 0;
            line-height: 1.4;
        }
        
        /* Container de preços */
        .produto-precos {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
        }
        
        /* Preço atual */
        .preco-atual {
            font-size: 18px;
            font-weight: 700;
            color: #28a745;
            margin: 0;
        }
        
        /* Preço original riscado */
        .preco-original {
            font-size: 14px;
            color: #999;
            text-decoration: line-through;
            margin: 0;
        }
        
        /* Controles de quantidade modernos */
        .quantidade-controles {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
            flex-shrink: 0;
        }
        
        .btn-quantidade {
            width: 36px;
            height: 36px;
            min-width: 36px;
            min-height: 36px;
            border-radius: 50%;
            border: none;
            background: #dc3545;
            color: white;
            font-size: 16px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            cursor: pointer;
            flex-shrink: 0;
        }
        
        .btn-quantidade:hover {
            background: #c82333;
            transform: scale(1.05);
        }
        
        .btn-quantidade:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }
        
        .quantidade-display {
            min-width: 24px;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: #333;
            flex-shrink: 0;
            white-space: nowrap;
        }
        

        
        .resumo-pedido {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            position: sticky;
            top: 20px;
        }
        
        .linha-total {
            border-top: 2px solid var(--cor-primaria);
            padding-top: 15px;
            margin-top: 15px;
        }
        
        .preco-total {
            font-size: 24px;
            font-weight: bold;
            color: var(--cor-primaria);
        }
        
        .btn-finalizar {
            background: var(--cor-primaria);
            border: none;
            padding: 15px 30px;
            font-size: 18px;
            font-weight: bold;
            border-radius: 10px;
            width: 100%;
            transition: all 0.3s ease;
        }
        
        .btn-finalizar:hover {
            background: #218838;
            transform: translateY(-2px);
        }
        
        .carrinho-vazio {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }
        
        .carrinho-vazio i {
            font-size: 80px;
            margin-bottom: 20px;
            opacity: 0.5;
        }
        
        /* Estilos para validação de campos */
        .form-control.is-invalid {
            border-color: #dc3545;
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
        }
        
        .form-control.is-valid {
            border-color: #28a745;
            box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
        }
        
        .invalid-feedback {
            display: block;
            color: #dc3545;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        
        .form-text {
            color: #6c757d;
            font-size: 0.875rem;
        }
        
        .badge-adicional {
            background: #e9ecef;
            color: #495057;
            font-size: 11px;
            padding: 3px 8px;
            margin: 2px;
            border-radius: 15px;
        }
        
        .observacoes {
            font-style: italic;
            color: #6c757d;
            font-size: 14px;
            margin-top: 5px;
        }
        
        /* Estilos para itens de oferta no carrinho */
        .item-oferta {
            border: 2px solid #ffc107 !important;
            background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%) !important;
            position: relative;
        }
        
        .item-oferta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #ffc107, #ff8c00);
        }
        
        .produto-titulo-container {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .badge-oferta {
            background: #ffc107;
            color: #333;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            white-space: nowrap;
        }
        
        .item-oferta .preco-atual {
            color: #28a745 !important;
            font-weight: 800;
        }
        
        .item-oferta .preco-original {
            color: #dc3545 !important;
            font-weight: 500;
        }
        
        @media (max-width: 768px) {
            /* Layout responsivo para tablets e mobile */
            .item-carrinho {
                padding: 12px;
            }
            
            .produto-container {
                gap: 12px;
            }
            
            .produto-imagem {
                width: 60px;
                height: 60px;
            }
            
            .icone-edicao {
                width: 28px;
                height: 28px;
                font-size: 12px;
                top: -6px;
                left: -6px;
            }
            
            .produto-titulo {
                font-size: 16px;
            }
            
            .produto-descricao {
                font-size: 13px;
            }
            
            .preco-atual {
                font-size: 16px;
            }
            
            .preco-original {
                font-size: 13px;
            }
            
            .btn-quantidade {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }
            
            .quantidade-display {
                font-size: 16px;
            }
        }
        
        @media (max-width: 576px) {
            /* Layout compacto para mobile pequeno */
            .item-carrinho {
                padding: 10px;
            }
            
            .produto-container {
                gap: 10px;
            }
            
            .produto-imagem {
                width: 50px;
                height: 50px;
            }
            
            .icone-edicao {
                width: 24px;
                height: 24px;
                font-size: 10px;
                top: -4px;
                left: -4px;
            }
            
            .produto-titulo {
                font-size: 14px;
                line-height: 1.2;
            }
            
            .produto-descricao {
                font-size: 12px;
                line-height: 1.3;
                /* Manter descrição visível no mobile */
            }
            
            .preco-atual {
                font-size: 15px;
            }
            
            .preco-original {
                font-size: 12px;
            }
            
            .produto-controles {
                gap: 8px;
            }
            
            .btn-quantidade {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
            
            .quantidade-display {
                font-size: 14px;
                min-width: 20px;
            }
            
            /* Manter controles horizontais mesmo em telas pequenas */
            .quantidade-controles {
                gap: 6px;
                flex-wrap: nowrap;
                min-width: fit-content;
            }
        }
        
        /* Estilos para as Ofertas Order Bumps */
        .ofertas-section {
            background: #fff;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            border: 2px dashed #e9ecef;
        }
        
        .ofertas-titulo {
            color: #333;
            font-weight: 700;
            font-size: 20px;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .ofertas-titulo i {
            color: #28a745;
        }
        
        .ofertas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .oferta-card {
            background: #fff;
            border: 2px solid #ffc107;
            border-radius: 12px;
            padding: 16px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .oferta-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
        }
        
        .oferta-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ffc107, #ff8c00);
        }
        
        .oferta-imagem {
            text-align: center;
            margin-bottom: 12px;
        }
        
        .oferta-imagem img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
        }
        
        .oferta-conteudo {
            text-align: center;
        }
        
        .oferta-titulo {
            font-size: 16px;
            font-weight: 700;
            color: #333;
            margin-bottom: 8px;
            line-height: 1.2;
        }
        
        .oferta-descricao {
            font-size: 13px;
            color: #666;
            margin-bottom: 12px;
            line-height: 1.3;
        }
        
        .oferta-precos {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .preco-original {
            font-size: 14px;
            color: #999;
            text-decoration: line-through;
        }
        
        .preco-oferta {
            font-size: 18px;
            font-weight: 700;
            color: #28a745;
        }
        
        .btn-pegar-oferta {
            background: #ffc107;
            border: none;
            color: #333;
            font-weight: 700;
            font-size: 14px;
            padding: 10px 16px;
            border-radius: 8px;
            width: 100%;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .btn-pegar-oferta:hover {
            background: #ffb300;
            transform: scale(1.02);
        }
        
        .btn-pegar-oferta:active {
            transform: scale(0.98);
        }
        
        .btn-pegar-oferta.adicionado {
            background: #28a745;
            color: white;
        }
        
        .btn-pegar-oferta.adicionado:hover {
            background: #218838;
        }
        
        /* Responsividade para ofertas */
        @media (max-width: 768px) {
            .ofertas-section {
                padding: 16px;
            }
            
            .ofertas-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 16px;
            }
            
            .ofertas-titulo {
                font-size: 18px;
            }
            
            .oferta-card {
                padding: 12px;
            }
            
            .oferta-imagem img {
                width: 60px;
                height: 60px;
            }
            
            .oferta-titulo {
                font-size: 14px;
            }
            
            .oferta-descricao {
                font-size: 12px;
            }
            
            .preco-oferta {
                font-size: 16px;
            }
            
            .btn-pegar-oferta {
                font-size: 12px;
                padding: 8px 12px;
            }
        }
        
        @media (max-width: 576px) {
            .ofertas-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            
            .oferta-card {
                padding: 10px;
            }
            
            .oferta-imagem img {
                width: 50px;
                height: 50px;
            }
            
            .ofertas-titulo {
                font-size: 16px;
                margin-bottom: 16px;
            }
        }
        
        /* ============================================
           ESTILOS PARA LAYOUT 2 (HORIZONTAL)
           ============================================ */
        
        /* Grid horizontal para layout 2 */
        .ofertas-grid.layout-2 {
            grid-template-columns: 1fr;
            gap: 12px;
        }
        
        /* Card horizontal */
        .oferta-card.layout-2 {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px;
            min-height: 100px;
        }
        
        /* Barra lateral colorida para layout 2 */
        .oferta-card.layout-2::before {
            width: 4px;
            height: 100%;
            top: 0;
            left: 0;
            right: auto;
            background: linear-gradient(180deg, #ffc107, #ff8c00);
        }
        
        /* Imagem à esquerda no layout 2 */
        .oferta-card.layout-2 .oferta-imagem {
            margin-bottom: 0;
            flex-shrink: 0;
            text-align: left;
        }
        
        .oferta-card.layout-2 .oferta-imagem img {
            width: 90px;
            height: 90px;
        }
        
        /* Conteúdo à direita no layout 2 */
        .oferta-card.layout-2 .oferta-conteudo {
            text-align: left;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 90px;
        }
        
        /* Informações superiores */
        .oferta-card.layout-2 .oferta-info-superior {
            flex: 1;
        }
        
        /* Título menor no layout 2 */
        .oferta-card.layout-2 .oferta-titulo {
            font-size: 15px;
            margin-bottom: 4px;
            line-height: 1.2;
        }
        
        /* Descrição compacta no layout 2 */
        .oferta-card.layout-2 .oferta-descricao {
            font-size: 12px;
            margin-bottom: 8px;
            line-height: 1.3;
        }
        
        /* Preços alinhados à esquerda no layout 2 */
        .oferta-card.layout-2 .oferta-precos {
            justify-content: flex-start;
            margin-bottom: 8px;
        }
        
        .oferta-card.layout-2 .preco-original {
            font-size: 13px;
        }
        
        .oferta-card.layout-2 .preco-oferta {
            font-size: 16px;
        }
        
        /* Botão compacto no layout 2 */
        .oferta-card.layout-2 .btn-pegar-oferta {
            width: auto;
            min-width: 120px;
            padding: 8px 12px;
            font-size: 12px;
            align-self: flex-start;
        }
        
        /* Responsividade específica para layout 2 - MANTÉM LAYOUT HORIZONTAL */
        @media (max-width: 768px) {
            .oferta-card.layout-2 {
                /* MANTÉM flex-direction: row para preservar layout horizontal */
                gap: 12px;
                padding: 10px;
                min-height: 110px;
            }
            
            .oferta-card.layout-2 .oferta-imagem img {
                width: 90px;
                height: 90px;
            }
            
            .oferta-card.layout-2 .oferta-titulo {
                font-size: 14px;
            }
            
            .oferta-card.layout-2 .oferta-descricao {
                font-size: 11px;
                margin-bottom: 6px;
            }
            
            .oferta-card.layout-2 .preco-original {
                font-size: 12px;
            }
            
            .oferta-card.layout-2 .preco-oferta {
                font-size: 15px;
            }
            
            .oferta-card.layout-2 .btn-pegar-oferta {
                min-width: 100px;
                padding: 6px 10px;
                font-size: 11px;
            }
        }
        
        @media (max-width: 576px) {
            .oferta-card.layout-2 {
                gap: 10px;
                padding: 8px;
                min-height: 110px;
            }
            
            .oferta-card.layout-2 .oferta-imagem img {
                width: 90px;
                height: 90px;
            }
            
            .oferta-card.layout-2 .oferta-titulo {
                font-size: 13px;
                margin-bottom: 2px;
            }
            
            .oferta-card.layout-2 .oferta-descricao {
                font-size: 10px;
                margin-bottom: 4px;
            }
            
            .oferta-card.layout-2 .preco-original {
                font-size: 11px;
            }
            
            .oferta-card.layout-2 .preco-oferta {
                font-size: 14px;
            }
            
            .oferta-card.layout-2 .btn-pegar-oferta {
                min-width: 90px;
                padding: 5px 8px;
                font-size: 10px;
            }
        }
        
        /* Media query especial para telas muito pequenas - SÓ AQUI vira vertical */
        @media (max-width: 400px) {
            .oferta-card.layout-2 {
                flex-direction: column;
                text-align: center;
                min-height: auto;
            }
            
            .oferta-card.layout-2 .oferta-imagem {
                text-align: center;
                margin-bottom: 8px;
            }
            
            .oferta-card.layout-2 .oferta-conteudo {
                text-align: center;
            }
            
            .oferta-card.layout-2 .oferta-precos {
                justify-content: center;
            }
            
            .oferta-card.layout-2 .btn-pegar-oferta {
                width: 100%;
                align-self: stretch;
            }
        }

/* ========================================
   PAGAMENTO (pagamento/index.php)
   Página de Pagamento
   ======================================== */

.container-pagamento {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .card-pagamento {
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .card-header-pix {
            background: linear-gradient(135deg, #32BCAD 0%, #28a745 100%);
            color: white;
            padding: 25px;
            text-align: center;
        }
        
        .pix-icon {
            font-size: 48px;
            margin-bottom: 10px;
            color: white;
        }
        
        .card-body-pagamento {
            padding: 30px;
        }
        
        .resumo-pedido-pix {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
        }
        
        .qr-code-container {
            text-align: center;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 15px;
            margin: 25px 0;
        }
        
        .qr-code-canvas {
            border: 3px solid white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .codigo-pix-container {
            background: #e9ecef;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }
        
        #input-codigo-pix {
            cursor: pointer;
        }
        
        #input-codigo-pix:focus {
            box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
            border-color: #28a745;
        }
        
        .status-pagamento {
            text-align: center;
            padding: 20px;
            margin: 20px 0;
        }
        
        .loading-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--cor-primaria);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .tempo-restante {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            color: #856404;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            margin: 20px 0;
        }
        
        .instrucoes-pix {
            background: #d1ecf1;
            border: 1px solid #bee5eb;
            color: #0c5460;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .instrucoes-pix h6 {
            color: #0c5460;
            margin-bottom: 15px;
        }
        
        .instrucoes-pix ol {
            margin-bottom: 0;
            padding-left: 20px;
        }
        
        .instrucoes-pix li {
            margin-bottom: 8px;
        }

        /* Botão de voltar na página de pagamento (use classe específica .btn-voltar-pagamento se necessário) */

        .erro-pagamento {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            text-align: center;
        }
        
        @media (max-width: 768px) {
            .container-pagamento {
                padding: 10px;
            }
            
            .card-body-pagamento {
                padding: 20px;
            }
            
            .qr-code-container {
                padding: 20px;
            }
            
            #input-codigo-pix {
                font-size: 10px;
            }
            
            .btn {
                font-size: 12px;
            }
        }

/* ========================================
   SELEÇÃO DE MÉTODO (pagamento/selecionar-metodo.php)
   Escolha de Método de Pagamento
   ======================================== */

.container-pagamento {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
    }

    .titulo-pagamento {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin-bottom: 20px;
        padding-left: 5px;
    }

    .metodos-pagamento {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .metodo-item {
        display: flex;
        align-items: center;
        padding: 18px 20px;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: background-color 0.2s ease;
        position: relative;
    }

    .metodo-item:last-child {
        border-bottom: none;
    }

    .metodo-item:hover {
        background-color: #f9f9f9;
    }

    .metodo-item.selecionado {
        background-color: #fef7f7;
        border-left: 3px solid var(--cor-primaria);
    }

    .metodo-icone {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        flex-shrink: 0;
    }

    .metodo-icone.pix {
        background-color: #e8f5f4;
    }

    .metodo-icone.pix i {
        color: #32BCAD;
        font-size: 24px;
    }

    .metodo-icone.cartao {
        background-color: #fee;
    }

    .metodo-icone.cartao i {
        font-size: 24px;
    }

    .metodo-icone.cartao.mastercard i {
        color: #eb001b;
    }

    .metodo-icone.cartao.visa i {
        color: #1434cb;
    }

    .metodo-info {
        flex: 1;
    }

    .metodo-titulo {
        font-size: 16px;
        font-weight: 500;
        color: #1a1a1a;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .metodo-descricao {
        font-size: 14px;
        color: #666;
        margin: 0;
    }

    .metodo-badge {
        background: #32BCAD;
        color: white;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
    }

    .metodo-radio {
        width: 24px;
        height: 24px;
        border: 2px solid #ddd;
        border-radius: 50%;
        position: relative;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .metodo-item.selecionado .metodo-radio {
        border-color: var(--cor-primaria);
    }

    .metodo-item.selecionado .metodo-radio::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        background: var(--cor-primaria);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .preco-info {
        font-size: 13px;
        color: #32BCAD;
        margin-top: 4px;
    }

    .preco-original {
        text-decoration: line-through;
        color: #999;
        margin-right: 6px;
    }

    .btn-adicionar-cartao {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 16px;
        background: white;
        border: 2px dashed #ddd;
        border-radius: 12px;
        color: #666;
        font-size: 15px;
        font-weight: 500;
        margin-top: 16px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-adicionar-cartao:hover {
        border-color: var(--cor-primaria);
        color: var(--cor-primaria);
        background-color: #fef7f7;
    }

    .btn-adicionar-cartao i {
        font-size: 18px;
    }

    .btn-continuar {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        font-weight: 500;
        border-radius: 8px;
        margin-top: 24px;
        border: none;
        background: var(--cor-primaria);
        color: white;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-continuar:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .btn-continuar:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Modal de Cartão */
    .modal-cartao .modal-content {
        border-radius: 15px;
    }

    .modal-cartao .modal-header {
        background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
        color: white;
        border-radius: 15px 15px 0 0;
    }

    .cartao-visual {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 15px;
        padding: 25px;
        color: white;
        margin-bottom: 30px;
        min-height: 200px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        position: relative;
    }

    .cartao-chip {
        width: 50px;
        height: 40px;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .cartao-numero {
        font-size: 24px;
        letter-spacing: 4px;
        font-family: 'Courier New', monospace;
        margin: 20px 0;
    }

    .cartao-info {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }

    .cartao-titular {
        font-size: 14px;
        text-transform: uppercase;
    }

    .cartao-validade {
        font-size: 14px;
    }

    .bandeira-cartao {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 40px;
    }

    .form-cartao .form-group {
        margin-bottom: 20px;
    }

    .form-cartao label {
        font-weight: 600;
        margin-bottom: 8px;
    }

    .form-cartao .form-control {
        padding: 12px;
        border-radius: 8px;
    }

    .campos-inline {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 15px;
    }

    /* Feedback de Validação */
    .form-control.is-invalid {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        padding-right: calc(1.5em + 0.75rem);
    }

    .form-control.is-valid {
        border-color: #28a745;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        padding-right: calc(1.5em + 0.75rem);
    }

    .invalid-feedback {
        display: none;
        width: 100%;
        margin-top: 0.25rem;
        font-size: 0.875em;
        color: #dc3545;
    }

    .invalid-feedback.d-block {
        display: block;
    }

    .valid-feedback {
        display: none;
        width: 100%;
        margin-top: 0.25rem;
        font-size: 0.875em;
        color: #28a745;
    }

    .valid-feedback.d-block {
        display: block;
    }

    @media (max-width: 768px) {
        .metodos-pagamento {
            grid-template-columns: 1fr;
        }

        .campos-inline {
            grid-template-columns: 1fr;
        }
    }

/* ========================================
   PEDIDOS (pedidos/index.php)
   Acompanhamento de Pedidos
   ======================================== */

.pedido-card {
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        padding: 25px;
        transition: all 0.3s ease;
        border-left: 5px solid var(--cor-primaria);
    }
    
    .pedido-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .pedido-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f8f9fa;
    }
    
    .numero-pedido {
        font-size: 18px;
        font-weight: bold;
        color: var(--cor-primaria);
    }
    
    .status-badge {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    .status-pendente {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }
    
    .status-preparando {
        background: #d1ecf1;
        color: #0c5460;
        border: 1px solid #bee5eb;
    }
    
    .status-entregue {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    .status-cancelado {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    .pedido-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .info-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .info-item i {
        color: var(--cor-primaria);
        width: 20px;
        text-align: center;
    }
    
    .pedido-produtos {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .produto-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .produto-item:last-child {
        border-bottom: none;
    }
    
    .produto-imagem {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .produto-detalhes {
        flex: 1;
    }
    
    .produto-nome {
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .produto-extras {
        font-size: 12px;
        color: #6c757d;
    }
    
    .produto-preco {
        font-weight: bold;
        color: var(--cor-primaria);
    }
    
    .pedido-total {
        text-align: right;
        font-size: 20px;
        font-weight: bold;
        color: var(--cor-primaria);
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #e9ecef;
    }
    
    .pedido-acoes {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        margin-top: 20px;
    }
    
    .btn-acao {
        padding: 8px 16px;
        border-radius: 8px;
        border: none;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .btn-detalhes {
        background: var(--cor-primaria);
        color: white;
    }
    
    .btn-detalhes:hover {
        background: #218838;
        transform: translateY(-1px);
    }
    
    .btn-repetir {
        background: #6c757d;
        color: white;
    }
    
    .btn-repetir:hover {
        background: #5a6268;
        transform: translateY(-1px);
    }
    
    .historico-vazio {
        text-align: center;
        padding: 80px 20px;
        color: #6c757d;
    }
    
    .historico-vazio i {
        font-size: 100px;
        margin-bottom: 30px;
        opacity: 0.3;
    }
    

    
    @media (max-width: 768px) {
        .pedido-info {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .pedido-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .produto-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }



        .pedido-acoes {
            justify-content: center;
            flex-wrap: wrap;
        }
    }

/* ========================================
   BOTÃO FIXO INFERIOR - PRODUTOS
   Estilos de quantidade de produtos
   ======================================== */

.qtdeProduto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.removerQtde,
.adicionarQtde {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #ea1d2c;
}

.removerQtde:hover,
.adicionarQtde:hover {
    background: #f8f8f8;
    border-color: #ea1d2c;
}

.removerQtde:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qtde {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ========================================
   FEEDBACK CARRINHO - ANIMAÇÃO
   ======================================== */

.carrinho-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: #ea1d2c;
    color: white;
    padding: 24px 48px;
    border-radius: 16px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(234, 29, 44, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.carrinho-feedback i {
    font-size: 32px;
}

.carrinho-feedback.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 480px) {
    .carrinho-feedback {
        padding: 20px 32px;
        font-size: 20px;
    }

    .carrinho-feedback i {
        font-size: 28px;
    }
}

/* ========================================
   BOTÃO FIXO INFERIOR - INDEX (SACOLA)
   Estilo iFood - Layout 2 Colunas
   ======================================== */

.carrinho-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}

.carrinho-fixo__content {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.carrinho-fixo__summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carrinho-fixo__label {
    font-size: 20px;
    color: #666;
    line-height: 1.3;
}

.carrinho-fixo__amount {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.carrinho-fixo__total {
    font-size: 38px;
    font-weight: 700;
    color: #000;
}

.carrinho-fixo__items {
    font-size: 20px;
    color: #999;
}

.btn-ver-sacola {
    background: #ea1d2c;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 22px 0;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
}

.btn-ver-sacola:hover {
    background: #d41920;
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .carrinho-fixo {
        padding: 14px 16px;
    }

    .carrinho-fixo__content {
        grid-template-columns: 65% 35%;
        gap: 0;
    }

    .carrinho-fixo__label {
        font-size: 16px;
    }

    .carrinho-fixo__total {
        font-size: 30px;
    }

    .carrinho-fixo__items {
        font-size: 17px;
    }

    .btn-ver-sacola {
        padding: 18px 0;
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .carrinho-fixo__content {
        grid-template-columns: 60% 40%;
        gap: 0;
    }

    .carrinho-fixo__label {
        font-size: 11px;
    }

    .carrinho-fixo__total {
        font-size: 18px;
    }

    .carrinho-fixo__items {
        font-size: 15px;
    }

    .btn-ver-sacola {
        padding: 16px 0;
        font-size: 19px;
    }
}

/* ========================================
   CHECKOUT - LAYOUT MELHORADO
   ======================================== */

/* Carrinho Vazio */
.carrinho-vazio {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.carrinho-vazio i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.carrinho-vazio h3 {
    color: #495057;
    margin-bottom: 10px;
}

.carrinho-vazio p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Item do Carrinho - Estilo iFood */
.item-carrinho {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.item-carrinho:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-carrinho.item-oferta {
    border-left: 4px solid #ffc107;
}

.produto-container {
    display: flex !important;
    padding: 12px !important;
    gap: 12px !important;
    align-items: center !important;
    position: relative !important;
}

.produto-imagem-container {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.produto-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icone-edicao {
    display: none;
}

.produto-info {
    flex: 1;
    min-width: 0;
}

.produto-titulo-container {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.produto-titulo {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.badge-oferta {
    background: #ffc107;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.produto-descricao {
    font-size: 13px;
    color: #717171;
    margin: 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.observacoes {
    font-size: 12px;
    color: #495057;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 6px 0 0 0;
    display: inline-block;
}

.produto-precos {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}

.preco-atual {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.preco-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.produto-controles {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
}

.quantidade-controles {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    width: 36px !important;
}

.btn-quantidade {
    background: transparent !important;
    border: none !important;
    width: 36px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    color: #ea1d2c !important;
    font-size: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 36px !important;
    max-width: 36px !important;
}

.btn-quantidade:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.btn-quantidade:last-child {
    border-top: 1px solid #f0f0f0;
}

.btn-quantidade:hover {
    background: #fff5f5;
}

.btn-quantidade:active {
    background: #ea1d2c;
    color: white;
}

.quantidade-display {
    font-size: 14px !important;
    font-weight: 600 !important;
    width: 36px !important;
    height: 26px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    color: #333 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 36px !important;
    max-width: 36px !important;
}

/* Resumo do Pedido */
.resumo-pedido {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.resumo-pedido h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.linha-total {
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
}

.preco-total {
    color: #28a745;
    font-size: 24px;
}

.btn-finalizar {
    width: 100%;
    background: #28a745;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-finalizar:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Order Bumps/Ofertas */
.ofertas-section {
    margin-top: 30px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.ofertas-titulo {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ofertas-grid.layout-2 {
    grid-template-columns: 1fr;
}

.oferta-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.oferta-card.layout-2 {
    flex-direction: row;
}

.oferta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.oferta-imagem {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.oferta-card.layout-2 .oferta-imagem {
    width: 200px;
    height: auto;
    min-height: 160px;
}

.oferta-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oferta-conteudo {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.oferta-card.layout-2 .oferta-conteudo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.oferta-info-superior {
    flex: 1;
}

.oferta-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.oferta-descricao {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 8px 0;
}

.oferta-precos {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.preco-oferta {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.btn-pegar-oferta {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.oferta-card.layout-2 .btn-pegar-oferta {
    width: auto;
    white-space: nowrap;
}

.btn-pegar-oferta:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-pegar-oferta.adicionado {
    background: #6c757d;
    cursor: default;
}

.btn-pegar-oferta.adicionado:hover {
    background: #6c757d;
    transform: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .produto-container {
        grid-template-columns: 80px 1fr auto;
        gap: 12px;
    }

    .produto-imagem-container {
        width: 80px;
        height: 80px;
    }

    .produto-titulo {
        font-size: 15px;
    }

    .produto-descricao {
        font-size: 13px;
    }

    .preco-atual {
        font-size: 16px;
    }

    .resumo-pedido {
        position: static;
        margin-top: 20px;
    }

    .ofertas-grid {
        grid-template-columns: 1fr;
    }

    .oferta-card.layout-2 {
        flex-direction: column;
    }

    .oferta-card.layout-2 .oferta-imagem {
        width: 100%;
        height: 160px;
    }

    .oferta-card.layout-2 .oferta-conteudo {
        flex-direction: column;
    }

    .oferta-card.layout-2 .btn-pegar-oferta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .item-carrinho {
        padding: 12px;
    }

    .produto-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .produto-imagem-container {
        width: 100%;
        height: 200px;
    }

    .produto-controles {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

/* ========================================
   PAGE-HEADER - ESTILOS PADRÃO
   ======================================== */

:root {
    --cor-primaria: #ea1d2c;
    --cor-secundaria: #6c757d;
    --cor-texto: #333;
    --cor-fundo: #fff;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-header {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.page-header .container {
    max-width: 1200px;
}

.page-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.header-brand:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-info {
    text-align: center;
}

.header-info h1 {
    font-size: 22px;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.header-info .subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.page-header .btn-voltar {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-header .btn-voltar:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.page-title i {
    font-size: 18px;
    opacity: 0.9;
}

/* Breadcrumb opcional */
.page-breadcrumb {
    background: rgba(0,0,0,0.05);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: white;
}

.breadcrumb-separator {
    margin: 0 8px;
    opacity: 0.6;
}

/* Responsivo - Page Header */
@media (max-width: 768px) {
    .page-header {
        padding: 15px 0;
    }

    .page-header .header-content {
        justify-content: space-between;
    }

    .page-title {
        font-size: 18px;
    }

    .header-info h1 {
        font-size: 20px;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .page-header .btn-voltar {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-info h1 {
        font-size: 18px;
    }

    .header-info .subtitle {
        font-size: 12px;
    }

    .page-title {
        font-size: 16px;
    }

    .header-logo {
        width: 45px;
        height: 45px;
    }
}