﻿/* ======================================================
   NAVBAR – BASE
   ====================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #121212 !important;
    background-image: url('/images/Base/pattern.png');
    background-repeat: repeat;
    background-size: auto;
    background-blend-mode: overlay;
    border-bottom: 2px solid orangered !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s ease, backdrop-filter 0.35s ease;
    will-change: transform;
}

/* Hidden state (scroll hide) */
.nav-hidden {
    transform: translateY(-100%);
}

/* ======================================================
   NAVBAR – LINKS & BRAND
   ====================================================== */

.nav-link {
    color: #e6e6e6 !important;
}

    .nav-link:hover {
        color: orangered !important;
    }

/* Brand */
.navbar .navbar-brand {
    color: orangered !important;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .navbar .navbar-brand:hover {
        color: #ffa64d !important;
    }

/* ======================================================
   AUTH USER TOGGLE (AVATAR + NAME)
   ====================================================== */

.auth-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e6e6e6 !important;
    font-weight: 600;
}

/* Inline wrapper (avatar + name + crown) */
.auth-user-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ======================================================
   AUTH AVATAR
   ====================================================== */

.auth-avatar-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #222, #000);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
    flex-shrink: 0;
}

.auth-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initial fallback */
.auth-avatar-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff6f00;
}

/* Username */
.auth-username {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ======================================================
   AUTH DROPDOWN – GLASS MENU
   ====================================================== */

.auth-dropdown-menu {
    margin-top: 10px;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient( 180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.85) );
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.85);
}

    .auth-dropdown-menu .dropdown-item {
        padding: 0.55rem 0.9rem;
        border-radius: 10px;
        font-weight: 500;
        color: #e0e0e0;
        transition: all 0.2s ease;
    }

        .auth-dropdown-menu .dropdown-item:hover {
            background: rgba(255,111,0,0.18);
            color: #ff8f33;
        }

    .auth-dropdown-menu .dropdown-divider {
        border-color: rgba(255,255,255,0.12);
    }

/* ======================================================
   ADMIN NAVBAR – DROPDOWN POSITION FIX
   ====================================================== */

.admin-navbar .dropdown {
    position: relative;
}

.admin-navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 8px;
    z-index: 1050;
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* ======================================================
   AUTH – ADMIN CROWN
   ====================================================== */

.auth-admin-crown {
    margin-left: 8px;
    font-size: 0.8rem;
    color: #d4af37;
    text-shadow: 0 0 6px rgba(212,175,55,0.45);
    vertical-align: middle;
}

/* ======================================================
   ADMIN – EXIT LINK
   ====================================================== */

.admin-exit-link {
    color: #fff !important;
    font-weight: 500;
}

.admin-exit-link:hover {
        color: #ff5c5c !important;
        text-decoration: none;
    }

/* Public navigation refinement: preserves the existing black and orange palette. */
.site-navbar { min-height: 66px; padding: .55rem 0; border-bottom: 1px solid rgba(255,99,0,.75) !important; background: linear-gradient(100deg, rgba(10,10,10,.98), rgba(27,20,16,.96)) !important; box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.05) inset; }
.site-navbar-inner { gap: 1.5rem; }
.site-navbar .navbar-brand { display: inline-flex; align-items: center; padding: .2rem 0; margin-right: 1.1rem; }
.site-navbar .navbar-brand img { display: block; width: auto; height: 38px; max-width: 185px; object-fit: contain; }
.site-nav-links { gap: .2rem; }
.site-navbar .nav-link { position: relative; padding: .55rem .8rem !important; color: rgba(255,255,255,.74) !important; font-size: .92rem; font-weight: 650; letter-spacing: .01em; }
.site-nav-links .nav-link::after { position: absolute; right: .8rem; bottom: .25rem; left: .8rem; height: 2px; border-radius: 10px; background: #ff6f00; content: ""; opacity: 0; transform: scaleX(.4); transition: opacity .2s ease, transform .2s ease; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.is-active { color: #fff !important; }
.site-nav-links .nav-link:hover::after, .site-nav-links .nav-link.is-active::after { opacity: 1; transform: scaleX(1); }
.site-nav-actions { gap: .25rem; }
.site-cart-link { display: inline-flex; align-items: center; gap: .35rem; min-width: 2.45rem; justify-content: center; }
.site-cart-link .badge { position: static !important; min-width: 1.25rem; padding: .2rem .38rem; border-radius: 999px; background: #ff6f00; color: #151515; font-size: .68rem; font-weight: 800; }
.site-navbar-toggler { display: grid; gap: 4px; padding: .5rem; border: 1px solid rgba(255,111,0,.5); border-radius: .5rem; background: rgba(255,111,0,.08); }
.site-navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,111,0,.2); }
.site-navbar-toggler span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #ffb36b; }

