html {
    scroll-padding-top: calc(var(--bj-header-height, 120px) + 20px);
}

.bj-page {
    margin: 0 auto;
    padding: var(--bj-section-y) var(--bj-section-x);
    background: var(--bj-cream);
}

/* Header */
.bj-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    background: var(--bj-cream);
}

.bj-header-wedge {
    background: var(--bj-charcoal);
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    min-height: 110px;
    display: flex;
    align-items: center;
    padding: 18px 76px 18px clamp(20px, 3vw, 36px);
}

.bj-header-logo {
    max-width: 240px;
    max-height: 84px;
    object-fit: contain;
}

.bj-header-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
    padding: 18px clamp(20px, 3vw, 40px) 18px 8px;
}

.bj-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: none;
    white-space: nowrap;
}

.bj-nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #3a3a35;
    padding-bottom: 5px;
}

    .bj-nav-link:hover {
        color: var(--bj-orange);
    }

    .bj-nav-link.is-active {
        color: var(--bj-charcoal);
        border-bottom: 3px solid var(--bj-orange);
    }

.bj-nav-pill {
    background: var(--bj-gold);
    color: var(--bj-charcoal);
    border-radius: var(--bj-radius-pill);
    padding: 9px 20px;
    font-weight: 600;
    font-size: 15px;
}

    .bj-nav-pill.is-active, .bj-nav-pill:hover {
        background: var(--bj-orange);
        color: var(--bj-cream);
    }

.bj-search {
    display: flex;
    align-items: center;
    gap: var(--bj-space-2);
    background: #fff;
    border: 1px solid var(--bj-border);
    border-radius: var(--bj-radius-pill);
    padding: 8px 14px;
    flex: 0 1 192px;
    min-width: 0;
    margin-left: auto;
    box-shadow: var(--bj-shadow-rest);
}

    .bj-search .bj-icon {
        width: 14px;
        height: 14px;
        color: var(--bj-muted-2);
    }

    .bj-search input {
        border: 0;
        outline: 0;
        background: transparent;
        width: 100%;
        min-width: 0;
        font-size: 12px;
    }

.bj-cart {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bj-gold);
    color: var(--bj-charcoal);
    display: grid;
    place-items: center;
    flex: none;
}

.bj-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--bj-radius-pill);
    background: var(--bj-green);
    color: var(--bj-cream);
    border: 2px solid var(--bj-cream);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* Hero */
.bj-hero {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bj-space-8);
    align-items: center;
}

.bj-hero-copy {
    flex: 1 1 340px;
    max-width: 480px;
}

.bj-hero-title {
    position: relative;
    padding-bottom: 10px;
}

    .bj-hero-title h1 {
        position: relative;
        z-index: 1;
        font-size: clamp(46px, 6vw, 74px);
        line-height: .98;
    }

.bj-ghost {
    position: absolute;
    right: -6px;
    top: -38px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    font-family: var(--bj-font-display);
    font-weight: 700;
    font-size: clamp(120px, 15vw, 190px);
    color: var(--bj-gold);
    opacity: .28;
}

.bj-t-orange {
    color: var(--bj-orange);
}

.bj-t-green {
    color: var(--bj-green);
}

.bj-t-coffee {
    color: var(--bj-coffee);
}

.bj-hero-body {
    color: var(--bj-body);
    font-size: 15px;
    line-height: 1.6;
    margin: var(--bj-space-5) 0;
}

.bj-sizes {
    display: flex;
    gap: var(--bj-space-4);
    margin: var(--bj-space-6) 0 var(--bj-space-2);
}

.bj-size {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2.75px solid #d9d2bf;
    background: transparent;
    font-family: var(--bj-font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--bj-charcoal);
    transition: transform var(--bj-transition);
}

    .bj-size:hover {
        transform: translateY(-2px);
    }

    .bj-size.is-selected {
        background: var(--bj-gold);
        border-color: var(--bj-gold);
    }

.bj-size-caption {
    color: var(--bj-muted);
    font-size: 13px;
    margin-bottom: var(--bj-space-6);
}

/* Medallion */
.bj-medallion {
    flex: 1 1 320px;
    position: relative;
    min-height: min(60vh, 460px);
    display: grid;
    place-items: center;
}

