/* =====================================================================
   Kéki Lapszabászat – online megrendelő (order.css)
   Builds on the tokens and components of app.css.
   ===================================================================== */

.page-order { background: var(--cream); }

/* ---------- shared bits ---------- */
.linkbtn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); border-radius: 8px; padding: 4px 2px; transition: color var(--fast); }
.linkbtn svg { width: 16px; height: 16px; }
.linkbtn:hover { color: var(--oak-text); }
.linkbtn--muted { color: var(--text-2); font-weight: 600; }
.linkbtn--danger { color: var(--danger); }
.eyebrow--light { color: var(--oak); }
.eyebrow--light::before { background: var(--oak); }
.btn .ic--oak { background: var(--oak); color: var(--text); }
.check--strong { font-weight: 700; color: var(--navy); font-size: 13px; }
.check--strong input { margin-top: 1px; }

/* segmented control */
.seg { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 12px; }
.seg--col { flex-direction: column; }
.seg--inline { display: inline-flex; }
.seg__btn { flex: 1; min-height: 42px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; transition: background var(--fast), color var(--fast), box-shadow var(--fast); white-space: nowrap; }
.seg__btn:hover { color: var(--navy); }
.seg__btn[aria-checked="true"] { background: var(--navy); color: var(--on-navy); box-shadow: 0 8px 16px -8px rgba(12, 59, 93, 0.6); }

/* ---------- hero strip ---------- */
.ohero { position: relative; overflow: hidden; color: var(--on-navy); background:
  radial-gradient(ellipse at 18% 0%, rgba(200, 149, 90, 0.30), transparent 55%),
  repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px),
  linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%); }
.ohero__deco { position: absolute; right: -140px; top: -170px; width: 480px; height: 480px; opacity: 0.10; pointer-events: none; }
.ohero__top { position: relative; display: flex; align-items: center; gap: 14px; padding-top: 22px; }
.ohero__brand { display: flex; flex-direction: column; line-height: 1; }
.ohero__brand b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase; }
.ohero__brand small { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oak-light); margin-top: 5px; }
.ohero__carp { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px 0 8px; border-radius: var(--r-pill); border: 1px solid rgba(200, 149, 90, 0.55); background: rgba(200, 149, 90, 0.12); color: var(--on-navy); font-size: 13px; font-weight: 600; transition: background var(--fast), transform var(--fast); }
.ohero__carp:hover { background: rgba(200, 149, 90, 0.24); transform: translateY(-1px); }
.ohero__carp svg { width: 14px; height: 14px; }
.ohero__tag { background: var(--oak); color: var(--text); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--r-pill); }
.ohero__main { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 44px; padding-bottom: 40px; }
.ohero--compact .ohero__main { padding-top: 40px; padding-bottom: 36px; }
.ohero__copy { max-width: 720px; }
.ohero__title { font-size: clamp(38px, 5vw, 62px); color: var(--on-navy); line-height: 1; margin-top: 18px; }
.ohero__title span { color: var(--oak-light); }
.ohero__lead { font-size: 17px; color: rgba(255, 253, 250, 0.78); margin: 16px 0 0; max-width: 560px; line-height: 1.55; font-weight: 300; }

