.cw-shop {
    --shop-gutter: clamp(1.1rem, 5vw, 5.5rem);
    --shop-paper: #f7f4f1;
    --shop-ink: #242122;
    --shop-accent: #83194e;
    --shop-line: #dfd8d5;
    max-width: 100rem;
    color: var(--shop-ink);
}
body:has(.cw-shop) .entry-content[data-ast-blocks-layout] > .cw-shop { max-width: 100rem; }
.cw-shop [hidden] { display: none !important; }
.cw-shop-pad { padding-inline: var(--shop-gutter); }
.cw-shop :is(section, .cw-shop-anchor, .cw-shop-product) { scroll-margin-top: 1.5rem; }
.cw-shop a:focus-visible, .cw-shop button:focus-visible, .cw-shop input:focus-visible,
.cw-shop [tabindex="0"]:focus-visible { outline: 2px solid var(--shop-accent); outline-offset: 4px; }
.cw-shop .cw-shop-kicker {
    margin: 0 0 .8rem;
    color: var(--shop-accent);
    font-size: .875rem;
    font-weight: 750;
    letter-spacing: .095em;
    text-transform: uppercase;
}
.cw-shop .cw-shop-hero { position: relative; margin: 0; background: #fff; }
.cw-shop .cw-shop-slide { display: grid; align-items: center; }
.cw-shop-hero-copy { min-width: 0; padding: clamp(2rem, 4vw, 4rem) var(--shop-gutter) 1rem; }
.cw-shop-hero-copy h2, .cw-shop .cw-shop-hero-title {
    max-width: 12ch;
    font-size: clamp(2.7rem, 5.7vw, 5.75rem);
    line-height: .99;
    letter-spacing: -.065em;
}
.cw-shop .cw-shop-hero-title { margin: 0; color: var(--shop-ink); font-weight: 650; }
.cw-shop-hero-copy > p { max-width: 39ch; }
.entry-content .cw-shop a.cw-shop-action {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 2.9rem;
    margin-top: 1.35rem;
    padding: .55rem 1.1rem;
    border-radius: 2rem;
    background: var(--shop-accent);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
}
.entry-content .cw-shop a.cw-shop-action:hover { background: #5d1037; }
.cw-shop-hero-image { display: grid; place-items: center; min-width: 0; min-height: 14rem; padding: .5rem var(--shop-gutter); }
.cw-shop-hero-image img { width: 100%; height: clamp(14rem, 34vw, 31rem); object-fit: contain; }
.cw-shop .cw-shop-controls { display: flex; justify-content: center; align-items: center; gap: .45rem; padding: .45rem 1rem 1rem; }
.cw-shop button.cw-icon, .cw-shop button.cw-shop-motion {
    display: inline-grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: 0;
    padding: .25rem .65rem;
    border: 1px solid transparent;
    border-radius: 4rem;
    background: transparent;
    box-shadow: none;
    color: var(--shop-ink);
    line-height: 1;
}
.cw-shop button.cw-icon { font-size: 1.65rem; }
.cw-shop button.cw-shop-motion { font-size: .9rem; }
.cw-shop button.cw-icon:hover, .cw-shop button.cw-shop-motion:hover { border-color: var(--shop-accent); }
.cw-shop-dots { display: flex; align-items: center; }
.cw-shop .cw-shop-dots button {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.cw-shop-dots button::after { width: .5rem; height: .5rem; border-radius: 50%; background: #988d93; content: ""; }
.cw-shop-dots button[aria-pressed="true"]::after { width: .85rem; border-radius: .5rem; background: var(--shop-accent); }

.cw-shop-featured, .cw-shop-catalogue { margin-block: 0; padding-block: clamp(1.75rem, 4vw, 3.75rem); }
.cw-shop-catalogue { background: #fff; }
.cw-shop-featured { border-top: 1px solid var(--shop-line); }
.cw-shop-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.cw-shop-section-head h2, .cw-shop-spotlight h2 { font-size: clamp(1.85rem, 3.8vw, 3.6rem); }
.cw-shop-paging { display: flex; flex-shrink: 0; gap: .4rem; }
.cw-shop ul.cw-shop-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 69%;
    gap: clamp(.65rem, 2vw, 1.25rem);
    overflow-x: auto;
    margin: 0;
    padding: .3rem .3rem 1rem;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-color: #a18d99 #f2ecef;
}
.cw-shop-rail li { min-width: 0; scroll-snap-align: start; }
.entry-content .cw-shop :is(.cw-shop-rail a, a.cw-shop-product-link) { display: block; color: var(--shop-ink); text-decoration: none; }
.cw-shop-rail a:hover strong, .cw-shop-product-link:hover h4 { color: var(--shop-accent); }
.cw-shop-rail-image, .cw-shop-product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: .65rem;
    background: #fff;
}
.cw-shop-rail-image img, .cw-shop-product-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: .45rem;
    object-fit: contain;
}
.cw-shop-rail strong { display: block; font-size: 1rem; }
.cw-shop-categories {
    display: flex;
    gap: clamp(.75rem, 2.6vw, 2rem);
    overflow-x: auto;
    margin-bottom: 1rem;
    padding: .25rem .3rem;
    border-bottom: 1px solid var(--shop-line);
    scrollbar-width: thin;
}
.entry-content .cw-shop .cw-shop-categories a {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 2.75rem;
    border-bottom: 2px solid transparent;
    color: var(--shop-ink);
    font-size: .95rem;
    font-weight: 650;
    text-decoration: none;
}
.entry-content .cw-shop .cw-shop-categories a[aria-current="true"] {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
}
.cw-shop-tools {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.8rem;
}
.cw-shop-tools label { width: min(100%, 25rem); font-weight: 650; }
.cw-shop-tools input[type="search"] { width: 100%; margin-top: .25rem; border-color: #a39a9e; background: #fff; color: var(--shop-ink); }
.cw-shop-tools p { margin: 0; }
.cw-shop-group:not([hidden]) ~ .cw-shop-group:not([hidden]) { margin-top: clamp(2.2rem, 4.5vw, 4rem); }
.cw-shop-group h3 { margin-bottom: 1.05rem; font-size: clamp(1.45rem, 2.25vw, 2rem); }
.cw-shop ul.cw-shop-products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem) clamp(.75rem, 2.1vw, 1.85rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.cw-shop-product { min-width: 0; }
.cw-shop-product-image {
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    background: var(--shop-paper);
}
.cw-shop-product-image img { mix-blend-mode: multiply; }
.cw-shop-config { display: block; color: #695b63; font-size: .875rem; font-weight: 650; }
.cw-shop-product-link h4 { margin: .55rem 0 .35rem; color: inherit; font-size: clamp(1.04rem, 1.35vw, 1.22rem); font-weight: 650; line-height: 1.28; }
.cw-shop-details { display: inline-block; margin-top: .45rem; color: var(--shop-accent); font-size: .9rem; text-underline-offset: .2em; }
.cw-shop-product-link:hover .cw-shop-details { text-decoration: underline; }
.cw-shop-anchor { display: block; }
.cw-shop-missing { display: grid; min-height: 9rem; place-items: center; padding: .8rem; color: #655a60; text-align: center; }

.cw-shop-spotlight {
    display: grid;
    align-items: center;
    margin: 0;
    background: var(--shop-paper);
}
.cw-shop-spotlight > div:last-child { padding: clamp(1.5rem, 4vw, 4rem) var(--shop-gutter); }
.cw-shop-spotlight-image { display: grid; place-items: center; height: 100%; }
.cw-shop-spotlight-image img { display: block; width: min(100%, 32rem); height: auto; mix-blend-mode: multiply; }
.cw-shop-compatibility { display: grid; align-items: center; gap: 1rem; margin-block: 0; padding-block: 2rem; }
.cw-shop-compatibility a { display: inline-block; margin: .6rem .75rem 0 0; color: var(--shop-accent); text-decoration: underline; }

.cw-shop-dialog {
    position: fixed;
    inset: 0;
    width: min(58rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: .65rem;
    background: white;
    color: var(--shop-ink);
}
.cw-shop-dialog::backdrop { background: #241c22ac; }
.cw-shop .cw-shop-close { position: sticky; z-index: 1; top: .65rem; float: right; margin: .65rem .65rem 0 0; }
.cw-shop-dialog-content { clear: both; display: grid; }
.cw-shop-detail-image { display: grid; place-items: center; min-width: 0; padding: 1rem; background: #faf7f4; }
.cw-shop-detail-image img { max-height: 28rem; object-fit: contain; mix-blend-mode: multiply; }
.cw-shop-detail-copy { padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.cw-shop-detail-copy h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.cw-shop-detail-copy dl { margin: 1rem 0 0; }
.cw-shop-detail-copy dt { font-weight: 650; }
.cw-shop-detail-copy dd { margin: 0 0 .6rem; }

@media (min-width: 32rem) {
    .cw-shop ul.cw-shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 42rem) {
    .cw-shop ul.cw-shop-rail { grid-auto-columns: 40%; }
}
@media (min-width: 44rem) {
    .cw-shop-dialog-content { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 58rem) {
    .cw-shop ul.cw-shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 54rem) {
    .cw-shop-slide { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); min-height: clamp(26rem, 35vw, 36rem); }
    .cw-shop-hero-copy { padding-right: 0; padding-bottom: clamp(2rem, 5vw, 5rem); }
    .cw-shop-hero-image { padding-left: 1rem; }
    .cw-shop-spotlight, .cw-shop-compatibility { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 68rem) {
    .cw-shop ul.cw-shop-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cw-shop :is(#therapy-kits, #hydrogels) ul.cw-shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cw-shop #light-patches ul.cw-shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cw-shop ul.cw-shop-rail { grid-auto-columns: 23.5%; }
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.cw-shop) { scroll-behavior: smooth; }
    .cw-shop :is(.cw-shop-rail strong, .cw-shop-product-link h4) { transition: color 160ms ease; }
}
