/* Pure Amino — shared chrome: top ticker, sticky nav, global footer. */

/* ---------- Top ticker ---------- */
.ticker {
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    border-bottom: 1px solid var(--ink);
}
.ticker-track {
    display: flex; gap: 48px;
    padding: 10px 0;
    white-space: nowrap;
    animation: tick 40s linear infinite;
    font-size: 10.5px; letter-spacing: .28em;
    text-transform: uppercase; font-weight: 500;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track i.d { width: 4px; height: 4px; border-radius: 50%; background: var(--paper); display: inline-block; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(234, 232, 232, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
    padding: 18px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav .brand { height: 20px; }
.nav-links {
    display: flex; gap: 34px; justify-content: center;
    font-size: 10.5px; letter-spacing: .22em;
    text-transform: uppercase; font-weight: 500;
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: 1px; background: var(--ink);
    transform: scaleX(0); transform-origin: left;
    transition: transform .22s var(--ease-standard);
}
.nav-links a:hover::after,
.nav-links a.on::after { transform: scaleX(1); }

.nav-right {
    display: flex; gap: 24px;
    justify-content: flex-end; align-items: center;
    font-size: 10.5px; letter-spacing: .22em;
    text-transform: uppercase; font-weight: 500;
}
.nav-right .cart { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; position: relative; }
.nav-right .cart .cnt {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--ink); color: var(--paper);
    font-size: 9px; letter-spacing: 0;
    font-family: var(--font-mono);
}

/* Hamburger — hidden on desktop, shown <=900 */
.nav-burger {
    display: none;
    width: 40px; height: 40px;
    background: transparent; border: none; cursor: pointer;
    padding: 10px 8px;
    position: relative;
}
.nav-burger span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--ink);
    margin: 5px auto;
    transition: transform .25s var(--ease-standard), opacity .2s, margin .2s;
}
body.pa-menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.pa-menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.pa-menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mob-only { display: none; }

/* ---------- Footer ---------- */
.foot {
    padding: 80px 40px 32px;
    background: var(--paper);
    border-top: 1px solid var(--hairline);
}
.foot-hero {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 80px; gap: 48px;
}
.foot-hero h3 {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(48px, 7vw, 140px);
    line-height: .88; letter-spacing: -.035em;
    text-transform: uppercase; max-width: 10ch;
}
.foot-hero .r {
    display: flex; flex-direction: column; gap: 16px; align-items: flex-end;
    font-size: 10.5px; letter-spacing: .22em;
    text-transform: uppercase; font-weight: 500;
    color: var(--ink-3);
}
.foot-hero .r .big {
    font-family: var(--font-display); font-weight: 500;
    font-size: 32px; letter-spacing: -.015em;
    color: var(--ink); text-transform: none;
}
.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--hairline);
}
.foot-brand img { height: 22px; margin-bottom: 20px; }
.foot-brand .desc {
    font-size: 11px; line-height: 1.8; letter-spacing: .22em;
    text-transform: uppercase; max-width: 36ch;
    color: var(--ink-3); font-weight: 500;
}
.foot h4 {
    font-size: 10.5px; letter-spacing: .22em;
    text-transform: uppercase; margin-bottom: 22px; font-weight: 500;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot ul a {
    font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.foot ul a:hover { color: var(--ink); }
.foot-bot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 32px 0 0; margin-top: 48px;
    border-top: 1px solid var(--hairline);
    font-size: 10px; letter-spacing: .22em;
    text-transform: uppercase; font-weight: 500;
    color: var(--ink-3);
}
.foot-mega {
    font-family: var(--font-display); font-weight: 600;
    font-size: min(26vw, 340px);
    line-height: .85; letter-spacing: -.04em;
    text-transform: uppercase;
    margin: 60px -40px -32px;
    padding: 40px;
    border-top: 1px solid var(--hairline);
    color: var(--ink);
    overflow: hidden; white-space: nowrap; text-align: center;
}

@media (max-width: 900px) {
    /* IMPORTANT: backdrop-filter on .nav creates a containing block for any
       position:fixed descendants — which collapses the slide-down menu to
       the height of .nav itself. Drop the frosted-glass effect on mobile so
       .nav-links can fill the viewport. */
    .nav {
        padding: 14px 20px;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--paper);
    }
    .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
    .desk-only { display: none !important; }
    .mob-only { display: flex !important; }

    /* Slide-down full-screen menu — uses existing .scrim site-wide */
    .nav-links {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--paper);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 96px 32px 32px;
        font-size: 22px; letter-spacing: -.02em; text-transform: uppercase;
        font-family: var(--font-display); font-weight: 600;
        z-index: 50;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform .32s var(--ease-standard), visibility 0s linear .32s;
        overflow-y: auto;
    }
    body.pa-menu-open .nav-links {
        transform: translateY(0);
        visibility: visible;
        transition: transform .32s var(--ease-standard), visibility 0s linear 0s;
    }
    .nav-links a {
        padding: 18px 0; /* 44px+ touch target */
        border-bottom: 1px solid var(--hairline);
    }
    .nav-links a::after { display: none; }

    .foot { padding: 60px 20px 24px; }
    .foot-hero { flex-direction: column; align-items: flex-start; gap: 32px; margin-bottom: 48px; }
    .foot-hero .r { align-items: flex-start; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .foot-bot { flex-direction: column; gap: 16px; text-align: center; }
    /* mega text was -40px horiz against 40px page padding; mobile uses 20px,
       so the mega lockup overflows — pin it to the new mobile gutters. */
    .foot-mega { margin: 60px -20px -24px; padding: 24px 20px; }

    /* Drawer becomes near-fullscreen on phones for cart UX */
    .drawer { width: min(440px, 100vw); }
    .drawer-head { padding: 18px 22px; }
    .drawer-body { padding: 16px 22px; }
    .drawer-foot { padding: 18px 22px; }

    /* Sub-footer (shop, etc.) */
    .shop-sub-foot .row { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media (max-width: 900px) {
    /* WCAG 44px tap targets for every footer link */
    .foot ul a {
        display: inline-block;
        padding: 12px 0; min-height: 44px;
    }
    .foot ul { gap: 4px; }
}

@media (max-width: 480px) {
    .foot-grid { grid-template-columns: 1fr; gap: 24px; }
    .foot-hero { margin-bottom: 36px; }
    .foot { padding: 48px 20px 20px; }
    .ticker-track { font-size: 10px; gap: 32px; padding: 8px 0; }
    .ticker-track span { gap: 32px; }
}

/* ---------- Cart drawer + scrim + toast (site-wide chrome) ---------- */
.scrim {
    position: fixed; inset: 0;
    background: rgba(27, 29, 28, .55);
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s;
    z-index: 90;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed; top: 0; bottom: 0;
    right: 0;
    width: min(480px, 92vw);
    background: var(--paper);
    z-index: 91;
    visibility: hidden;
    transform: translate3d(100%, 0, 0);
    transition: transform .32s var(--ease-standard), visibility 0s linear .32s;
    display: flex; flex-direction: column;
    border-left: 1px solid var(--hairline);
    will-change: transform;
}
.drawer.on {
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition: transform .32s var(--ease-standard), visibility 0s linear 0s;
}
.drawer-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--hairline);
}
.drawer-head h3 {
    font-family: var(--font-display); font-weight: 600;
    font-size: 22px; letter-spacing: -.02em; text-transform: uppercase;
}
.drawer-head .close { font-size: 18px; padding: 4px 8px; background: transparent; color: var(--ink); border: none; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 28px; }

