/* ==================== ULTRAGAZ PROFESSIONAL DESIGN ==================== */
/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --primary: #1E40AF;
    --primary-dark: #1E3A8A;
    --primary-light: #3B82F6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Neutras */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Promo */
    --promo: #DC2626;
    --promo-dark: #991B1B;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.btn-cart {
    position: relative;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart:hover {
    background: var(--primary-dark);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.store-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-600);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item i {
    font-size: 12px;
}

.detail-item .fa-star {
    color: #FBBF24;
}

.rating {
    font-weight: 600;
    color: var(--gray-900);
}

.reviews {
    color: var(--gray-500);
}

.location-info {
    color: var(--primary);
    font-weight: 500;
}

.delivery-time {
    color: var(--success);
    font-weight: 500;
}

/* ==================== PROMO BANNER ==================== */
.promo-banner {
    background: linear-gradient(135deg, var(--promo-dark) 0%, var(--promo) 100%);
    color: white;
    padding: 20px 0;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.promo-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.promo-timer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-label-main {
    font-size: 12px;
    opacity: 0.9;
}

.timer-boxes {
    display: flex;
    gap: 6px;
}

.timer-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 45px;
    text-align: center;
}

.timer-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.timer-text {
    display: block;
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
}

.timer-divider {
    font-size: 16px;
    opacity: 0.6;
}

/* ==================== BENEFITS ==================== */
.benefits-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    font-size: 18px;
    color: var(--primary);
}

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
}

.benefit-text span {
    font-size: 12px;
    color: var(--gray-600);
}

/* ==================== ACTIVITY BAR ==================== */
.activity-bar {
    background: var(--gray-100);
    padding: 10px 0;
}

.activity-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-700);
}

.activity-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.activity-indicator strong {
    font-weight: 600;
    color: var(--gray-900);
}

/* ==================== PRODUTOS ==================== */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.product-image-container {
    position: relative;
    padding: 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.stock-alert {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--warning);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 42px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.product-rating i {
    color: #FBBF24;
    font-size: 11px;
}

.rating-value {
    font-weight: 600;
    color: var(--gray-900);
}

.rating-count {
    color: var(--gray-500);
}

.product-delivery {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--success);
}

.product-delivery i {
    font-size: 12px;
}

.product-pricing {
    margin-bottom: 8px;
}

.price-old {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 8px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.price-savings {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    margin-bottom: 16px;
}

.btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-add-cart i {
    font-size: 14px;
}

/* ==================== WHATSAPP ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==================== FLOATING CART ==================== */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.floating-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: white;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;
}

.footer-col a:hover { color: white; }

.footer-cnpj {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    margin-bottom: 6px;
}

.footer-disclaimer {
    font-size: 12px !important;
    color: #64748b !important;
}

.business-bar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

.business-bar strong { color: white; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 20px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 13px;
    margin: 0;
    flex: 1;
    min-width: 240px;
}

.cookie-banner a { color: #60a5fa; }

.cookie-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.checkout-legal {
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
    line-height: 1.5;
}

.checkout-legal a { color: #2563eb; }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
    font-size: 13px;
    color: #475569;
}

.terms-check input { margin-top: 3px; }

/* ==================== POPUP LOCALIZAÇÃO ==================== */
.location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
}

.location-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: none;
}

.location-popup h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.location-popup p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.loader {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 16px auto;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#btnClosePopup {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

#btnClosePopup:hover {
    background: var(--primary-dark);
}

/* ==================== CARRINHO MODAL ==================== */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.cart-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cart-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    color: var(--gray-900);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    color: var(--gray-500);
    padding: 40px 20px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--gray-50);
    border-radius: 8px;
    padding: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 15px;
    color: var(--success);
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quantity {
    background: var(--gray-100);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all 0.2s;
}

.btn-quantity:hover {
    background: var(--gray-200);
}

.cart-item-quantity {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    font-weight: 500;
}

.btn-remove:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.cart-total strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--success);
}

.btn-checkout {
    width: 100%;
    background: var(--success);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkout:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-title {
        font-size: 18px;
    }
    
    .timer-box {
        min-width: 40px;
        padding: 5px 8px;
    }
    
    .timer-num {
        font-size: 16px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .store-details {
        font-size: 11px;
        gap: 10px;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    
    .floating-cart {
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