.bj-medallion-ring {
    position: absolute;
    width: min(88%, 392px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid var(--bj-gold);
    z-index: 2;
    pointer-events: none;
}

.bj-medallion-photo {
    position: absolute;
    width: min(78%, 348px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 18px 44px rgba(5, 7, 2, .28);
}

    .bj-medallion-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 31% 55%;
    }

.bj-medallion-accent {
    position: absolute;
    left: 8%;
    bottom: 16%;
    width: min(26%, 110px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bj-gold);
    opacity: .22;
    z-index: 0;
}

.bj-medallion-badge {
    position: absolute;
    right: 2%;
    top: 2%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bj-green);
    color: var(--bj-cream);
    font-family: var(--bj-font-display);
    font-weight: 600;
    font-size: 14px;
    display: grid;
    place-items: center;
    text-align: center;
    line-height: 1.1;
}

/* Category cards */
.bj-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bj-space-6);
    margin-top: var(--bj-section-y);
}

.bj-category {
    flex: 1 1 220px;
    display: flex;
    gap: var(--bj-space-4);
    align-items: stretch;
}

.bj-category-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--bj-font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bj-coffee);
}

.bj-cat-juices {
    color: var(--bj-orange);
}

.bj-cat-tea-and-coffee {
    color: var(--bj-green);
}

.bj-cat-snacks {
    color: var(--bj-coffee);
}

.bj-category-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--bj-space-2);
    padding: var(--bj-space-7);
    color: var(--bj-charcoal);
}

    .bj-category-card strong {
        font-family: var(--bj-font-display);
        font-size: 20px;
    }

.bj-see-all {
    margin-top: var(--bj-space-8);
}

    .bj-see-all a {
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* Title band */
.bj-band {
    background: var(--bj-band);
    padding: var(--bj-section-y) var(--bj-section-x);
}

    .bj-band h1 {
        font-size: clamp(36px, 4.6vw, 56px);
        line-height: 1.02;
    }

    .bj-band p {
        color: var(--bj-body);
        margin-top: var(--bj-space-2);
    }

.bj-crumbs {
    font-size: 12px;
    color: var(--bj-muted);
    margin-bottom: var(--bj-space-2);
}

/* Item grid */
.bj-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--bj-space-6);
}

.bj-item-card {
    position: relative;
    height: 320px;
    border-radius: var(--bj-radius-signature);
    overflow: hidden;
    box-shadow: var(--bj-shadow-rest);
    transition: transform var(--bj-transition), box-shadow var(--bj-transition);
}

    .bj-item-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--bj-shadow-raised);
    }

.bj-item-ground {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .bj-item-ground img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.bj-item-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--bj-space-6);
    background: linear-gradient(rgba(5,7,2,0), rgba(5,7,2,.88) 42%);
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 1;
}

.bj-item-tag {
    display: inline-block;
    background: var(--bj-gold);
    color: var(--bj-charcoal);
    border-radius: var(--bj-radius-pill);
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: var(--bj-space-2);
}

.bj-item-name {
    color: var(--bj-cream);
    font-size: 22px;
    margin: 0;
}

.bj-item-panel {
    position: absolute;
    inset: 0;
    background: var(--bj-cream);
    padding: var(--bj-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--bj-space-3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 2;
}

.bj-item-name-dark {
    font-size: 20px;
    margin: 0;
}

.bj-item-facts {
    margin: 0;
    display: grid;
    gap: var(--bj-space-2);
    flex: 1;
}

    .bj-item-facts > div {
        display: flex;
        gap: var(--bj-space-2);
        align-items: flex-start;
    }

    .bj-item-facts dt {
        margin: 0;
        color: var(--bj-orange);
    }

    .bj-item-facts dd {
        margin: 0;
        font-size: 13px;
        color: var(--bj-body);
    }

    .bj-item-facts > div:nth-child(2) dt {
        color: var(--bj-coffee);
    }

    .bj-item-facts > div:nth-child(3) dt {
        color: var(--bj-green);
    }

.bj-item-card.is-sold-out {
    opacity: .72;
}

.bj-sold-out-chip {
    justify-content: center;
    background: var(--bj-chip);
    color: var(--bj-muted);
}

/* Revealing the panel must not depend on hover alone. Keyboard focus and the
   tap-to-open class work on every device, so the Add button is always reachable;
   hover is an extra affordance on pointer devices only. */
.bj-item-card:focus-within .bj-item-caption,
.bj-item-card.is-open .bj-item-caption {
    opacity: 0;
}

.bj-item-card:focus-within .bj-item-panel,
.bj-item-card.is-open .bj-item-panel {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: hover) {
    .bj-item-card:hover .bj-item-caption {
        opacity: 0;
    }

    .bj-item-card:hover .bj-item-panel {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Menu layout */
.bj-menu-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--bj-space-8);
    align-items: start;
}

.bj-filters {
    padding: var(--bj-space-7);
    position: sticky;
    top: calc(var(--bj-header-height, 120px) + 20px);
    max-height: calc(100dvh - var(--bj-header-height, 120px) - 20px - var(--bj-filter-bottom-space, 20px));
    overflow-y: auto;
}

.bj-filters-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--bj-space-5);
}