/* steps */
.osteps { display: flex; align-items: center; gap: 6px; background: rgba(255, 253, 250, 0.08); border: 1px solid rgba(255, 253, 250, 0.16); padding: 6px; border-radius: var(--r-pill); backdrop-filter: blur(10px); flex: none; }
.osteps__item { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px 0 8px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: rgba(255, 253, 250, 0.7); white-space: nowrap; transition: background var(--slow), color var(--slow); }
.osteps__item .k { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em; background: rgba(255, 253, 250, 0.14); color: var(--on-navy); }
.osteps__item.is-on { background: var(--warm-white); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
.osteps__item.is-on .k { background: var(--oak); color: var(--text); }
.osteps__item.is-solid { background: var(--navy); color: var(--on-navy); }
.osteps__item.is-solid .k { background: var(--oak); color: var(--text); }

/* ---------- layout ---------- */
.olayout { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: 28px; align-items: start; padding-top: 28px; }
.oside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.ocustomer-wrap { padding-top: 28px; padding-bottom: 56px; scroll-margin-top: 16px; }

/* ---------- board form card ---------- */
.oform { display: flex; flex-direction: column; overflow: hidden; }
.oform__head { padding: 24px 28px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.oform__head h2 { font-size: 32px; }
.help { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ostep { padding: 26px 28px; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.ostep__num { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--oak); width: 48px; flex: none; letter-spacing: 0.02em; }
.ostep--muted .ostep__num { color: var(--text-3); }
.ostep__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ostep__title { font-family: var(--font-display); font-size: 27px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); }
.ostep__title small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-2); text-transform: none; letter-spacing: 0; }
.ostep__titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.oform__foot { padding: 20px 28px 24px; display: flex; align-items: center; gap: 12px; background: #fbf7f1; flex-wrap: wrap; }
.oform__add { flex: 1; min-width: 240px; }

/* material search */
.msearch { position: relative; }
.msearch__ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.msearch__input { width: 100%; min-height: 52px; padding: 10px 100px 10px 46px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: 16px; box-shadow: inset 0 1px 2px rgba(12, 59, 93, 0.04); transition: border-color var(--fast), box-shadow var(--fast); }
.msearch__input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12, 59, 93, 0.12); }
.msearch__input.is-invalid { border-color: var(--danger); }
.msearch__badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 7px; pointer-events: none; }
.msearch__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 360px; overflow: auto; background: var(--warm-white); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; }
.mres { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; transition: background var(--fast); }
.mres:hover, .mres.is-active { background: var(--navy-050); }
.mres__sw { width: 40px; height: 32px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); flex: none; }
.mres__sw img { width: 100%; height: 100%; object-fit: cover; }
.mres__t { font-weight: 700; font-size: 14px; color: var(--text); }
.mres__s { font-size: 12px; color: var(--text-2); }
.mres__tag { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--oak-text); background: var(--oak-tint); padding: 3px 8px; border-radius: var(--r-pill); flex: none; }
.mres--empty { display: block; padding: 12px 10px; font-size: 13px; color: var(--text-2); }
.mres--empty b { color: var(--text); }
.mres--custom { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.mres--custom .mres__sw { display: grid; place-items: center; color: var(--navy); }
.mfilter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mfilter .linkbtn { margin-left: auto; }

.mpop .label { display: block; margin-bottom: 10px; }
.mpop__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.swatch { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; border: 2px solid var(--warm-white); box-shadow: 0 6px 14px -6px rgba(12, 59, 93, 0.5), 0 0 0 1px rgba(12, 59, 93, 0.12); flex: none; background: var(--surface); transition: transform var(--fast), box-shadow var(--fast); display: grid; place-items: center; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch:hover { transform: translateY(-2px); }
.swatch.is-on { box-shadow: 0 0 0 3px var(--oak), 0 8px 16px -6px rgba(200, 149, 90, 0.8); }
.swatch__txt { font-family: var(--font-display); font-size: 14px; color: var(--navy); }
.swatch--more { color: var(--navy); font-size: 12px; font-weight: 800; }

.msel { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #f8efe3, #f3e6d6); border: 1px solid rgba(200, 149, 90, 0.45); box-shadow: 0 14px 28px -20px rgba(200, 149, 90, 0.9); flex-wrap: wrap; }
.msel__img { width: 64px; height: 52px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); flex: none; background: var(--surface); }
.msel__img img { width: 100%; height: 100%; object-fit: cover; }
.msel__text { flex: 1; min-width: 160px; }
.msel__name { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.msel__name span { color: var(--oak-text); }
.msel__meta { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.msel__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--oak-text); }
.msel__ok svg { width: 16px; height: 16px; }

/* size */
.osize { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ninput { position: relative; display: flex; align-items: center; min-height: 52px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: inset 0 1px 2px rgba(12, 59, 93, 0.04); transition: border-color var(--fast), box-shadow var(--fast); }
.ninput:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12, 59, 93, 0.12); }
.ninput.is-invalid { border-color: var(--danger); }
.ninput__in { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 0 0 16px; min-height: 50px; font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; color: var(--text); -moz-appearance: textfield; }
.ninput__in::-webkit-outer-spin-button, .ninput__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ninput__in:focus { outline: none; }
.ninput__in::placeholder { color: var(--text-3); font-weight: 400; }
.ninput__unit { padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.ninput--qty { padding-right: 6px; }
.qtybtns { display: flex; gap: 4px; }
.qtybtn { width: 34px; height: 34px; border-radius: 12px; background: var(--surface); color: var(--navy); display: grid; place-items: center; transition: background var(--fast), transform var(--fast); }
.qtybtn svg { width: 14px; height: 14px; }
.qtybtn:hover { transform: translateY(-1px); }
.qtybtn--p { background: var(--navy); color: var(--on-navy); }
.ohelp { display: flex; align-items: flex-start; gap: 8px; }
.ohelp svg { width: 14px; height: 14px; color: var(--oak); flex: none; margin-top: 3px; }
.ohelp strong { color: var(--text); }

/* edge banding */
.edgegrid { display: grid; grid-template-columns: minmax(0, 1fr) 204px; gap: 28px; align-items: center; }
.edgestage { position: relative; min-height: 268px; display: flex; align-items: center; justify-content: center; border-radius: 18px; padding: 44px 40px 40px; background: radial-gradient(ellipse at 50% 100%, rgba(200, 149, 90, 0.18), transparent 60%), #f3ede4; border: 1px solid rgba(12, 59, 93, 0.06); }
.edgestage__dimx { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.05em; color: var(--text-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.edgestage__dimx span { width: 40px; height: 1px; background: var(--text-3); }
.edgestage__dimx b { font-weight: 400; }
.edgestage__dimy { position: absolute; right: 4px; top: 50%; transform: translateY(-50%) rotate(90deg); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.05em; color: var(--text-2); white-space: nowrap; }
.board { position: relative; width: min(340px, 100%); aspect-ratio: 1 / var(--ratio, 0.535); transform: perspective(900px) rotateX(18deg); transform-style: preserve-3d; }
.board__face { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 40px -24px rgba(12, 59, 93, 0.7); border: 1px solid rgba(12, 59, 93, 0.18); background: var(--surface); cursor: default; container-type: size; }
.board__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
/* A dekorfotókon a szálirány függőlegesen fut, a rajzon viszont vízszintesen,
   ahogy a nyíl is mutatja. Ezért a fotót 90 fokkal elforgatva fektetjük a lapra.
   A négyzet alakú réteg forgatás után is kitölti a lapot. */
.board__img--photo {
  inset: auto; top: 50%; left: 50%;
  width: max(100cqw, 100cqh); height: max(100cqw, 100cqh);
  transform: translate(-50%, -50%) rotate(90deg);
}
.board__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.05)); }
.board__img--wood { background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 7px), linear-gradient(0deg, #ead6b8, #e2c8a5 30%, #edd9bd 55%, #e0c39e 80%, #e8d2b3); }
.board__strip { position: absolute; background: var(--navy); opacity: 0; transition: opacity var(--fast); }
.board__strip[data-thick="0.5"] { opacity: 1; --sz: 3px; }
.board__strip[data-thick="1"] { opacity: 1; --sz: 5px; }
.board__strip[data-thick="2"] { opacity: 1; --sz: 8px; }
.board__strip--front { left: 0; right: 0; bottom: 0; height: var(--sz, 0); background: var(--oak); box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25); }
.board__strip--back { left: 0; right: 0; top: 0; height: var(--sz, 0); }
.board__strip--left { top: 0; bottom: 0; left: 0; width: var(--sz, 0); }
.board__strip--right { top: 0; bottom: 0; right: 0; width: var(--sz, 0); }
.board__strip.is-sel { background: var(--oak); box-shadow: 0 0 0 2px rgba(200, 149, 90, 0.5); }
.board__grain { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255, 253, 250, 0.95); background: rgba(8, 42, 68, 0.55); padding: 6px 12px; border-radius: var(--r-pill); backdrop-filter: blur(4px); white-space: nowrap; }
.board__grain svg { width: 14px; height: 14px; }
.board__side { position: absolute; left: 4px; right: 4px; bottom: -14px; height: 14px; background: linear-gradient(180deg, #b8895a, #8f6a45); border-radius: 0 0 6px 6px; transform: translateZ(-1px); }
.edge-pill { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--warm-white); color: var(--text-2); border: 1px solid var(--line-strong); box-shadow: 0 6px 14px -6px rgba(12, 59, 93, 0.4); white-space: nowrap; transition: background var(--fast), color var(--fast), box-shadow var(--fast); z-index: 2; }
.edge-pill:hover { border-color: var(--navy); color: var(--navy); }
.edge-pill.is-on { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.edge-pill.is-sel, .edge-pill[aria-pressed="true"] { background: var(--oak); color: var(--text); border-color: var(--oak); box-shadow: 0 0 0 5px rgba(200, 149, 90, 0.28), 0 8px 18px -6px rgba(200, 149, 90, 0.8); }
.edge-pill--back { top: -16px; left: 50%; transform: translateX(-50%); }
.edge-pill--front { bottom: -30px; left: 50%; transform: translateX(-50%); }
.edge-pill--left { left: -16px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.edge-pill--right { right: -16px; top: 50%; transform: translate(50%, -50%) rotate(90deg); }
.edgepick { display: flex; flex-direction: column; gap: 12px; }
.edgepick__sel { font-size: 13px; font-weight: 600; color: var(--text-2); }
.edgepick__sel b { color: var(--oak-text); }
.edgeabs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* extras */
.whitepick { display: flex; flex-direction: column; gap: 8px; }
.odetails { border: 1px dashed rgba(12, 59, 93, 0.22); border-radius: 14px; background: var(--white); }
.odetails summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--text); border-radius: 14px; }
.odetails summary::-webkit-details-marker { display: none; }
.odetails summary:focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; }
.odetails__plus { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; color: var(--navy); flex: none; }
.odetails__plus svg { width: 16px; height: 16px; }
.odetails__t { flex: 1; }
.odetails__chev { width: 18px; height: 18px; color: var(--text-2); transition: transform var(--fast); }
.odetails[open] .odetails__chev { transform: rotate(180deg); }
.odetails__body { padding: 4px 16px 18px; }
.upl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; }
.upl__preview { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.upl__preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- order list ---------- */
.olist { overflow: hidden; }
.olist__head { padding: 22px 24px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.olist__head h2 { font-size: 30px; }
.olist__empty { padding: 28px 24px; text-align: center; color: var(--text-2); }
.olist__empty svg { width: 46px; height: 32px; margin: 0 auto 10px; }
.olist__empty p { margin: 0 0 4px; }
.olist__table { table-layout: fixed; }
.olist__table th:first-child, .olist__table td:first-child { padding-left: 24px; }
.olist__table th:nth-child(1) { width: 34%; }
.olist__table th:nth-child(2) { width: 88px; }
.olist__table th:nth-child(3) { width: 40px; }
.olist__table th:nth-child(5) { width: 100px; }
/* A cellák tartalma nem lóghat át a szomszéd oszlopba (élzárás → műveleti ikonok). */
.olist__table td { padding: 12px 8px; font-size: 14px; overflow: hidden; }
.olist__lap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thumb { width: 48px; height: 38px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); flex: none; background: #f4f2ee; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-name { font-weight: 700; color: var(--text); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num-cell { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; color: var(--text); }
/* Az élrajz a szöveg mellé úszik, így a tördelt sorok a teljes cellát kihasználják. */
.edgecell { min-width: 0; }
.edgecell::after { content: ''; display: block; clear: both; }
.edgecell svg { width: 24px; height: 16px; float: left; margin: 1px 6px 0 0; }
.edgecell span { display: block; font-size: 11.5px; color: var(--text-2); white-space: normal; overflow-wrap: anywhere; }
.rowbadges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.rowbadges .badge { font-size: 10px; padding: 2px 7px; }
.rowbtns { display: flex; justify-content: flex-end; }
.ico-btn { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); transition: background var(--fast), color var(--fast); }
.ico-btn svg { width: 16px; height: 16px; }
.ico-btn:hover { background: var(--navy-050); color: var(--navy); }
.ico-btn--danger { color: var(--danger); }
.ico-btn--danger:hover { background: var(--st-rejected-bg); color: var(--danger); }
.olist__sum { position: relative; overflow: hidden; padding: 22px 24px; color: var(--on-navy); background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px), linear-gradient(135deg, var(--navy-700), var(--navy-900)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.olist__deco { position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; opacity: 0.12; pointer-events: none; }
.olist__sumlbl { font-size: 11px; font-weight: 700; color: var(--on-navy-2); text-transform: uppercase; letter-spacing: 0.1em; }
.olist__sumval { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.02em; line-height: 1.1; margin-top: 6px; color: var(--on-navy); }
.olist__sumval--oak { color: var(--oak-light); }
.olist__sumcol { position: relative; border-left: 1px solid rgba(255, 253, 250, 0.14); padding-left: 16px; }
.olist__foot { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 10px; }

.oexcel { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.oexcel__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.oexcel__ic { width: 44px; height: 44px; border-radius: 14px; background: var(--oak-tint); display: grid; place-items: center; color: var(--oak-text); flex: none; }
.oexcel__ic svg { width: 20px; height: 20px; }
.oexcel__t { font-size: 15px; font-weight: 700; }
.oexcel__attach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- customer ---------- */
.ocustomer { overflow: hidden; }
.ocustomer__head { padding: 24px 28px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ocustomer__head h2 { font-size: 32px; }
.ocustomer__headhelp { margin-left: auto; }
.ocustomer__grid3 { padding: 24px 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ocustomer__grid2 { padding: 0 28px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ocustomer__comment { min-height: 150px; }
.ccode { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(200, 149, 90, 0.7); background: #fbf5ec; flex-wrap: wrap; }
.ccode svg { width: 18px; height: 18px; color: var(--oak-text); flex: none; }
.ccode label { font-size: 14px; font-weight: 600; color: var(--text); }
.ccode__in { margin-left: auto; width: 170px; min-height: 40px; font-family: var(--font-display); letter-spacing: 2px; font-size: 15px; text-transform: uppercase; }
.ccode__status { margin-top: 8px; font-size: 13px; font-weight: 600; }
.ccode__status.is-ok { color: var(--success); }
.ccode__status.is-warn { color: var(--warning); }
.ocustomer__error { margin: 0 28px 16px; }
.ocustomer__foot { padding: 20px 28px 24px; display: flex; align-items: center; gap: 18px; background: #fbf7f1; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ocustomer__foot .btn--lg { min-height: 60px; font-size: 17px; padding-left: 36px; }

/* ---------- mobile bar ---------- */
.omobilebar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 253, 250, 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -12px 30px -18px rgba(12, 59, 93, 0.35); transition: transform var(--slow); }
.omobilebar.is-hidden { transform: translateY(110%); }
.omobilebar__count { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.omobilebar__count b { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--navy); }
.omobilebar .btn svg { width: 16px; height: 16px; }

/* ---------- browse modal ---------- */
.browse { max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.browse__tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.browse__tools .input { flex: 1; min-width: 200px; }
/* A rács a modális ablak magasságához igazodik. Az align-content: start és a
   max-content sormagasság nélkül a kártyák néhány képpontra lapulnának össze,
   ezért telefonon üresnek látszott a lista. */
.browse__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; margin-top: 10px; }
.browse__grid.is-loading { opacity: .55; }
.browse__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); grid-auto-rows: max-content; align-content: start; gap: 12px; overflow: auto; padding: 2px; min-height: 0; }
.bcard { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast); }
.bcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--oak); }
.bcard.is-on { border-color: var(--oak); box-shadow: 0 0 0 2px var(--oak); }
.bcard__img { aspect-ratio: 4 / 3; background: var(--surface); display: grid; place-items: center; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; }
.bcard__img span { font-family: var(--font-display); font-size: 20px; color: var(--navy); }
.bcard__t { padding: 8px 10px 0; font-size: 13px; font-weight: 700; color: var(--text); }
.bcard__s { padding: 2px 10px 10px; font-size: 11px; color: var(--text-2); }
.browse__empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--text-2); }

