/*
 * The Tack Room: HB Tack's own pieces on top of hbtack.css.
 *
 * hbtack.css is the storefront (the listing, the product page's gallery, the
 * cart's totals, the checkout, the account) in HB Tack's tokens. This file is
 * what the Tack Room design adds: the promo bar and the masthead, the brass
 * nameplates, the cards, the home page's sections, the product page's buy
 * column, the bag and its drawer, the Journal and the footer.
 *
 *   1. Shared: eyebrows, section heads, page heads, chips, badges
 *   2. Promo bar & masthead & phone menu
 *   3. Footer
 *   4. Cards & grid
 *   5. Home
 *   6. Collection pages
 *   7. Product page
 *   8. Bag, cart page & drawer
 *   9. Journal & pages
 *  10. Checkout, account & the rest, in Tack Room clothes
 */

/* ------------------------------------------------------------- 1. shared */

.k-container { max-width: 82.5rem; padding-inline: max(var(--k-gutter), env(safe-area-inset-left, 0px)); }

.hb-eyebrow {
    margin: 0 0 1.125rem;
    font: 600 .6875rem/1.2 var(--k-font);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--hb-saddle);
}

.hb-norse { font-family: var(--hb-font-serif); font-style: italic; color: var(--hb-saddle); }

.hb-sec { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.hb-sec--flush { padding-top: 0; }

.hb-sec-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid var(--k-line);
}
.hb-sec-head h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.25rem); color: var(--hb-green); }
.hb-sec-head h2 em { font-family: var(--hb-font-serif); color: var(--hb-saddle); }
.hb-sec-head a,
.hb-crumb a,
.hb-article-back,
.hb-bag-view {
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--k-ink);
    white-space: nowrap;
}
.hb-sec-head a { border-bottom: 1px solid var(--hb-saddle); padding-bottom: .25rem; }
.hb-sec-head a:hover, .hb-crumb a:hover, .hb-article-back:hover { color: var(--hb-saddle); }

.hb-crumb { margin: 0; padding-top: 1.75rem; }
.hb-crumb a { color: var(--k-ink-soft); }

.hb-page-head {
    padding-block: 3rem 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--k-line);
}
.hb-page-head h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--hb-green); }
.hb-page-lede { margin-top: 1rem; max-width: 56ch; font: 400 1.1875rem/1.6 var(--hb-font-serif); color: var(--k-ink-soft); }
.hb-page-lede > :last-child { margin-bottom: 0; }

.hb-chips { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.375rem; }
.hb-chip {
    padding: .6875rem 1rem;
    border: 1px solid var(--k-line);
    background: var(--hb-paper);
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--k-ink);
    transition: border-color var(--k-dur), background-color var(--k-dur), color var(--k-dur);
}
.hb-chip:hover { border-color: var(--hb-green); color: var(--hb-green); }
.hb-chip[aria-current="page"] { background: var(--hb-green); border-color: var(--hb-green); color: var(--hb-on-green); }
/* On a phone the chips are one row that scrolls sideways, running to the
   screen's edges, rather than five rows of them before the first piece. */
@media (max-width: 40rem) {
    .hb-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(var(--k-gutter) * -1);
        padding-inline: var(--k-gutter);
        scrollbar-width: none;
    }
    .hb-chips::-webkit-scrollbar { display: none; }
    .hb-chip { flex: none; }
}

.hb-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
    padding: .4375rem .5625rem;
    background: var(--hb-saddle);
    color: #fff;
    font: 600 .625rem/1 var(--k-font);
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hb-badge--out { background: var(--k-ink-soft); }
.hb-product .k-badge--sale, .k-badge--sale { background: var(--hb-saddle); color: #fff; border-radius: 0; }
.hb-badge--inline { position: static; display: inline-block; vertical-align: middle; margin-left: .5rem; }
.hb-badge[hidden] { display: none; }

/* ---------------------------------------- 2. promo bar, masthead, phone menu */

.hb-promo {
    background: var(--hb-green);
    color: var(--hb-on-green);
    text-align: center;
    padding: .5625rem var(--k-gutter);
    font: 500 .75rem/1.4 var(--k-font);
    letter-spacing: .08em;
}
.hb-promo p { margin: 0; }
.hb-promo strong, .hb-promo b { color: var(--hb-brass-lt); font-weight: 600; }
.hb-promo a { color: inherit; }

.hb-mast {
    position: relative;
    z-index: var(--k-z-header);
    background: rgb(234 231 223 / .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--k-line);
}
body.has-sticky-header .hb-mast { position: sticky; top: 0; }

.hb-mast-in {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    min-height: 6rem;
    padding-block: .625rem;
}

.hb-nav { display: flex; gap: 1.625rem; align-items: center; }
.hb-nav-r { justify-content: flex-end; }
.hb-nav > a,
.hb-bag-link,
.hb-menu-btn {
    padding: .5rem 0;
    border-bottom: 1px solid transparent;
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--k-ink);
    white-space: nowrap;
}
.hb-nav > a:hover,
.hb-nav > a[aria-current="page"] { border-color: var(--hb-saddle); color: var(--k-ink); }

