:root {
  color-scheme: light;
  --ink: #232032;
  --muted: #655e71;
  --paper: #fff9fc;
  --card: #fff;
  --border: #e7dce8;
  --pink: #ba075f;
  --pink-dark: #920349;
  --blue: #075c86;
  --blue-soft: #eaf7ff;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
h1, h2, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: 1.2rem; line-height: 1.25; }
small, .helptext { color: var(--muted); }
.wrap { width: min(1130px, calc(100% - 2rem)); margin-inline: auto; }
.top { background: var(--card); border-bottom: 1px solid var(--border); }
.top-inner, .heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; }
.top-inner { padding-block: .65rem; }
.top nav, .actions, .toolbar, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.top nav form { margin: 0; }
.brand { display: grid; color: var(--blue); text-decoration: none; line-height: 1; }
.brand strong { font-family: Georgia, serif; font-size: 1.9rem; font-style: italic; }
.brand-tag, .eyebrow { font-weight: 750; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
main { padding-block: 1.8rem 3rem; min-height: 70vh; }
footer { border-top: 1px solid var(--border); padding-block: 1rem 1.5rem; }
.hero { background: linear-gradient(110deg, #ffe1ef, #fff 55%, #d5eeff); padding: clamp(1.4rem, 6vw, 3.7rem); border-radius: 1.25rem; }
.hero p:last-child { margin-bottom: 0; color: var(--muted); }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-block; border: 1px solid transparent; border-radius: .65rem; padding: .52rem .9rem;
  color: white; background: var(--pink); text-decoration: none; cursor: pointer; font-weight: 650;
}
button:hover, .button:hover { background: var(--pink-dark); }
button:disabled { opacity: .56; cursor: default; }
.secondary { background: var(--blue-soft); color: var(--blue); }
.secondary:hover { background: #d5eeff; }
.link, .link:hover { background: none; color: var(--blue); text-decoration: underline; padding: 0; }
:focus-visible { outline: 3px solid #0078a4; outline-offset: 3px; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; min-width: 0; border: 1px solid #b6aaba; border-radius: .5rem;
  background: white; color: var(--ink); padding: .5rem .65rem;
}
input[type=checkbox] { accent-color: var(--pink); }
label { font-weight: 650; }
.toolbar { align-items: end; margin-block: 1rem; }
.toolbar label { flex: 1 1 11rem; }
.card { border: 1px solid var(--border); border-radius: .9rem; background: var(--card); }
.section, .form-card { padding: 1rem; margin-block: 1rem; }
.form-card { max-width: 640px; }
.form-card > div { margin-bottom: .8rem; }
.form-card > div:last-child { margin-bottom: 0; }
.helptext { font-size: .9rem; }
.notice, .errorlist { border-radius: .6rem; padding: .6rem .9rem; }
.notice { color: var(--blue); background: var(--blue-soft); }
.errorlist { color: #8b0740; background: #ffe3ee; list-style-position: inside; }
.products, .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .8rem; }
.product { overflow: hidden; }
.product a { display: block; color: inherit; text-decoration: none; }
.product a:hover h2 { text-decoration: underline; }
.product-photo, .detail-photo { display: block; width: 100%; object-fit: contain; background: #fff; }
.product-photo { aspect-ratio: 1; }
.product-caption, .variant { padding: .85rem; }
.product-caption p { margin-bottom: 0; }
.price { color: var(--pink-dark); font-weight: 750; }
.badge { display: inline-block; width: fit-content; color: var(--blue); background: var(--blue-soft); padding: .12rem .5rem; border-radius: 1rem; font-size: .85rem; }
.product-detail, .pos-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.product-detail > :only-child { grid-column: 1 / -1; }
.detail-photo { border: 1px solid var(--border); border-radius: 1rem; }
.variant-list { display: grid; gap: .5rem; }
.variant { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.variant small { flex-basis: 100%; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { border-bottom: 1px solid var(--border); padding: .62rem .75rem; }
tr:last-child td { border-bottom: 0; }
td small { display: block; }
.category { background: var(--paper); border-radius: .5rem; padding: .65rem; }
.category strong { display: block; }
.category a + a { margin-inline-start: .5rem; }
.pagination { margin-top: 1rem; }
.result { display: block; width: 100%; text-align: left; margin: .5rem 0; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.4rem auto; align-items: center; gap: .4rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.cart-row button { padding-inline: .45rem; }
.total { display: flex; justify-content: space-between; margin-top: 1rem; }
.receipt { max-width: 21rem; padding: 1rem; border: 1px solid var(--border); background: white; margin-block: 1rem; }
.receipt h1 { font-size: 1.45rem; }
.receipt ul { margin: 0; padding: 0; list-style: none; }
.receipt li { border-bottom: 1px dashed #777; padding: .3em 0; }
.receipt li span { float: right; }
@media (max-width: 660px) { .product-detail, .pos-layout { grid-template-columns: minmax(0, 1fr); } }
@media print {
  @page { margin: 2mm; }
  :root { background: white; color: black; }
  body > header, body > footer, .no-print, .notice { display: none !important; }
  .wrap { width: auto; margin: 0; padding: 0; min-height: 0; }
  .receipt { width: 48mm; max-width: 100%; padding: 0; border: 0; margin: 0; font: 9pt/1.3 sans-serif; }
  .receipt h1 { font-size: 12pt; }
  .receipt small { color: black; }
}
