/*
 * Site header + mobile drawer (v0.3.3 rev2).
 * Two-row desktop: utility strip (collapsible) + main nav row.
 * Token-driven; colour variants from body class (tt-skin-*).
 */

/* ── Skip link ────────────────────────────────────────────── */
.tt-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--tt-primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 var(--tt-radius-sm) 0;
    font-weight: 800;
}

/* === v0.3.20 contact panel close alignment === */
.tt-cpanel-inner{
    grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);
    padding-right:70px;
}
.tt-cpanel-close{
    position:absolute;
    top:24px;
    right:0;
    width:52px;
    height:52px;
    border:0;
    background:var(--tt-primary);
    color:#fff;
    box-shadow:0 18px 38px color-mix(in srgb,var(--tt-primary) 24%,transparent);
    align-self:start;
}
.tt-cpanel-close:hover{
    background:var(--tt-text);
    color:var(--tt-bg);
}
.tt-cpanel-close svg{
    width:22px;
    height:22px;
}
.tt-skip-link:focus-visible { left: 0; }

/* ── Outer shell ──────────────────────────────────────────── */
.tt-siteheader {
    position: sticky;
    top: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--tt-bg) 96%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--tt-border);
    transition: box-shadow .2s;
}
.tt-siteheader.header-compact {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
}

/* ── Utility strip ────────────────────────────────────────── */
.tt-utility {
    border-bottom: 1px solid var(--tt-border);
    overflow: hidden;
    max-height: 56px;
    opacity: 1;
    transition: max-height .22s ease, opacity .18s ease, border-color .18s ease;
}
.header-compact .tt-utility {
    max-height: 0;
    opacity: 0;
    border-bottom-color: transparent;
}

@media (min-width: 761px) {
    .header-compact .tt-utility {
        max-height: 56px;
        opacity: 1;
        border-bottom-color: var(--tt-border);
    }
    .header-compact .tt-siteheader-main { min-height: 78px; }
}

/* Three-column utility strip: status pill | contacts (centred) | account+social.
   Outer columns are equal 1fr so the centre column stays visually centred
   even when the right column is empty (no social links configured yet). */
.tt-utility-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

/* Left: status pill only */
.tt-utility-status {
    display: flex;
    align-items: center;
    justify-self: start;
}

/* Centre: contact links — centred on desktop & landscape tablet */
.tt-utility-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

/* Contact link chips — match pill height so the strip stays even */
.tt-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    color: var(--tt-muted);
    font-weight: 700;
    font-size: var(--tt-text-xs);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Expand click area to 44px without affecting visual size */
    padding-block: 5px;
    transition: border-color .15s, color .15s;
}
.tt-contact-link:hover { border-color: var(--tt-primary); color: var(--tt-primary); }

/* Right: social icons (account moved to main nav) */
.tt-utility-right {
    display: flex;
    align-items: center;
    justify-self: end;
}

/* ── Account pill — main nav actions ──────────────────────── */
.tt-acct-main { position: relative; }

/* Logged-out: round icon button */
.tt-acct-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--tt-bg);
    border: 1px solid var(--tt-border);
    box-shadow: 0 4px 16px rgba(28,19,15,.06);
    color: var(--tt-muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color .15s, color .15s, transform .15s;
}
.tt-acct-icon:hover {
    border-color: var(--tt-primary);
    color: var(--tt-primary);
    transform: translateY(-1px);
}
.tt-acct-icon:focus-visible {
    outline: 2px solid var(--tt-primary);
    outline-offset: 2px;
}

/* Logged-in: pill with avatar + greeting */
.tt-acct-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 48px;
    padding: 0 14px 0 6px;
    border-radius: 999px;
    background: var(--tt-bg);
    border: 1px solid var(--tt-border);
    box-shadow: 0 4px 16px rgba(28,19,15,.06);
    color: var(--tt-text);
    font-weight: 800;
    font-size: var(--tt-text-sm);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
.tt-acct-main-btn:hover {
    border-color: color-mix(in srgb, var(--tt-primary) 50%, var(--tt-border));
    background: var(--tt-surface);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(28,19,15,.10);
}
.tt-acct-main-btn[aria-expanded="true"] {
    border-color: var(--tt-primary);
    background: var(--tt-surface);
}
.tt-acct-main-btn[aria-expanded="true"] .tt-chevron { transform: rotate(180deg); }
.tt-acct-main-btn:focus-visible {
    outline: 2px solid var(--tt-primary);
    outline-offset: 2px;
}