.hb-crest {
    display: flex;
    justify-content: center;
    color: var(--hb-green);
    text-decoration: none;
}
.hb-crest:hover { color: var(--hb-green-2); }
.hb-mast .hb-logo { width: auto; height: 4.75rem; }
.hb-mast img.hb-logo { height: 3.5rem; }

.hb-bag-link { display: inline-flex; align-items: center; gap: .5rem; }
.hb-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .3125rem;
    border-radius: 999px;
    background: var(--hb-saddle);
    color: #fff;
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: 0;
}
.hb-count[hidden] { display: none; }

.hb-mast .k-account-toggle { width: 2.25rem; height: 2.25rem; }
.hb-mast .k-account-menu { right: 0; left: auto; }

.hb-menu-btn {
    display: none;
    align-items: center;
    gap: .625rem;
    background: none;
    border: 0;
    cursor: pointer;
}
.hb-menu-bars { position: relative; display: inline-block; width: 1.125rem; height: 8px; }
.hb-menu-bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s var(--k-ease), top .2s var(--k-ease); }
.hb-menu-bars span:first-child { top: 0; }
.hb-menu-bars span:last-child { top: 6.5px; }
.hb-menu-open .hb-menu-bars span:first-child { top: 3.25px; transform: rotate(45deg); }
.hb-menu-open .hb-menu-bars span:last-child { top: 3.25px; transform: rotate(-45deg); }

.hb-menu { max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--k-line); padding-block: .75rem 1.5rem; }
.hb-menu[hidden] { display: none; }
.hb-menu-head {
    margin: .75rem 0 .25rem;
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--hb-saddle);
}
.hb-menu-list { list-style: none; margin: 0; padding: 0; display: grid; }
.hb-menu-list a {
    display: block;
    padding: .6875rem 0;
    border-bottom: 1px solid var(--k-line);
    font: 400 1.25rem/1.2 var(--k-font-display);
    color: var(--hb-green);
    text-decoration: none;
}
.hb-menu-list a[aria-current="page"] { color: var(--hb-saddle); }
.hb-menu-list--pages { margin-top: 1rem; }
.hb-menu-list--pages a { font: 600 .75rem/1.2 var(--k-font); letter-spacing: .18em; text-transform: uppercase; color: var(--k-ink); }

@media (max-width: 64rem) {
    .hb-nav { gap: 1.125rem; }
}

@media (max-width: 51.99rem) {
    .hb-mast-in { grid-template-columns: 1fr auto 1fr; min-height: 4.5rem; gap: .75rem; }
    .hb-nav-l { display: none; }
    .hb-menu-btn { display: inline-flex; justify-self: start; }
    .hb-mast .hb-logo { height: 3.25rem; }
    .hb-nav-r > :not(.hb-bag-link) { display: none; }
}

@media (min-width: 52rem) {
    .hb-menu { display: none !important; }
}

/* ------------------------------------------------------------- 3. footer */

