* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fb;
    color: #111827;
}

a {
    color: #2563eb;
    text-decoration: none;
}

.hero {
    min-height: 420px;
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    padding: 40px 8%;
}

.hero h1 {
    font-size: 48px;
    max-width: 760px;
    margin: 0 0 15px;
}

.hero p {
    font-size: 20px;
    max-width: 640px;
    opacity: .95;
}

.container {
    width: min(1180px, 92%);
    margin: 40px auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card, .box {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.sem-img {
    height: 210px;
    background: #dbeafe;
    display: grid;
    place-items: center;
    color: #1e40af;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-top: 0;
}

.preco {
    display: block;
    font-size: 25px;
    margin: 14px 0;
    color: #16a34a;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 13px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    opacity: .9;
}

.comprar {
    background: #16a34a;
}

.sair {
    background: #dc2626;
}

.produto-detalhe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.produto-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin-top: 6px;
    font-size: 16px;
}

.box {
    padding: 24px;
}

.pagamento {
    text-align: center;
}

.pix-box {
    max-width: 520px;
    margin: 0 auto 25px;
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.pix-box img {
    max-width: 280px;
    width: 100%;
}

.pix-box textarea {
    min-height: 120px;
}

.obs {
    color: #6b7280;
}

.erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.alert {
    background: #fef3c7;
    padding: 18px;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    margin-bottom: 35px;
}

th, td {
    padding: 13px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #111827;
    color: white;
}

.top-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check input {
    width: auto;
}

footer {
    text-align: center;
    padding: 30px;
    color: #6b7280;
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: 34px;
    }

    .produto-detalhe {
        grid-template-columns: 1fr;
    }

    .top-admin {
        flex-direction: column;
        align-items: flex-start;
    }

    table {
        font-size: 13px;
    }
}