.tt-acct-main-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tt-primary);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    letter-spacing: 0;
}
.tt-acct-main-avatar .tt-fa-user {
    display: block;
    width: 15px;
    height: 17px;
}
.tt-acct-main-hello {
    line-height: 1;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tt-chevron { flex-shrink: 0; transition: transform .2s; color: var(--tt-muted); }

/* Account dropdown (main nav) */
.tt-acct-main-drop {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 240px;
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius-lg);
    box-shadow: 0 16px 48px rgba(28,19,15,.13);
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 110;
    overflow: hidden;
}
.tt-acct-main-drop.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.tt-dropdown-user {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--tt-border);
    display: grid;
    gap: 2px;
}
.tt-dropdown-user strong {
    font-weight: 900;
    font-size: var(--tt-text-sm);
    color: var(--tt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tt-dropdown-user span {
    font-size: 11px;
    color: var(--tt-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tt-dropdown-nav {
    padding: 8px 8px 0;
    display: grid;
}
.tt-dropdown-nav a,
.tt-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--tt-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--tt-text-xs);
    color: var(--tt-text);
    transition: background .13s;
}
.tt-dropdown-nav a:hover,
.tt-dropdown-logout:hover { background: var(--tt-surface-soft); }
.tt-dropdown-nav a svg,
.tt-dropdown-logout svg { flex-shrink: 0; color: var(--tt-muted); }
.tt-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--tt-border);
    border-radius: 0;
    color: var(--tt-error);
    font-weight: 700;
    font-size: var(--tt-text-xs);
    text-decoration: none;
    transition: background .13s;
}
.tt-dropdown-logout:hover { background: color-mix(in srgb, var(--tt-error) 6%, transparent); }
.tt-dropdown-logout svg { flex-shrink: 0; color: var(--tt-error); }

/* Social badges — SVG icons */
.tt-socials { display: flex; align-items: center; gap: 6px; }
.tt-social {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    color: var(--tt-muted);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.tt-social:hover { background: var(--tt-primary); color: #fff; border-color: var(--tt-primary); }
.tt-social svg { display: block; }

/* ── Open/closed pill ─────────────────────────────────────── */
.tt-open-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 0 13px;
    min-height: 34px;
    font-size: var(--tt-text-xs);
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}
.tt-open-pill::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent);
}
.tt-open-pill.is-open     { background: color-mix(in srgb, var(--tt-success) 14%, transparent); color: var(--tt-success); }
.tt-open-pill.is-closed   { background: color-mix(in srgb, var(--tt-error) 12%, transparent);   color: var(--tt-error); }
.tt-open-pill.is-preorder { background: color-mix(in srgb, var(--tt-warning) 14%, transparent); color: var(--tt-warning); }

/* ── Main nav row ─────────────────────────────────────────── */
/* Grid: logo | nav (left-aligned, fills space) | actions */
.tt-siteheader-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--tt-space-5);
    min-height: 78px;
    transition: min-height .18s ease;
}
.header-compact .tt-siteheader-main { min-height: 68px; }

/* Logo */
.tt-siteheader-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--tt-text);
    flex-shrink: 0;
    min-width: 0;
}
.tt-siteheader-logo { max-height: 44px; width: auto; display: block; }
.tt-siteheader-name {
    font-weight: 900;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    letter-spacing: -.04em;
    white-space: nowrap;
}
.tt-logo-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--tt-radius-md);
    display: grid;
    place-items: center;
    background: var(--tt-primary);
    color: #fff;
    font-weight: 900;
    font-size: var(--tt-text-xl);
}

/* Primary nav — sits left inside the 1fr column */
.tt-main-nav {
    min-width: 0;
    display: flex;
    align-items: center;
}
.tt-main-nav ul,
.tt-fallback-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tt-main-nav a,
.tt-fallback-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: var(--tt-text-sm);
    color: var(--tt-muted);
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.tt-main-nav a:hover,
.tt-fallback-nav a:hover,
.tt-main-nav .current-menu-item > a { background: rgba(28, 19, 15, .06); color: var(--tt-text); }

/* Actions (right column) */
.tt-siteheader-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ── Basket ───────────────────────────────────────────────── */
.tt-basket-wrap { position: relative; }