.hb-foot {
    margin-top: auto;
    background: var(--hb-green);
    color: var(--hb-on-green-soft);
    padding-block: 4rem 2.25rem;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
}
.hb-foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.hb-foot h2 {
    margin: 0 0 1rem;
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hb-brass-lt);
}
.hb-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; font-size: .875rem; }
.hb-foot a { color: inherit; text-decoration: none; }
.hb-foot a:hover { color: #fff; }
.hb-foot .hb-crest { justify-content: flex-start; color: var(--hb-on-green); }
.hb-foot .hb-logo { height: 6rem; width: auto; }
.hb-foot-text { margin-top: 1.125rem; max-width: 34ch; font-size: .875rem; }
.hb-foot-text p { margin: 0; }
.hb-foot-note {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.375rem;
    border-top: 1px solid rgb(217 198 160 / .25);
    font-size: .75rem;
}
.hb-foot-note p { margin: 0; }

@media (max-width: 62.5rem) { .hb-foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32.5rem) { .hb-foot-in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- 4. cards and grid */

ul.hb-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--k-grid-max, 4), minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 62.5rem) { ul.hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hb-card { position: relative; }
/* The plugin's stylesheet boxes .kahunacart-product-card; the Tack Room's
   card is the picture's frame and the words under it, nothing around them. */
.hb-grid > .hb-card.kahunacart-product-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.hb-card-link { display: flex; flex-direction: column; gap: .875rem; color: inherit; text-decoration: none; }
.hb-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--hb-paper);
    border: 1px solid var(--k-line);
}
.hb-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .45s var(--k-ease), transform .8s var(--k-ease);
}
.hb-card-alt { opacity: 0; }
.hb-card-link:hover .hb-card-alt { opacity: 1; }
.hb-card-link:hover .hb-card-img { transform: scale(1.03); }
.hb-card-blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--k-line-strong); }
.hb-card-mark { width: 40%; height: auto; }
.hb-card.is-sold-out .hb-card-media img { opacity: .6; }
.hb-card-body { display: flex; flex-direction: column; gap: .3125rem; }
.hb-card-cat { font: 600 .625rem/1 var(--k-font); letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft); }
.hb-card-name { font: 400 1.1875rem/1.25 var(--hb-font-serif); color: var(--k-ink); text-wrap: balance; }
.hb-card-link:hover .hb-card-name { color: var(--hb-green); }
.hb-price { font: 500 .9375rem/1.2 var(--k-font); color: var(--k-ink); }
.hb-price-was { margin-left: .375rem; color: var(--k-ink-soft); font-weight: 400; }
.hb-card-stock { font-size: .8125rem; color: var(--k-warn); }

/* ---------------------------------------------------------------- 5. home */

.hb-home { padding-top: 0; }

.hb-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(1.75rem, 5vw, 5rem);
    align-items: center;
    padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.hb-hero h1 { margin: 0; font-size: clamp(2.75rem, 6.4vw, 5.75rem); line-height: 1.04; letter-spacing: -.01em; color: var(--hb-green); }
.hb-hero h1 em { font-family: var(--k-font-display); font-style: italic; color: var(--hb-saddle); }
.hb-lede { max-width: 34ch; margin: 1.625rem 0 2.125rem; font: 400 1.1875rem/1.6 var(--hb-font-serif); color: var(--k-ink-soft); }
.hb-btns { display: flex; flex-wrap: wrap; gap: .875rem; }

.hb-frame {
    position: relative;
    padding: .875rem;
    background: var(--hb-paper);
    border: 1px solid var(--k-line);
    box-shadow: 0 30px 60px -40px rgb(28 51 40 / .5);
}
.hb-frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--hb-brass-lt); pointer-events: none; }
.hb-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.hb-plate {
    position: absolute;
    left: -1.125rem;
    bottom: 2.5rem;
    z-index: 1;
    max-width: 16.25rem;
    padding: .75rem 1.125rem;
    background: linear-gradient(135deg, #c9ad78, #9d7c45 55%, #c7a96f);
    color: #2b2112;
    text-decoration: none;
    box-shadow: 0 6px 16px -8px rgb(0 0 0 / .5);
}
.hb-plate b { display: block; font: 400 1.125rem/1.2 var(--k-font-display); }
.hb-plate span { font: 600 .625rem/1.4 var(--k-font); letter-spacing: .18em; text-transform: uppercase; }
.hb-plate:hover { color: #000; }

.hb-plates { padding-block: 1.125rem 4rem; }
.hb-plates-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .875rem;
}
.hb-np {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    height: 100%;
    padding: 1.375rem .625rem 1.125rem;
    background: var(--hb-paper);
    border: 1px solid var(--k-line);
    text-decoration: none;
    transition: transform .25s var(--k-ease), box-shadow .25s var(--k-ease);
}
.hb-np:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgb(28 51 40 / .6); }
.hb-np img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.hb-np span {
    margin-top: auto;
    padding: .5rem .75rem;
    background: var(--hb-brass-plate);
    color: #2b2112;
    font: 600 .625rem/1.2 var(--k-font);
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hb-story { background: var(--hb-green); color: var(--hb-on-green); }
.hb-story-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hb-story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; padding: .625rem; border: 1px solid rgb(217 198 160 / .4); }
.hb-story .hb-eyebrow { color: var(--hb-brass-lt); }
.hb-story blockquote { margin: 0; font: 400 clamp(1.625rem, 3vw, 2.5rem)/1.28 var(--k-font-display); }
.hb-story-text { max-width: 46ch; margin: 1.5rem 0 2rem; font: 400 1.0625rem/1.7 var(--hb-font-serif); color: var(--hb-on-green-soft); }
.hb-story-text p:last-child { margin-bottom: 0; }
.hb-story a.button.hb-button--light { background: var(--hb-on-green); border-color: var(--hb-on-green); color: var(--hb-green); }
.hb-story a.button.hb-button--light:hover { background: #fff; border-color: #fff; }

.hb-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
    background: rgb(217 198 160 / .3);
    border: 1px solid rgb(217 198 160 / .3);
}
.hb-facts > div { background: var(--hb-green); padding: 1.625rem 1.5rem; }
.hb-facts dt { margin-bottom: .375rem; font: 400 1.625rem/1.1 var(--k-font-display); color: var(--hb-brass-lt); }
.hb-facts dd { margin: 0; font: 400 .875rem/1.5 var(--k-font); color: var(--hb-on-green-soft); }

