/*
 * _chrome.css
 *
 * USED BY:
 *   - bag-empty.html
 *   - bag.html
 *   - customize.html
 *   - home-user-reciept.html
 *   - home.html
 *   - menu.html
 *   - payment.html
 */

header {
    background: var(--red);
    padding: 0.2rem var(--pad);
}

header + div {
    margin-top: -1px;
}

header + div,
header + div img {
    width: 100%;
    display: block;
}

/* ── Fixed bars (nav + sticky share a base) ──────── */
nav,
.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    z-index: 100;
}

nav {
    border-top: 3px solid var(--black);
    justify-content: space-around;
    padding: 0.5rem 0 calc(0.5rem + var(--safe-bottom));
}

nav div,
nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 1.5rem;
}

nav img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

nav .active {
    background: var(--red);
    color: var(--white);
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
}

nav .active img {
    filter: brightness(0) invert(1);
}

.sticky {
    border-top: 2px solid var(--grey);
    gap: 1rem;
    padding: 0.75rem var(--pad) calc(0.75rem + var(--safe-bottom));
}

.sticky .btn {
    flex: 1;
}
