/* Critical above-the-fold shop CSS.
   Keep this small: it exists only to paint the first shop view before the full shop.css arrives. */
:root {
    --h-black: #0a0a0a;
    --h-paper: #f5f0e6;
    --h-accent: #ffd000;
    --h-font-cinzel: "Cinzel", serif;
    --h-font-cormorant: "Cormorant Garamond", serif;
    --h-shop-stage-width: 1760px;
    --h-shop-section-left-pad: 48px;
    --h-shop-section-right-pad: 18px;
}

body.historicum-shop-page {
    margin: 0 !important;
    padding-top: 0 !important;
    background: #000 !important;
}

body.historicum-shop-page .h-shop-page {
    min-height: 100vh;
    width: 100%;
    color: #fff;
    background:
        radial-gradient(88% 64% at 0% 0%, rgba(235, 188, 0, 0.14) 0%, rgba(126, 92, 0, 0.06) 34%, rgba(0, 0, 0, 0) 68%),
        linear-gradient(180deg, #060400 0%, #020201 58%, #000 100%);
}

body.historicum-shop-page .h-shop-nav-hero {
    position: relative;
    z-index: 2;
    overflow: visible;
    isolation: isolate;
    min-height: 160px;
    padding: 40px clamp(18px, 3vw, 58px) 38px;
    background: #000;
}

body.historicum-shop-page .h-shop-nav-hero::before,
body.historicum-shop-page .h-shop-nav-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

body.historicum-shop-page .h-shop-nav-hero::before {
    background:
        radial-gradient(110% 86% at 8% 12%, rgba(242, 204, 0, 0.42) 0%, rgba(98, 72, 0, 0.14) 34%, rgba(0, 0, 0, 0) 68%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.58) 64%, rgba(0, 0, 0, 0.96) 100%);
}

body.historicum-shop-page .h-shop-nav-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.08) 54%, #000 100%);
}

body.historicum-shop-page .h-shop-nav-bg {
    position: absolute;
    inset: 0 0 -80px;
    z-index: 0;
    background: center 72% / cover no-repeat;
    opacity: 0.49;
    pointer-events: none;
}

body.historicum-shop-page .h-shop-nav-hero-inner {
    position: relative;
    z-index: 3;
    max-width: var(--h-shop-stage-width);
    margin: 0 auto;
}