.tt-basket-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    height: 48px;
    padding: 0 18px;
    border-radius: var(--tt-radius-md);
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    box-shadow: 0 12px 24px rgba(28, 19, 15, .06);
    color: var(--tt-text);
    font-weight: 900;
    font-size: var(--tt-text-sm);
    letter-spacing: -.02em;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.tt-basket-btn:hover { transform: translateY(-1px); }
.tt-basket-label { white-space: nowrap; }

/* Count badge — brand-colour pill */
.tt-cart-count {
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--tt-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.tt-cart-count[data-count="0"] { display: none; }

/* Cart preview — CSS opacity/scale, no hidden attr */
.tt-cart-preview {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(380px, calc(100vw - 32px));
    padding: 16px;
    border-radius: var(--tt-radius-lg);
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    box-shadow: 0 24px 60px rgba(28, 19, 15, .14);
    opacity: 0;
    transform: translateY(-10px) scale(.98);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 100;
}
/* Invisible hover bridge over the 12px gap above the panel — without this,
   moving the mouse from the button down into the panel crosses a strip that
   belongs to neither element, breaking :hover and closing the panel mid-transit. */
.tt-cart-preview::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    pointer-events: auto;
}
.tt-cart-preview.open,
.tt-basket-wrap:hover .tt-cart-preview,
.tt-basket-wrap:focus-within .tt-cart-preview {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.tt-cart-hint {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: var(--tt-radius-md);
    background: var(--tt-surface-soft);
    color: var(--tt-muted);
    font-size: var(--tt-text-sm);
    font-weight: 780;
    line-height: 1.45;
}
.tt-cart-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tt-cart-btns .tt-btn {
    min-height: 42px;
    border-radius: var(--tt-radius-sm);
    font-size: var(--tt-text-sm);
    padding: 0 12px;
    justify-content: center;
}

/* Cart preview: live line items */
.tt-cpreview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
    text-align: center;
    color: var(--tt-muted);
    font-size: var(--tt-text-sm);
}
.tt-cpreview-empty svg { opacity: .45; }
.tt-cpreview-empty p { margin: 0; }
.tt-cpreview-empty .tt-btn { width: 100%; justify-content: center; min-height: 42px; font-size: var(--tt-text-sm); border-radius: var(--tt-radius-sm); }

.tt-cpreview-items {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 2px;
    max-height: 180px;
    overflow-y: auto;
}
.tt-cpreview-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid var(--tt-border);
    font-size: var(--tt-text-sm);
}
.tt-cpreview-item:last-child { border-bottom: 0; }
.tt-cpreview-qty {
    font-weight: 800;
    color: var(--tt-muted);
    font-size: var(--tt-text-xs);
    min-width: 20px;
}
.tt-cpreview-name { color: var(--tt-text); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-cpreview-price { font-weight: 800; color: var(--tt-text); white-space: nowrap; }

.tt-cpreview-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 10px;
    border-top: 1.5px solid var(--tt-border);
    margin-bottom: 10px;
    font-size: var(--tt-text-sm);
    font-weight: 700;
    color: var(--tt-text);
}

/* Order CTA — double-class specificity beats base.css .tt-btn */
.tt-order-short { display: none; }
.tt-btn.tt-siteheader-order {
    box-sizing: border-box;
    height: 48px;
    min-height: unset; /* override base.css min-height so height wins exactly */
    padding: 0 22px;
    border-radius: var(--tt-radius-sm);
    font-weight: 900;
    font-size: var(--tt-text-sm);
    white-space: nowrap;
}

/* Hamburger */
.tt-drawer-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--tt-border);
    border-radius: 999px;
    background: var(--tt-surface);
    box-shadow: 0 12px 24px rgba(28, 19, 15, .06);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.tt-drawer-toggle-bars { display: grid; gap: 4px; }
.tt-drawer-toggle-bars i { display: block; width: 18px; height: 2px; background: var(--tt-text); border-radius: 2px; }