.hb-names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem; }
.hb-names a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    height: 100%;
    padding: 1.25rem 1.375rem;
    background: var(--hb-paper);
    border: 1px solid var(--k-line);
    text-decoration: none;
    transition: background-color .2s;
}
.hb-names a:hover { background: #fff; }
.hb-names b { font: 400 1.875rem/1 var(--k-font-display); color: var(--hb-green); }
.hb-names span { font: italic 400 .8125rem/1.3 var(--hb-font-serif); color: var(--k-ink-soft); text-align: right; }

.hb-event { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--hb-paper); border: 1px solid var(--k-line); }
.hb-event img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; }
.hb-event-body { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: clamp(1.75rem, 4vw, 3.5rem); }
.hb-event-body .hb-eyebrow { margin: 0; }
.hb-event-body h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--hb-green); }
.hb-event-body p:not(.hb-eyebrow) { margin: 0; font: 400 1.0625rem/1.6 var(--hb-font-serif); color: var(--k-ink-soft); }

.hb-signup-band { background: var(--hb-paper); border-top: 1px solid var(--k-line); }
.hb-signup { max-width: 40rem; text-align: center; }
.hb-signup h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); color: var(--hb-green); }
.hb-signup > p:not(.hb-eyebrow) { font: 400 1.0625rem/1.6 var(--hb-font-serif); color: var(--k-ink-soft); }
.hb-signup form { display: flex; margin-top: 1.625rem; border: 1px solid var(--hb-green); text-align: left; }
.hb-signup .form-field,
.hb-signup .kahuna-field { flex: 1; min-width: 0; margin: 0; }
.hb-signup .form-label,
.hb-signup .kahuna-field-label,
.hb-signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb-signup input[type="email"] {
    width: 100%;
    min-height: 3.25rem;
    padding: 0 1.125rem;
    border: 0;
    border-radius: 0;
    background: var(--hb-paper);
    font: 400 1rem var(--k-font);
    color: var(--k-ink);
    box-shadow: none;
}
.hb-signup input[type="email"]:focus { outline: 2px solid var(--hb-brass); outline-offset: -2px; }
.hb-signup .form-actions,
.hb-signup .kahuna-form-actions,
.hb-signup .buttons { margin: 0; display: flex; }
.hb-signup .form-actions .button,
.hb-signup .kahuna-form-actions .button { height: 100%; }
.hb-signup .notices, .hb-signup .k-notices { margin: 1rem 0 0; text-align: left; }
.hb-signup > p.hb-signup-consent { font-family: var(--k-font); margin: .875rem 0 0; font-size: .8125rem; color: var(--k-ink-soft); }

@media (max-width: 62.5rem) {
    .hb-plates-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hb-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 51.25rem) {
    .hb-hero, .hb-story-in, .hb-event { grid-template-columns: 1fr; }
    .hb-plate { left: .75rem; }
    .hb-facts { grid-template-columns: 1fr; }
}
@media (max-width: 32.5rem) {
    .hb-plates-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-names { grid-template-columns: 1fr; }
    .hb-sec-head { flex-direction: column; align-items: flex-start; }
    .hb-signup form { flex-direction: column; }
}

/* ---------------------------------------------------- 6. collection pages */

.hb-shop { padding-bottom: 5rem; }
.hb-shop-head { padding-top: 2rem; }
.hb-shop-head-top { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.hb-shop-head .hb-eyebrow:empty { display: none; }
.hb-shop-search { flex: 0 1 18rem; }
.hb-shop-search .kahunacart-search { display: flex; gap: 0; margin: 0; border-bottom: 1px solid var(--k-ink); }
.hb-shop-search input[type="search"],
.hb-shop-search input[type="text"] {
    flex: 1;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0 .25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: 400 1rem var(--k-font);
    box-shadow: none;
}
.hb-shop-search input:focus { outline: none; }
.hb-shop-search .kahunacart-search:focus-within { border-color: var(--hb-saddle); }
.hb-shop-search button {
    min-height: 2.75rem;
    padding: 0 .25rem 0 .75rem;
    border: 0;
    background: transparent;
    color: var(--k-ink);
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
}
.hb-shop-search button:hover { background: transparent; color: var(--hb-saddle); box-shadow: none; }
.hb-shop-search .kahunacart-search-field { flex: 1; display: flex; min-width: 0; margin: 0; }
.hb-shop .kahunacart-search-summary {
    margin: 0 0 1.25rem;
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--hb-saddle);
}
.hb-shop .kahunacart-breadcrumbs { display: none; }
.hb-category-media { margin: 0 0 1rem; max-width: 40rem; }
.hb-category-media img { width: 100%; height: auto; }

