/* ========================================
   DISK GÁS ARACAJU - ESTILOS PRINCIPAIS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00B4D8;
    --primary-dark: #0096C7;
    --secondary: #FF6B35;
    --accent: #00D9B8;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    
    --bg-light: #FAFBFC;
    --bg-white: #FFFFFF;
    --bg-gray: #F3F4F6;
    
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    
    --border-color: #E5E7EB;
    --border-light: #F0F0F0;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F4F8 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========== MAIN ========== */
.main {
    flex: 1;
    padding: 2rem 1rem;
}

/* ========== HERO SECTION ========== */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: var(--radius-xl);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* ========== BUTTONS SECTION ========== */
.buttons-section {
    margin: 2rem 0;
}

.buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn-order {
    padding: 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-agua {
    background: linear-gradient(135deg, var(--primary) 0%, #0096C7 100%);
    color: white;
}

.btn-agua:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-gas {
    background: linear-gradient(135deg, var(--secondary) 0%, #E55100 100%);
    color: white;
}

.btn-gas:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 2.5rem;
}

.btn-text {
    font-size: 1.1rem;
}

/* ========== INFO SECTION ========== */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.info-card p {
    color: var(--text-gray);
}

/* ========== FORM CARD ========== */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    max-width: 600px;
    margin: 0 auto;
}

.form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.subtitle {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-gray);
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
}

.progress-step.active .step-label {
    color: var(--primary);
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

input:disabled {
    background: var(--bg-gray);
    cursor: not-allowed;
}

.error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 100%;
    padding: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    width: 100%;
    padding: 1rem;
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    width: 100%;
    padding: 1rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    width: 100%;
    padding: 1rem;
}

.btn-whatsapp:hover {
    background: #1FAE54;
    transform: translateY(-2px);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    width: 100%;
}

/* ========== ETAPAS ========== */
.etapa {
    animation: fadeIn 0.3s ease;
}

.etapa.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== LOADING ========== */
.loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    margin: 1rem 0;
}

.loading.hidden {
    display: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========== PRODUTOS GRID ========== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.produto-card {
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.produto-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.produto-card.selecionado {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--primary);
}

.produto-imagem {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.produto-nome {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.produto-preco {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.produto-quantidade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.produto-quantidade button {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}

.produto-quantidade input {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
}

/* ========== RESUMO ========== */
.resumo-pedido,
.resumo-final {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.resumo-pedido h3,
.resumo-final h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

#resumo-items,
#resumo-final-items {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.resumo-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========== QR CODE ========== */
.qr-code-container {
    margin: 2rem 0;
}

.qr-code-placeholder {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    color: var(--text-gray);
}

.qr-code-placeholder p {
    margin: 0.5rem 0;
}

.qr-code-placeholder .small {
    font-size: 0.85rem;
}

/* ========== CONFIRMAÇÃO ========== */
.confirmacao-card {
    text-align: center;
}

.confirmacao-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.confirmacao-numero {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.confirmacao-numero p:first-child {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.confirmacao-numero .numero {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.confirmacao-texto {
    color: var(--text-gray);
    margin: 1.5rem 0;
}

.confirmacao-endereco {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    text-align: left;
}

.confirmacao-endereco h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.confirmacao-endereco p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== PEDIDOS PAGE ========== */
.pedidos-section {
    max-width: 800px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.pedidos-list {
    margin: 1.5rem 0;
}

.pedido-item {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pedido-numero {
    font-weight: 700;
    color: var(--text-dark);
}

.pedido-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pedido-status.pendente {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.pedido-status.confirmado {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.pedido-info {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.pedido-items {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.pedido-item-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.pedido-item-line:last-child {
    border-bottom: none;
}

.empty-message {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

/* ========== FOOTER ========== */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-gray);
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .buttons-container {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        gap: 0.5rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .tabs {
        flex-direction: column;
    }
}

/* ========== LOGO E PAGAMENTO ========== */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.store-logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.store-logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    font-size: 1.6rem;
}

.payment-status-box {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: #fff;
}

.payment-status-box strong {
    display: block;
    margin-bottom: 0.35rem;
}

.payment-status-box.warning {
    background: #FFF7ED;
    border-color: #FDBA74;
    color: #9A3412;
}

.payment-status-box.info {
    background: #EFF6FF;
    border-color: #93C5FD;
    color: #1D4ED8;
}

.payment-status-box.success {
    background: #ECFDF5;
    border-color: #6EE7B7;
    color: #047857;
}

.payment-status-box.danger {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #B91C1C;
}

.btn:disabled,
.btn-copiar-pix:disabled,
.btn-success:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