@media (max-width: 575.98px) {
    .site-navbar { padding: .4rem 0; }
    .site-navbar-inner { gap: .5rem; }
    .site-navbar .navbar-collapse { padding: .65rem 0 .2rem; }
    .site-nav-links { padding-bottom: .55rem; }
    .site-nav-actions { flex-direction: row; }
    .site-navbar .nav-link { padding: .65rem .4rem !important; }
    .site-navbar .navbar-brand img { height: 30px; max-width: 145px; }
}

/* Header mini-cart */
.site-cart-popover-wrap { position: relative; }
.mini-cart-panel { position: absolute; top: calc(100% + .55rem); right: 0; z-index: 1300; width: min(360px, calc(100vw - 2rem)); padding: .85rem; border: 1px solid rgba(255,255,255,.13); border-radius: .9rem; background: linear-gradient(150deg, rgba(29,29,29,.98), rgba(12,12,12,.98)); box-shadow: 0 22px 60px rgba(0,0,0,.58); opacity: 0; pointer-events: none; transform: translateY(-.4rem); transition: opacity .18s ease, transform .18s ease; }
.site-cart-popover-wrap.is-open .mini-cart-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-cart-popover-wrap.is-popover-handoff .mini-cart-panel { transition: none; }
.mini-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .1rem .2rem .7rem; border-bottom: 1px solid rgba(255,255,255,.09); color: #fff; font-size: .92rem; font-weight: 750; }
.mini-cart-heading a { color: #ffad66; font-size: .78rem; text-decoration: none; }
.mini-cart-items { display: grid; max-height: 260px; overflow-y: auto; }
.mini-cart-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .7rem .15rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.mini-cart-item img { width: 46px; height: 46px; border-radius: .45rem; background: #111; object-fit: contain; }
.mini-cart-item-details { display: grid; gap: .15rem; min-width: 0; }
.mini-cart-item-details a { overflow: hidden; color: rgba(255,255,255,.88); font-size: .84rem; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.mini-cart-item-details span { color: rgba(255,255,255,.52); font-size: .76rem; }
.mini-cart-option-list { margin: .05rem 0; }
.mini-cart-option-list li { color: rgba(255,255,255,.63); font-size: .68rem; }
.mini-cart-option-list .cart-option-swatch { width: .58rem; height: .58rem; }
.mini-cart-remove { border: 0; background: transparent; color: rgba(255,255,255,.48); font-size: .85rem; }
.mini-cart-remove:hover { color: #ff8a42; }
.mini-cart-summary { display: flex; justify-content: space-between; padding: .85rem .2rem; color: rgba(255,255,255,.65); font-size: .88rem; }
.mini-cart-summary strong { color: #00c853; font-size: 1rem; }
.mini-cart-delivery { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: -.35rem .2rem .72rem; color: rgba(226,238,248,.72); font-size: .72rem; }
.mini-cart-delivery span { display: inline-flex; gap: .3rem; align-items: center; }
.mini-cart-delivery i { color: #ff9b55; }
.mini-cart-delivery strong { color: #81e5ae; font-size: .76rem; }
.mini-cart-view-basket { display: flex; align-items: center; justify-content: center; min-height: 2.5rem; border: 1px solid rgba(255,111,0,.66); border-radius: .55rem; color: #ffbd7d; font-size: .86rem; font-weight: 750; text-decoration: none; }
.mini-cart-view-basket:hover { background: rgba(255,111,0,.13); color: #fff; }
.mini-cart-empty, .mini-cart-loading, .mini-cart-error { padding: 1.35rem .5rem .65rem; color: rgba(255,255,255,.62); text-align: center; font-size: .84rem; }
.mini-cart-empty i { display: block; margin-bottom: .5rem; color: #ff9500; font-size: 1.3rem; }
.mini-cart-empty p { margin: 0 0 .45rem; }
.mini-cart-empty a { color: #ffad66; font-weight: 700; text-decoration: none; }
.mini-cart-error { color: #ffad66; }

/* Keep the hover target connected to its panel so moving the pointer to the
   basket controls does not close the preview. */
.site-cart-popover-wrap::after { content: ""; position: absolute; top: 100%; right: 0; width: 100%; height: .7rem; }
.mini-cart-item-actions { display: flex; align-items: center; gap: .3rem; }
.mini-cart-quantity { display: grid; grid-template-columns: 1.55rem minmax(1.2rem, auto) 1.55rem; align-items: center; min-height: 1.65rem; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: .42rem; background: rgba(0,0,0,.25); }
.mini-cart-quantity-button { display: grid; width: 1.55rem; height: 1.55rem; padding: 0; place-items: center; border: 0; background: transparent; color: rgba(255,255,255,.7); font-size: .62rem; transition: background .16s ease, color .16s ease; }
.mini-cart-quantity-button:hover:not(:disabled), .mini-cart-quantity-button:focus-visible { background: rgba(255,111,0,.16); color: #ffad66; outline: none; }
.mini-cart-quantity-button:focus-visible, .mini-cart-remove:focus-visible { box-shadow: 0 0 0 2px rgba(255,111,0,.42); }
.mini-cart-quantity-value { min-width: 1.2rem; color: rgba(255,255,255,.85); font-size: .74rem; font-variant-numeric: tabular-nums; text-align: center; }
.mini-cart-remove { display: grid; width: 1.7rem; height: 1.7rem; padding: 0; place-items: center; border-radius: .42rem; transition: background .16s ease, color .16s ease; }
.mini-cart-remove:hover:not(:disabled) { background: rgba(255,111,0,.14); }
.mini-cart-item.is-updating { opacity: .55; pointer-events: none; }
.mini-cart-panel [aria-busy="true"] { min-height: 4.6rem; }
.add-to-basket:disabled { cursor: wait; opacity: .66; }
.mini-cart-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem; margin-top: .1rem; }
.mini-cart-actions .mini-cart-view-basket { min-width: 0; }
.mini-cart-checkout-form { min-width: 0; margin: 0; }
.mini-cart-checkout { width: 100%; min-height: 2.5rem; padding: .45rem .55rem; border: 1px solid #ff7d1d; border-radius: .55rem; background: linear-gradient(135deg, #ff9500, #ff6f00); box-shadow: 0 .55rem 1.2rem rgba(255,111,0,.18); color: #18120d; font-size: .78rem; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.mini-cart-checkout:hover { transform: translateY(-1px); background: linear-gradient(135deg, #ffae3d, #ff7d1d); box-shadow: 0 .7rem 1.45rem rgba(255,111,0,.28); color: #18120d; }
.mini-cart-checkout:focus-visible { outline: 2px solid rgba(255,173,102,.7); outline-offset: 2px; }
.mini-cart-checkout-note { margin: .6rem .15rem 0; color: rgba(255,255,255,.42); font-size: .7rem; line-height: 1.45; text-align: center; }

@media (max-width: 575.98px) {
    .mini-cart-panel { position: fixed; top: 4.4rem; right: 1rem; left: 1rem; width: auto; }
}

/* Customer account menu: mirrors the mini-cart interaction without changing
   the protected admin dropdown. */
.site-account-popover-wrap { position: relative; }
.site-account-toggle {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.site-account-toggle .auth-user-inline { gap: .42rem; }
.site-account-toggle .auth-username {
    max-width: 11.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-account-chevron {
    color: rgba(255, 190, 132, .78);
    font-size: .62rem;
    transition: transform .18s ease, color .18s ease;
}
.site-account-popover-wrap.is-open .site-account-chevron {
    color: #ffad66;
    transform: rotate(180deg);
}
.site-account-toggle:hover,
.site-account-popover-wrap.is-open .site-account-toggle {
    border-radius: .55rem;
    background: rgba(255, 111, 0, .09);
    color: #fff !important;
}
/* Bridges the small visual gap so pointer movement into the panel is stable. */
.site-account-popover-wrap::after {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: .7rem;
    content: "";
}
.site-account-panel {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    z-index: 1300;
    width: min(322px, calc(100vw - 2rem));
    padding: .85rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: .9rem;
    background: linear-gradient(150deg, rgba(31, 31, 31, .99), rgba(12, 12, 12, .99));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .58);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.4rem);
    transition: opacity .18s ease, transform .18s ease;
}
.site-account-popover-wrap.is-open .site-account-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.site-account-popover-wrap.is-popover-handoff .site-account-panel { transition: none; }
.site-account-panel-heading {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    padding: .15rem .15rem .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-account-panel-avatar {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(255, 129, 33, .54);
    border-radius: 50%;
    background: rgba(255, 111, 0, .12);
    color: #ffbd7d;
    font-size: .9rem;
    font-weight: 800;
}
.site-account-panel-heading span:last-child { min-width: 0; }
.site-account-panel-heading strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: .88rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-account-panel-heading small {
    display: block;
    margin-top: .1rem;
    color: rgba(255, 255, 255, .5);
    font-size: .72rem;
}
.site-account-panel-links {
    display: grid;
    gap: .2rem;
    padding: .65rem 0;
}
.site-account-panel-links a {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr) .7rem;
    align-items: center;
    gap: .55rem;
    min-height: 2.55rem;
    padding: .48rem .55rem;
    border-radius: .55rem;
    color: rgba(255, 255, 255, .8);
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.site-account-panel-links a > i:first-child { color: #ffad66; }
.site-account-panel-links a > i:last-child {
    color: rgba(255, 255, 255, .34);
    font-size: .65rem;
    text-align: right;
}
.site-account-panel-links a:hover,
.site-account-panel-links a:focus-visible {
    background: rgba(255, 111, 0, .13);
    color: #fff;
    outline: none;
    transform: translateX(2px);
}
.site-account-panel-links a:focus-visible,
.site-account-signout button:focus-visible,
.site-account-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 173, 102, .58);
    outline: none;
}
.site-account-signout {
    margin: 0;
    padding-top: .65rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
}
.site-account-signout button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.2rem;
    padding: .35rem .55rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: rgba(255, 189, 125, .9);
    font-size: .8rem;
    font-weight: 700;
    transition: background .16s ease, color .16s ease;
}
.site-account-signout button:hover { background: rgba(255, 111, 0, .12); color: #fff; }
.site-track-order-link {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    color: #ffbd7d !important;
}
.site-track-order-link:hover { color: #fff !important; }

/* Durable order notifications: native details keeps the bell usable without
   JavaScript while each destination is still resolved server-side. */
.site-notification-popover-wrap { position: relative; }
.site-notification-popover-wrap::after {
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    content: "";
    pointer-events: none;
}
.site-notification-popover-wrap.is-open::after {
    /* The menu is wider than the bell. This temporary transparent bridge
       covers the panel's small offset so the cursor can reach every row
       without falling through a gap and closing the popover. */
    width: min(360px, calc(100vw - 2rem));
    height: .7rem;
    pointer-events: auto;
}
.site-notification-popover { position: relative; }
.site-notification-popover > summary { list-style: none; }
.site-notification-popover > summary::-webkit-details-marker { display: none; }
.site-notification-toggle {
    display: grid !important;
    width: 2.55rem;
    min-height: 2.35rem;
    padding: .38rem !important;
    place-items: center;
    border: 1px solid transparent;
    border-radius: .58rem;
    cursor: pointer;
}
.site-notification-toggle:hover,
.site-notification-popover[open] .site-notification-toggle {
    border-color: rgba(255, 111, 0, .36);
    background: rgba(255, 111, 0, .11);
    color: #fff !important;
}
.site-notification-toggle:focus-visible {
    outline: 2px solid rgba(255, 173, 102, .7);
    outline-offset: 2px;
}
.site-notification-badge {
    position: absolute;
    top: .12rem;
    right: .05rem;
    min-width: 1.06rem;
    padding: .08rem .24rem;
    border: 2px solid #17120f;
    border-radius: 999px;
    background: #ff6f00;
    color: #18120d;
    font-size: .6rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}
.site-notification-panel {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    z-index: 1300;
    width: min(360px, calc(100vw - 2rem));
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: .9rem;
    background: linear-gradient(150deg, rgba(29,29,29,.98), rgba(12,12,12,.98));
    box-shadow: 0 22px 60px rgba(0,0,0,.58);
}
.site-notification-panel::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: 100%;
    height: .7rem;
    pointer-events: auto;
}
.site-notification-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .1rem .2rem .7rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-notification-panel-heading strong,
.site-notification-panel-heading small { display: block; }
.site-notification-panel-heading strong { color: #fff; font-size: .92rem; font-weight: 750; }
.site-notification-panel-heading small { margin-top: .1rem; color: rgba(255, 255, 255, .52); font-size: .72rem; }
.site-notification-panel-heading form { margin: 0; flex-shrink: 0; }
.site-notification-panel-heading button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: .34rem .55rem;
    border: 1px solid rgba(255,111,0,.66);
    border-radius: .55rem;
    background: transparent;
    color: #ffbd7d;
    font-size: .7rem;
    font-weight: 750;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.site-notification-panel-heading button:hover,
.site-notification-panel-heading button:focus-visible { border-color: rgba(255,111,0,.9); background: rgba(255,111,0,.13); color: #fff; outline: none; }
.site-notification-panel-heading button:focus-visible { box-shadow: 0 0 0 2px rgba(255,111,0,.42); }
.site-notification-list {
    display: grid;
    max-height: min(340px, calc(100vh - 9rem));
    margin-top: .05rem;
    overflow-y: auto;
}
.site-notification-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
}
.site-notification-item:last-child { border-bottom: 0; }
.site-notification-item__open {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr) .38rem;
    align-items: start;
    gap: .6rem;
    width: 100%;
    padding: .7rem .15rem;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: rgba(255, 255, 255, .76);
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition: background .16s ease, color .16s ease;
}
.site-notification-item:hover .site-notification-item__open,
.site-notification-item__open:focus-visible { background: rgba(255, 111, 0, .12); color: #fff; outline: none; }
.site-notification-item__open:focus-visible { box-shadow: 0 0 0 2px rgba(255,111,0,.42); }
.site-notification-item.is-unread .site-notification-item__open { background: linear-gradient(90deg, rgba(255, 111, 0, .11), rgba(255, 111, 0, 0)); }
.site-notification-item-icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .45rem;
    background: #111;
    color: #ffb36b;
    font-size: .75rem;
}
.site-notification-item-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.site-notification-item-copy { display: grid; min-width: 0; gap: .13rem; }
.site-notification-item-copy strong { overflow: hidden; color: inherit; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.site-notification-item-product { overflow: hidden; color: #ffcb9c; font-size: .68rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.site-notification-item-product em { color: rgba(255, 255, 255, .48); font-size: .64rem; font-style: normal; font-weight: 700; }
.site-notification-item-body { display: -webkit-box; overflow: hidden; color: rgba(255, 255, 255, .58); font-size: .7rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.site-notification-item-copy time { color: rgba(255, 189, 125, .68); font-size: .64rem; font-variant-numeric: tabular-nums; }
.site-notification-unread-dot { width: .36rem; height: .36rem; margin-top: .28rem; border-radius: 50%; background: #ff7900; box-shadow: 0 0 .55rem rgba(255, 111, 0, .75); }
.site-notification-empty { padding: 1.35rem .5rem .65rem; color: rgba(255,255,255,.62); font-size: .84rem; text-align: center; }
.site-notification-empty i { display: block; margin-bottom: .5rem; color: #ff9500; font-size: 1.3rem; }
.site-notification-empty p { margin: 0 0 .45rem; }
.admin-navbar .site-notification-popover-wrap { margin-right: .35rem; }
.admin-navbar .site-notification-badge { border-color: #16110e; }

@media (max-width: 575.98px) {
    .site-notification-panel { position: fixed; top: 4.4rem; right: 1rem; left: 1rem; width: auto; }
    .site-notification-list { max-height: min(420px, calc(100vh - 7rem)); }
}

/* Administrator account menu: the admin shell uses the same interaction
   model as the storefront account menu, while keeping admin-only routes
   protected by their existing role policy. */
.admin-account-popover-wrap {
    position: relative;
    margin-left: .15rem;
}
.admin-account-popover-wrap::after {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: .7rem;
    content: "";
}
.admin-account-toggle {
    display: inline-flex;
    align-items: center;
    max-width: min(21rem, 44vw);
    padding: .3rem .5rem !important;
    border: 1px solid transparent;
    border-radius: .58rem;
    background: transparent;
    color: rgba(255, 255, 255, .84) !important;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.admin-account-toggle .auth-user-inline { min-width: 0; gap: .42rem; }
.admin-account-toggle .auth-username {
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-account-toggle:hover,
.admin-account-popover-wrap.is-open .admin-account-toggle {
    border-color: rgba(255, 111, 0, .34);
    background: rgba(255, 111, 0, .1);
    color: #fff !important;
}
.admin-account-popover-wrap.is-open .account-menu-chevron {
    color: #ffad66;
    transform: rotate(180deg);
}
.admin-account-panel {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    z-index: 1300;
    width: min(330px, calc(100vw - 2rem));
    padding: .85rem;
    border: 1px solid rgba(255, 140, 69, .24);
    border-radius: .9rem;
    background: linear-gradient(150deg, rgba(37, 28, 22, .99), rgba(13, 13, 13, .99));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .05);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.4rem);
    transition: opacity .18s ease, transform .18s ease;
}
.admin-account-popover-wrap.is-open .admin-account-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.admin-account-menu-heading {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    padding: .15rem .15rem .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.account-menu-avatar {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(255, 129, 33, .54);
    border-radius: 50%;
    background: rgba(255, 111, 0, .12);
    color: #ffbd7d;
    font-size: .9rem;
    font-weight: 800;
}
.admin-account-menu-heading > span:last-child { min-width: 0; }
.admin-account-menu-heading strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: .88rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-account-menu-heading small {
    display: block;
    margin-top: .12rem;
    color: rgba(255, 203, 162, .65);
    font-size: .71rem;
}
.admin-account-menu-heading small i { margin-right: .22rem; color: #ff9c4d; }
.admin-account-panel .account-menu-links {
    display: grid;
    gap: .2rem;
    padding: .65rem 0;
}
.admin-account-panel .account-menu-links a {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr) .8rem;
    align-items: center;
    gap: .55rem;
    min-height: 2.55rem;
    padding: .48rem .55rem;
    border-radius: .55rem;
    color: rgba(255, 255, 255, .8);
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.admin-account-panel .account-menu-links a > i:first-child { color: #ffad66; }
.admin-account-panel .account-menu-links a > i:last-child {
    color: rgba(255, 255, 255, .36);
    font-size: .65rem;
    text-align: right;
}
.admin-account-panel .account-menu-links a:hover,
.admin-account-panel .account-menu-links a:focus-visible {
    background: rgba(255, 111, 0, .14);
    color: #fff;
    outline: none;
    transform: translateX(2px);
}
.admin-account-panel .account-menu-signout {
    margin: 0;
    padding-top: .65rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
}
.admin-account-panel .account-menu-signout button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.2rem;
    padding: .35rem .55rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: rgba(255, 189, 125, .9);
    font-size: .8rem;
    font-weight: 700;
    transition: background .16s ease, color .16s ease;
}
.admin-account-panel .account-menu-signout button:hover,
.admin-account-panel .account-menu-signout button:focus-visible {
    background: rgba(255, 111, 0, .12);
    color: #fff;
    outline: none;
}
.admin-account-toggle:focus-visible,
.admin-account-panel .account-menu-links a:focus-visible,
.admin-account-panel .account-menu-signout button:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 173, 102, .58);
    outline: none;
}

@media (max-width: 575.98px) {
    .site-account-toggle .auth-username { max-width: 8rem; }
    .site-track-order-label { display: none; }
    .site-account-panel { position: fixed; top: 4.4rem; right: 1rem; left: 1rem; width: auto; }
    .admin-navbar .container-fluid { gap: .45rem; }
    .admin-navbar .navbar-brand { margin-right: auto; font-size: 1rem; }
    .admin-exit-link { font-size: 0; }
    .admin-exit-link i { margin: 0 !important; font-size: .92rem; }
    .admin-account-toggle { max-width: 11rem; padding: .25rem !important; }
    .admin-account-toggle .auth-username { max-width: 6.3rem; }
    .admin-account-panel { position: fixed; top: 4.35rem; right: 1rem; left: 1rem; width: auto; }
}
