/* The hidden attribute always wins over component display rules (inline forms are .panel, which is flex). */
[hidden] { display: none !important; }
/* Fieldsets default to min-width: min-content, so a select with long option text widened forms past the screen. */
fieldset { min-width: 0; }
.form-grid > * { min-width: 0; }
select, input, textarea { max-width: 100%; }
/* Long unbroken text (an email address as a heading) wraps instead of widening the page. */
h1, h2, .display-l { overflow-wrap: anywhere; }

/* Rasolia customer website prototype — layout and components */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--forest);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--oxblood); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--ivory); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--forest); color: var(--ivory); padding: 10px 16px; z-index: 100; border-radius: var(--r-control); }
.skip-link:focus { top: 12px; color: var(--ivory); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.serif { font-family: var(--font-display); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.eyebrow--brass { color: var(--brass-ink); }
.eyebrow--ox { color: var(--oxblood); }
.on-dark .eyebrow--brass { color: var(--brass); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 20px; }
.tiny { font-size: 13px; line-height: 18px; }

h1, h2, h3 { margin: 0; font-weight: 400; }
.display-xl { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.02em; }
.display-l { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
.h1 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
.h2 { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.h3 { font-size: 16px; font-weight: 600; line-height: 22px; }
.lede { font-size: clamp(17px, 1.4vw, 18px); line-height: 1.6; color: var(--stone); max-width: 600px; margin: 0; }

/* Prototype banner */
.proto-banner { background: var(--forest); color: var(--ivory); font-size: 13px; line-height: 18px; }
.proto-banner .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.proto-banner a { color: var(--ivory); }
.proto-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; border: 1px solid var(--stone-on-dark); padding: 2px 8px; border-radius: var(--r-pill); color: var(--ivory); }

/* Utility bar */
.utility { background: var(--ivory-deep); font-size: 13px; line-height: 18px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.linkbtn { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--forest); min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { color: var(--oxblood); }

/* Header */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 1; letter-spacing: -0.02em; text-decoration: none; color: var(--forest); white-space: nowrap; }
.wordmark i { font-style: italic; color: var(--oxblood); }
.on-dark .wordmark i { color: var(--brass); }
.primary-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.primary-nav a { text-decoration: none; padding: 6px 0; }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-search { flex: 1 1 280px; position: relative; }
.search-field { display: flex; align-items: center; gap: 10px; height: 46px; background: var(--white); border: 1px solid var(--control-line); border-radius: var(--r-control); padding: 0 14px; }
.search-field:focus-within { outline: 2px solid var(--forest); outline-offset: 2px; }
.search-field input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: 15px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--hairline); box-shadow: 0 12px 32px rgba(32,40,32,.12); z-index: 50; padding: 6px 0; margin: 0; list-style: none; }
.suggest li a, .suggest li button { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; text-decoration: none; font-size: 14px; width: 100%; background: none; border: 0; text-align: left; }
.suggest li [aria-selected="true"], .suggest li a:hover { background: var(--ivory); }
.header-actions { display: flex; gap: 2px; align-items: center; }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 22px; color: var(--forest); position: relative; text-decoration: none; }
.iconbtn:hover { background: var(--ivory-deep); color: var(--forest); }
.badge-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--forest); color: var(--ivory); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.menu-btn { display: none; }
.mobile-search-btn { display: none; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(32,40,32,.4); z-index: 60; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--ivory); z-index: 61; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.drawer nav a { display: flex; min-height: 48px; align-items: center; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--hairline); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r-control); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn--primary { background: var(--forest); color: var(--ivory); }
.btn--primary:hover { background: #343d34; color: var(--ivory); }
.btn--secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--secondary:hover { background: var(--forest); color: var(--ivory); }
.btn--signature { background: var(--oxblood); color: var(--white); }
.btn--signature:hover { background: #5f2530; color: var(--white); }
.btn--signature-outline { background: transparent; color: var(--oxblood); border-color: var(--oxblood); }
.btn--light { background: var(--ivory); color: var(--forest); }
.btn--light:hover { background: var(--white); color: var(--forest); }
.btn--block { width: 100%; }
.btn--lg { height: 52px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--ivory-deep); color: var(--stone); border-color: var(--hairline); cursor: not-allowed; }

/* Chips and tags */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--control-line); background: var(--white); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--forest); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.chip--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 13px; line-height: 18px; background: var(--ivory-deep); color: var(--forest); }
.tag--festive { background: var(--oxblood); color: var(--white); font-size: 12px; font-weight: 600; }
.tag--outline-dark { background: transparent; border: 1px solid var(--stone-on-dark); color: var(--ivory); }