/* --------------------------------------------------------- 7. product page */

.hb-product { padding-bottom: 5rem; }
.hb-product .k-product-layout.hb-pdp {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.75rem, 5vw, 4.5rem);
    padding-block: 1.75rem 4.5rem;
    align-items: start;
}
.hb-product .k-product-figure { position: sticky; top: calc(6rem + 1rem); }
/* Every picture in the same square frame of paper, whatever its own shape,
   so the row doesn't jump in height from one slide to the next and a
   portrait photograph isn't cropped. */
.hb-product .k-gallery-main,
.hb-product .k-product-figure > .k-product-media,
.hb-product .k-product-figure > .k-gallery-zoom {
    background: var(--hb-paper);
    border: 1px solid var(--k-line);
    border-radius: 0;
    padding: 0;
}
.hb-product .k-gallery-slide {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: .75rem;
}
.hb-product .k-gallery-slide > a,
.hb-product .k-gallery-slide > img { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.hb-product .k-gallery-slide img,
.hb-product .k-product-figure .k-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: none;
}
.hb-product .k-gallery-thumbs { gap: .625rem; margin-top: .625rem; }
.hb-product .k-gallery-thumbs a { width: 5.25rem; height: 5.25rem; padding: .25rem; background: #fff; border: 1px solid var(--k-line); border-radius: 0; }
.hb-product .k-gallery-thumbs a[aria-current="true"],
.hb-product .k-gallery-thumbs a.is-active,
.hb-product .k-gallery-thumbs a:hover { border-color: var(--hb-saddle); }
.hb-product .k-gallery-thumbs img { border-radius: 0; }

.hb-pdp-info { display: flex; flex-direction: column; gap: .875rem; }
.hb-pdp-info > * { margin: 0; }
.hb-pdp-cat {
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hb-saddle);
    text-decoration: none;
}
.hb-pdp-name { font: italic 400 1.375rem/1 var(--hb-font-serif); color: var(--hb-saddle); }
.hb-pdp-title { font-size: clamp(2rem, 3.4vw, 2.875rem); line-height: 1.08; color: var(--hb-green); }
.hb-pdp-price.k-price--lead { font: 500 1.25rem/1 var(--k-font); color: var(--k-ink); }
.hb-pdp-price .k-price-was { margin-left: .375rem; color: var(--k-ink-soft); font-weight: 400; font-size: 1rem; }
.hb-pdp-price.k-price--sale [data-k-lead-now] { color: var(--hb-saddle); }
.hb-pdp-lede { font: 400 1.0625rem/1.6 var(--hb-font-serif); color: var(--k-ink-soft); }
.hb-pdp-lede p { margin: 0 0 .75em; }
.hb-pdp-lede p:last-child { margin: 0; }

/* The buy box. The plugin's form carries its own price, which the lead price
   above already shows, so it is hidden here; the option buttons, the
   quantity and the button are dressed as the Tack Room's. */
