/* Fixed five-item menu at the bottom of phone screens, charcoal and gold like the best-seller block. */
.kvt-bottom-nav { display: none; }

@media (max-width: 767px) {
    .kvt-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 990;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        box-sizing: content-box;
        height: 60px;
        padding: 0 4px env(safe-area-inset-bottom);
        background: linear-gradient(180deg, #1c1b18, #111);
        box-shadow: 0 -10px 24px -14px #000;
        transition: transform .2s ease, visibility 0s;
    }
    .kvt-bottom-nav--away {
        visibility: hidden;
        transform: translateY(100%);
        transition: transform .2s ease, visibility 0s .2s;
    }
    .kvt-bottom-nav::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(201, 160, 67, 0), #c9a043 20%, #f3c95a 50%, #c9a043 80%, rgba(201, 160, 67, 0));
        pointer-events: none;
    }
    .kvt-bottom-nav__item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        color: #bfb291;
        font: 600 11px/1.2 Roboto, Arial, sans-serif;
        letter-spacing: .2px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .kvt-bottom-nav__item > span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .kvt-bottom-nav__item i { font-size: 19px; line-height: 1; }
    .kvt-bottom-nav__item:hover,
    .kvt-bottom-nav__item[aria-current="page"] { color: #f3c95a; }
    .kvt-bottom-nav__item[aria-current="page"]::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 24px;
        height: 2px;
        border-radius: 0 0 2px 2px;
        background: #f3c95a;
        transform: translateX(-50%);
    }
    .kvt-bottom-nav__item:focus-visible {
        outline: 2px solid #f3c95a;
        outline-offset: -4px;
        border-radius: 8px;
    }

    /* Raised gold medal for the monthly offers in the middle slot. */
    .kvt-bottom-nav__item--feature { justify-content: flex-end; padding-bottom: 8px; }
    .kvt-bottom-nav__item--feature[aria-current="page"]::before { content: none; }
    .kvt-bottom-nav__medal {
        display: grid;
        place-items: center;
        width: 50px;
        height: 50px;
        margin-top: -24px;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 26%, #fff3c4 0%, #f3c95a 45%, #c99329 100%);
        color: #2a1d02;
        box-shadow: 0 0 0 4px #161513, 0 8px 18px -6px #f3c95a99;
    }
    .kvt-bottom-nav__medal i { font-size: 20px; }

    .kvt-bottom-nav__icon { position: relative; display: inline-flex; }
    .kvt-bottom-nav__badge {
        position: absolute;
        top: -7px;
        left: 12px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        box-sizing: border-box;
        border-radius: 9px;
        background: #e8412c;
        box-shadow: 0 0 0 2px #161513;
        color: #fff;
        font: 700 10px/17px Arial, sans-serif;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }
    .kvt-bottom-nav__badge[hidden] { display: none; }

    /* Keep page content and the floating call/Zalo buttons clear of the menu. */
    body.kvt-has-bottom-nav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    body.kvt-has-bottom-nav .widget { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .kvt-bottom-nav,
    .kvt-bottom-nav--away { transition: none; }
}
