/* Sale catalog design (theme option 'design' = catalog). Loaded only when a site picks it, on top of the classic
   theme styles; everything is scoped to .hsm-catalog, the wrapper layouts/main.php puts around the page.
   The accent color comes from the 'catalog_color' option as --hsm-brand (layouts/_header-catalog.php). */

.hsm-catalog {
    --hsm-bg: #ffffff;
    --hsm-soft: #f5f4f1;
    --hsm-ink: #0c0c0c;
    --hsm-ink-2: #4b4a47;
    --hsm-ink-3: #8b8984;
    --hsm-line: #e7e5e0;
    background: var(--hsm-bg);
    color: var(--hsm-ink);
    font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.hsm-catalog .container { max-width: 1320px; padding-left: 40px; padding-right: 40px; }
.hsm-catalog .content-wrapper { padding-top: 0 !important; }
.hsm-catalog .hsm-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hsm-ink-3); }

/* buttons */
.hsm-catalog .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 600; font-size: 14px; text-transform: none; letter-spacing: 0; }
.hsm-catalog .btn svg { width: 16px; height: 16px; }
.hsm-catalog .btn-primary { background: var(--hsm-ink); border-color: var(--hsm-ink); color: #fff; }
.hsm-catalog .btn-primary:hover, .hsm-catalog .btn-primary:focus { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }
.hsm-catalog .hsm-btn-brand { height: 46px; padding: 0 20px; background: var(--hsm-brand); border: 1px solid var(--hsm-brand); color: #fff; }
.hsm-catalog .hsm-btn-brand:hover, .hsm-catalog .hsm-btn-brand:focus { color: #fff; filter: brightness(.88); }
.hsm-catalog .hsm-btn-line { height: 46px; padding: 0 20px; border: 1px solid var(--hsm-ink); color: var(--hsm-ink); background: #fff; }
.hsm-catalog .hsm-btn-line:hover { background: var(--hsm-soft); color: var(--hsm-ink); }

/* header */
.hsm-catalog .hsm-top { background: #fff; border-bottom: 1px solid var(--hsm-line); }
.hsm-catalog .hsm-top .navbar { padding: 10px 0; }
.hsm-catalog .hsm-logo { padding: 0; margin-right: 32px; font-weight: 800; color: var(--hsm-ink); }
.hsm-catalog .hsm-logo img { height: 100px; width: auto; max-width: 220px; object-fit: contain; }
.hsm-catalog .hsm-top .navbar-nav .nav-link {
    color: var(--hsm-ink-2) !important;
    font-size: 14px !important;
    font-weight: 500;
    text-transform: none;
    letter-spacing: .02em;
    padding: 8px 14px !important;
    border-radius: 8px;
    text-decoration: none !important;
}
.hsm-catalog .hsm-top .navbar-nav .nav-link:hover,
.hsm-catalog .hsm-top .navbar-nav .active > .nav-link { background: var(--hsm-soft); color: var(--hsm-ink) !important; }
.hsm-catalog .hsm-top .navbar-nav .btn { height: 44px; padding: 0 18px; }
.hsm-catalog .hsm-top .btn-outline-secondary { border-color: transparent; color: var(--hsm-ink); background: transparent; }
.hsm-catalog .hsm-top .btn-outline-secondary:hover { background: var(--hsm-soft); color: var(--hsm-ink); }

/* sale banner */
.hsm-catalog .hsm-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: stretch; padding: 56px 0 0; }
.hsm-catalog .hsm-hero--text { grid-template-columns: minmax(0, 1fr); }
.hsm-catalog .hsm-kicker { display: flex; align-items: center; gap: 12px; }
.hsm-catalog .hsm-kicker i { flex: none; width: 10px; height: 10px; background: var(--hsm-brand); }
.hsm-catalog .hsm-title {
    margin: 26px 0;
    font-size: 98px;
    line-height: .9;
    font-weight: 800;
    font-stretch: 118%;
    letter-spacing: -.035em;
    text-transform: uppercase;
    color: var(--hsm-ink);
    overflow-wrap: break-word;
}
.hsm-catalog .hsm-title span { color: var(--hsm-brand); }
/* a long title (hsm-title--long, _catalog-hero.php) at C's 98px wraps a word a line; smaller, it keeps three lines */
.hsm-catalog .hsm-title--long { font-size: 68px; }
.hsm-catalog .hsm-lede { max-width: 560px; margin: 0 0 32px; font-size: 18px; line-height: 1.6; color: var(--hsm-ink-2); }
.hsm-catalog .hsm-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hsm-catalog .hsm-cta .btn { white-space: nowrap; }
.hsm-catalog .hsm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; border-top: 1px solid var(--hsm-ink); }
.hsm-catalog .hsm-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hsm-catalog .hsm-facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hsm-catalog .hsm-facts--1 { grid-template-columns: minmax(0, 1fr); }
.hsm-catalog .hsm-facts > div { padding: 16px 18px 0 0; }
.hsm-catalog .hsm-facts > div + div { padding-left: 18px; border-left: 1px solid var(--hsm-line); }
.hsm-catalog .hsm-facts dt { font-weight: 600; margin: 0; }
.hsm-catalog .hsm-facts dd { margin: 6px 0 0; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.hsm-catalog .hsm-facts dd small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--hsm-ink-3); letter-spacing: 0; }
/* the photo is as tall as the text beside it (at least 520px), so neither column leaves a gap */
.hsm-catalog .hsm-hero-photo { display: flex; flex-direction: column; margin: 0; }
.hsm-catalog .hsm-hero-photo img { display: block; flex: 1; width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 50% 38%; border-radius: 12px; background: var(--hsm-soft); }
.hsm-catalog .hsm-hero-photo figcaption { padding-top: 12px; font-size: 13px; color: var(--hsm-ink-3); }

/* catalog */
.hsm-catalog .hsm-list { padding: 96px 0 24px; }
.hsm-catalog .hsm-hero + .hsm-list, .hsm-catalog .hsm-list:first-child { padding-top: 40px; }
.hsm-catalog .hsm-hero + .hsm-list { padding-top: 96px; }
.hsm-catalog .hsm-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 18px 0; margin-bottom: 40px; border-top: 1px solid var(--hsm-ink); border-bottom: 1px solid var(--hsm-line); }
.hsm-catalog .hsm-bar-title { margin: 0; font-size: 34px; font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; color: var(--hsm-ink); }
.hsm-catalog .hsm-bar-title span { margin-left: 14px; font-size: 15px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; text-transform: none; color: var(--hsm-ink-3); vertical-align: middle; }
.hsm-catalog .hsm-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hsm-catalog .hsm-tools .btn-toolbar { margin: 0 !important; gap: 8px; }
.hsm-catalog .hsm-tools .btn-group { gap: 8px; }
.hsm-catalog .hsm-tools .btn-group:not(:has(*)) { display: none; }
.hsm-catalog .hsm-tools .btn-sm,
.hsm-catalog .hsm-tools .btn-group > .btn-group > .btn {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--hsm-line) !important;
    border-radius: 8px !important;
    background: #fff;
    color: var(--hsm-ink);
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}
.hsm-catalog .hsm-tools .btn-sm:hover, .hsm-catalog .hsm-tools .btn-sm:focus { background: var(--hsm-soft); color: var(--hsm-ink); }
.hsm-catalog .dropdown-menu { border-color: var(--hsm-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(12, 12, 12, .1); font-size: 14px; }
.hsm-catalog .dropdown-item:active { background: var(--hsm-soft); color: var(--hsm-ink); }
.hsm-catalog .hsm-description { margin: -16px 0 32px; color: var(--hsm-ink-2); max-width: 860px; }

.hsm-catalog .hsm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.hsm-catalog .hsm-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hsm-catalog .hsm-ph { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--hsm-soft); }
.hsm-catalog .hsm-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hsm-catalog .hsm-card:hover .hsm-ph img { transform: scale(1.04); }
.hsm-catalog .hsm-card--featured .hsm-ph { box-shadow: 0 0 0 3px var(--hsm-brand); }
.hsm-catalog .hsm-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hsm-catalog .hsm-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 0 6px; min-height: 12px; }
.hsm-catalog .hsm-lot { flex: none; font-size: 30px; font-weight: 800; font-stretch: 68%; line-height: 1; color: var(--hsm-brand); letter-spacing: -.01em; }
.hsm-catalog .hsm-lot small { margin-right: 6px; font-size: 12px; font-weight: 600; font-stretch: 100%; letter-spacing: .14em; text-transform: uppercase; color: var(--hsm-ink-3); vertical-align: 3px; }
.hsm-catalog .hsm-yr { min-width: 0; margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hsm-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsm-catalog .hsm-card h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.1; overflow-wrap: break-word; }
.hsm-catalog .hsm-card h3 a { color: var(--hsm-ink); text-decoration: none; }
.hsm-catalog .hsm-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hsm-catalog .hsm-reg { margin-top: 3px; font-size: 13px; color: var(--hsm-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsm-catalog .hsm-badge { align-self: flex-start; margin-top: 8px; background: var(--hsm-brand); }
.hsm-catalog .hsm-card table { width: 100%; margin: 14px 0 0; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.hsm-catalog .hsm-card td { padding: 7px 0; border-top: 1px solid var(--hsm-line); vertical-align: middle; }
.hsm-catalog .hsm-card td:first-child { width: 42%; color: var(--hsm-ink-3); }
.hsm-catalog .hsm-card td:last-child { text-align: right; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsm-catalog .hsm-card tr:last-child td { border-bottom: 1px solid var(--hsm-line); }
.hsm-catalog .hsm-by { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--hsm-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsm-catalog .hsm-manage { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; font-weight: 600; }
.hsm-catalog .hsm-manage a { color: var(--hsm-ink-2); text-decoration: underline; }

.hsm-catalog .hsm-pager { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--hsm-line); }
.hsm-catalog .hsm-pager:empty { display: none; }
.hsm-catalog .hsm-pager .pagination { justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0; }
.hsm-catalog .hsm-pager .page-link { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 0; border-radius: 8px !important; color: var(--hsm-ink-2); font-weight: 500; }
.hsm-catalog .hsm-pager .page-item.active .page-link { background: var(--hsm-ink); color: #fff; }
.hsm-catalog .hsm-pager .page-item.disabled .page-link { color: var(--hsm-ink-3); }
.hsm-catalog .hsm-empty { padding: 56px 24px; border-radius: 12px; background: var(--hsm-soft); text-align: center; color: var(--hsm-ink-2); font-size: 16px; }
.hsm-catalog .hsm-empty p { margin: 0; }

/* please note + footer */
.hsm-catalog .hsm-fine { padding: 32px 0 80px; }
.hsm-catalog .hsm-fine-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-top: 20px; border-top: 1px solid var(--hsm-line); }
.hsm-catalog .hsm-fine-text { max-width: 860px; font-size: 13.5px; line-height: 1.75; color: var(--hsm-ink-2); }
.hsm-catalog .hsm-fine-text p:last-child { margin-bottom: 0; }
.hsm-catalog .hsm-footer { padding: 40px 0 44px; background: var(--hsm-soft); border-top: 1px solid var(--hsm-line); }
.hsm-catalog .hsm-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hsm-catalog .hsm-footer-logo { height: 80px; width: auto; max-width: 200px; object-fit: contain; }
.hsm-catalog .hsm-footer-nav { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 14px; }
.hsm-catalog .hsm-footer-nav a { color: var(--hsm-ink-2); }
.hsm-catalog .hsm-footer small { font-size: 13px; color: var(--hsm-ink-3); }
.hsm-catalog .hsm-footer small a { color: inherit; }

@media (max-width: 1100px) {
    .hsm-catalog .hsm-title { font-size: 76px; }
    .hsm-catalog .hsm-title--long { font-size: 54px; }
    .hsm-catalog .hsm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .hsm-catalog .hsm-top .navbar-collapse { padding-top: 12px; }
    .hsm-catalog .hsm-top .navbar-nav { align-items: flex-start !important; }
    .hsm-catalog .hsm-top .navbar-nav .nav-item { margin-bottom: 4px; }
    .hsm-catalog .hsm-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
    .hsm-catalog .hsm-hero-photo { order: -1; }
    .hsm-catalog .hsm-hero-photo img { flex: none; height: 420px; min-height: 0; }
}

@media (max-width: 720px) {
    .hsm-catalog .container { padding-left: 16px; padding-right: 16px; }
    .hsm-catalog .hsm-logo img { height: 64px; }
    .hsm-catalog .hsm-hero { padding-top: 20px; }
    .hsm-catalog .hsm-hero-photo img { height: 260px; object-position: 50% 30%; }
    .hsm-catalog .hsm-title { font-size: 46px; margin: 18px 0; letter-spacing: -.03em; }
    .hsm-catalog .hsm-lede { font-size: 16px; margin-bottom: 24px; }
    .hsm-catalog .hsm-cta .btn { flex: 1 1 auto; height: 48px; padding: 0 14px; }
    .hsm-catalog .hsm-facts, .hsm-catalog .hsm-facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
    .hsm-catalog .hsm-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .hsm-catalog .hsm-facts > div:nth-child(n+3) { padding-top: 16px; }
    .hsm-catalog .hsm-facts dd { font-size: 17px; }
    .hsm-catalog .hsm-hero + .hsm-list { padding-top: 56px; }
    .hsm-catalog .hsm-bar { margin-bottom: 8px; }
    .hsm-catalog .hsm-bar-title { font-size: 28px; }
    .hsm-catalog .hsm-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hsm-catalog .hsm-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hsm-line); }
    .hsm-catalog .hsm-ph { aspect-ratio: auto; height: 100%; min-height: 150px; border-radius: 8px; }
    .hsm-catalog .hsm-row1 { margin: 0 0 4px; }
    .hsm-catalog .hsm-lot { font-size: 24px; }
    .hsm-catalog .hsm-card h3 { font-size: 18px; }
    .hsm-catalog .hsm-card table { margin-top: 8px; font-size: 12px; }
    .hsm-catalog .hsm-card td { padding: 4px 0; }
    .hsm-catalog .hsm-by { display: none; }
    .hsm-catalog .hsm-pager { margin-top: 32px; }
    .hsm-catalog .hsm-fine-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .hsm-catalog .hsm-footer-row { flex-direction: column; align-items: flex-start; }
}