.hb-buy { margin-top: .375rem; }
.hb-buy form.kahunacart-buy { display: flex; flex-wrap: wrap; align-items: stretch; gap: .625rem; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.hb-buy .kahunacart-qty-hint { font-size: .8125rem; color: var(--k-ink-soft); }
.hb-buy form.kahunacart-buy > .kahunacart-options,
.hb-buy form.kahunacart-buy > .kahunacart-variant-picker,
.hb-buy form.kahunacart-buy > .kahunacart-qty-hint,
.hb-buy form.kahunacart-buy > .kahunacart-backorder-note,
.hb-buy form.kahunacart-buy > .kahunacart-sale-tiers,
.hb-buy form.kahunacart-buy > .kahunacart-addon,
.hb-buy form.kahunacart-buy > .kahunacart-pwyw { flex: 1 0 100%; }
.hb-buy .kahunacart-price,
.hb-buy .kahunacart-compare-price,
.hb-buy .kahunacart-sale-badge { display: none !important; }
.hb-buy .kahunacart-options { display: grid; gap: 1.125rem; margin: 0 0 .5rem; }
.hb-buy .kahunacart-options[hidden] { display: none; }
.hb-buy .kahunacart-option { display: grid; gap: .625rem; margin: 0; }
.hb-buy .kahunacart-option-name {
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--k-ink);
}
.hb-buy .kahunacart-option-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.hb-buy .kahunacart-option-choice {
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--k-line);
    border-radius: 0;
    background: var(--hb-paper);
    color: var(--k-ink);
    font: 500 .875rem var(--k-font);
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}
.hb-buy .kahunacart-option-choice:hover { border-color: var(--hb-green); background: var(--hb-paper); color: var(--k-ink); }
.hb-buy .kahunacart-option-choice[aria-checked="true"] { border-color: var(--hb-green); background: var(--hb-green); color: var(--hb-on-green); }
.hb-buy .kahunacart-option-choice[aria-disabled="true"],
.hb-buy .kahunacart-option-choice.is-unavailable,
.hb-buy .kahunacart-option-choice.is-out { color: #9a9a92; text-decoration: line-through; }
.hb-buy .kahunacart-option-choice[aria-checked="true"].is-unavailable { color: var(--hb-on-green); opacity: .7; }
.hb-buy .kahunacart-option-status { margin: 0; font-size: .875rem; color: var(--k-ink-soft); }
.hb-buy .kahunacart-option-status:empty { display: none; }
.hb-buy .kahunacart-variant-picker select { width: 100%; }

.hb-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--hb-green); background: transparent; }
.hb-qty button {
    width: 2.75rem;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--k-ink);
    font: 400 1.125rem/1 var(--k-font);
    letter-spacing: 0;
    cursor: pointer;
}
.hb-qty button:hover { background: var(--hb-paper); color: var(--hb-green); box-shadow: none; }
.hb-qty label:not(.k-visually-hidden) { display: contents; }
.hb-qty input {
    width: 2.25rem;
    min-height: 3.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    font: 600 1rem var(--k-font);
    color: var(--k-ink);
    -moz-appearance: textfield;
    appearance: textfield;
    box-shadow: none;
}
.hb-qty input::-webkit-outer-spin-button,
.hb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hb-qty input:focus { outline: 2px solid var(--hb-brass); outline-offset: -2px; }
.hb-buy .kahunacart-qty input { width: 4.5rem; min-height: 3.25rem; text-align: center; }
.hb-buy .hb-qty .kahunacart-qty input { width: 2.25rem; }
.hb-buy button[data-kc-submit] { flex: 1; min-height: 3.375rem; }
.hb-buy button[data-kc-submit].is-busy { opacity: .7; }
.hb-buy .kahunacart-sold-out { background: #b9b6ad; border-color: #b9b6ad; color: #fff; opacity: 1; }
.hb-buy .kahunacart-stock-alert { flex: 1 0 100%; }

.hb-stock-line { font: 500 .8125rem/1.3 var(--k-font); min-height: 0; }
.hb-stock-line:empty { display: none; }
.hb-stock-line .k-stock { display: inline-flex; align-items: center; gap: .5rem; padding: 0; background: none; border: 0; color: var(--k-ink); font: inherit; }
.hb-stock-line .k-stock::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #4c7a57; }
.hb-stock-line .k-stock--low::before { background: #b8862a; }
.hb-stock-line .k-stock--out::before { background: #9b3b2b; }
.hb-stock-line .k-stock--backorder::before { background: var(--hb-brass); }

.hb-promise {
    list-style: none;
    display: grid;
    gap: .375rem;
    padding: .875rem 0 !important;
    border-block: 1px solid var(--k-line);
    font-size: .875rem;
    color: var(--k-ink-soft);
}
.hb-promise li { display: flex; gap: .625rem; align-items: baseline; }
.hb-promise li::before { content: ""; flex: none; width: .375rem; height: .375rem; transform: translateY(-.1em) rotate(45deg); background: var(--hb-brass); }

.hb-acc { border-bottom: 1px solid var(--k-line); padding-block: .875rem; }
.hb-acc summary {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hb-acc summary::-webkit-details-marker { display: none; }
.hb-acc summary::after { content: "+"; font-size: 1rem; line-height: .7; }
.hb-acc[open] summary::after { content: "\2013"; }
.hb-acc-body { margin-top: .75rem; font: 400 .9375rem/1.65 var(--hb-font-serif); color: var(--k-ink-soft); }
.hb-acc-body > :last-child { margin-bottom: 0; }
.hb-acc-body p { margin: 0 0 .75em; }
.hb-pdp-sku { font-size: .75rem; letter-spacing: .06em; color: var(--k-muted); }

.hb-related { padding-top: 1rem; }

@media (max-width: 51.25rem) {
    .hb-product .k-product-layout.hb-pdp { grid-template-columns: 1fr; }
    .hb-product .k-product-figure { position: static; }
}

/* ---------------------------------------------- 8. bag, cart page, drawer */

.hb-cart { padding-bottom: 5rem; }
.hb-cart .k-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 56rem) { .hb-cart .k-cart-layout { grid-template-columns: 1fr; } }
.hb-cart .k-cart-aside { display: grid; gap: 1rem; }
.hb-cart .k-panel { background: var(--hb-paper); border: 1px solid var(--k-line); border-radius: 0; box-shadow: none; }
.hb-cart .hb-checkout { width: 100%; margin-top: 1rem; }
/* On the page, the totals panel is where the subtotal and Checkout are. */
.hb-cart .hb-bag-foot { display: none; }

.hb-bag-empty { padding: 2.5rem 0; font: 400 1.0625rem/1.6 var(--hb-font-serif); color: var(--k-ink-soft); }
.hb-meter-block { font-size: .875rem; margin-bottom: .5rem; }
.hb-meter-block p { margin: 0 0 .625rem; }
.hb-meter { height: 4px; background: var(--k-line); }
.hb-meter span { display: block; height: 100%; background: var(--hb-saddle); transition: width .4s var(--k-ease); }

.hb-bag-form { margin: 0; }
.hb-lines { list-style: none; margin: 0; padding: 0; }
.hb-line { display: grid; grid-template-columns: 5.25rem 1fr; gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--k-line); }
.hb-line-img { display: block; width: 5.25rem; height: 6.5rem; background: var(--hb-paper); border: 1px solid var(--k-line); overflow: hidden; }
.hb-line-img img { width: 100%; height: 100%; object-fit: cover; }
.hb-line-body { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.hb-line-title { font: 400 1.0625rem/1.25 var(--hb-font-serif); color: var(--k-ink); text-decoration: none; }
a.hb-line-title:hover { color: var(--hb-green); }
.hb-line-meta { font-size: .8125rem; color: var(--k-ink-soft); }
.hb-line-note { font-size: .8125rem; color: var(--k-warn); }
.hb-line-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .25rem; }
.hb-qty--sm button { width: 2.125rem; }
.hb-qty--sm input { min-height: 2.125rem; width: 2.5rem; font-size: .9375rem; }
.hb-qty-fixed { font-size: .9375rem; color: var(--k-ink-soft); }
.hb-line-price { font-weight: 600; }
.hb-line-remove {
    align-self: flex-start;
    min-height: 0;
    padding: .25rem 0;
    border: 0;
    background: none;
    color: var(--k-ink-soft);
    font: 400 .75rem var(--k-font);
    letter-spacing: 0;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}
.hb-line-remove:hover { background: none; color: var(--k-danger); box-shadow: none; }
.hb-bag-update { margin: 1rem 0 0; }
body:has([data-hb-qty] [data-hb-step]:not([hidden])) .hb-bag-update { display: none; }

.hb-bag-foot { display: grid; gap: .875rem; padding-top: 1.375rem; }
.hb-bag-total { display: flex; justify-content: space-between; font: 400 1.375rem/1 var(--k-font-display); color: var(--hb-green); }
.hb-bag-foot small { color: var(--k-ink-soft); font-size: .8125rem; }
.hb-bag-foot .hb-checkout { width: 100%; min-height: 3.375rem; }
.hb-bag-view { justify-self: center; color: var(--k-ink-soft); padding: .375rem 0; }

.hb-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgb(18 26 21 / .45);
    opacity: 0;
    transition: opacity .3s var(--k-ease);
}
.hb-scrim[hidden] { display: none; }
.hb-bag-open .hb-scrim { opacity: 1; }
.hb-bag-open { overflow: hidden; }

.hb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(27.5rem, 100%);
    display: flex;
    flex-direction: column;
    background: var(--hb-paper);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .38s;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hb-drawer.is-open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .7, .2, 1); }
