/* Scroll Progress Indicator (Antigravity top bar) */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--emerald-soft) 100%);
    transform-origin: 0% 50%;
    transform: scaleX(0);
    z-index: 9999;
    box-shadow: 0 0 12px rgba(201, 164, 90, 0.75);
    pointer-events: none;
    transition: transform 0.06s ease-out;
}

.floating-order-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 990;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--ink);
    padding: 12px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 32px rgba(201, 164, 90, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.floating-order-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 20px 45px rgba(201, 164, 90, 0.55);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: padding 0.35s var(--ease-antigravity), background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar-header.scrolled {
    padding: 10px 0;
    background: rgba(7, 9, 15, 0.88);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(201, 164, 90, 0.24);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.logo-icon-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    border: 1px solid rgba(201, 164, 90, 0.55);
    box-shadow: 0 0 0 4px rgba(201, 164, 90, 0.08);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(201, 164, 90, 0.4);
    animation: pulseGlow 3s infinite ease-in-out;
    pointer-events: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #F6F1E8;
    line-height: 1.05;
    transition: color 0.35s ease;
}

.brand-subtitle {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.22em;
    transition: color 0.35s ease;
}

.navbar-header.scrolled .brand-title { color: #FFFFFF; }
.navbar-header.scrolled .brand-subtitle { color: var(--gold-bright); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(246, 241, 232, 0.78);
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.navbar-header.scrolled .nav-link { color: rgba(246, 241, 232, 0.85); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-bright);
}

.navbar-header.scrolled .nav-link:hover,
.navbar-header.scrolled .nav-link.active {
    color: var(--gold-bright);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.btn-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-bright);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid rgba(201, 164, 90, 0.35);
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.navbar-header.scrolled .btn-hotline {
    background: rgba(201, 164, 90, 0.12);
    color: var(--gold-bright);
    border-color: rgba(201, 164, 90, 0.4);
}

.btn-hotline:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

.btn-cart-trigger {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.btn-cart-trigger:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ink);
    color: var(--gold-bright);
    font-size: 0.68rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

.hamburger-btn {
    display: none;
    width: 42px;
    height: 42px;
    position: relative;
    background: rgba(22, 32, 51, 0.85);
    border: 1.5px solid rgba(201, 164, 90, 0.55);
    border-radius: 10px;
    color: var(--gold-bright);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease-antigravity);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hamburger-btn:hover {
    background: rgba(201, 164, 90, 0.25);
    border-color: var(--gold-bright);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(201, 164, 90, 0.35);
}

.hamburger-btn:active {
    transform: scale(0.92);
}

.navbar-header.scrolled .hamburger-btn {
    background: rgba(16, 20, 28, 0.95);
    border: 1.5px solid var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(201, 164, 90, 0.3);
}

.navbar-header.scrolled .hamburger-btn:hover {
    background: rgba(201, 164, 90, 0.3);
    border-color: var(--gold-bright);
    color: #FFFFFF;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 0 auto;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background-color 0.3s ease;
}

.navbar-header.menu-open .hamburger-btn {
    background: rgba(201, 164, 90, 0.25);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(201, 164, 90, 0.4);
}

.navbar-header.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background: var(--gold-bright);
}
.navbar-header.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-header.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: rgba(246, 241, 232, 0.72);
    padding: 64px 0 20px;
    border-top: 1px solid rgba(201, 164, 90, 0.18);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-bright);
}

.footer-desc {
    font-size: 0.86rem;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201, 164, 90, 0.3);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

.footer-col h4 {
    color: #F6F1E8;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a,
.footer-col li {
    font-size: 0.86rem;
    color: rgba(246, 241, 232, 0.62);
}

.footer-col a:hover { color: var(--gold-bright); }

.safety-badge {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(201, 164, 90, 0.16);
}

.safety-badge i {
    font-size: 1.3rem;
    color: var(--gold);
}

.safety-badge strong {
    display: block;
    color: #F6F1E8;
    font-size: 0.84rem;
    margin-bottom: 4px;
}

.safety-badge span {
    font-size: 0.74rem;
    color: rgba(246, 241, 232, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    font-size: 0.75rem;
    color: rgba(246, 241, 232, 0.4);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: 86px;
    right: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--ink);
    color: #F6F1E8;
    padding: 12px 16px;
    border-radius: 14px;
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s forwards;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .nav-menu { gap: 18px; }
    .nav-link { font-size: 0.76rem; }
}

@media (max-width: 768px) {
    .desk-only { display: none; }
    .hamburger-btn { display: flex; }

    .navbar-header.menu-open,
    .navbar-header.scrolled.menu-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom-color: transparent !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #07090F !important;
        background: radial-gradient(ellipse at 50% 25%, #162033 0%, #07090F 85%) !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 90px 24px 40px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link,
    .navbar-header.scrolled .nav-link {
        font-family: var(--font-display);
        font-size: 1.8rem;
        text-transform: none;
        letter-spacing: 0.05em;
        color: #F6F1E8;
        font-weight: 600;
        padding: 8px 24px;
        transition: color 0.25s ease, transform 0.25s ease;
        text-align: center;
        display: inline-block;
    }

    .nav-link.active,
    .nav-link:hover,
    .navbar-header.scrolled .nav-link.active,
    .navbar-header.scrolled .nav-link:hover {
        color: var(--gold-bright);
        transform: scale(1.08);
    }

    .navbar-header.menu-open .brand-title { color: #F6F1E8; }
    .navbar-header.menu-open .hamburger-btn { color: var(--gold-bright); }

    .site-footer {
        padding: 40px 0 18px;
        text-align: center;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        margin-bottom: 22px;
    }

    .footer-col { width: 100%; }
    .footer-logo { justify-content: center; }
    .footer-socials { justify-content: center; }
    .footer-desc { margin-left: auto; margin-right: auto; }

    .footer-col ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .floating-order-btn {
        bottom: 16px;
        left: 16px;
        padding: 10px 16px;
        font-size: 0.78rem;
    }
}
