@font-face {
    font-family: 'Fraunces HIB';
    src: url('/assets/hib-shop/fonts/fraunces-700-latin.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter HIB';
    src: url('/assets/hib-shop/fonts/inter-400-700-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

.shop-page {
    --hib-petrol: #264653;
    --hib-cream: #f7f6f2;
    --hib-gold: #e9c46a;
    --shop-preview-contours: repeating-radial-gradient(ellipse at 108% 110%, transparent 0 22px, var(--shop-preview-ink, #2646531a) 23px 24px, transparent 25px 44px);
    --shop-background: var(--hib-cream);
    --shop-surface: #fffdf8;
    --shop-text: var(--hib-petrol);
    --shop-muted: #435a62;
    --shop-border: #dcdad0;
    --shop-focus: #195e58;
    --shop-sans: 'Inter HIB', system-ui, sans-serif;
    --shop-display: 'Fraunces HIB', Georgia, serif;
    min-height: 100vh;
    margin: 0;
    background: var(--shop-background);
    color: var(--shop-text);
    font: 400 1rem / 1.55 var(--shop-sans);
}

.shop-page *, .shop-page *::before, .shop-page *::after { box-sizing: border-box; }

[data-theme='dark'] .shop-page {
    --shop-background: #142d35;
    --shop-surface: #1b3842;
    --shop-text: var(--hib-cream);
    --shop-muted: #d5dfdd;
    --shop-border: #46616a;
    --shop-focus: var(--hib-gold);
    color-scheme: dark;
}

.shop-shell {
    width: min(71rem, calc(100% - 3rem));
    margin-inline: auto;
}

.shop-header { border-bottom: 1px solid var(--shop-border); }

.shop-header-inner, .shop-brand, .shop-nav, .shop-actions {
    display: flex;
    align-items: center;
}

.shop-header-inner {
    min-height: 4.5rem;
    justify-content: space-between;
    gap: .6rem;
}

.shop-brand {
    gap: .52rem;
    color: var(--shop-text);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -.055em;
    text-decoration: none;
    line-height: 1;
}

.shop-brand svg { width: 2rem; height: 2rem; flex: 0 0 auto; }
.shop-nav { gap: .45rem; }

.shop-orders-link, .shop-control {
    display: inline-flex;
    min-height: 2.75rem;
    min-width: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shop-border);
    border-radius: .6rem;
    padding: .4rem .72rem;
    color: var(--shop-text);
    background: transparent;
    font: 650 .82rem / 1.1 var(--shop-sans);
    text-decoration: none;
    white-space: nowrap;
}

.shop-control { cursor: pointer; }
.shop-orders-link:hover, .shop-control:hover { background: var(--shop-surface); }

.shop-theme-icon {
    width: .88rem;
    height: .88rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.shop-intro {
    position: relative;
    display: flex;
    min-height: 13rem;
    margin-block: 1.65rem 1.35rem;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 1.35rem;
    background: var(--hib-petrol);
    color: var(--hib-cream);
}

.shop-intro-copy {
    position: relative;
    z-index: 1;
    padding: 1.9rem clamp(1.6rem, 4.5vw, 3.5rem);
}

.shop-page h1, .shop-page h2 {
    margin: 0;
    font-family: var(--shop-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.036em;
}

.shop-intro h1 { font-size: clamp(3.3rem, 7.8vw, 6.1rem); }
.shop-intro p { margin: .7rem 0 0; font-size: clamp(1rem, 2vw, 1.24rem); }

.shop-intro-group {
    container-type: inline-size;
    --shop-ribbon-width: min(48cqi, 23rem);
}

.shop-intro-art, .shop-drawer-ribbon, .shop-drawer-scene {
    position: absolute;
    inset-inline-end: 0;
    width: var(--shop-ribbon-width);
    height: auto;
    pointer-events: none;
}
.shop-intro-art { inset-block-end: 0; }
.shop-drawer-ribbon, .shop-drawer-scene { inset-block-start: 0; }

.shop-product {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    overflow: hidden;
    border: 1px solid var(--shop-border);
    border-radius: 1.35rem;
    background: var(--shop-surface);
}

.shop-product-info { padding: clamp(1.35rem, 3.8vw, 2.4rem); }

.shop-product-heading {
    display: flex;
    align-items: center;
    --shop-product-heading-gap: clamp(.55rem, 1.45vw, 1rem);
    gap: var(--shop-product-heading-gap);
}

.shop-product-heading h2 { font-size: clamp(2.05rem, 4.15vw, 3.1rem); }

.shop-product-icon {
    display: block;
    flex: 0 0 auto;
    width: clamp(3.55rem, 7.4vw, 5.25rem);
    height: auto;
    margin-left: -.22rem;
}

.shop-description {
    max-width: 49ch;
    margin: 1rem 0 0;
    color: var(--shop-muted);
}

.shop-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .12rem .55rem;
    margin-top: 1.3rem;
}

.shop-price strong { font: 700 1.87rem / 1.2 var(--shop-display); }
.shop-price span, .shop-license, .shop-test-note { color: var(--shop-muted); font-size: .88rem; }
.shop-license { margin: .3rem 0 0; }
.shop-actions { flex-wrap: wrap; gap: .45rem 1.15rem; margin-top: 1.1rem; }

.shop-button, .shop-detail, .shop-case-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    font-size: .9rem;
    font-weight: 700;
}

.shop-button {
    gap: .65rem;
    padding: .62rem .9rem .62rem 1rem;
    border-radius: .62rem;
    background: var(--hib-gold);
    color: var(--hib-petrol);
    text-decoration: none;
}

.shop-button:hover { background: #f1d18a; }
.shop-button svg, .shop-case-link svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.shop-detail, .shop-case-link { color: var(--shop-text); text-underline-offset: .24em; }
.shop-test-note { margin: .55rem 0 0; font-size: .78rem; }

.shop-product-visual {
    display: grid;
    align-content: center;
    justify-items: center;
    min-width: 0;
    margin: 0;
    padding: clamp(1.35rem, 4.2vw, 3.2rem) clamp(1.35rem, 3.4vw, 2.7rem) clamp(.65rem, 2.2vw, 1.75rem);
    background:
        var(--shop-preview-contours),
        var(--hib-gold);
    color: var(--hib-petrol);
}

.shop-case-frame {
    width: min(100%, 25rem);
    overflow: hidden;
    border: .55rem solid var(--hib-cream);
    border-radius: .95rem;
    background: #e2e4e3;
    box-shadow: 0 9px 20px #1c30342b;
}

.shop-case-frame img { display: block; width: 100%; height: auto; }
.shop-case-link { gap: .4rem; color: var(--hib-petrol); }
.shop-case-link:hover, .shop-detail:hover { text-decoration-thickness: 2px; }

.shop-help {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .55rem 1.25rem;
    margin-top: 1.7rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--shop-border);
}

.shop-help h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.shop-help p { margin: .38rem 0 0; color: var(--shop-muted); font-size: .91rem; }
.shop-footer { padding-block: .15rem 1.65rem; }
.shop-footer a { color: var(--shop-muted); font-size: .88rem; text-underline-offset: .25em; }
.shop-page :focus-visible { outline: 3px solid var(--shop-focus); outline-offset: 3px; }
.shop-product-visual :focus-visible { outline-color: var(--hib-petrol); }

.shop-skip {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 3;
    padding: .65rem;
    transform: translateY(-200%);
    background: var(--shop-surface);
    color: var(--shop-text);
}

.shop-skip:focus { transform: translateY(0); }

@media (max-width: 760px) {
    .shop-shell { width: calc(100% - 2rem); }
    .shop-intro { min-height: 12rem; margin-block: 1.25rem 1rem; }
    .shop-product { grid-template-columns: 1fr; }
    .shop-product-visual { padding-block: 1.4rem .55rem; }
    .shop-help { margin-top: 1.25rem; }
}

@media (max-width: 500px) {
    .shop-intro { min-height: 12.5rem; align-items: flex-start; }
    .shop-intro-copy { padding: 2rem 1.2rem 0; }
    .shop-intro h1 { font-size: clamp(2.65rem, 11.1vw, 3.6rem); }
    .shop-intro-group { --shop-ribbon-width: min(54cqi, 13.25rem); }
    .shop-product-info { padding: 1.25rem; }
    .shop-product-heading h2 { font-size: clamp(1.55rem, 7.1vw, 2.3rem); }
    .shop-description { margin-top: .85rem; }
    .shop-actions { column-gap: .8rem; }
}

@media (max-width: 361px) {
    .shop-brand span { display: none; }
    .shop-product-icon { width: 3.1rem; }
    .shop-product-heading h2 { font-size: 1.45rem; }
}

.shop-cart-link { gap: .36rem; }
.shop-cart-link[aria-current="page"] { border-color: var(--shop-focus); }
.shop-cart-count {
    display: inline-grid;
    min-width: 1.35rem;
    min-height: 1.35rem;
    place-items: center;
    padding-inline: .22rem;
    border-radius: 999px;
    background: var(--hib-gold);
    color: var(--hib-petrol);
    font-size: .73rem;
    font-weight: 700;
    line-height: 1;
}
.shop-cart-count[hidden] { display: none; }

@media (max-width: 500px) {
    .shop-header-inner .shop-brand span { display: none; }
}

@media (max-width: 395px) {
    .shop-cart-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .shop-header-inner .shop-nav { gap: .28rem; }
}

a.shop-purchase-button {
    position: relative;
    box-sizing: border-box;
    min-block-size: 3.5rem;
    min-inline-size: min(15rem, 100%);
    max-inline-size: 100%;
    gap: .7rem;
    padding: .8rem 1rem;
    border: 1px solid #f5d994;
    border-radius: .9rem;
    background: var(--hib-gold);
    color: var(--hib-petrol);
    box-shadow: inset 0 -2px 0 rgb(38 70 83 / 20%), 0 5px 12px rgb(16 36 44 / 22%);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.2;
}
.shop-purchase-button .shop-purchase-cart { inline-size: 1.2rem; block-size: 1.2rem; }
.shop-purchase-button .shop-purchase-arrow { margin-inline-start: auto; }
a.shop-purchase-button:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
a.shop-purchase-button:hover { background: #f4d38a; color: var(--hib-petrol); }
a.shop-purchase-button:active { box-shadow: inset 0 -1px 0 rgb(38 70 83 / 20%); }
.sgp-purchase-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem; margin: 1.15rem 0 0; }
.sgp-purchase-price strong { font-weight: 750; font-size: 1.125rem; }
.sgp-purchase-price span, .sgp-purchase-mode { font-size: .875rem; }
.sgp-purchase-mode { margin: .65rem 0 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    a.shop-purchase-button { transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
    a.shop-purchase-button:hover { transform: translateY(-2px); box-shadow: inset 0 -2px 0 rgb(38 70 83 / 20%), 0 7px 16px rgb(16 36 44 / 28%); }
    a.shop-purchase-button:active { transform: translateY(0); }
    .shop-purchase-button .shop-purchase-arrow { transition: transform 160ms ease; }
    .shop-purchase-button:hover .shop-purchase-arrow { transform: translateX(2px); }
}
@media (max-width: 500px) {
    a.shop-purchase-button { inline-size: 100%; }
}

@property --shop-purchase-edge-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@supports (mask-composite: exclude) {
    .shop-purchase-button::after {
        content: '';
        position: absolute;
        inset: -1px;
        padding: 2px;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: conic-gradient(
            from var(--shop-purchase-edge-angle),
            transparent 0deg 282deg,
            rgb(255 243 201 / 35%) 303deg,
            #fffef3 329deg,
            rgb(255 243 201 / 55%) 344deg,
            transparent 360deg
        );
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
    }

    .shop-purchase-button:focus-visible::after { opacity: 1; }

    @media (hover: hover) and (pointer: fine) {
        .shop-purchase-button:hover::after { opacity: 1; }
    }

    @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
        .shop-purchase-button:hover::after {
            animation: shop-purchase-edge-orbit 2.25s linear infinite;
        }
    }
}

@keyframes shop-purchase-edge-orbit {
    to { --shop-purchase-edge-angle: 1turn; }
}

.shop-plugin-explainer {
    --drawer-gutter: clamp(1rem, 3.25vw, 2.2rem);
    --drawer-handle-height: 4.5rem;
    position: relative;
    isolation: isolate;
    overflow: clip;
    margin-block: 0 1.35rem;
    border-radius: 1.2rem;
    background: #e6f0eb;
    box-shadow: inset 0 0 0 1px var(--shop-border);
}
[data-theme="dark"] .shop-plugin-explainer { background: #1a3a40; }
.shop-plugin-explainer > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: var(--drawer-handle-height);
    padding: .75rem var(--drawer-gutter);
    list-style: none;
    cursor: pointer;
}
.shop-plugin-explainer > summary::-webkit-details-marker { display: none; }
.shop-plugin-explainer > summary:focus-visible {
    outline: 2px solid var(--shop-focus);
    outline-offset: -5px;
    border-radius: inherit;
}
.shop-drawer-title, .shop-drawer-toggle, .shop-drawer-copy { position: relative; z-index: 1; }
.shop-drawer-title {
    max-inline-size: calc(100% - var(--shop-ribbon-width) + .5rem);
    font: 700 clamp(1.24rem, 2.6vw, 1.85rem) / 1.12 var(--shop-display);
    letter-spacing: -.025em;
}
.shop-drawer-toggle {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--shop-border);
    border-radius: 50%;
    color: var(--shop-text);
    background: var(--shop-surface);
}
.shop-plugin-explainer > summary:hover .shop-drawer-toggle { border-color: currentColor; }
.shop-plugin-explainer[open] .shop-drawer-toggle svg { transform: rotate(180deg); }
.shop-plugin-explainer[open] .shop-drawer-ribbon { display: none; }
.shop-plugin-explainer[open] { min-block-size: calc(var(--shop-ribbon-width) * .47 + .45rem); }
.shop-drawer-copy { padding: 0 calc(var(--shop-ribbon-width) + .9rem) 1.65rem var(--drawer-gutter); }
.shop-drawer-copy p {
    max-inline-size: 65ch;
    margin: 0;
    color: var(--shop-muted);
    font-size: .95rem;
    line-height: 1.6;
}
.shop-drawer-scene { container-type: inline-size; }
.shop-drawer-scene > svg { display: block; width: 100%; height: auto; }
.shop-plugin-demo {
    position: absolute;
    inset-inline-start: 67%;
    inset-block-start: 49%;
    transform: translate(-50%, -50%);
    inline-size: 9em;
    block-size: 5.55em;
    font-size: 4.25cqi;
}
@media (prefers-reduced-motion: no-preference) {
    .shop-drawer-toggle svg { transition: transform 180ms ease; }
}
.shop-plugin-demo-window, .shop-plugin-demo-module { position: absolute; box-shadow: 0 .3em .65em rgb(15 38 46 / 26%); }
.shop-plugin-demo-window {
    inset: .45em auto auto .4em;
    inline-size: 6em;
    block-size: 4em;
    border: .16em solid var(--hib-petrol);
    border-radius: .58em;
    background: linear-gradient(var(--hib-petrol) 0 .8em, var(--hib-cream) .8em);
    transform: rotate(-7deg);
}
.shop-plugin-demo-window::before {
    content: '';
    position: absolute;
    inset: .19em auto auto .35em;
    inline-size: .24em;
    block-size: .24em;
    border-radius: 50%;
    background: #e76f51;
    box-shadow: .38em 0 var(--hib-gold), .76em 0 #2a9d8f;
}
.shop-plugin-demo-window::after {
    content: '';
    position: absolute;
    inset: 1.2em auto auto .45em;
    inline-size: 3.95em;
    block-size: 1.75em;
    border-radius: .25em;
    background: linear-gradient(#2a9d8f 0 0) left top / 70% .36em no-repeat, repeating-linear-gradient(to bottom, transparent 0 .45em, #c2d7d1 .45em .66em, transparent .66em .78em);
}
.shop-plugin-demo-module {
    inset: 1.55em .6em auto auto;
    inline-size: 3.35em;
    block-size: 3.2em;
    border: .14em solid var(--hib-petrol);
    border-radius: .65em;
    background: linear-gradient(var(--hib-petrol) 0 0) center / 1.3em .19em no-repeat, linear-gradient(var(--hib-petrol) 0 0) center / .19em 1.3em no-repeat, var(--hib-gold);
    transform: rotate(9deg);
}
.shop-plugin-demo-module::before {
    content: '';
    position: absolute;
    inset: 1.02em auto auto -.58em;
    inline-size: .64em;
    block-size: .85em;
    border: .14em solid var(--hib-petrol);
    border-inline-end: 0;
    border-radius: .45em 0 0 .45em;
    background: var(--hib-gold);
}
@media (max-width: 560px) {
    .shop-plugin-explainer { margin-block-end: 1rem; }
    .shop-plugin-explainer > summary { justify-content: flex-start; gap: .5rem; }
    .shop-drawer-title { max-inline-size: calc(100% - var(--shop-ribbon-width)); }
    .shop-drawer-toggle { order: -1; width: 1.75rem; height: 1.75rem; }
    .shop-drawer-copy {
        padding: calc(.65rem + max(0px, var(--shop-ribbon-width) * .47 - var(--drawer-handle-height))) var(--drawer-gutter) 1.15rem;
    }
}

@media (max-width: 350px) {
    .shop-intro-group { --shop-ribbon-width: 42cqi; }
}

.cart-added-notice {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: .8rem 0 1rem;
    padding: .65rem .8rem;
    border: 1px solid var(--shop-border);
    border-inline-start: .2rem solid var(--hib-gold);
    border-radius: .65rem;
    background: color-mix(in srgb, var(--shop-surface) 91%, var(--hib-gold));
    color: var(--shop-text);
    font-size: .91rem;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cart-added-notice[hidden] { display: none; }

.shop-success-mark {
    --mark-size: 1.55rem;
    display: grid;
    place-items: center;
    position: relative;
    flex: none;
    inline-size: var(--mark-size);
    block-size: var(--mark-size);
    border-radius: 50%;
    background: var(--hib-gold);
    color: var(--hib-petrol);
}

.shop-success-mark::before {
    content: '';
    inline-size: 23%;
    block-size: 42%;
    border: solid currentColor;
    border-width: 0 .125em .125em 0;
    transform: translateY(-10%) rotate(45deg);
}

.shop-purchase-heading {
    display: flex;
    align-items: center;
    gap: clamp(.75rem, 3vw, 1.35rem);
    margin-block-end: 1rem;
}

.shop-purchase-heading h1 { margin: 0; }

.shop-purchase-mark {
    --mark-size: clamp(2.1rem, 8vw, 3rem);
    font-size: 1.4rem;
}

.shop-purchase-mark i { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .cart-added-notice .shop-success-mark,
    .cart-item-added .shop-cart-count,
    .shop-purchase-mark.is-celebrating {
        animation: shop-feedback-pop .48s cubic-bezier(.2, .7, .3, 1) both;
    }

    .shop-purchase-mark.is-celebrating i {
        display: block;
        position: absolute;
        inset: calc(50% - .22rem) auto auto calc(50% - .12rem);
        inline-size: .24rem;
        block-size: .44rem;
        border-radius: .16rem;
        background: var(--spark-color);
        pointer-events: none;
        animation: shop-receipt-spark .72s .08s ease-out both;
    }

    .shop-purchase-mark i:nth-child(1) { --spark-color: #299b8d; --spark-x: -.95rem; --spark-y: -1.82rem; --spark-angle: -32deg; }
    .shop-purchase-mark i:nth-child(2) { --spark-color: var(--hib-gold); --spark-x: 1.08rem; --spark-y: -1.72rem; --spark-angle: 36deg; }
    .shop-purchase-mark i:nth-child(3) { --spark-color: #f4a261; --spark-x: -1.85rem; --spark-y: .48rem; --spark-angle: -74deg; }
    .shop-purchase-mark i:nth-child(4) { --spark-color: #e76f51; --spark-x: .61rem; --spark-y: 1.85rem; --spark-angle: -16deg; }
}

@keyframes shop-feedback-pop {
    0% { scale: .83; }
    58% { scale: 1.13; }
    100% { scale: 1; }
}

@keyframes shop-receipt-spark {
    0% { opacity: 0; transform: scale(.35); }
    27% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) rotate(var(--spark-angle)) scale(.6); }
}

.shop-card-title-link,
.shop-card-preview-link {
    min-inline-size: 0;
    color: inherit;
    text-decoration: none;
}

.shop-card-title-link {
    display: inline-flex;
    align-items: center;
    gap: var(--shop-product-heading-gap);
    border-radius: .5rem;
}

.shop-card-preview-link {
    display: block;
    border-radius: .95rem;
}

.shop-product-visual > .shop-card-preview-link { inline-size: min(100%, 25rem); }
.shop-card-preview-link > .shop-case-frame { width: 100%; }

@media (hover: hover) {
    .shop-card-title-link:hover h2 {
        text-decoration: underline;
        text-decoration-thickness: .055em;
        text-underline-offset: .14em;
    }

    .shop-card-preview-link:hover { box-shadow: 0 0 0 2px currentColor; }
}

:is(#shop-content, #product-content) :is(.shop-product, .sgp-hero) > figure {
    --shop-preview-ink: #26465320;
    background-image: var(--shop-preview-pattern, var(--shop-preview-contours));
    background-size: var(--shop-preview-pattern-size, auto);
}

:is(#shop-content, #product-content) :is(.shop-product, .sgp-hero) > .shop-product-visual { --shop-preview-ink: #2646531a; }
:is(#shop-content, #product-content) :is(.shop-product, .sgp-hero) > .vl-demo-panel { --shop-preview-ink: #f7f6f225; }

[data-shop-pattern="grid"] {
    --shop-preview-pattern:
        linear-gradient(to right, var(--shop-preview-ink) 1px, transparent 1px),
        linear-gradient(to bottom, var(--shop-preview-ink) 1px, transparent 1px);
    --shop-preview-pattern-size: clamp(1.25rem, 3.5vw, 2.35rem) clamp(1.25rem, 3.5vw, 2.35rem);
}

[data-shop-pattern="diagonal"] {
    --shop-preview-pattern: repeating-linear-gradient(
        132deg, transparent 0 21px, var(--shop-preview-ink) 22px 23px, transparent 24px 38px
    );
}

[data-shop-pattern="dots"] {
    --shop-preview-pattern: radial-gradient(circle, var(--shop-preview-ink) 1px, transparent 1.65px);
    --shop-preview-pattern-size: 1.15rem 1.15rem;
}

[data-shop-pattern="woven"] {
    --shop-preview-pattern:
        repeating-linear-gradient(60deg, transparent 0 21px, var(--shop-preview-ink) 22px 23px, transparent 24px 39px),
        repeating-linear-gradient(-60deg, transparent 0 21px, var(--shop-preview-ink) 22px 23px, transparent 24px 39px);
}

/* The feature link sits beside the primary purchase button on product cards. */
.shop-feature-symbols {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}

.shop-page .shop-features-button {
    display: inline-flex;
    align-items: center;
    gap: .58rem;
    min-height: 2.85rem;
    max-width: 100%;
    padding: .35rem .8rem .35rem .4rem;
    border: 1px solid var(--shop-border);
    border-radius: .72rem;
    background: var(--shop-surface);
    color: var(--shop-text);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.shop-page .shop-features-button:hover,
.shop-page .shop-features-button:focus-visible {
    border-color: var(--shop-focus);
    background: color-mix(in srgb, var(--hib-gold) 10%, var(--shop-surface));
}

.shop-features-icon {
    display: grid;
    flex: 0 0 1.95rem;
    width: 1.95rem;
    height: 1.95rem;
    place-items: center;
    border-radius: .44rem;
    background: color-mix(in srgb, var(--hib-gold) 23%, var(--shop-surface));
}

.shop-features-icon svg {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.shop-features-sparkles {
    fill: #8a5514;
    transform-box: fill-box;
    transform-origin: center;
}

[data-theme='dark'] .shop-features-sparkles {
    fill: var(--hib-gold);
}

@media (prefers-reduced-motion: no-preference) {
    .shop-page .shop-features-button {
        transition: background-color 160ms ease, border-color 160ms ease;
    }

    .shop-features-sparkles {
        transition: transform 240ms cubic-bezier(.2, .7, .2, 1);
    }

    .shop-features-button:is(:hover, :focus-visible) .shop-features-sparkles {
        transform: scale(1.15) rotate(7deg);
    }
}