.hb-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--k-line); }
.hb-drawer-head h2 { margin: 0; font-size: 1.75rem; color: var(--hb-green); }
.hb-drawer-close {
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--k-ink);
    font: 600 .6875rem/1 var(--k-font);
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
}
.hb-drawer-close:hover { background: none; color: var(--hb-saddle); box-shadow: none; }
.hb-drawer-body { flex: 1; overflow: auto; padding: 1.125rem 1.75rem 1.75rem; transition: opacity .2s; }
.hb-drawer-body.is-busy { opacity: .55; pointer-events: none; }
.hb-drawer-body .hb-bag { display: flex; flex-direction: column; min-height: 100%; }
.hb-drawer-body .hb-bag-foot { margin-top: auto; position: sticky; bottom: -1.75rem; background: var(--hb-paper); padding-bottom: 1.75rem; border-top: 1px solid var(--k-line); }
.hb-drawer-body .hb-bag-update { display: none; }
.hb-drawer-loading { color: var(--k-ink-soft); font: 400 1rem var(--hb-font-serif); }
.hb-drawer-notes { margin-bottom: 1rem; display: grid; gap: .5rem; }
.hb-drawer-notes > * { margin: 0; padding: .75rem 1rem; border-left: 2px solid var(--k-danger); background: #fff; font-size: .875rem; }

.hb-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    max-width: calc(100% - 2rem);
    transform: translateX(-50%);
    padding: .875rem 1.375rem;
    background: var(--hb-green);
    color: var(--hb-on-green);
    font-size: .875rem;
    box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4);
}
.hb-toast[hidden] { display: none; }

