/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* --- Header --- */
header {
    background: #222;
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #007bff;
}

header h1 {
    float: left;
    margin: 0;
    padding: 0;
    font-size: 2.2rem;
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    list-style: none;
}

header ul li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
}

header a:hover {
    color: #007bff;
}

/* --- Botão Global --- */
.btn {
    display: inline-block;
    color: #fff;
    background: #007bff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #0056b3;
}

/* --- Hero Section --- */
#hero {
    background: #333 url('https://via.placeholder.com/1920x600/007bff/ffffff?text=Fundo+de+IPTV') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Products Section / Planos --- */
.products-section {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #007bff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.product-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.product-card .description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    min-height: 45px; /* Garante altura mínima para descrição */
}

.product-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 25px;
}

.product-card .price span {
    font-size: 1rem;
    font-weight: normal;
    color: #777;
}

.product-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.product-card ul li {
    margin-bottom: 10px;
    color: #666;
    display: flex;
    align-items: center;
}

.product-card ul li i {
    color: #28a745;
    margin-right: 10px;
}

.product-card .add-to-cart {
    width: 100%;
    text-align: center;
}

/* --- Cart Summary --- */
#cart-summary {
    padding: 40px 0;
    background: #f0f0f0;
    border-top: 1px solid #eee;
}

#cart-summary h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #007bff;
}

#cart-items {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

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

.cart-item span {
    font-weight: bold;
}

.cart-total {
    text-align: right;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}

#checkout-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* --- Checkout Section --- */
#checkout-section {
    padding: 60px 0;
    background: #fff;
}

#checkout-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #007bff;
}

#checkout-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: calc(100% - 22px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #007bff;
    outline: none;
}

.payment-options {
    margin-bottom: 30px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
}

.payment-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-options input[type="radio"] {
    margin-right: 10px;
}

#mercadopago-form-container,
#pix-info-container {
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px dashed #ced4da;
}

#mercadopago-form-container p,
#pix-info-container p {
    font-size: 0.95rem;
    color: #555;
}

#checkout-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 20px;
}

#payment-confirmation {
    background: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

#payment-confirmation h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#payment-confirmation p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

#pix-qr-code {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

#pix-qr-code h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

#pix-qr-code img {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

#pix-code-copy {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    background-color: #f0f8ff;
    padding: 10px;
    border: 1px dashed #007bff;
    border-radius: 5px;
    display: inline-block;
    user-select: all; /* Permite seleção fácil */
    word-break: break-all;
    margin-bottom: 15px;
}

#pix-qr-code .btn {
    width: auto;
    padding: 10px 20px;
}


/* --- Como Funciona Section --- */
#como-funciona {
    padding: 60px 0;
    background: #f0f0f0;
    text-align: center;
}

#como-funciona h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #007bff;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.step-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.step-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.step-card p {
    color: #555;
}

/* --- Contact Section --- */
#contato {
    padding: 60px 0;
    background: #222;
    color: #fff;
    text-align: center;
}

#contato h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #007bff;
}

#contato p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#contato i {
    margin-right: 10px;
    color: #007bff;
}

/* --- Footer --- */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Utilitários --- */
.hidden {
    display: none !important;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    header h1, header nav {
        float: none;
        text-align: center;
    }

    header nav ul li {
        display: block;
        padding: 10px 0;
    }

    .product-grid, .steps {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    #hero h2 {
        font-size: 2.5rem;
    }

    .products-section h2, #checkout-section h2, #como-funciona h2, #contato h2 {
        font-size: 2rem;
    }

    .product-card .price {
        font-size: 2rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        width: 100%;
    }
}
