:root {
    --stone-950: #171412;
    --stone-900: #221d1a;
    --stone-700: #6b625b;
    --stone-500: #a89d94;
    --stone-200: #ece3d8;
    --stone-100: #f8f3ed;
    --gold-500: #b98747;
    --gold-300: #dcb67b;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(26, 20, 17, 0.08);
}

.topbar-shell {
    position: sticky;
    top: 0;
    z-index: 1100;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    min-height: 82px;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 250, 245, 0.92);
    border-bottom: 1px solid rgba(185, 135, 71, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(24, 19, 16, 0.05);
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8f0, #f0e5d7);
    box-shadow: inset 0 0 0 1px rgba(185, 135, 71, 0.16);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 1.45rem;
    letter-spacing: 0.24em;
    font-weight: 800;
    color: var(--stone-950);
    line-height: 1;
}

.brand-tagline {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--stone-700);
}

.brand-signature {
    margin-top: 0.12rem;
    font-size: 1rem;
    color: var(--gold-500);
    font-family: "Segoe Script", "Brush Script MT", cursive;
    white-space: nowrap;
}

.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
}

.topbar-link {
    position: relative;
    padding: 0.25rem 0;
    text-decoration: none;
    color: var(--stone-900);
    font-weight: 600;
}

.topbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.topbar-link:hover::after,
.topbar-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-icon-button,
.account-link,
.account-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    background: transparent;
    color: var(--stone-900);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-icon-button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
}

.nav-icon-button svg,
.account-chip svg,
.account-link svg,
.cart-panel__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-icon-button:hover,
.account-link:hover {
    background: rgba(185, 135, 71, 0.12);
    color: var(--stone-950);
}

.cart-action {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--stone-950);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
}

.account-link,
.account-chip {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.account-link-primary {
    background: var(--stone-950);
    color: var(--white);
}

.account-link-primary:hover {
    color: var(--white);
    background: #000;
}

.account-chip {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 0 0 1px rgba(34, 29, 26, 0.06);
}

.topbar-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(23, 20, 18, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.topbar-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.topbar-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(360px, 88vw);
    padding: 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
}

.topbar-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--stone-200);
}

.drawer-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--stone-950);
}

.drawer-subtitle {
    color: var(--stone-700);
}

.drawer-section + .drawer-section {
    margin-top: 1.5rem;
}

.drawer-section h3 {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-700);
}

.drawer-section a {
    display: block;
    padding: 0.45rem 0;
    color: var(--stone-900);
    text-decoration: none;
}

.drawer-section a:hover {
    color: var(--gold-500);
}

@media (max-width: 991.98px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .topbar-nav,
    .account-chip {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .topbar {
        min-height: 74px;
        padding: 0.8rem 1rem;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-title {
        font-size: 1.06rem;
        letter-spacing: 0.16em;
    }

    .brand-tagline {
        font-size: 0.62rem;
    }

    .brand-signature {
        font-size: 0.82rem;
    }

    .account-link span {
        display: none;
    }

    .account-link {
        width: 44px;
        height: 44px;
        padding: 0;
    }
}