/* ── Mobile drawer ─────────────────────────────────────────── */
.tt-drawer { position: fixed; inset: 0; z-index: 120; }
.tt-drawer[hidden] { display: none; }
.tt-drawer-overlay { position: absolute; inset: 0; background: rgba(10, 8, 6, .55); backdrop-filter: blur(2px); }
.tt-drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    box-sizing: border-box;
    background: var(--tt-surface);
    color: var(--tt-text);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    gap: var(--tt-space-4);
    padding: var(--tt-space-5);
    overflow-y: auto;
}
.tt-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--tt-space-3); }
.tt-drawer-title { font-weight: 900; font-size: var(--tt-text-lg); }
.tt-drawer-close {
    background: var(--tt-surface-soft);
    border: 1px solid var(--tt-border);
    border-radius: 999px;
    width: 40px; height: 40px;
    font-size: 22px;
    cursor: pointer;
    color: var(--tt-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tt-drawer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.tt-drawer-nav a {
    display: block; padding: 13px 4px;
    text-decoration: none; color: var(--tt-text);
    font-weight: 800; font-size: var(--tt-text-lg);
    border-bottom: 1px solid var(--tt-border);
}
.tt-drawer-links { display: grid; gap: 2px; }
.tt-drawer-links a { display: block; padding: 10px 4px; text-decoration: none; color: var(--tt-muted); font-weight: 700; }
.tt-drawer-links a:hover { color: var(--tt-primary); }
.tt-drawer-order { margin-top: auto; justify-content: center; }

html.tt-drawer-open, html.tt-drawer-open body { overflow: hidden; }

/* ── Contact mega panel ───────────────────────────────────── */
.tt-contact-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--tt-surface);
    border-top: 1px solid var(--tt-border);
    border-bottom: 3px solid var(--tt-primary);
    box-shadow: 0 32px 80px rgba(28,19,15,.14);
    z-index: 80;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.tt-contact-panel.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.tt-cpanel-inner {
    display: grid;
    grid-template-columns: 1fr 1.8fr auto;
    gap: 48px;
    padding: 36px 0;
    align-items: start;
    position: relative;
}
.tt-cpanel-heading {
    margin: 0 0 8px;
    font-weight: 900;
    font-size: var(--tt-text-xl);
    letter-spacing: -.03em;
    color: var(--tt-text);
}
.tt-cpanel-sub {
    margin: 0 0 20px;
    font-size: var(--tt-text-sm);
    color: var(--tt-muted);
    line-height: 1.5;
}
.tt-cpanel-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Contact form inside panel */
.tt-cpanel-form { min-width: 0; }
.tt-contact-form { display: grid; gap: 16px; }
.tt-cf-hp { display: none !important; } /* honeypot — visually hidden */
.tt-cf-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.tt-cf-field { display: grid; gap: 6px; }
.tt-cf-field--full { grid-column: 1 / -1; }
.tt-cf-label {
    font-weight: 700;
    font-size: var(--tt-text-xs);
    color: var(--tt-text);
}
.tt-cf-req { color: var(--tt-primary); }
.tt-cf-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: var(--tt-input-h);
    padding: 0 14px;
    border: 1.5px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    background: var(--tt-bg);
    color: var(--tt-text);
    font-size: var(--tt-text-sm);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.tt-cf-input:focus {
    outline: none;
    border-color: var(--tt-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tt-primary) 15%, transparent);
}
.tt-cf-input::placeholder { color: var(--tt-muted); opacity: 1; }
.tt-cf-input[aria-invalid="true"] { border-color: var(--tt-error); }
.tt-cf-textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.tt-cf-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tt-cf-submit {
    position: relative;
    min-width: 152px;
    justify-content: center;
}
.tt-cf-spinner {
    display: none;
    position: absolute;
    animation: tt-spin .75s linear infinite;
    transform-origin: center;
}
.tt-contact-form.is-loading .tt-cf-submit-text { opacity: 0; }
.tt-contact-form.is-loading .tt-cf-spinner { display: block; }
.tt-contact-form.is-loading .tt-cf-submit { pointer-events: none; opacity: .75; }
.tt-cf-msg {
    margin: 0;
    font-size: var(--tt-text-sm);
    font-weight: 700;
    display: none;
}
.tt-cf-msg.is-success { color: var(--tt-success); display: block; }
.tt-cf-msg.is-error   { color: var(--tt-error);   display: block; }
@keyframes tt-spin { to { stroke-dashoffset: 0; transform: rotate(360deg); } }

/* Close button (top-right of panel) */
.tt-cpanel-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tt-surface-soft);
    border: 1px solid var(--tt-border);
    color: var(--tt-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, color .15s;
    align-self: center;
}
.tt-cpanel-close:hover { background: var(--tt-border); color: var(--tt-text); }
.tt-cpanel-close:focus-visible { outline: 2px solid var(--tt-primary); outline-offset: 2px; }

/* Contact nav link active state */
.tt-main-nav .tt-contact-trigger > a[aria-expanded="true"],
.tt-main-nav .tt-contact-trigger.tt-panel-open > a {
    background: rgba(28, 19, 15, .06);
    color: var(--tt-text);
}