.bj-filters h2 {
    font-size: 18px;
    margin: 0;
}

.bj-filters fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 var(--bj-space-7);
}

.bj-filters legend {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bj-muted);
    margin-bottom: var(--bj-space-3);
}

.bj-check {
    display: flex;
    align-items: center;
    gap: var(--bj-space-2);
    padding: 5px 0;
    font-size: 14px;
    cursor: pointer;
}

    .bj-check input {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        accent-color: var(--bj-gold);
        flex: none;
    }

    .bj-check span {
        flex: 1;
    }

.bj-open-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--bj-coffee);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.bj-pill-row {
    display: flex;
    gap: var(--bj-space-2);
    flex-wrap: wrap;
}

.bj-chip.is-active {
    background: var(--bj-gold);
}

.bj-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--bj-coffee);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.bj-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--bj-space-6);
}

.bj-results[aria-busy="true"] {
    opacity: .5;
}

/* Pager */
.bj-pager {
    display: flex;
    align-items: center;
    gap: var(--bj-space-2);
    flex-wrap: wrap;
    margin-top: var(--bj-space-8);
}

.bj-page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: var(--bj-radius-pill);
    border: 1px solid var(--bj-border);
    background: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

    .bj-page-btn.is-active {
        background: var(--bj-gold);
        border-color: var(--bj-gold);
    }

    .bj-page-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.bj-page-of {
    margin-left: auto;
    font-size: 12px;
    color: var(--bj-muted);
}

/* Empty state */
.bj-empty {
    display: grid;
    justify-items: center;
    gap: var(--bj-space-4);
    padding: var(--bj-space-8);
    text-align: center;
    color: var(--bj-muted);
}

/* Cart and checkout */
.bj-cart-layout, .bj-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--bj-space-8);
    align-items: start;
}

.bj-cart-row {
    display: grid;
    grid-template-columns: 52px 1fr auto auto;
    gap: var(--bj-space-4);
    align-items: center;
    padding: var(--bj-space-4) 0;
    border-bottom: 1px solid var(--bj-rule);
}

.bj-cart-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--bj-radius-tile);
    overflow: hidden;
}

.bj-cart-detail h3 {
    font-size: 16px;
    margin: 0;
}

.bj-stepper {
    display: flex;
    align-items: center;
    gap: var(--bj-space-2);
    background: var(--bj-chip);
    border-radius: var(--bj-radius-pill);
    padding: 4px 10px;
}

    .bj-stepper button {
        background: none;
        border: 0;
        cursor: pointer;
        display: grid;
        place-items: center;
    }

    .bj-stepper output {
        min-width: 22px;
        text-align: center;
        font-weight: 600;
    }

.bj-remove {
    background: none;
    border: 0;
    color: var(--bj-muted);
    cursor: pointer;
}

    .bj-remove:hover {
        color: var(--bj-orange);
    }

.bj-cart-actions {
    display: flex;
    gap: var(--bj-space-5);
    align-items: center;
    margin-top: var(--bj-space-7);
}

.bj-cart-panel {
    background: var(--bj-charcoal);
    color: var(--bj-on-charcoal);
    border-radius: var(--bj-radius-card);
    padding: var(--bj-space-7);
}

    .bj-cart-panel .bj-meta {
        color: var(--bj-on-charcoal-muted);
    }

.bj-cart-count-big {
    font-family: var(--bj-font-display);
    font-size: 28px;
    margin: var(--bj-space-2) 0;
}

.bj-cart-note, .bj-cart-fineprint {
    color: var(--bj-on-charcoal-muted);
    font-size: 13px;
    line-height: 1.5;
}

.bj-cart-fineprint {
    margin-top: var(--bj-space-6);
}

.bj-cart-summary {
    border-top: 1px solid var(--bj-rule);
    padding-top: var(--bj-space-5);
}

.bj-cart-summary-count {
    font-family: var(--bj-font-display);
    font-size: 20px;
    margin: var(--bj-space-1) 0 var(--bj-space-3);
}

.bj-quote-form {
    background: #fff;
    border-radius: var(--bj-radius-card);
    padding: var(--bj-space-8);
    box-shadow: var(--bj-shadow-rest);
}

    .bj-quote-form .bj-label {
        color: var(--bj-muted);
    }