/* Images and photo placeholders */
.ph-img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--ph-1); }
.ph { position: relative; background: var(--ph-1); color: var(--forest); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; text-decoration: none; }
.ph svg { opacity: .55; }
.ph__label { font-size: 11px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.ph__name { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(18px, 2vw, 24px); line-height: 1.15; }
.ph--dark { background: var(--ph-dark); color: var(--ivory); }
.ph-art { flex: 1; display: flex; align-items: center; justify-content: center; }
.r-45 { aspect-ratio: 4 / 5; }
.r-11 { aspect-ratio: 1 / 1; }
.r-54 { aspect-ratio: 5 / 4; }
.r-169 { aspect-ratio: 16 / 9; }
.r-34 { aspect-ratio: 3 / 4; }

/* Sections */
.section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.section--white { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section--deep { background: var(--ivory-deep); }
.section--dark { background: var(--forest); color: var(--ivory); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.section-head .stack { display: flex; flex-direction: column; gap: 6px; }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; }
.split > * { min-width: 0; }

/* Hero */
.hero .split > .copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.hero .split > .media { flex: 1.4 1 440px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Grids */
.grid-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.grid-cats > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .grid-cats { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } }
.card .ph__label { display: none; }
.cat-tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cat-tile span { font-size: 15px; line-height: 20px; font-weight: 500; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 32px 24px; }

/* Product card */
.card { display: flex; flex-direction: column; gap: 8px; position: relative; }
.card__media { position: relative; }
.card__fav { position: absolute; top: 8px; right: 8px; background: var(--white); }
.card__fav[aria-pressed="true"] svg path { fill: var(--oxblood); stroke: var(--oxblood); }
.card__badge { position: absolute; top: 12px; left: 12px; }
.card__name { font-size: 16px; line-height: 22px; font-weight: 500; text-decoration: none; }
.card__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__fav, .card__badge { z-index: 2; }
.card__price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card__price strong { font-size: 17px; font-weight: 600; }
.fulfil-line { font-size: 13px; line-height: 18px; display: flex; gap: 6px; align-items: flex-start; }
.fulfil-line svg { flex: none; margin-top: 1px; }

/* Maker's table (dark) */
.makers-table .split > .media { flex: 1 1 380px; max-width: 520px; }
.makers-table .split > .copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.quote { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.1; margin: 0; }
.on-dark .lede { color: var(--stone-on-dark); }

/* Atlas */
.atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; border-top: 1px solid var(--hairline); }
.atlas a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.atlas .serif { font-size: 28px; line-height: 34px; }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.trust div { display: flex; flex-direction: column; gap: 8px; }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--stone); padding-top: 20px; }
.crumbs a { color: var(--stone); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }

/* Listing layout */
.listing { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.filters { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 22px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.filters fieldset { border: 0; border-top: 1px solid var(--hairline); padding: 16px 0 0; margin: 0; display: flex; flex-direction: column; }
.filters legend { padding: 0; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--forest); flex: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.select { height: 42px; border: 1px solid var(--control-line); border-radius: var(--r-control); padding: 0 10px; background: var(--white); font-size: 14px; }
.filters-toggle { display: none; }
.empty { background: var(--white); border: 1px solid var(--hairline); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* Product detail */
.pdp { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); padding-top: 24px; padding-bottom: 64px; }
.pdp__gallery { flex: 1.15 1 440px; display: flex; gap: 14px; min-width: 0; }
.pdp__thumbs { display: flex; flex-direction: column; gap: 12px; width: 76px; flex: none; }
.pdp__thumbs button { padding: 0; border: 1px solid var(--hairline); background: none; }
.pdp__thumbs button[aria-pressed="true"] { border: 2px solid var(--forest); }
.pdp__main { flex: 1; min-width: 0; }
.pdp__info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.maker-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ph-3); flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; color: var(--forest); }
.variants { display: flex; gap: 10px; flex-wrap: wrap; }
.variant { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--control-line); background: var(--white); border-radius: var(--r-control); text-align: left; }
.variant[aria-checked="true"] { border: 2px solid var(--forest); padding: 11px 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--control-line); border-radius: var(--r-control); background: var(--white); height: 48px; }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 20px; line-height: 1; }
.qty output, .qty span { min-width: 34px; text-align: center; font-weight: 600; }
.box { background: var(--white); border: 1px solid var(--hairline); }
.box__row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--hairline); font-size: 14px; line-height: 20px; }
.box__row:last-child { border-bottom: 0; }
.box__row svg { flex: none; margin-top: 1px; }
.blocked { color: var(--stone); }
details.acc { border-bottom: 1px solid var(--hairline); }
details.acc summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-weight: 400; font-size: 22px; }
details.acc[open] summary::after { content: "−"; }
details.acc .acc__body { padding-bottom: 18px; font-size: 14px; line-height: 21px; display: flex; flex-direction: column; gap: 10px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; line-height: 20px; }

/* Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-control); font-size: 14px; line-height: 20px; border: 1px solid; background: var(--white); }
.alert svg { flex: none; margin-top: 1px; }
.alert--warning { border-color: var(--warning); }
.alert--warning strong { color: var(--warning); }
.alert--error { border-color: var(--error); }
.alert--error strong { color: var(--error); }
.alert--info { border-color: var(--control-line); }
.alert--success { border-color: var(--success); }
.alert--success strong { color: var(--success); }
.field-error { color: var(--error); font-size: 14px; display: flex; gap: 6px; align-items: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { height: 48px; border: 1px solid var(--control-line); border-radius: var(--r-control); padding: 0 12px; background: var(--white); font-size: 16px; font-weight: 400; }
.field textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
.field input[aria-invalid="true"] { border: 2px solid var(--error); }
.field .hint { font-weight: 400; color: var(--stone); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Maker page */
.maker-hero { min-height: clamp(220px, 30vw, 420px); }
.maker-head { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 36px; padding-bottom: 48px; }
.maker-head .copy { flex: 1.4 1 440px; display: flex; flex-direction: column; gap: 18px; }
.maker-head aside { flex: 1 1 300px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 20px; }
.checklist li { display: flex; gap: 10px; }
.maker-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.maker-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; background: var(--white); border: 1px solid var(--hairline); }
.maker-card .body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 6px; }

/* Cart & checkout */
.cart-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 32px; padding-bottom: 80px; }
.cart-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cart-side { flex: 1 1 320px; max-width: 420px; position: sticky; top: 96px; }
.maker-group { background: var(--white); border: 1px solid var(--hairline); }
.maker-group__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.line { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.line:last-child { border-bottom: 0; }
.line .ph { width: 64px; height: 80px; padding: 6px; flex: none; }
.line__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty--sm { height: 40px; }
.qty--sm button { width: 38px; height: 38px; font-size: 18px; }
.summary { background: var(--white); border: 1px solid var(--hairline); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 22px; }
.sumrow--total { border-top: 1px solid var(--forest); padding-top: 14px; margin-top: 6px; font-size: 18px; font-weight: 600; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--control-line); border-radius: var(--r-control); background: var(--white); cursor: pointer; font-size: 14px; line-height: 20px; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); flex: none; }
.opt:has(input:checked) { border: 2px solid var(--forest); padding: 13px 15px; }
.opt--disabled { background: var(--ivory-deep); cursor: not-allowed; color: var(--stone); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.steps li[aria-current="step"] { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.steps li { color: var(--stone); }
.steps li[aria-current="step"], .steps li.done { color: var(--forest); }
.panel { background: var(--white); border: 1px solid var(--hairline); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sim-pay { border: 2px dashed var(--control-line); padding: 16px; border-radius: var(--r-control); background: var(--ivory); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; font-size: 14px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--control-line); margin-top: 4px; flex: none; }
.timeline .dot--done { background: var(--forest); border-color: var(--forest); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 36px; font-size: 14px; line-height: 28px; }
.footer-cols nav { display: flex; flex-direction: column; }
.footer-cols nav a { text-decoration: none; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--stone); }

/* Dialog (postal code, settings) */
dialog { border: 0; padding: 0; max-width: min(92vw, 480px); width: 100%; background: var(--ivory); color: var(--forest); }
dialog::backdrop { background: rgba(32,40,32,.45); }
.dialog-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--forest); color: var(--ivory); padding: 12px 18px; border-radius: var(--r-control); font-size: 14px; z-index: 80; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(32,40,32,.25); max-width: calc(100vw - 32px); }
.toast a { color: var(--ivory); font-weight: 600; }

/* Notes page */
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--hairline); font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.table-wrap { overflow-x: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .primary-nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 767px) {
  .site-header .wrap { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .wordmark { font-size: 28px; flex: 1; }
  .header-search { display: none; }
  .header-search.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); padding: 10px 20px 14px; border-bottom: 1px solid var(--hairline); }
  .mobile-search-btn { display: inline-flex; }
  .hide-mobile { display: none !important; }
  .filters { display: none; max-width: none; flex-basis: 100%; }
  .filters.open { display: flex; }
  .filters-toggle { display: inline-flex; }
  .pdp__gallery { flex-direction: column-reverse; }
  .pdp__thumbs { flex-direction: row; width: auto; }
  .pdp__thumbs button { width: 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-side { position: static; max-width: none; }
  .hero .media .ph { aspect-ratio: 1 / 1; }
  .utility .hide-sm { display: none; }
  .kv { grid-template-columns: 110px 1fr; }
  .grid-products { gap: 28px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__price { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Maker and admin screens (maker-admin.js) */
#ma-root { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Flex children default to min-width:auto, which let wide tables push the page wider than the screen (audit H6). */
#ma-root > *, #ma-root .panel, #ma-root aside, #ma-root [style*="flex:999"] { min-width: 0; }
/* position: relative keeps absolutely positioned children (e.g. .sr-only column headers) inside the scroll box;
   without it they escaped and widened the whole page on phones (audit H6). */
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.section { min-width: 0; }
