/* ==========================================================================
   DISKGÁS — Estilos gerais
   Organizado por seção da página. Nenhuma regra visual foi alterada,
   apenas reagrupada e comentada.
   ========================================================================== */

/* ---------- 1. Variáveis globais ---------- */
:root {
    --primary: #0046BE;
    --primary-dark: #00338D;
    --primary-light: #E6EEFA;
    --accent: #FFD100;
    --success: #28A745;
    --warning: #F39C12;
    --danger: #DC3545;
    --text-dark: #1A1A1B;
    --text-gray: #4A4A4A;
    --text-light: #757575;
    --bg-light: #F4F7FA;
    --bg-white: #FFFFFF;
    --border-color: #DDE2E5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ---------- 2. Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-white);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-lg);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 3. Cabeçalho + barra de confiança ---------- */
.header {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.header.sticky { padding: 8px 20px; box-shadow: var(--shadow-md); }

.logo-section { display: flex; flex-direction: column; }
.logo-text { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1; }
.logo-tagline { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; margin-top: 2px; }

.header-actions { display: flex; gap: 12px; }
.icon-btn {
    background: rgba(255,255,255,0.15);
    border: none; color: white;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; position: relative; transition: all 0.2s;
}
.icon-btn:active { transform: scale(0.9); }

.badge {
    position: absolute; top: -5px; right: -5px;
    background-color: var(--accent); color: var(--primary-dark);
    font-size: 0.7rem; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    border: 2px solid var(--primary);
}
.badge.active { display: flex; }

.trust-bar {
    background-color: var(--primary-dark); color: white;
    padding: 6px 20px;
    display: flex; justify-content: center; gap: 15px;
    font-size: 0.7rem; font-weight: 600;
}
.trust-bar span { display: flex; align-items: center; gap: 5px; }
.trust-bar i { color: var(--accent); }

/* ---------- 4. Hero (banner de topo) ---------- */
.hero {
    padding: 20px; text-align: center;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.hero-subtitle { font-size: 0.9rem; opacity: 0.9; margin-bottom: 6px; }
.hero-disclaimer {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    line-height: 1.4;
}
.location-widget {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin: 10px 0; color: #7ee56b;
    font-size: 14px; font-weight: bold; width: 100%;
}

/* ---------- 5. Card do produto ---------- */
.product-card {
    background: white; border-radius: var(--radius-md); padding: 20px;
    margin-top: -15px; box-shadow: var(--shadow-md); position: relative;
}
.product-image-wrapper {
    position: relative; margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center; min-height: 220px;
}
.product-image {
    width: 100%; max-width: 220px; height: auto; object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease; opacity: 1;
}
.product-image.loading { opacity: 0; position: absolute; }

.spinner-container {
    position: absolute; display: none;
    align-items: center; justify-content: center; width: 100%; height: 220px;
}
.spinner-container.active { display: flex; }
.spinner {
    width: 50px; height: 50px;
    border: 4px solid var(--primary-light); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

.original-tag {
    position: absolute; top: 0; right: 0;
    background: var(--success); color: white;
    font-size: 0.65rem; font-weight: 800; padding: 4px 10px;
    border-radius: 20px; text-transform: uppercase;
}

/* ---------- 5.1 Seletor de variantes (Casa/Comércio, P13/P45/...) ---------- */
.variant-section { margin-bottom: 20px; position: relative; }
.section-label {
    display: block; font-size: 0.75rem; font-weight: 700;
    color: var(--text-light); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 10px; text-align: left;
}
.type-tabs {
    display: flex; gap: 5px; background: #f4f7fa;
    padding: 2px; border-radius: 6px;
}
.type-tab {
    font-size: 0.65rem; font-weight: 800; padding: 4px 8px;
    border-radius: 4px; cursor: pointer; text-transform: uppercase;
    border: none; background: transparent; color: var(--text-light);
}
.type-tab.active { background: var(--primary); color: white; }

.variant-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; position: relative;
}
.variant-item {
    border: 2px solid var(--border-color); border-radius: var(--radius-sm);
    padding: 10px 5px; text-align: center; cursor: pointer;
    transition: all 0.2s; background-color: var(--bg-white); color: var(--text-dark);
}
.variant-item.active {
    border-color: var(--primary); background-color: var(--primary-light);
    color: var(--primary); font-weight: 700;
}
.variant-item i { display: block; font-size: 1.1rem; margin-bottom: 4px; opacity: 0.7; }
.variant-item.active i { opacity: 1; }
.variant-name { font-size: 0.8rem; }

.variant-spinner-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.6); display: none;
    align-items: center; justify-content: center; z-index: 5; border-radius: var(--radius-sm);
}
.variant-spinner-overlay.active { display: flex; }
.spinner-sm {
    width: 24px; height: 24px;
    border: 3px solid var(--primary-light); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ---------- 5.2 Preço e informações de pagamento ---------- */
.pricing-box { background-color: var(--bg-light); border-radius: var(--radius-md); padding: 15px; margin-bottom: 20px; }
.price-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.price-title { font-size: 0.85rem; font-weight: 700; color: var(--text-gray); }
.price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-from-label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.current-price { font-size: 1.8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.payment-info { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 12px; }
.payment-info div { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-gray); font-weight: 500; }
.payment-info i { color: var(--primary); width: 16px; text-align: center; }
.inline-disclaimer {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.4;
}

/* ---------- 5.3 Botões primários ---------- */
.btn-primary {
    width: 100%; padding: 16px; border: none; border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 800; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.2s; box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary.loading { pointer-events: none; opacity: 0.8; }
.btn-spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin 0.8s linear infinite; display: none;
}
.btn-primary.loading .btn-spinner { display: block; }
.btn-primary.loading i, .btn-primary.loading span { display: none; }

.delivery-status {
    color: #4F7942; font-size: 13px; font-weight: 500;
    text-align: center; margin: 10px 0; letter-spacing: 0.3px;
}

/* ---------- 6. Seção de diferenciais (cards) ---------- */
.features-section { padding: 30px 20px; display: flex; flex-direction: column; gap: 15px; }
.feature-card {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    background: white; border-radius: var(--radius-md); border: 1px solid var(--border-color);
}
.feature-icon {
    width: 45px; height: 45px; background: var(--primary-light); color: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.feature-content h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 2px; }
.feature-content p { font-size: 0.8rem; color: var(--text-gray); }

/* ---------- 7. Grade de benefícios (faixa azul) ---------- */
.benefits-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 20px; background: var(--primary); color: white;
}
.benefit-item { text-align: center; padding: 15px 5px; }
.benefit-item i { font-size: 1.5rem; margin-bottom: 8px; color: var(--accent); }
.benefit-item span { display: block; font-size: 0.75rem; font-weight: 600; }

/* ---------- 8. FAQ ---------- */
.faq-section { padding: 30px 20px; background: var(--bg-light); }
.faq-item {
    background: white; border-radius: 8px; margin-bottom: 10px;
    overflow: hidden; border: 1px solid var(--border-color);
}
.faq-question {
    padding: 15px; font-size: 0.9rem; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-answer { padding: 0 15px 15px; font-size: 0.85rem; color: var(--text-gray); display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .fa-chevron-down { transform: rotate(180deg); }

.section-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; text-align: center; }

/* ---------- 9. Rodapé ---------- */
.footer { background-color: #1a1a1a; color: #fff; padding: 50px 20px 20px; }
.footer-container {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px; margin-bottom: 30px;
}
.footer-logo { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-column h3 { font-size: 1rem; margin-bottom: 16px; color: #ffb400; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 8px; }
.footer-column ul li a { color: #ccc; text-decoration: none; font-size: 0.85rem; transition: 0.3s; }
.footer-column ul li a:hover { color: #ffb400; }
.footer-description { color: #ccc; font-size: 0.85rem; line-height: 1.5; margin: 10px 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
    text-align: center; font-size: 0.78rem; color: #888;
}
.footer-bottom p { margin: 4px 0; }
.contact-info li {
    color: #ccc; font-size: 0.85rem; line-height: 1.6; margin-bottom: 10px;
    display: flex; align-items: flex-start; gap: 10px;
}
.contact-info i { color: #ffb400; margin-top: 3px; width: 16px; text-align: center; }
.contact-info div { display: flex; flex-direction: column; gap: 2px; }
.dias-texto { color: #ccc; font-size: 0.85rem; }
.horario-texto { color: #ffb400; font-weight: bold; }

/* ---------- 10. Modal do carrinho ---------- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none; align-items: flex-end; z-index: 2000;
}
.modal-overlay.active { display: flex; }
.cart-panel {
    width: 100%; max-width: 480px; background: white;
    height: 100dvh; display: flex; flex-direction: column;
    animation: slideIn 0.3s ease-out; margin: 0 auto; overflow: hidden;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-header {
    padding: 20px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-title { font-weight: 800; font-size: 1.1rem; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); }
.cart-content { flex: 1; overflow-y: auto; padding: 20px; }

.cart-item {
    display: flex; gap: 15px; padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color); margin-bottom: 15px;
}
.cart-item-img { width: 60px; height: 60px; object-fit: contain; background: #f8f9fa; border-radius: 8px; }
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.cart-item-price { color: var(--primary); font-weight: 800; font-size: 0.95rem; }
.qty-control { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn {
    width: 24px; height: 24px; border: 1px solid var(--border-color);
    background: white; border-radius: 4px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

/* ---------- 10.1 Formulário de endereço / frete ---------- */
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 12px; margin-bottom: 15px; }
.form-row .form-group { flex: 1; margin-bottom: 0; }
.form-label {
    display: block; font-size: 0.75rem; font-weight: 700;
    color: var(--text-light); margin-bottom: 5px; text-transform: uppercase;
}
.form-input {
    width: 100%; padding: 12px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.address-box {
    background-color: var(--primary-light); padding: 12px;
    border-radius: 8px; margin-top: 10px; font-size: 0.85rem; display: none;
}

.shipping-options { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.shipping-card {
    border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;
    display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s;
}
.shipping-card.active { border-color: var(--primary); background-color: var(--primary-light); }
.shipping-card i { font-size: 1.2rem; color: var(--primary); }
.shipping-info { flex: 1; }
.shipping-name { font-size: 0.85rem; font-weight: 700; display: block; }
.shipping-time { font-size: 0.75rem; color: var(--text-light); }
.shipping-price { font-weight: 800; font-size: 0.85rem; color: var(--success); }

/* ---------- 10.2 Rodapé do carrinho / totais ---------- */
.cart-footer { padding: 20px; border-top: 1px solid var(--border-color); background: white; }
#cart-footer-main { display: none; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.total-label { font-weight: 700; color: var(--text-gray); }
.total-value { font-size: 1.3rem; font-weight: 900; color: var(--primary); }

/* ---------- 10.3 Resumo do pedido ---------- */
.summary-section-title {
    font-size: 0.7rem; font-weight: 800; color: var(--text-light);
    text-transform: uppercase; margin-bottom: 12px; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px;
}
.summary-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border-color); opacity: 0.5; }
.summary-item-card {
    display: flex; align-items: center; gap: 16px; padding: 12px;
    background: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.summary-item-img { width: 50px; height: 50px; object-fit: contain; background: var(--bg-light); border-radius: var(--radius-sm); }
.summary-info-box {
    background: var(--primary-light); border: 1px solid rgba(0,70,190,0.1);
    border-radius: var(--radius-md); padding: 16px; margin-bottom: 24px;
    font-size: 0.85rem; color: var(--text-dark);
}
.summary-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.summary-info-label { color: var(--text-gray); font-weight: 500; }
.summary-info-value { font-weight: 600; color: var(--text-dark); }
.summary-totals-block {
    background: var(--bg-light); border-radius: var(--radius-md);
    padding: 20px; margin-top: 10px; border: 1px solid var(--border-color);
}

/* ---------- 11. Overlay de carregamento (tela cheia) ---------- */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9); display: none;
    flex-direction: column; align-items: center; justify-content: center; z-index: 3000;
}
.loading-overlay.active { display: flex; }
