/* ==========================================================
   VYÜ · painel e páginas do checkout (sobre o Bootstrap 5)
   ========================================================== */
:root {
    --vyu-orange: #ff6a1f;
    --vyu-orange-dark: #e2470d;
    --vyu-ink: #17140f;
    --bs-primary: #e2560f;
    --bs-primary-rgb: 226, 86, 15;
    --bs-link-color: #c94a0b;
    --bs-link-color-rgb: 201, 74, 11;
    --bs-link-hover-color: #9c3907;
    --bs-body-bg: #f6f4f1;
}

body {
    background: var(--bs-body-bg);
}

.btn-primary {
    --bs-btn-bg: #e2560f;
    --bs-btn-border-color: #e2560f;
    --bs-btn-hover-bg: #c94a0b;
    --bs-btn-hover-border-color: #c94a0b;
    --bs-btn-active-bg: #9c3907;
    --bs-btn-active-border-color: #9c3907;
    --bs-btn-disabled-bg: #e2560f;
    --bs-btn-disabled-border-color: #e2560f;
}

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

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

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #f39a6b;
    box-shadow: 0 0 0 .25rem rgba(226, 86, 15, .2);
}

.nav-pills {
    --bs-nav-pills-link-active-bg: #e2560f;
    --bs-nav-link-color: #c94a0b;
    --bs-nav-link-hover-color: #9c3907;
}

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

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

/* ---------- Admin layout: sidebar ---------- */
.admin-body { background: #f6f4f1; --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 #ebe6e0;
}
.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, #ff8a3d, #e2470d);
}
@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 #ebe6e0; 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(--vyu-ink); }
.admin-brand strong { font-size: 1.15rem; letter-spacing: .18em; color: var(--vyu-orange-dark); }
.admin-brand span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7d7064; }
.admin-menu { padding: .5rem .75rem 1rem; }
.admin-menu-title { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a8d80; padding: 1rem .6rem .35rem; }
.admin-menu-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .5rem .6rem; border-radius: .5rem;
    color: #3d342b; text-decoration: none; font-weight: 500; font-size: .93rem;
}
.admin-menu-link .bi { font-size: 1.05rem; color: #8c7f72; }
.admin-menu-link:hover { background: #f6f1ec; color: var(--vyu-ink); }
.admin-menu-link.active { background: #fff0e6; color: #b2420a; font-weight: 600; }
.admin-menu-link.active .bi { color: #e2560f; }
.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 #ebe6e0;
}
.admin-user-link { display: flex; align-items: center; gap: .6rem; min-width: 0; color: var(--vyu-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, #ff8a3d, #e2470d); color: #fff;
}

/* ---------- Números do dashboard ---------- */
.stat-tile {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #ebe6e0;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    color: var(--vyu-ink);
    text-decoration: none;
}
a.stat-tile:hover { border-color: #e2b89c; color: var(--vyu-ink); }
.stat-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #7d7064; }
.stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.15; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: .82rem; color: #7d7064; 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: #9a8d80; position: relative; padding-top: 2.4rem; }
.order-steps li::before {
    content: ""; position: absolute; top: .9rem; left: -50%; right: 50%; height: 3px; background: #e6dfd8;
}
.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: #e6dfd8; color: #fff; font-size: 1rem;
}
.order-steps li.is-done { color: var(--vyu-ink); font-weight: 600; }
.order-steps li.is-done .bi, .order-steps li.is-done::before { background: var(--vyu-orange); }

/* ---------- Checkout ---------- */
.shop-header { background: #0a0908; }
.shop-header .brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .22em; }
.shop-header .brand span { color: var(--vyu-orange); }
.checkout-hero { background: radial-gradient(60% 120% at 80% 0%, rgba(255, 106, 31, .25), transparent 60%), #0a0908; color: #f4efe9; }
.checkout-hero .eyebrow { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #ff8a3d; }
.option-card { cursor: pointer; }
.option-card .card-body { border: 2px solid transparent; border-radius: inherit; }
.btn-check:checked + .option-card { border-color: var(--vyu-orange); background: #fff7f1; }
.btn-check:focus-visible + .option-card { outline: 2px solid var(--vyu-orange); 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: 800; }
