/* ==========================================================
   SevenApp 3D · painel e páginas do checkout (Bootstrap 5 com os tokens do site SevenApp)
   ========================================================== */
:root {
    --s3-red: #cc0505;
    --s3-red-dark: #a30404;
    --s3-ink: #000;
    --bs-primary: #cc0505;
    --bs-primary-rgb: 204, 5, 5;
    --bs-link-color: #cc0505;
    --bs-link-color-rgb: 204, 5, 5;
    --bs-link-hover-color: #8a0303;
    --bs-body-bg: #f2f2f2;
}

body {
    background: var(--bs-body-bg);
    font-family: "Outfit", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 500; letter-spacing: -.01em; }
.btn { border-radius: 70px; font-weight: 500; }
.btn-sm { padding-inline: .9rem; }
.form-control, .form-select { border-radius: .6rem; }
.badge { font-weight: 500; }

/* ---------- Marca: logo SevenApp + selo 3D ---------- */
.s3-brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.s3-brand img { display: block; height: 30px; width: auto; }
.s3-badge {
    padding: .1rem .5rem; border-radius: 40px; background: var(--s3-red); color: #fff;
    font-size: .72rem; font-weight: 600; letter-spacing: .12em; line-height: 1.4;
}

.btn-primary {
    --bs-btn-bg: #cc0505;
    --bs-btn-border-color: #cc0505;
    --bs-btn-hover-bg: #cc0505;
    --bs-btn-hover-border-color: #cc0505;
    --bs-btn-active-bg: #8a0303;
    --bs-btn-active-border-color: #8a0303;
    --bs-btn-disabled-bg: #cc0505;
    --bs-btn-disabled-border-color: #cc0505;
}

.form-control,
.form-select {
    background-color: #fff;
}

.form-check-input:checked {
    background-color: #cc0505;
    border-color: #cc0505;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #e57373;
    box-shadow: 0 0 0 .25rem rgba(204, 5, 5, .2);
}

.nav-pills {
    --bs-nav-pills-link-active-bg: #cc0505;
    --bs-nav-link-color: #cc0505;
    --bs-nav-link-hover-color: #8a0303;
}

.pix-qr {
    max-width: 240px;
    width: 100%;
    image-rendering: pixelated;
}

.sticky-summary {
    position: sticky;
    top: 1rem;
}

/* ---------- Admin layout: sidebar ---------- */
.admin-body { background: #f2f2f2; --admin-sidebar: 248px; }
.admin-topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; justify-content: space-between;
    padding: .4rem .75rem; background: #fff; border-bottom: 1px solid #e5e5e5;
}
.admin-sidebar { background: #fff; }
.admin-sidebar-inner { display: flex; flex-direction: column; height: 100%; width: 100%; }
.admin-sidebar::before {
    content: ""; display: block; height: 3px; flex-shrink: 0;
    background: linear-gradient(100deg, #ff3b3b, #a30404);
}
@media (min-width: 992px) {
    .admin-sidebar {
        position: fixed; inset: 0 auto 0 0; width: var(--admin-sidebar);
        display: flex; flex-direction: column; border-right: 1px solid #e5e5e5; overflow-y: auto;
    }
    .admin-main { margin-left: var(--admin-sidebar); }
}
@media (max-width: 991.98px) {
    .admin-sidebar.offcanvas-lg { --bs-offcanvas-width: 280px; display: flex; flex-direction: column; }
}
.admin-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--s3-ink); }
.admin-brand img { display: block; height: 36px; width: auto; }
.admin-brand span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b6b6b; }
.admin-menu { padding: .5rem .75rem 1rem; }
.admin-menu-title { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8c8c8c; padding: 1rem .6rem .35rem; }
.admin-menu-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .5rem .6rem; border-radius: .5rem;
    color: #222; text-decoration: none; font-weight: 500; font-size: .93rem;
}
.admin-menu-link .bi { font-size: 1.05rem; color: #7a7a7a; }
.admin-menu-link:hover { background: #f2f2f2; color: var(--s3-ink); }
.admin-menu-link.active { background: #fdecec; color: #a30404; font-weight: 600; }
.admin-menu-link.active .bi { color: #cc0505; }
.admin-menu-link .badge { margin-left: auto; }
.admin-user {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    margin-top: auto; padding: .75rem; border-top: 1px solid #e5e5e5;
}
.admin-user-link { display: flex; align-items: center; gap: .6rem; min-width: 0; color: var(--s3-ink); text-decoration: none; font-size: .9rem; line-height: 1.2; }
.admin-avatar {
    flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700;
    background: linear-gradient(135deg, #ff3b3b, #a30404); color: #fff;
}

/* ---------- Números do dashboard ---------- */
.stat-tile {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    color: var(--s3-ink);
    text-decoration: none;
}
a.stat-tile:hover { border-color: #e0a0a0; color: var(--s3-ink); }
.stat-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b6b6b; }
.stat-value { font-size: 1.9rem; font-weight: 500; line-height: 1.15; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: .82rem; color: #6b6b6b; margin-top: .35rem; }

/* ---------- Linha do tempo do pedido ---------- */
.order-steps { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.order-steps li { flex: 1; text-align: center; font-size: .78rem; color: #8c8c8c; position: relative; padding-top: 2.4rem; }
.order-steps li::before {
    content: ""; position: absolute; top: .9rem; left: -50%; right: 50%; height: 3px; background: #e0e0e0;
}
.order-steps li:first-child::before { display: none; }
.order-steps .bi {
    position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 1;
    width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
    background: #e0e0e0; color: #fff; font-size: 1rem;
}
.order-steps li.is-done { color: var(--s3-ink); font-weight: 600; }
.order-steps li.is-done .bi, .order-steps li.is-done::before { background: var(--s3-red); }

/* ---------- Checkout ---------- */
.shop-header { background: #000; }
.shop-header a:hover { color: #fff !important; opacity: .8; }
.checkout-hero { background: radial-gradient(60% 120% at 80% 0%, rgba(204, 5, 5, .35), transparent 60%), #000; color: #fff; }
.checkout-hero .eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.checkout-hero h1 { font-weight: 500; }
.option-card { cursor: pointer; }
.option-card .card-body { border: 2px solid transparent; border-radius: inherit; }
.btn-check:checked + .option-card { border-color: var(--s3-red); background: #fff5f5; }
.btn-check:focus-visible + .option-card { outline: 2px solid var(--s3-red); outline-offset: 2px; }
.shipping-logo { width: 64px; height: 24px; object-fit: contain; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; }
.summary-total { font-size: 1.5rem; font-weight: 600; }
