:root {
    --shop-ink: #142d2b;
    --shop-muted: #536762;
    --shop-paper: #faf8f1;
    --shop-line: #dcded3;
    --shop-accent: #dff284;
}

body:has(.shop) {
    min-height: 100vh;
    background: var(--shop-paper);
    color: var(--shop-ink);
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

.shop, .shop-header { color: var(--shop-ink); }
.shop a, .shop-header a { color: inherit; text-decoration: none; }
.shop :is(a, button, input, select):focus-visible,
.shop-header a:focus-visible { outline: 3px solid #4e7856; outline-offset: 3px; }
.shop-header {
    background: #142d2b;
    color: #f6f5e7;
}
.shop-header-inner {
    max-width: 76rem;
    min-height: 4.6rem;
    margin: auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.shop-brand { font-weight: 850; letter-spacing: -.07em; font-size: 1.55rem; }
.shop-brand span { color: var(--shop-accent); }
.shop-header nav a { font-size: .92rem; font-weight: 650; }
.shop-header nav a:hover { color: var(--shop-accent); }

main.shop {
    width: min(100%, 80rem);
    max-width: none;
    padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.shop h1, .shop h2, .shop h3, .shop p { margin: 0; }
.shop h1, .shop h2, .shop h3 { letter-spacing: -.055em; }
.shop h1:focus { outline: none; }
.shop .shop-kicker {
    color: #4f685c;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.shop-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    box-sizing: border-box;
    min-height: 28rem;
    margin-top: 2rem;
    padding: clamp(1.6rem, 5vw, 4.25rem);
    border-radius: 1.4rem;
    background: #e6edd9;
}
.shop-hero-copy { z-index: 1; }
.shop .shop-hero h1 {
    font-size: clamp(2.7rem, 6.2vw, 4.65rem);
    line-height: .97;
    margin: .85rem 0 1rem;
    font-weight: 820;
    letter-spacing: -.075em;
    text-wrap: balance;
}
.shop-hero-copy > p:nth-of-type(2) { max-width: 30rem; color: #415954; font-size: 1.04rem; }
.shop .shop-primary {
    display: inline-flex;
    align-items: center;
    gap: 1.15rem;
    background: #183631;
    color: #fff;
    padding: .85rem 1.15rem;
    border-radius: .55rem;
    font-weight: 700;
    margin-top: 1.5rem;
}
.shop .shop-primary:hover { background: #244c43; }
.shop-primary span { color: var(--shop-accent); }
.shop-hero-art { position: relative; height: 100%; min-height: 16rem; }
.shop-hero-art::before {
    content: "";
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    top: 50%; left: 51%;
    transform: translate(-50%, -50%);
    border: 1px solid #bacdb4;
    border-radius: 50%;
    box-shadow: 0 0 0 1.6rem #dae6d2, 0 0 0 1.65rem #cbdcc3;
}
.shop-hero-art .shop-image {
    position: absolute;
    top: 50%; left: 51%;
    width: clamp(6.5rem, 15vw, 12.1rem);
    border-radius: .68rem;
    box-shadow: 0 1.35rem 2.25rem #17392a40;
    transform: translate(-50%, -51%) rotate(-5deg);
    z-index: 2;
}
.shop-hero-art .shop-image:nth-child(2) { transform: translate(-105%, -48%) rotate(-19deg); z-index: 1; }
.shop-hero-art .shop-image:nth-child(3) { transform: translate(4%, -45%) rotate(16deg); z-index: 1; }

.shop-section { margin-top: 2.8rem; }
.shop-section-heading, .shop-results {
    display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.shop-section-heading h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.shop-section-heading > span, .shop-results > p { color: var(--shop-muted); font-size: .92rem; }
.shop-set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.shop .shop-set-tile {
    min-height: 12.1rem; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
    padding: 1.35rem; border: 1px solid #cbd4c8; border-radius: .9rem; background: #f0e7d1;
    transition: transform .18s ease, box-shadow .18s ease;
}
.shop .shop-set-tile:nth-child(3n + 2) { background: #dce9e5; }
.shop .shop-set-tile:nth-child(3n) { background: #e9e5ef; }
.shop .shop-set-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 18px #142d2b13; }
.shop-set-count { font-size: .82rem; font-weight: 720; color: #405952; }
.shop-set-tile h3 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); line-height: 1; }
.shop-set-link { font-weight: 750; font-size: .9rem; }
.shop-set-link span { margin-left: .3rem; }

.shop-crumb { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; padding: 1.4rem 0; font-size: .88rem; color: var(--shop-muted); }
.shop-crumb a:hover, .shop-back:hover { text-decoration: underline; }
.shop-catalog-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.shop .shop-catalog-heading h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); margin-top: .45rem; line-height: 1; }
.shop-switch { display: inline-flex; border: 1px solid #c6d2c5; border-radius: .75rem; padding: .25rem; gap: .2rem; margin: 0; background: #e9eee3; }
.shop-switch legend { font-size: .77rem; color: var(--shop-muted); padding: 0 .3rem; font-weight: 750; }
.shop-switch button { border-radius: .5rem; color: var(--shop-ink); background: transparent; font-weight: 700; min-height: 2.75rem; }
.shop-switch button[aria-pressed="true"] { background: #173630; color: white; }
.shop-switch button:hover:not([aria-pressed="true"]) { background: #dce5d7; }
.shop-filters {
    min-inline-size: 0;
    display: grid;
    grid-template-columns: minmax(13rem, 2fr) 1fr 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1rem; row-gap: .25rem; align-items: end;
    margin: 1.5rem 0 1rem; padding: 1rem;
    border: 1px solid var(--shop-line); background: #f2f0e7; border-radius: .8rem;
}
.shop-filters label { grid-row: 1; }
.shop-filters :is(input, select, button) { grid-row: 2; }
.shop-filters label, .shop-detail-info label { font-size: .82rem; font-weight: 750; }
.shop :is(input, select) {
    width: 100%; min-width: 0; min-height: 2.65rem; box-sizing: border-box;
    font: inherit; color: inherit; background: #fffefa; border: 1px solid #bcc8bd;
    border-radius: .45rem; padding: .5rem .65rem;
}
.shop button.shop-text-button, .shop-pagination button { color: #235443; background: transparent; font-weight: 720; }
.shop button.shop-text-button:hover, .shop-pagination button:hover:not(:disabled) { background: #e4ebe0; }
.shop-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shop-results { margin: .75rem 0; }
.shop-pagination { display: flex; align-items: center; gap: .25rem; font-size: .84rem; }
.shop-pagination button:disabled { cursor: default; opacity: .5; }
.shop .shop-empty { padding: 1.5rem; border: 1px dashed #bccabd; background: #f1f2e9; border-radius: .75rem; color: #415954; }

.shop-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .95rem; }
.shop-card { min-width: 0; overflow: hidden; background: #fffdf7; border: 1px solid var(--shop-line); border-radius: .8rem; display: flex; flex-direction: column; }
.shop-card-picture { display: grid; place-items: center; padding: .95rem; background: #eef1e7; }
.shop-card-picture .shop-image { width: min(100%, 9rem); transition: transform .16s ease; }
.shop-card-picture:hover .shop-image { transform: translateY(-3px); }
.shop-image { aspect-ratio: 245 / 342; background: #dfe7da; display: grid; place-items: center; overflow: hidden; border-radius: .5rem; }
.shop-image > * { grid-area: 1 / 1; }
.shop-image img { width: 100%; height: 100%; object-fit: contain; }
.shop-image:has(img:not([hidden])) .shop-image-fallback { visibility: hidden; }
.shop-image-fallback { padding: .5rem; text-align: center; color: #4d6559; font-size: .78rem; }
.shop-card-content { display: flex; flex: 1; flex-direction: column; gap: .35rem; padding: .8rem; }
.shop-card-meta { color: var(--shop-muted); font-size: .76rem; }
.shop .shop-card h2 { font-size: 1.08rem; letter-spacing: -.035em; line-height: 1.15; margin-bottom: .2rem; }
.shop-card h2 a:hover { text-decoration: underline; }
.shop .shop-variant-select { font-size: .79rem; min-height: 2.2rem; padding: .3rem .35rem; }
.shop-single-variant { font-size: .78rem; color: #445d54; }
.shop-card-bottom { display: flex; flex-wrap: wrap; gap: .35rem .45rem; align-items: center; margin-top: auto; padding-top: .45rem; }
.shop-price { font-weight: 820; font-variant-numeric: tabular-nums; font-size: .96rem; }
.shop-badge { font-size: .72rem; font-weight: 750; border-radius: 1rem; background: #eeeae0; color: #5d5140; padding: .28rem .55rem; }
.shop-badge.available { background: #e5f3d8; color: #315d37; }

.shop-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.shop-detail-art { background: #e6edd9; display: grid; place-items: center; border-radius: 1rem; padding: clamp(1.2rem, 5vw, 3rem); }
.shop-detail-art .shop-image { width: min(100%, 19rem); box-shadow: 0 12px 25px #142d2b24; }
.shop .shop-detail h1 { font-size: clamp(2.15rem, 5vw, 4.35rem); margin: .4rem 0; line-height: 1; }
.shop-detail-meta { color: var(--shop-muted); }
.shop-detail-info label { display: block; margin: 1.4rem 0 .35rem; }
.shop-detail-info select { max-width: 27rem; }
.shop-detail-stock { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .65rem; margin-top: 1rem; }
.shop-detail-stock .shop-price { width: 100%; font-size: 1.6rem; }
.shop-quantity { font-size: .88rem; color: var(--shop-muted); }
.shop .shop-back { display: inline-block; margin-top: 1.25rem; font-weight: 720; color: #235443; }

@media (max-width: 1050px) { .shop-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .shop-hero { grid-template-columns: 1fr; margin-top: 1rem; min-height: auto; }
    .shop-hero-art { margin-top: .8rem; min-height: 13rem; }
    .shop-hero-art::before { width: min(70%, 20rem); }
    .shop-hero-art .shop-image { width: clamp(5.8rem, 21vw, 8.5rem); }
    .shop-set-grid { grid-template-columns: 1fr; gap: .65rem; }
    .shop .shop-set-tile { min-height: 8rem; padding: 1rem; }
    .shop-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
    .shop-filters { grid-template-columns: minmax(7rem, .7fr) minmax(0, 1.3fr); grid-template-rows: auto; }
    .shop-filters > * { grid-row: auto !important; }
    .shop-filters label { align-self: center; }
    .shop-filters button { grid-column: 2; }
    .shop-detail-grid { grid-template-columns: 1fr; }
    .shop-detail-art .shop-image { width: min(100%, 13rem); }
}
@media (max-width: 490px) {
    .shop-header-inner { min-height: 3.7rem; }
    .shop-brand { font-size: 1.33rem; }
    .shop-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-card-picture { padding: .7rem; }
    .shop-card-content { padding: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .shop .shop-set-tile, .shop-card-picture .shop-image { transition: none; }
}

.shop-header nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 1.4rem); }
.shop-header .shop-cart-link { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.shop-cart-link strong { min-width: 1.35rem; padding: .15rem .3rem; text-align: center; border-radius: 1rem; background: var(--shop-accent); color: var(--shop-ink); }
.cart-controls { margin-top: .55rem; }
.cart-controls button { padding: .45rem .65rem; min-height: 2.35rem; }
.cart-controls small, .cart-warning { display: block; margin-top: .3rem; color: #842f25; }
.cart-stepper { display: inline-flex; align-items: center; border: 1px solid #bcc8bd; border-radius: .5rem; overflow: hidden; }
.cart-stepper button { border-radius: 0; min-width: 2.35rem; }
.cart-stepper output { min-width: 2.1rem; text-align: center; font-weight: 700; }
.shop.cart-page h1 { font-size: clamp(2.1rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 21rem); gap: 1rem; align-items: start; }
.cart-lines { display: grid; gap: .7rem; }
.cart-line, .cart-summary { padding: 1rem; border: 1px solid var(--shop-line); border-radius: .8rem; background: #fffdf7; }
.cart-line { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: start; gap: .75rem; }
.cart-line h2 { font-size: 1.15rem; }
.cart-line p, .cart-summary p { font-size: .9rem; }
.cart-line-actions { display: grid; justify-items: start; gap: .3rem; }
.cart-unavailable { grid-column: span 2; }
.cart-summary h2 { font-size: 1.15rem; }
.cart-summary .shop-price { font-size: 1.6rem; margin: .3rem 0; }
.shop .cart-text { background: transparent; color: #235443; padding: .35rem 0; text-decoration: underline; }
@media (max-width: 720px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 3.5rem minmax(0, 1fr); }
    .cart-line-actions { grid-column: 2; }
}

.shop.checkout-page h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .7fr); gap: 1rem; align-items: start; }
.checkout-fields { display: grid; gap: .65rem; min-width: 0; padding: 1rem; border: 1px solid #bcc8bd; border-radius: .65rem; }
.checkout-fields legend, .checkout-fields label { font-weight: 650; }
.checkout-fields input:not([type="checkbox"]), .checkout-fields select { display: block; width: 100%; box-sizing: border-box; }
.checkout-line { padding: .55rem 0; border-bottom: 1px solid #dcded3; }
.shop.checkout-page [role="alert"] { color: #842f25; margin-bottom: .8rem; }
@media (max-width: 720px) { .checkout-layout { grid-template-columns: 1fr; } }