/* ── Responsive breakpoints ───────────────────────────────── */

/* Below 1180px: hide nav + contact panel, show hamburger */
@media (max-width: 1180px) {
    .tt-main-nav { display: none; }
    .tt-contact-panel { display: none; }
    .tt-siteheader-main { grid-template-columns: auto auto; justify-content: space-between; }
    .tt-drawer-toggle { display: inline-flex; }
}

/* Below 980px: collapse centre contact column */
@media (max-width: 980px) {
    .tt-utility-contacts { display: none; }
    /* Collapse the empty centre column so pill and account stay flush */
    .tt-utility-top { grid-template-columns: auto auto; }
}

/* Below 760px: icon-only basket/account, shorten order btn */
@media (max-width: 760px) {
    .tt-basket-label { display: none; }
    .tt-basket-btn { padding: 0 14px; }
    .tt-order-full { display: none; }
    .tt-order-short { display: inline; }
    .tt-btn.tt-siteheader-order { padding: 0 16px; }
    /* Collapse account pill to avatar-only circle */
    .tt-acct-main-hello,
    .tt-acct-main-btn .tt-chevron { display: none; }
    .tt-acct-main-btn { padding: 0; width: 48px; justify-content: center; }
}

/* Below 520px: hide socials, tighten spacing */
@media (max-width: 520px) {
    .tt-socials { display: none; }
    .tt-siteheader-main { gap: var(--tt-space-3); min-height: 64px; }
    .tt-siteheader-logo { max-height: 38px; }
    .tt-btn.tt-siteheader-order { padding: 0 14px; font-size: var(--tt-text-sm); }
}

/* === v0.3.14 mobile header + full-screen drawer refinement === */
.tt-mobile-top-brand{display:none}