/* ----------------------------------------------------- 9. journal, pages */

.hb-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--hb-cols, 3), minmax(0, 1fr)); gap: clamp(1.125rem, 2.4vw, 2rem); }
.hb-posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 5rem; }
@media (max-width: 51.25rem) { .hb-posts, .hb-posts--2 { grid-template-columns: 1fr; } }
.hb-post { display: flex; flex-direction: column; gap: .75rem; color: inherit; text-decoration: none; }
.hb-post-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--k-line); background: var(--hb-paper); }
.hb-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--k-ease); }
.hb-post:hover .hb-post-media img { transform: scale(1.03); }
.hb-post-blank { display: grid; place-items: center; width: 100%; height: 100%; color: var(--k-line-strong); background:
    linear-gradient(var(--hb-paper), var(--hb-paper)) padding-box; }
.hb-post-mark { width: 26%; height: auto; }
.hb-post:hover .hb-post-blank { color: var(--hb-brass); }
.hb-post-meta { font: 600 .625rem/1.4 var(--k-font); letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft); }
.hb-post-tag { color: var(--hb-saddle); }
.hb-post-title { font: 400 1.625rem/1.15 var(--k-font-display); color: var(--hb-green); text-wrap: balance; }
.hb-post-lede { font: 400 1rem/1.6 var(--hb-font-serif); color: var(--k-ink-soft); }

.hb-article { max-width: 47.5rem; margin: 0 auto; padding-block: 2.5rem 5rem; }
.hb-article-meta { margin: 2.25rem 0 1rem; }
.hb-article-title { font-size: clamp(2.5rem, 5vw, 4.25rem); color: var(--hb-green); }
.hb-article-figure { margin: 2rem 0; }
.hb-article-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hb-article-body { max-width: none; font: 400 1.125rem/1.75 var(--hb-font-serif); }
.hb-article-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.hb-article-body h3 { font: 600 .75rem/1.3 var(--k-font); letter-spacing: .18em; text-transform: uppercase; color: var(--hb-saddle); margin-top: 1.8em; }
.hb-article-body img { width: 100%; height: auto; margin-block: 1.5rem; border: 1px solid var(--k-line); padding: .625rem; background: var(--hb-paper); }
.hb-article-body a { color: var(--hb-green); text-decoration-color: var(--hb-brass); }
.hb-page .hb-page-head--plain { padding-top: 0; margin-bottom: 2rem; }

/* ------------------------------------------- 10. checkout, account, the rest */

/* The Tack Room's own pages bring their own top spacing (a page head, a
   crumb, the hero), so the main region's is taken off for them; the plugin's
   pages it doesn't redraw (checkout, the receipt, the account) keep it. */
.k-main:has(.hb-home, .hb-shop, .hb-product, .hb-cart, .hb-journal, .hb-article) { padding-block: 0; }
.hb-home { padding-block: 0; }

.k-page-title { color: var(--hb-green); }
.k-panel { border-radius: 0; box-shadow: none; }
.k-panel-title { color: var(--hb-saddle); }
.k-notice { border-radius: 0; }
.k-input, .k-select, .kahuna-input, .kahuna-select { border-radius: 0; }

/* Messages above a page's content sit in the same measure as it. */
.k-messages:empty { display: none; }
.hb-shop .k-messages, .hb-product .k-messages, .hb-cart .k-messages { margin-top: 1rem; }

/* The shared checkout / receipt / account pages keep Kahuna's layout; only
   their titles and panels change voice. */
.kahunacart-checkout h1, .kahunacart-order h1, .kahunacart-account h1 { color: var(--hb-green); }

/* The Login plugin draws "Forgot" as a second filled button beside Login;
   it is the lesser way out, so it is the outlined one. */
a.button[href$="/forgot_password"] { background: transparent; border-color: var(--hb-green); color: var(--hb-green); }
a.button[href$="/forgot_password"]:hover { background: var(--hb-green); color: var(--hb-on-green); }