body.historicum-shop-page .h-shop-tabs-heading {
    position: relative;
    z-index: 4;
    margin: 0 auto 18px;
    color: #fff;
    font-family: var(--h-font-cinzel);
    font-size: clamp(17px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

body.historicum-shop-page .h-shop-tabs {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(14px, 2.4vw, 34px);
    max-width: min(980px, calc(100vw - 24px));
    margin: 0 auto;
    padding: 0 8px;
}

body.historicum-shop-page .h-shop-tab {
    display: inline-flex;
    flex: 0 0 auto;
    width: clamp(96px, 11vw, 148px);
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #f5f0e6;
    font-family: var(--h-font-cinzel);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

body.historicum-shop-page .h-shop-tab-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 230, 0.2);
    border-radius: 8px;
    background: #f5f0e6;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}

body.historicum-shop-page .h-shop-tab.is-active .h-shop-tab-thumb {
    border-color: var(--h-accent);
    box-shadow: 0 0 0 1px var(--h-accent), 0 7px 18px rgba(0, 0, 0, 0.55);
}

body.historicum-shop-page .h-shop-tab-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.historicum-shop-page .h-shop-tab-name {
    display: block;
    width: 100%;
    color: inherit;
    /* Keep in sync with --h-shop-tile-title-size in shop.css */
    font-size: clamp(14px, 4.6vw, 19px);
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

body.historicum-shop-page .h-shop-tab.is-active .h-shop-tab-name {
    color: var(--h-accent);
}

body.historicum-shop-page .h-shop-tab-panel {
    display: none;
}

body.historicum-shop-page .h-shop-tab-panel.is-active {
    display: block;
}

body.historicum-shop-page .h-shop-paper-stack {
    position: relative;
    z-index: 3;
    margin-top: -18px;
}

body.historicum-shop-page .h-shop-paper-layout {
    width: min(var(--h-shop-stage-width), calc(100vw - 70px));
    margin: 0 auto;
}

body.historicum-shop-page .h-paper-section {
    position: relative;
    color: #111;
}

body.historicum-shop-page .h-paper-content {
    position: relative;
    z-index: 2;
    background: var(--h-paper);
    color: #111;
}

body.historicum-shop-page .h-torn-top,
body.historicum-shop-page .h-torn-bottom {
    display: block;
    height: 22px;
    background: var(--h-paper);
}

body.historicum-shop-page .h-shop-section-main {
    padding: 22px var(--h-shop-section-right-pad) 32px var(--h-shop-section-left-pad);
}

body.historicum-shop-page .h-paper-title-wrap {
    margin: 0 0 14px;
}

body.historicum-shop-page .h-paper-title {
    display: inline-block;
    margin: 0;
    padding: 14px 34px 14px 24px;
    background: #111;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: clamp(34px, 3.6vw, 58px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.historicum-shop-page .h-shop-section-body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

body.historicum-shop-page .h-shop-catnav {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    border: 0.3px solid #111;
    background: #f5f0e6;
}

body.historicum-shop-page .h-catnav-header,
body.historicum-shop-page .h-catnav-filterby {
    display: block;
    margin: 12px;
    padding: 8px 20px;
    background: #111;
    color: #fff;
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.historicum-shop-page .h-catnav-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-top: 0.2px solid rgba(17, 17, 17, 0.42);
    background: transparent;
    color: #111;
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

body.historicum-shop-page .h-shop-grid-col {
    flex: 1 1 auto;
    min-width: 0;
}

body.historicum-shop-page .h-shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 0.2px solid rgba(17, 17, 17, 0.18);
}

body.historicum-shop-page .h-shop-result-count,
body.historicum-shop-page .h-shop-sort-label {
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.historicum-shop-page .h-shop-section-carousel .h-ss-pages-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body.historicum-shop-page .h-ss-page {
    display: contents;
}

body.historicum-shop-page .h-shop-ws-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.34);
}

body.historicum-shop-page .h-ss-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ddd;
}

body.historicum-shop-page .h-ss-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.historicum-shop-page .h-ss-info {
    min-height: 88px;
    padding: 14px 12px 16px;
    text-align: center;
}

body.historicum-shop-page .h-ss-title {
    margin: 0 0 10px;
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    line-height: 1.15;
    color: #fff;
}

body.historicum-shop-page .h-ss-price {
    display: inline-block;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid var(--h-accent);
    border-radius: 6px;
    color: var(--h-accent);
    font-weight: 700;
}

@media (max-width: 1399px), (hover: none) and (pointer: coarse) {
    :root {
        --h-shop-section-left-pad: 0;
        --h-shop-section-right-pad: 0;
    }

    body.historicum-shop-page .h-shop-nav-hero {
        min-height: clamp(330px, 74vw, 520px);
        padding: 166px 8px 86px;
    }

    body.historicum-shop-page .h-shop-nav-bg {
        inset: 0;
        opacity: 0.07;
        background-position: center top;
    }

    body.historicum-shop-page .h-shop-tabs {
        justify-content: space-between;
        gap: 6px;
        max-width: 100%;
        padding: 0 10px;
    }

    body.historicum-shop-page .h-shop-tab {
        width: calc((100vw - 44px) / 5);
    }

    body.historicum-shop-page .h-shop-tab-name {
        /* Keep in sync with --h-shop-tile-title-size in shop.css */
        font-size: clamp(14px, 4.6vw, 19px);
    }

    body.historicum-shop-page .h-shop-paper-stack {
        margin-top: -58px;
    }

    body.historicum-shop-page .h-shop-paper-layout {
        width: 100%;
    }

    body.historicum-shop-page .h-shop-section-main {
        padding: 0 0 24px;
    }

    body.historicum-shop-page .h-paper-title {
        display: block;
        width: 100%;
        padding: 18px 12px;
        font-size: clamp(34px, 9vw, 54px);
        text-align: center;
    }

    body.historicum-shop-page .h-shop-section-body {
        display: block;
    }

    body.historicum-shop-page .h-shop-catnav {
        width: 100%;
        max-width: 100%;
        border-right: 0;
        border-left: 0;
    }

    body.historicum-shop-page .h-shop-grid-col {
        width: 100%;
        padding: 14px 0 0;
    }

    body.historicum-shop-page .h-shop-controls {
        padding: 0 12px 12px;
    }

    body.historicum-shop-page .h-shop-section-carousel .h-ss-pages-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 0 10px;
    }
}

@media (min-width: 1400px) and (hover: hover) and (pointer: fine) {
    body.historicum-shop-page .h-shop-section-carousel .h-ss-pages-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}