@media (max-width: 760px){
    .tt-siteheader{background:color-mix(in srgb,var(--tt-bg) 98%,#fff)}
    .tt-utility{max-height:none;overflow:visible}
    .header-compact .tt-utility{max-height:none;opacity:1;border-bottom-color:var(--tt-border)}
    .tt-utility-top{
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        min-height:66px;
        gap:12px;
    }
    .tt-mobile-top-brand{
        display:inline-flex;
        align-items:center;
        gap:10px;
        min-width:0;
        color:var(--tt-text);
        text-decoration:none;
        font-weight:950;
        letter-spacing:-.04em;
        font-size:clamp(18px,5vw,24px);
    }
    .tt-mobile-top-brand .tt-logo-mark{
        width:42px;
        height:42px;
        border-radius:16px;
        font-size:22px;
    }
    .tt-mobile-top-brand span:last-child{
        min-width:0;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    .tt-utility-status{justify-self:end}
    .tt-utility-contacts,
    .tt-utility-right{display:none}
    .tt-open-pill{
        min-height:42px;
        padding:0 14px;
        font-size:13px;
    }
    .tt-siteheader-main{
        display:block;
        min-height:auto;
        padding-block:10px;
    }
    .header-compact .tt-siteheader-main{min-height:auto}
    .tt-siteheader-main>.tt-siteheader-brand,
    .tt-main-nav{display:none}
    .tt-siteheader-actions{
        display:grid;
        grid-template-columns:48px minmax(78px,.9fr) minmax(94px,1.08fr) 48px;
        gap:8px;
        width:100%;
        justify-content:stretch;
        align-items:center;
    }
    .tt-acct-icon,
    .tt-acct-main-btn,
    .tt-basket-btn,
    .tt-btn.tt-siteheader-order,
    .tt-drawer-toggle{
        width:100%;
        height:52px;
        min-height:52px;
        border-radius:25px;
    }
    .tt-acct-icon,
    .tt-acct-main-btn,
    .tt-drawer-toggle{
        width:48px;
        height:48px;
        min-height:48px;
        border-radius:999px;
        padding:0;
        justify-self:center;
    }
    .tt-basket-btn{
        justify-content:center;
        padding:0 10px;
        gap:8px;
    }
    .tt-cart-count{
        min-width:30px;
        height:30px;
        font-size:14px;
    }
    .tt-btn.tt-siteheader-order{
        padding:0 12px;
        font-size:18px;
        box-shadow:0 16px 32px color-mix(in srgb,var(--tt-primary) 22%,transparent);
    }
    .tt-order-short{display:inline}
}

@media (max-width: 360px){
    .tt-siteheader-actions{grid-template-columns:44px minmax(66px,.8fr) minmax(82px,1fr) 44px;gap:6px}
    .tt-acct-icon,
    .tt-acct-main-btn,
    .tt-basket-btn,
    .tt-btn.tt-siteheader-order,
    .tt-drawer-toggle{height:48px;min-height:48px;border-radius:25px}
    .tt-acct-icon,
    .tt-acct-main-btn,
    .tt-drawer-toggle{width:44px;border-radius:999px}
    .tt-btn.tt-siteheader-order{font-size:16px}
}

@media (max-width: 760px){
    .tt-cart-preview{
        position:fixed;
        left:12px;
        right:12px;
        top:calc(132px + env(safe-area-inset-top,0px));
        width:auto;
        max-height:calc(100dvh - 154px);
        overflow:auto;
        border-radius:22px;
        padding:18px;
        transform:translateY(-8px) scale(.98);
        z-index:140;
    }
    html.tt-cart-open{overflow:hidden}
    html.tt-cart-open body{overflow:hidden}
    .tt-cpreview-items{max-height:34dvh}
    .tt-cart-btns{grid-template-columns:1fr;gap:10px}
    .tt-cart-btns .tt-btn{min-height:48px}
}

@media (max-width: 760px){
    .tt-drawer{z-index:180}
    .tt-drawer-overlay{background:rgba(10,8,6,.72);backdrop-filter:blur(4px)}
    .tt-drawer-panel{
        inset:0;
        width:100%;
        max-width:none;
        padding:calc(16px + env(safe-area-inset-top,0px)) 20px calc(16px + env(safe-area-inset-bottom,0px));
        border-radius:0;
        gap:12px;
    }
    .tt-drawer-head{
        min-height:54px;
        padding-bottom:10px;
        border-bottom:1px solid var(--tt-border);
    }
    .tt-drawer-title{font-size:clamp(24px,8vw,34px);letter-spacing:-.05em}
    .tt-drawer-close{
        width:48px;
        height:48px;
        font-size:28px;
        border-radius:16px;
    }
    .tt-drawer-nav a{
        padding:12px 0;
        font-size:clamp(22px,7vw,30px);
        line-height:1;
        letter-spacing:-.05em;
    }
    .tt-drawer-links{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
    }
    .tt-drawer-links a{
        display:flex;
        align-items:center;
        min-height:42px;
        padding:0 14px;
        border:1px solid var(--tt-border);
        border-radius:14px;
        background:var(--tt-bg);
        color:var(--tt-text);
    }
    .tt-drawer-contact{
        display:grid;
        gap:6px;
        margin-top:0;
        padding:14px;
        border-radius:18px;
        background:var(--tt-surface-soft);
        border:1px solid var(--tt-border);
        color:var(--tt-muted);
        font-size:14px;
        line-height:1.35;
    }
    .tt-drawer-contact a{color:var(--tt-text);font-weight:900;text-decoration:none}
    .tt-drawer-contact span{display:block}
    .tt-drawer-kicker{
        margin:0 0 2px;
        color:var(--tt-primary);
        font-size:11px;
        font-weight:950;
        letter-spacing:.14em;
        text-transform:uppercase;
    }
    .tt-drawer-hours{
        display:grid;
        gap:4px;
        margin:4px 0 0;
        padding:0;
        list-style:none;
    }
    .tt-drawer-hours li{display:flex;justify-content:space-between;gap:14px}
    .tt-drawer-socials{
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        margin-top:6px;
    }
    .tt-drawer-socials a{
        display:inline-flex;
        align-items:center;
        min-height:34px;
        padding:0 12px;
        border-radius:999px;
        background:#fff;
        border:1px solid var(--tt-border);
        font-size:12px;
    }
    .tt-drawer-order{min-height:52px;flex:0 0 auto}
}

/* === v0.3.20 final cascade: contact panel close alignment === */
.tt-cpanel-inner{grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);padding-right:70px}
.tt-cpanel-close{position:absolute;top:24px;right:0;width:52px;height:52px;border:0;background:var(--tt-primary);color:#fff;box-shadow:0 18px 38px color-mix(in srgb,var(--tt-primary) 24%,transparent);align-self:start}
.tt-cpanel-close:hover{background:var(--tt-text);color:var(--tt-bg)}
.tt-cpanel-close svg{width:22px;height:22px}