/* ---------- thanks / quote / register pages ---------- */
.othanks__card { text-align: left; }
.othanks__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--st-accepted-bg); color: var(--st-accepted-fg); display: grid; place-items: center; margin-bottom: 18px; }
.othanks__ic svg { width: 26px; height: 26px; }
.othanks__ic--muted { background: var(--surface); color: var(--text-2); }
.othanks__title { font-size: clamp(36px, 4.6vw, 54px); margin-top: 10px; }
.othanks__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.othanks__meta dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.othanks__meta dd { margin: 4px 0 0; font-weight: 600; }
.othanks__meta dd.num { font-size: 24px; }
.othanks__steps { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.othanks__steps li { display: flex; gap: 14px; align-items: flex-start; }
.othanks__steps li > div { display: flex; flex-direction: column; }
.othanks__steps .pill-num { flex: none; margin-top: 1px; }

.oquote__card { overflow: hidden; }
.oquote__head { padding: 32px 32px 28px; color: var(--on-navy); background: radial-gradient(ellipse at 18% 0%, rgba(200, 149, 90, 0.30), transparent 55%), linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.oquote__title { font-size: clamp(30px, 4vw, 44px); color: var(--on-navy); margin-top: 14px; }
.oquote__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; }
.oquote__price { padding: 20px 24px; border-radius: 16px; background: linear-gradient(135deg, #f8efe3, #f3e6d6); border: 1px solid rgba(200, 149, 90, 0.45); }
.oquote__pricelbl { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oak-text); }
.oquote__priceval { font-size: clamp(36px, 5vw, 52px); color: var(--navy); margin: 6px 0 4px; }
.oquote__note p { margin: 6px 0 0; white-space: pre-line; }
.oquote__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.oquote__actions .btn svg { width: 18px; height: 18px; }

.oreg { padding-top: 28px; padding-bottom: 56px; }
.oreg__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.oreg__form { overflow: hidden; }
.oreg__body { padding: 24px 28px; }
.oreg__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.oreg__list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.oreg__list li { display: flex; flex-direction: column; font-size: 14px; }
.oreg__list li span { color: var(--on-navy-2); font-size: 13px; }
.oreg__success { max-width: 760px; margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ocustomer__grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .olayout { grid-template-columns: 1fr; }
  .oside { position: static; }
  .ohero__main { flex-direction: column; align-items: flex-start; gap: 24px; }
  .osteps { width: 100%; justify-content: space-between; }
  .osteps__item { flex: 1; justify-content: center; padding: 0 10px 0 6px; font-size: 13px; }
  .oreg__grid { grid-template-columns: 1fr; }
  .oreg__aside { position: static; }
  .omobilebar { display: flex; }
  body.page-order:not(.page-thanks):not(.page-quote):not(.page-carpenter) { padding-bottom: 84px; }
}
@media (max-width: 720px) {
  .oform__head, .ostep, .oform__foot, .olist__head, .olist__foot, .ocustomer__head, .ocustomer__grid3, .ocustomer__grid2, .ocustomer__foot, .oreg__body, .oquote__body, .oquote__head { padding-left: 18px; padding-right: 18px; }
  .ostep { gap: 12px; }
  .ostep__num { width: 36px; font-size: 24px; }
  .ostep__title { font-size: 23px; }
  .oform__head h2, .olist__head h2, .ocustomer__head h2 { font-size: 27px; }
  .osize { grid-template-columns: 1fr 1fr; }
  .osize .field:last-child { grid-column: span 2; }
  .edgegrid { grid-template-columns: 1fr; gap: 16px; }
  .edgestage { min-height: 220px; padding: 34px 40px 34px; }
  .board { transform: none; width: min(260px, 100%); }
  .board__side { display: none; }
  .edge-pill { height: 26px; padding: 0 10px; font-size: 11px; }
  .edge-pill--back { top: -13px; }
  .edge-pill--front { bottom: -13px; }
  .edge-pill--left { left: -13px; }
  .edge-pill--right { right: -13px; }
  .seg--col { flex-direction: row; }
  .seg--col .seg__btn { padding: 0 6px; font-size: 13px; }
  .ocustomer__grid3, .ocustomer__grid2 { grid-template-columns: 1fr; gap: 16px; }
  .ocustomer__headhelp { margin-left: 0; }
  .ccode__in { width: 100%; margin-left: 0; }
  .olist__table th:nth-child(4), .olist__table td:nth-child(4) { display: none; }
  .olist__table th:nth-child(1) { width: auto; }
  .olist__sumval { font-size: 24px; }
  .othanks__meta { grid-template-columns: 1fr; gap: 10px; }
  .ohero__carptext { display: none; }
  .ohero__carp { padding-right: 10px; }
  .ocustomer__foot .btn--lg { width: 100%; padding-left: 28px; }
}

/* ---------- pánthely ---------- */
.hingepick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.hingepick__label { font-size: 14px; font-weight: 600; color: var(--text); }
.hingepick__input { width: 168px; flex: none; }
.hingepick .hint { flex: 1 1 260px; min-width: 0; }
@media (max-width: 560px) { .hingepick__input { width: 100%; } .hingepick .hint { flex-basis: 100%; } }

/* Keskeny képernyőn a szélesség felirata a rajz alá kerül, hogy ne lógjon a jobb élre. */
@media (max-width: 640px) {
  .edgestage { padding: 40px 26px 52px; }
  .edgestage__dimy { right: auto; left: 50%; top: auto; bottom: 8px; transform: translateX(-50%); }
}

/* Telefonon szűkebb belső margóval két kártya fér egymás mellé. */
@media (max-width: 560px) {
  .modal { padding: 18px; }
  /* Telefonon két kártya fér egymás mellé. */
  .browse__grid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); }
  .bcard__t { font-size: 12.5px; }
  .bcard { height: 100%; }
}
