* { box-sizing: border-box; }
body {
    --paper: #eeeff8; --ink: #191950; --panel: #e1e5ff; --accent: #243cc9;
    --action: #243cc9; --action-text: #fff; --hero: #243cc9; --hero-ink: #fff;
    --font: 'Trebuchet MS', 'Arial', sans-serif; --display: var(--font);
    --photo: 1; --gap: clamp(1rem, 3vw, 2.5rem); --edge: clamp(1rem, 4vw, 4rem);
    margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--font);
    min-height: 100vh; display: flex; flex-direction: column;
}
[data-theme="gallery"] {
    --paper: #fff; --ink: #181818; --panel: #f0f0ee; --accent: #242424; --action: #242424;
    --hero: #fff; --hero-ink: #181818; --font: Arial, sans-serif; --display: Georgia, serif;
    --photo: 4/5; --gap: clamp(1.2rem, 4vw, 3.8rem);
}
[data-theme="botanica"] {
    --paper: #f2f4e8; --ink: #1a382b; --panel: #e0e8d8; --accent: #37604a; --action: #234d38;
    --hero: #dde7d6; --hero-ink: #183b29; --display: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    --photo: 1;
}
[data-theme="nocturne"] {
    --paper: #181521; --ink: #f9f1ff; --panel: #292036; --accent: #d6a8fb;
    --action: #e0b9ff; --action-text: #200b33; --hero: #38274c; --hero-ink: #fff;
    --font: Arial, sans-serif; --display: 'Palatino Linotype', Georgia, serif; --photo: 5/4;
}
[data-theme="pop"] {
    --paper: #fff6da; --ink: #25111a; --panel: #ffe392; --accent: #b31b57;
    --action: #8f1545; --hero: #ffabcb; --hero-ink: #25111a;
    --font: 'Verdana', sans-serif; --display: 'Arial Black', Arial, sans-serif; --photo: 1;
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
h1,h2 { font-family: var(--display); line-height: 1; }
h1 { font-size: clamp(2rem, 5vw, 4.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.7vw, 3.2rem); letter-spacing: -.035em; }
.frame { width: min(100%, 92rem); margin-inline: auto; padding-inline: var(--edge); }
#content { flex: 1; }
.skip { position: fixed; inset: .5rem auto auto 1rem; z-index: 2; padding: .75rem; background: var(--paper); translate: 0 -200%; }
.skip:focus { translate: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { padding-block: .65rem; border-top: 4px solid var(--brand-accent, var(--accent)); }
.masthead-inner, .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem 1rem; }
.masthead nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.35rem, 2vw, 1.6rem); }
.masthead a { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.masthead nav a { padding: .4rem .25rem; }
.masthead nav a:hover, .masthead nav [aria-current] { text-decoration: underline; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 3.2vw, 1.75rem); line-height: 1.05; letter-spacing: -.05em; overflow-wrap: anywhere; }
.wordmark img { width: auto; max-width: min(40vw, 140px); height: 36px; object-fit: contain; }
.bag-count { background: var(--panel); padding: .05rem .45rem; border-radius: 2rem; font-variant-numeric: tabular-nums; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--hero); color: var(--hero-ink); }
.hero-copy { align-self: center; padding: clamp(1.35rem, 4.5vw, 5rem); display: grid; gap: 1.35rem; justify-items: start; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(2.7rem, 6.3vw, 6.45rem); letter-spacing: -.075em; line-height: .96; }
.hero-copy p { max-width: 33rem; }
.hero-copy .action { background: var(--hero-ink); color: var(--hero); }
.hero-piece { position: relative; background: var(--panel); text-decoration: none; display: grid; min-width: 0; align-content: end; overflow: hidden; }
.hero-piece img { width: 100%; height: 100%; max-height: 36rem; object-fit: contain; aspect-ratio: 1; }
.hero-piece > span { position: absolute; inset: auto 0 0; padding: .7rem 1rem; background: var(--paper); color: var(--ink); display:flex; justify-content:space-between; gap: 1rem; }
.hero-piece:hover > span { text-decoration: underline; }
[data-theme="gallery"] .hero { grid-template-columns: 3fr 2fr; margin-inline: clamp(0rem, 5vw, 4rem); }
[data-theme="gallery"] .hero-copy { padding-inline: 0 2rem; }
[data-theme="gallery"] .hero h1 { font-weight: 400; letter-spacing: -.055em; }
[data-theme="gallery"] .hero-piece img { aspect-ratio: 4/5; object-fit: cover; }
[data-theme="botanica"] .hero { grid-template-columns: 5fr 6fr; border-radius: 8rem 0 0 0; overflow: hidden; }
[data-theme="botanica"] .hero-copy { grid-column: 2; grid-row: 1; }
[data-theme="botanica"] .hero-piece { grid-column: 1; grid-row: 1; }
[data-theme="botanica"] .hero h1 { font-style: italic; font-weight: 400; }
[data-theme="nocturne"] .hero { grid-template-columns: 1fr 1.15fr; padding: clamp(.75rem, 2.6vw, 2.6rem); }
[data-theme="nocturne"] .hero h1 { font-weight: 400; letter-spacing: -.038em; }
[data-theme="nocturne"] .hero-piece { border-radius: 48% 48% .3rem .3rem; }
[data-theme="pop"] .hero { grid-template-columns: 1.3fr 1fr; border-radius: 1.8rem; overflow: hidden; }
[data-theme="pop"] .hero h1 { font-weight: 900; letter-spacing: -.08em; }
[data-theme="pop"] .hero-piece { margin: clamp(.75rem, 2vw, 1.6rem); border-radius: 1.1rem; }
.catalogue, .page-section { padding-block: clamp(2rem, 6vw, 5.4rem); }
.catalogue-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.catalogue-intro h1, .catalogue-intro h2 { font-size: clamp(2.25rem, 5.4vw, 5rem); }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; margin-bottom: max(1.25rem,var(--gap)); }
.filters label:first-child { flex: 1 1 14rem; }
label { display: grid; align-content: start; gap: .25rem; font-weight: bold; }
input, select, textarea, button, .action { color: var(--ink); font: inherit; border: 1px solid currentColor; border-radius: .25rem; }
input, select, textarea { min-width: 0; width: 100%; padding: .55rem .7rem; min-height: 44px; background: var(--paper); }
button, .action { cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .5rem .9rem; font-weight: 700; background: var(--paper); }
.action { border-color: transparent; padding-inline: 1.1rem; background: var(--action); color: var(--action-text); }
.action:hover, button:hover { text-decoration: underline; }
[data-theme="pop"] .action, [data-theme="pop"] button { border-radius: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--gap); }
.product-card { min-width: 0; }
.product-card a { display: block; text-decoration: none; }
.product-card a:hover h3 { text-decoration: underline; }
.product-image { aspect-ratio: var(--photo); background: var(--panel); overflow: hidden; }
.product-image img, .detail-media img { width: 100%; height: 100%; object-fit: contain; }
.card-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; padding-block: .6rem; }
.card-caption h3 { font-size: 1.02rem; overflow-wrap: anywhere; }
.card-caption span { font-variant-numeric: tabular-nums; }
[data-theme="gallery"] .card-caption { display: grid; }
[data-theme="botanica"] .product-image { border-radius: 45% 45% .2rem .2rem; }
[data-theme="nocturne"] .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-theme="pop"] .product-image { border-radius: 1.4rem; }
[data-theme="pop"] .product-card:nth-child(3n + 2) .product-image { background: #ffb9d1; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-block: .75rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: var(--gap); margin-bottom: 4rem; }
.detail-media { aspect-ratio: 1; background: var(--panel); }
.detail-copy { padding: clamp(.25rem, 2vw, 2.5rem) 0; display: grid; gap: 1.3rem; }
.detail-price { font-size: 1.35rem; font-weight: bold; }
.specs { display: grid; gap: .55rem; margin: 0; }
.specs div { display: grid; grid-template-columns: 7rem auto; gap: 1rem; }
.specs dt { font-weight: bold; }.specs dd { margin: 0; }
.add-line { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.add-line label, .line-actions input { width: 6rem; }
.fine { font-size: .92rem; }
.empty { padding-block: 1.25rem; }
.notice { padding: .8rem 1rem; margin-top: 1rem; background: var(--panel); border-inline-start: 3px solid var(--brand-accent, var(--accent)); }
.notice ul { margin: 0; padding-left: 1.2rem; }
.cart-lines { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .75rem; }
.cart-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem; background: var(--panel); }
.line-product, .line-actions, .line-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.line-product img { width: 70px; height: 70px; object-fit: contain; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; margin-block: 1.2rem; }
.site-footer { padding-block: 2rem; background: var(--panel); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.owner-login { max-width: 36rem; }
.owner-login p, .owner-login .form-grid { margin-top: 1rem; }
.owner-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.owner-block { margin-top: 2rem; padding: clamp(1rem, 3vw, 2rem); background: var(--panel); }
.owner-block h2 { margin-bottom: .75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin-bottom: 1rem; }
.form-wide { grid-column: 1/-1; }
.owner-login .form-grid { grid-template-columns: 1fr; }
.owner-listing { display: grid; grid-template-columns: 2fr 1fr .7fr 1fr auto; align-items: end; gap: .6rem; padding: 1rem 0; border-top: 1px solid; }
.owner-listing:first-of-type { margin-top: 1.2rem; }
@media (max-width: 46rem) {
    .hero, [data-theme] .hero { grid-template-columns: minmax(0,1fr); margin-inline: 0; }
    [data-theme="gallery"] .hero-copy { padding-inline: 1rem; }
    [data-theme="botanica"] .hero { border-radius: 2.5rem 0 0 0; }
    [data-theme="botanica"] .hero-copy, [data-theme="botanica"] .hero-piece { grid-column: auto; grid-row: auto; }
    [data-theme] .hero-piece img { aspect-ratio: 5/4; object-fit: contain; }
    .product-grid, [data-theme="nocturne"] .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-detail { grid-template-columns: minmax(0,1fr); }
    .owner-listing { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .owner-listing > div { grid-column: 1/-1; }
}
@media (max-width: 27rem) {
    .form-grid { grid-template-columns: minmax(0,1fr); }
    .card-caption { display: grid; }
    .line-actions input { width: 4.5rem; }
}
