:root { font: 16px/1.55 system-ui, sans-serif; color: #182b32; background: #edf2f2; }
* { box-sizing: border-box; }
main { width: min(880px, 100% - 2rem); margin: 3rem auto; }
header, .supplier { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; }
h2 { margin: 0; letter-spacing: -.025em; }
section { background: white; border: 1px solid #d6e1e1; border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.25rem; }
section p, small { color: #43585f; }
.supplier { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; padding: 1rem 0; border-top: 1px solid #d6e1e1; }
small, .stack label { display: block; }
code { overflow-wrap: anywhere; }
.stack { display: grid; gap: 1rem; max-width: 30rem; margin-top: 1rem; }
.stack input, select, button { font: inherit; border-radius: .5rem; padding: .55rem .8rem; }
.stack input, select { display: block; width: 100%; margin-top: .25rem; border: 1px solid #82999e; background: white; color: inherit; }
button { background: #126257; border: 1px solid #126257; color: white; cursor: pointer; justify-self: start; }
.secondary { background: white; color: #126257; }
.notice { border: 1px solid #89b8ac; background: #e3f5ec; border-radius: .5rem; padding: .75rem 1rem; }
.toggle { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 575px) {
   main { margin: 1rem auto; }
   section { padding: 1rem; }
   .supplier { grid-template-columns: minmax(0, 1fr) auto; }
   .supplier div { grid-column: 1 / -1; }
}
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.buy { display: inline-block; padding: .55rem .8rem; border-radius: .5rem; color: white; background: #126257; text-decoration: none; }

/* The page fills the viewport. Wide content scrolls inside its own component. */
html, body { width: 100%; min-height: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flow-root; }
main, section, form, fieldset { min-width: 0; max-width: 100%; }
img, video, iframe, input, select, textarea { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; }

/* Shared controls for the storefront and administration. */
:root { --action-radius: .6rem; }
.ui-action, button:not(.secondary) {
   display: inline-flex; align-items: center; justify-content: center;
   padding: .46rem .82rem; min-height: 2.55rem; border-radius: var(--action-radius);
   border: 1px solid color-mix(in srgb, var(--action-bg, var(--interface-accent, #243e87)), white 25%);
   background-color: var(--action-bg, var(--interface-accent, #243e87));
   color: var(--action-fg, white); text-decoration: none; font-weight: 650;
   transition: box-shadow .18s ease, filter .18s ease, translate .18s ease;
}
.ui-action:hover, button:not(.secondary):hover { filter: brightness(1.13); translate: 0 -1px; box-shadow: 0 4px 14px #13245153; }
.ui-action:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #2682ff; outline-offset: 3px; }
.owner-shell section, .checkout-shell section { box-shadow: 0 8px 24px #10193618; }
.owner-heading h1 { letter-spacing: -.055em; }
.owner-nav, .store-info-links { gap: .45rem; }
dialog { width: min(90vw, 40rem); max-height: 85dvh; overflow: auto; border: 1px solid #8698c2; border-radius: .9rem; padding: 1.5rem; }
dialog::backdrop { background: #0c142bcc; }
main form section label { display: block; margin-block: .65rem; }
@keyframes action-sweep { to { background-position: -250% 0; } }
@media (prefers-reduced-motion: reduce) { .ui-action, button { transition: none; } }

.info-dialog > header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.info-dialog h2 { margin: 0; }
.info-dialog-content { margin-block: 1rem; line-height: 1.65; }
.owner-nav { flex-wrap: wrap; }
.shop-links .ui-action { justify-content: flex-start; }
.ui-action[aria-current="page"] { outline: 2px solid currentColor; outline-offset: -3px; }
input:not([type="checkbox"],[type="radio"]), textarea, select { max-width: 100%; }
:where(.checkout-shell,.owner-shell) :where(pre,code) { overflow-wrap: anywhere; }
.product-card { transition: border-color .18s ease, box-shadow .18s ease; }
.product-card:hover, .product-card:focus-within { border-color: var(--interface-accent); box-shadow: 0 8px 24px #11244b2b; }
@media (prefers-reduced-motion: reduce) { .product-card { transition: none; } }