.bj-optional {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--bj-muted-2);
}

.bj-segmented {
    border: 0;
    padding: 0;
    display: grid;
    gap: var(--bj-space-2);
}

    .bj-segmented > div, .bj-segmented label {
        display: inline-flex;
    }

    .bj-segmented label {
        align-items: center;
        gap: var(--bj-space-2);
        background: var(--bj-chip);
        border-radius: var(--bj-radius-pill);
        padding: 9px 18px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
    }

        .bj-segmented label:has(input:checked) {
            background: var(--bj-gold);
        }

.bj-hint {
    font-size: 13px;
    color: var(--bj-muted);
    margin-top: var(--bj-space-3);
}

.bj-quote-list {
    list-style: none;
    padding: 0;
    margin: var(--bj-space-4) 0;
    display: grid;
    gap: var(--bj-space-2);
}

    .bj-quote-list li {
        display: flex;
        justify-content: space-between;
        gap: var(--bj-space-4);
        font-size: 14px;
    }

.bj-qty {
    color: var(--bj-gold);
    font-weight: 600;
}

/* Shared quote */
.bj-quote-page {
    max-width: 720px;
    display: grid;
    gap: var(--bj-space-7);
}

.bj-quote-head {
    text-align: center;
    display: grid;
    gap: var(--bj-space-2);
    justify-items: center;
}

.bj-quote-check {
    color: var(--bj-green);
}

.bj-code-badge {
    background: var(--bj-gold);
    color: var(--bj-charcoal);
    border-radius: var(--bj-radius-pill);
    padding: 6px 18px;
    font-family: var(--bj-font-display);
    font-weight: 600;
}

.bj-agreed {
    background: var(--bj-charcoal);
    border-radius: var(--bj-radius-card);
    padding: var(--bj-space-7);
    text-align: center;
}

    .bj-agreed .bj-meta {
        color: var(--bj-gold);
    }

.bj-agreed-figure {
    font-family: var(--bj-font-display);
    font-weight: 700;
    font-size: 26px;
    color: var(--bj-cream);
    margin: var(--bj-space-2) 0 0;
}

.bj-quote-items {
    padding: var(--bj-space-7);
}

    .bj-quote-items h2 {
        font-size: 18px;
    }

.bj-quote-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bj-space-2);
    margin-top: var(--bj-space-5);
}

.bj-quote-notes {
    font-style: italic;
    color: var(--bj-muted);
    margin-top: var(--bj-space-5);
}

/* Category hero */
.bj-cat-hero {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bj-space-8);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bj-section-y);
}

    .bj-cat-hero h1 {
        font-size: clamp(36px, 4.6vw, 56px);
    }

.bj-cat-badge {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--bj-charcoal);
    color: var(--bj-gold);
    display: grid;
    place-items: center;
    flex: none;
}

.bj-phone-pill {
    background: var(--bj-gold);
}

/* Footer */
.bj-footer {
    background: var(--bj-charcoal);
    color: var(--bj-on-charcoal);
    padding: var(--bj-space-7) var(--bj-section-x);
    display: flex;
    flex-wrap: wrap;
    gap: var(--bj-space-5);
    justify-content: space-between;
    align-items: center;
}

.bj-footer-copy {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bj-space-4);
    align-items: center;
    font-size: 14px;
}

.bj-footer-phone {
    color: var(--bj-gold);
    font-weight: 600;
}

.bj-footer-handle {
    color: var(--bj-green-bright);
}

.bj-socials {
    display: flex;
    gap: var(--bj-space-3);
}

.bj-social {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(246, 241, 230, .1);
    color: var(--bj-cream);
    display: grid;
    place-items: center;
}

.bj-social-fb:hover {
    background: var(--bj-orange);
}

.bj-social-ig:hover {
    background: var(--bj-green);
}

.bj-social-wa:hover {
    background: var(--bj-gold);
    color: var(--bj-charcoal);
}

@media (max-width: 900px) {
    .bj-menu-layout, .bj-cart-layout, .bj-checkout-layout {
        grid-template-columns: 1fr;
    }

    .bj-filters {
        position: static;
        max-height: none;
    }

    .bj-header {
        grid-template-columns: 1fr;
    }

    .bj-header-wedge {
        clip-path: none;
        justify-content: center;
        padding: 18px;
    }

    .bj-header-bar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 18px 20px;
    }

    .bj-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
        width: 100%;
    }

    .bj-search {
        margin-left: 0;
    }

    .bj-cat-badge {
        width: 150px;
        height: 150px;
    }
}