.citem {
    display: grid; grid-template-columns: 76px 1fr auto;
    gap: 16px; padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
    align-items: center;
}
.citem .th {
    width: 76px; height: 90px;
    background: var(--paper-2);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--hairline);
}
.citem .th img { max-height: 80%; max-width: 80%; object-fit: contain; }
.citem .n {
    font-family: var(--font-display); font-weight: 600;
    font-size: 16px; letter-spacing: -.015em; text-transform: uppercase;
}
.citem .m { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin: 6px 0; }
.citem .qty,
.citem .qty-mini {
    display: inline-flex;
    border: 1px solid var(--hairline);
    font-family: var(--font-mono); font-size: 11px;
    background: var(--paper);
}
.citem .qty button,
.citem .qty-mini button { padding: 4px 10px; background: transparent; color: var(--ink); border: none; cursor: pointer; }
.citem .qty button:hover,
.citem .qty-mini button:hover { background: var(--ink); color: var(--paper); }
.citem .qty span,
.citem .qty-mini span { padding: 4px 12px; min-width: 32px; text-align: center; }
.citem .pr { font-family: var(--font-mono); font-size: 13px; }

.drawer-empty {
    padding: 60px 28px;
    text-align: center;
    display: flex; flex-direction: column; gap: 20px; align-items: center;
    color: var(--ink-3);
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
}

.drawer-foot {
    padding: 22px 28px;
    border-top: 1px solid var(--hairline);
    flex-direction: column; gap: 14px;
}
.drawer-foot .row {
    display: flex; justify-content: space-between;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
}
.drawer-foot .row .v { font-family: var(--font-mono); }
.drawer-foot .row.total { font-size: 13px; }
.drawer-foot .row.total .v { font-size: 16px; }
.drawer-foot .btn { justify-content: center; width: 100%; }

.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--ink); color: var(--paper);
    padding: 14px 22px;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
    opacity: 0; pointer-events: none;
    transition: all .28s;
    z-index: 100;
    display: inline-flex; gap: 10px; align-items: center;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
