/* ======================================== */
/* header                                   */
/* ======================================== */

.header {
    position: sticky;

    top: 0;
    z-index: 390;

    height: 104px;
    padding: 18px 0 10px;

    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.header-row {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* ======================================== */
/* Right: Logo                              */
/* ======================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.logo {
    max-width: 164px;
    height: auto;
}

/* ======================================== */
/* Center: Nav                              */
/* ======================================== */

.nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 280px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.72);
    padding: 8px 2px;
    transition: color .18s cubic-bezier(0.2, 0.8, 0.2, 1), transform .18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover {
    color: #111;
    transform: translateY(-1px);
}

.nav-link.is-active {
    color: #111;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #1a4a42, transparent);
    opacity: .95;
}

.nav-caret {
    font-size: 12px;
    opacity: .7;
}

.nav-menu {
    position: absolute;
    top: 42px;
    inset-inline-start: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
    border-radius: 14px;
    padding: 10px;
    display: none;
    min-width: 170px;
}

.nav-dropdown:hover .nav-menu {
    display: block;
}

.nav-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: rgba(17, 17, 17, .86);
    font-size: 14px;
    transition: background .18s cubic-bezier(0.2, 0.8, 0.2, 1), color .18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-menu a:hover {
    background: rgba(26, 74, 66, .08);
    color: #111;
}

/* ======================================== */
/* Left: Utilities                          */
/* ======================================== */

.utils {
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    padding: 0;
    color: rgba(17, 17, 17, .88);

    transition:
        transform .16s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow .16s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color .16s cubic-bezier(0.2, 0.8, 0.2, 1),
        background .16s cubic-bezier(0.2, 0.8, 0.2, 1),
        color .16s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(26, 74, 66, .28);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .08);
    background: #fff;
    color: #111;
}

.icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
}

.icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 74, 66, 0.18), 0 10px 18px rgba(0, 0, 0, .08);
    border-color: rgba(26, 74, 66, .35);
}

.icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.icon-btn--cart {
    position: relative;
}

.badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;

    min-width: 20px;
    height: 20px;
    padding: 0 6px;

    border-radius: 999px;
    background: linear-gradient(180deg, #ff4b4b, #d91f1f);
    color: #fff;

    display: grid;
    place-items: center;

    font-size: 11px;
    line-height: 1;
    font-weight: 900;

    box-shadow: 0 8px 16px rgba(217, 31, 31, .22);
    border: 2px solid rgba(255, 255, 255, .95);
}
