.preview-banner {
    background: var(--ink);
    color: var(--page);
    text-align: center;
    padding: 9px 15px;
    font: 9px monospace;
    letter-spacing: .12em
}

.details {
    background-color: var(--panel);
    padding: 0 5px 1px;
}

header nav {
    display: flex;
    gap: 20px;
    align-items: center
}

header nav a,
header nav>button {
    font: 11px Industry;
    text-decoration: none;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
    min-height: 44px
}

h1,
h2,
h3 {
    font-family: Industry;
    line-height: 1.03
}

.shop-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    position: relative;
    isolation: isolate;
    min-height: 490px
}

.shop-hero>div {
    padding: 60px 5vw
}

.shop-hero h1 {
    font-size: clamp(55px, 7.5vw, 100px);
    letter-spacing: -.035em;
    margin: 25px 0
}

.shop-hero p {
    color: var(--muted)
}

.shop-hero>img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 auto;
    max-width: 47.6%;
    object-fit: cover;
    z-index: -1
}

.shop-cta {
    display: inline-block;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--action-ink);
    font: 12px Industry;
    padding: 17px 21px;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px
}

.shop-section {
    padding: 45px 5vw
}

.shop-heading,
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.shop-heading h2 {
    font-size: 34px;
    margin: 16px 0 24px
}

.shop-heading>span {
    font: 11px monospace
}

.shop-toolbar {
    border-block: 1px solid var(--line);
    padding: 12px 0
}

.shop-toolbar button,
.shop-toolbar label,
.shop-toolbar select {
    font: 11px monospace;
    color: var(--ink);
    background: transparent;
    border: 0;
    min-height: 44px
}

.shop-toolbar button {
    cursor: pointer
}

.shop-toolbar select {
    padding: 0 8px
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding: 25px 0
}

.shop-card {
    min-width: 0
}

.shop-card>button {
    display: block;
    border: 0;
    background: #e7e7e3;
    position: relative;
    padding: 0;
    width: 100%;
    cursor: pointer
}

.shop-card img {
    display: block;
    width: 100%
}

.shop-card .eyebrow {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #333c2d;
    font-size: 9px
}

.shop-card h3 {
    font-size: 17px;
    margin: 10px 0 4px;
}

.shop-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px
}

.small {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.product-swatches {
    display: flex;
    gap: 10px;
    margin: 15px 0
}

.product-swatches button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    font: 10px monospace;
    cursor: pointer;
    padding: 8px
}

.product-swatches button[aria-pressed=true] {
    border: 2px solid var(--ink)
}

.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.active-filters button {
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 10px;
    min-height: 44px;
    font: 11px monospace;
    margin-top: 15px;
    cursor: pointer
}

dialog {
    background: var(--page);
    color: var(--ink);
    border: 1px solid var(--line);
    width: min(1050px, 95vw);
    max-height: 94dvh;
    padding: 30px;
    overflow: auto
}

dialog::backdrop {
    background: #0b100dba
}

.dialog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px
}

.dialog-top h2 {
    font-size: 28px;
    margin: 0
}

.dialog-top>a {
    font: 10px monospace
}

.dialog-top>button {
    min-height: 44px;
    min-width: 44px;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer
}

dialog>h2 {
    font-size: clamp(40px, 6vw, 70px);
    margin: 25px 0
}

dialog form {
    display: flex;
    border-bottom: 2px solid var(--ink)
}

dialog form input {
    min-width: 0;
    flex: 1;
    padding: 16px 0;
    font: 24px Industry;
    color: var(--ink);
    background: none;
    border: 0
}

dialog form button,
.intent-actions button {
    background: none;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 12px;
    font: 11px Industry;
    cursor: pointer;
    min-height: 44px
}

.intent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.suggestions button {
    border: 1px solid var(--line);
    background: none;
    color: var(--ink);
    padding: 10px;
    text-align: left;
    cursor: pointer
}

.suggestions img {
    width: 100%;
    display: block;
    margin-bottom: 12px
}

.suggestions span {
    display: block;
    font: 12px Industry
}

.drawer {
    width: min(470px, 100vw);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    border: 0;
    border-left: 1px solid var(--line);
    padding: 24px
}

