.customer-header { position: sticky; top: 0; z-index: 40; background: white; box-shadow: 0 1px 0 var(--ink-200); }
.customer-header__top { min-height: 88px; display: grid; grid-template-columns: minmax(280px, auto) minmax(260px, 1fr) minmax(120px, auto); align-items: center; gap: 20px; }
.customer-header__left, .customer-header__right { display: flex; align-items: center; gap: 12px; }
.customer-header__right { justify-content: flex-end; }
.customer-header__center { min-width: 0; }
.brand-lockup, .staff-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-lockup__logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.brand-lockup__copy { display: grid; gap: 2px; min-width: 0; }
.brand-lockup__copy strong { font-size: 1.1rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-lockup__copy small { color: var(--ink-500); white-space: nowrap; }
.global-search { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 4px 5px 4px 12px; border: 1px solid var(--ink-200); border-radius: 999px; background: var(--ink-050); }
.global-search:focus-within { border-color: #9ab6f7; box-shadow: 0 0 0 3px rgba(36,99,235,.1); background: white; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink-700); }
.global-search button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink-900); color: white; font-weight: 800; }
.global-search button:hover { background: var(--ink-800); }
.global-search__icon { font-size: 1.2rem; }
.status-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: #e8efff; color: #2453b7; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.drawer-trigger { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ink-200); border-radius: 11px; background: white; color: var(--ink-900); padding: 0 13px; font-weight: 800; }
.drawer-trigger:hover { background: var(--ink-050); }
.drawer-trigger--cart { background: var(--ink-900); color: white; border-color: var(--ink-900); }
.drawer-trigger--cart:hover { background: var(--ink-800); }
.drawer-trigger__icon { width: 20px; display: grid; gap: 4px; }
.drawer-trigger__icon span { display: block; height: 2px; border-radius: 99px; background: currentColor; }
.drawer-trigger__cart-icon { font-size: 1.05rem; }
.count-badge { display: inline-grid; place-items: center; min-width: 21px; height: 21px; border-radius: 999px; padding: 0 5px; background: white; color: var(--ink-900); font-size: .72rem; }
.customer-nav { background: var(--ink-900); color: white; }
.customer-nav__inner { min-height: 46px; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.customer-nav__inner::-webkit-scrollbar { display: none; }
.customer-nav a { display: inline-flex; align-items: center; padding: 0 16px; text-decoration: none; font-size: .9rem; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.customer-nav a:hover, .customer-nav a.is-active { background: rgba(255,255,255,.06); border-bottom-color: var(--accent); }
.customer-drawer { position: fixed; top: 0; bottom: 0; z-index: 70; width: min(420px, calc(100vw - 28px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.25); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
.customer-drawer--left { left: 0; transform: translateX(-104%); }
.customer-drawer--right { right: 0; transform: translateX(104%); }
.customer-drawer.is-open { transform: translateX(0); visibility: visible; }
.customer-drawer__header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--ink-200); }
.customer-drawer__header h2 { margin: 3px 0 0; font-size: 1.45rem; }
.drawer-kicker { display: block; color: var(--ink-500); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.drawer-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ink-200); border-radius: 10px; background: white; color: var(--ink-700); font-size: 1.5rem; line-height: 1; }
.customer-drawer__body { min-height: 0; overflow-y: auto; padding: 22px; }
.customer-drawer__footer { padding: 18px 22px 22px; border-top: 1px solid var(--ink-200); background: var(--ink-050); }
.customer-drawer__footer p { margin: 0; color: var(--ink-500); font-size: .85rem; line-height: 1.55; }
.drawer-scrim { position: fixed; inset: 0; z-index: 60; border: 0; background: rgba(8,12,18,.48); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.drawer-is-open .drawer-scrim { opacity: 1; visibility: visible; }
.account-summary { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: var(--ink-050); }
.account-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-900); color: white; font-weight: 900; }
.account-summary div { display: grid; gap: 3px; min-width: 0; }
.account-summary small { color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; }
.aside-nav { display: grid; gap: 8px; margin-top: 18px; }
.aside-nav a { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; }
.aside-nav a:hover { border-color: var(--ink-200); background: var(--ink-050); }
.aside-nav span { font-weight: 800; }
.aside-nav small { color: var(--ink-500); }
.aside-divider { height: 1px; background: var(--ink-200); margin: 22px 0; }
.aside-callout { padding: 18px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: linear-gradient(145deg, white, var(--ink-050)); }
.aside-callout h3 { margin: 8px 0; }
.aside-callout p { color: var(--ink-500); line-height: 1.6; }
.aside-callout__actions { display: grid; gap: 9px; margin-top: 16px; }
.customer-drawer__body--cart { display: flex; flex-direction: column; }
.empty-cart-state { margin: auto; max-width: 290px; text-align: center; padding: 30px 8px; }
.empty-cart-state__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 17px; background: var(--ink-100); color: var(--ink-700); font-size: 1.4rem; }
.empty-cart-state h3 { margin-bottom: 8px; }
.empty-cart-state p { color: var(--ink-500); line-height: 1.65; }
.cart-line-list { display: grid; gap: 12px; }
.cart-line { display: flex; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--ink-200); border-radius: 12px; }
.cart-line__copy { display: grid; gap: 4px; }
.cart-line__copy small, .cart-line__copy span { color: var(--ink-500); font-size: .82rem; }
.cart-line__price { white-space: nowrap; }
.cart-total-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; font-size: 1.04rem; }
.customer-drawer__footer--cart .button { margin-top: 14px; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast-message { padding: 12px 14px; border-radius: 10px; background: var(--ink-900); color: white; box-shadow: var(--shadow-md); }
form[aria-busy="true"] { cursor: progress; }
button.is-busy { cursor: progress; opacity: .72; }
.customer-footer { background: var(--ink-950); color: white; margin-top: 72px; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-grid p { color: var(--ink-300); max-width: 620px; line-height: 1.7; }
.footer-grid > div { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--ink-300); text-decoration: none; }
.footer-grid a:hover { color: white; }
@media (max-width: 1050px) {
    .customer-header__top { grid-template-columns: auto minmax(220px, 1fr) auto; }
    .brand-lockup__copy small { display: none; }
    .drawer-trigger__label { display: none; }
}
@media (max-width: 760px) {
    .customer-header__top { min-height: 76px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
    .customer-header__center { grid-row: 2; grid-column: 1 / -1; padding-bottom: 12px; }
    .brand-lockup__logo { width: 46px; height: 46px; }
    .brand-lockup__copy strong { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .brand-lockup__copy { display: none; }
    .drawer-trigger { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .customer-drawer, .drawer-scrim { transition: none; }
}

/* Functional cart */
.cart-reservation-banner { display: grid; gap: 3px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #cfe0ff; border-radius: 11px; background: #f5f8ff; }
.cart-reservation-banner strong { color: var(--ink-900); }
.cart-reservation-banner span { color: var(--ink-500); font-size: .8rem; }
.cart-line { display: grid; gap: 12px; }
.cart-line__main { display: flex; justify-content: space-between; gap: 14px; }
.cart-line__copy a { color: inherit; text-decoration: none; }
.cart-line__copy a:hover { color: var(--accent); }
.cart-line__actions { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--ink-200); }
.cart-line__serialized { color: var(--ink-500); font-size: .76rem; }
.cart-quantity-form { display: flex; align-items: end; gap: 7px; }
.cart-quantity-form label { display: grid; gap: 3px; color: var(--ink-500); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.cart-quantity-form input { width: 62px; min-height: 34px; padding: 0 8px; border: 1px solid var(--ink-200); border-radius: 8px; }
.cart-remove-button { border: 0; background: transparent; color: #a52a2a; font-size: .76rem; font-weight: 800; cursor: pointer; }
.cart-remove-button:hover { text-decoration: underline; }
.toast-message--success { background: #173f2d; }
.toast-message--warning { background: #6b4512; }
.toast-message--error { background: #702525; }