/* Keep the backdrop button inside the native modal's focus/inert boundary. */
#bag-dialog {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}
.bag-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: white;
    cursor: pointer;
}
.bag-backdrop > span {
    position: absolute;
    top: 24px;
    right: 494px;
    display: grid;
    justify-items: center;
    gap: 8px;
    font-size: 28px;
}
.bag-backdrop small { font: 10px monospace; letter-spacing: .1em; }
.bag-backdrop:focus-visible > span { outline: 2px solid white; outline-offset: 8px; }
.bag-panel {
    position: relative;
    width: min(470px, 100vw);
    height: 100%;
    margin-left: auto;
    padding: 24px;
    overflow: auto;
    background: var(--page);
    color: var(--ink);
    border-left: 1px solid var(--line);
}
@media (max-width: 559px) { .bag-backdrop > span { display: none; } }

.drawer fieldset {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0
}

.drawer legend {
    font: 12px Industry
}

.drawer fieldset label {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    font-size: 14px
}

.drawer input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px
}

.drawer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 30px
}

.drawer-bottom>button {
    width: 100%;
    margin: 8px 0
}

.drawer-bottom>button:not(.shop-cta) {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 12px;
    min-height: 44px
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px
}

.product-stage {
    /* background: #e7e7e3; */
    align-self: start
}

.product-stage img {
    width: 100%;
    display: block
}

.product-stage .eyebrow {
    display: block;
    color: #333c2d;
    padding: 20px
}

.product-detail h2 {
    font-size: 45px;
    margin: 20px 0
}

.detail-price {
    font: 30px Industry
}

.product-detail hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 25px 0
}

.product-detail label {
    display: block;
    font: 11px monospace
}

.product-detail select {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    background: var(--page);
    color: var(--ink);
    border: 1px solid var(--line)
}

.product-detail>.shop-cta,
.product-detail button.shop-cta {
    width: 100%
}

.product-detail details {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 18px;
    font-size: 13px
}

.product-detail summary {
    cursor: pointer;
    font: 12px Industry
}

.bag-line {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 20px 0
}

.bag-line img {
    width: 85px
}

.bag-line h3 {
    font-size: 15px;
    margin: 0
}

.bag-line p {
    font-size: 12px
}

.bag-line button {
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer
}

.subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px
}

#checkout-message,
#size-error {
    font-size: 12px
}

.shop-card button:hover img {
    filter: brightness(.96)
}

[data-theme=night] .shop-hero {
    display: block
}

[data-theme=night] .shop-hero>img {
    max-width: none;
    filter: brightness(.35)
}

[data-theme=night] .shop-hero>div {
    position: relative;
    z-index: 1
}

[data-theme=night] .shop-hero p {
    color: #e0dfd2
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px
}

@media(max-width:760px) {
    header {
        flex-wrap: wrap
    }

    header nav {
        gap: 14px;
        justify-content: space-between;
        width: 100%
    }

    .shop-hero {
        display: block;
        min-height: 420px
    }

    .shop-hero>div {
        padding: 40px 25px
    }

    .shop-hero>img {
        max-width: none;
        filter: brightness(.3)
    }

    .shop-hero {
        color: white
    }

    .shop-hero p {
        color: #eee
    }

    .shop-hero h1 {
        font-size: 65px
    }

    .shop-section {
        padding: 30px 20px
    }

    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px
    }

    .shop-card h3 {
        font-size: 14px
    }

    .shop-card .card-meta {
        font-size: 11px
    }

    .shop-card .eyebrow {
        font-size: 7px
    }

    .shop-heading h2 {
        font-size: 26px
    }

    .shop-toolbar {
        gap: 8px
    }

    .shop-toolbar button,
    .shop-toolbar label,
    .shop-toolbar select {
        font-size: 9px
    }

    .product-detail {
        grid-template-columns: 1fr
    }

    .product-detail h2 {
        font-size: 36px
    }

    dialog {
        padding: 20px
    }

    .suggestions {
        grid-template-columns: repeat(2, 1fr)
    }

    .shop-card .product-swatches {
        flex-wrap: wrap;
        gap: 5px
    }

    .product-swatches button {
        font-size: 9px
    }

    .shop-heading {
        align-items: start
    }

    .shop-heading>span {
        font-size: 9px;
        white-space: nowrap;
        padding-top: 5px
    }
}
