/* ==========================================================================
   FADE PROOF SHIRTS — design-flow.css
   Styles for design-now.html and shipping.html only.
   Builds on the tokens / classes already in style.css + brand-refresh.css
   (.container, .btn, .prod-card, .cat-card, .cz-layout, .cz-stage, .cz-panel,
   .size-btn, .qty-*, .field-group, .panel-box ...). Nothing here changes other pages.
   ========================================================================== */

/* ---------- progress steps ---------- */
.dn-steps { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: calc(var(--nav-h, 78px) - 1px); z-index: 20; }
.dn-steps ol { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(14px, 4vw, 28px); }
.dn-steps li { min-width: 0; }
.dn-steps a { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem .3rem; border-bottom: 3px solid transparent; font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-align: center; transition: color .25s, border-color .25s; }
.dn-steps a:hover { color: var(--ink); }
.dn-steps .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; background: #e6ecf7; color: var(--muted); }
.dn-steps li.is-done a { color: var(--ink); border-bottom-color: #006BE8; }
.dn-steps li.is-done .n { background: #006BE8; color: #fff; }
.dn-steps li.is-current a { color: #006BE8; border-bottom-color: #006BE8; }
.dn-steps li.is-current .n { background: #006BE8; color: #fff; }
@media (max-width: 760px) {
  .dn-steps a { flex-direction: column; gap: .2rem; font-size: .66rem; letter-spacing: 0; padding: .6rem .1rem; }
  .dn-steps .n { width: 20px; height: 20px; font-size: .66rem; }
}

/* ---------- sections ---------- */
.dn-sec { scroll-margin-top: calc(var(--nav-h, 78px) + 52px); }
.dn-sec.dn-alt { background: linear-gradient(160deg, #f5f9ff, #eaf1fc); }
.dn-head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.dn-head h2 { margin-bottom: .35rem; }
.dn-head p { max-width: 62ch; color: var(--muted); }
.dn-err { display: block; margin-top: .7rem; padding: .6rem .85rem; border-radius: var(--r-sm); background: rgba(217, 48, 37, .08); border: 1px solid rgba(217, 48, 37, .35); color: #b3261e; font-size: .85rem; }
.dn-err[hidden] { display: none; }
.field-group .dn-err { display: block; margin-top: 0; padding: 0; background: none; border: 0; font-size: .76rem; }
.field-group .dn-err[hidden] { display: none; }
.field-group.invalid input, .field-group.invalid textarea { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.dn-req { color: #d93025; }
.dn-empty { padding: 2rem 1.2rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: #fff; }
.dn-empty p { margin-bottom: 1rem; color: var(--muted); }

/* ---------- product cards ---------- */
.dn-prod { position: relative; transition: border-color .25s, box-shadow .25s; }
.dn-prod:hover { transform: none; }
.dn-prod-img { aspect-ratio: 1 / 1.05; background: #f4f6fa; display: grid; place-items: center; overflow: hidden; }
.dn-prod-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dn-prod.is-selected { border-color: #006BE8; box-shadow: 0 0 0 2px #006BE8, var(--shadow-sm); }
.dn-prod.is-selected::after { content: "Selected"; position: absolute; top: .6rem; left: .6rem; padding: .18rem .6rem; border-radius: 100px; background: #006BE8; color: #fff; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dn-prod .btn.is-on { background: #fff; color: #0a6ae8; box-shadow: inset 0 0 0 2px #0a6ae8; }
.dn-more { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 2rem; }
.dn-more small { color: var(--muted); font-size: .82rem; }

/* ---------- category cards (selectable) ---------- */
.dn-cats .cat-card { cursor: default; }
.dn-cats .cat-card .cat-ph { background: #0b0f16; display: grid; place-items: center; }
.dn-cats .cat-card .cat-ph.no-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #123a66, #05070c); }
.dn-cats .cat-card.is-selected { border-color: #006BE8; box-shadow: 0 0 0 3px #006BE8; }
.dn-cats .cat-card .btn.is-on { background: #fff; color: #0a6ae8; box-shadow: inset 0 0 0 2px #0a6ae8; }
.dn-catprods { margin-top: clamp(1.8rem, 4vw, 2.8rem); scroll-margin-top: calc(var(--nav-h, 78px) + 52px); }
.dn-catprods h3 { margin-bottom: 1rem; }
.dn-catprods[hidden] { display: none; }

/* ---------- Choose Style (customization layout) ---------- */
.dn-cap { margin-top: .7rem; text-align: center; font-size: .88rem; color: var(--muted); }
.dn-cap strong { color: var(--ink); }
.dn-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.dn-style { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 48px; padding: .55rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; text-align: left; font-size: .86rem; font-weight: 600; transition: border-color .25s, background .25s, color .25s; }
.dn-style b { font-family: var(--font-head); font-weight: 700; color: #006BE8; font-size: .9rem; white-space: nowrap; }
.dn-style:hover { border-color: #006BE8; }
.dn-style.is-on { background: #006BE8; border-color: #006BE8; color: #fff; }
.dn-style.is-on b { color: #fff; }
@media (max-width: 520px) { .dn-styles { grid-template-columns: 1fr; } }
.dn-sizes .size-btn { background: #fff; }
.dn-sizes .size-btn.active { background: #0a6ae8; color: #fff; }
.qty-chip { background: #fff; }
.qty-chip.active { background: #0a6ae8; color: #fff; }
.dn-primary { background: #0a6ae8; }
.dn-primary:hover { background: #0a6ae8; }

/* ---------- yes / no choices ---------- */
.dn-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .dn-choices { grid-template-columns: 1fr; } }
.dn-choice { position: relative; display: flex; align-items: center; gap: .85rem; padding: 1.05rem 1.15rem; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-weight: 600; transition: border-color .25s, box-shadow .25s; }
.dn-choice:hover { border-color: #006BE8; }
.dn-choice input { position: absolute; opacity: 0; pointer-events: none; }
.dn-choice .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9fb3d3; display: grid; place-items: center; transition: border-color .25s; }
.dn-choice .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #006BE8; transform: scale(0); transition: transform .2s; }
.dn-choice:has(input:checked) { border-color: #006BE8; box-shadow: 0 0 0 3px rgba(0, 107, 232, .15); }
.dn-choice:has(input:checked) .dot { border-color: #006BE8; }
.dn-choice:has(input:checked) .dot::after { transform: scale(1); }
.dn-choice:has(input:focus-visible) { outline: 2px solid #006BE8; outline-offset: 2px; }
.dn-sub { margin-top: 1.2rem; background: #fff; }
.dn-sub[hidden] { display: none; }
.dn-sub h4 { margin-bottom: .2rem; }
.dn-sub > p { color: var(--muted); font-size: .88rem; }
.dn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.dn-form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .dn-form { grid-template-columns: 1fr; } }
.dn-form textarea { resize: vertical; min-height: 96px; }
.dn-sub .field-group label { text-transform: none; letter-spacing: .02em; font-size: .86rem; }

/* ---------- upload control (matches the "Upload your logo" box in the sketch) ---------- */
.dn-upload { margin-top: 1rem; }
.dn-upload .upload-zone { background: #fff; padding: 1.6rem 1rem; border-radius: var(--r-md); }
.dn-upload .upload-zone strong { font-size: 1rem; }
.dn-upload .upload-zone span { font-size: .8rem; color: var(--muted); }
.dn-file { display: flex; align-items: center; gap: .9rem; padding: .8rem; background: #f4f7fc; border: 1px solid var(--line); border-radius: var(--r-md); }
.dn-file[hidden], .upload-zone[hidden] { display: none; }
.dn-file .thumb { flex: none; width: 56px; height: 56px; border-radius: 8px; background: #fff center / contain no-repeat; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: #006BE8; }
.dn-file .info { flex: 1; min-width: 0; }
.dn-file .info strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-file .info span { font-size: .78rem; color: var(--muted); }

/* ---------- final action ---------- */
.dn-final { text-align: center; }
.dn-final p { max-width: 52ch; margin: .4rem auto 1.4rem; color: var(--muted); }
.dn-final .btn { min-width: min(100%, 320px); }

/* ---------- shipping page ---------- */
.ship-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
@media (max-width: 900px) { .ship-layout { grid-template-columns: 1fr; } .ship-aside { order: -1; } }
.ship-aside { position: sticky; top: 24px; }
@media (max-width: 900px) { .ship-aside { position: static; } }
.ship-aside h3 { margin-bottom: .9rem; }
.ship-prod { display: flex; gap: .9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ship-prod img { flex: none; width: 76px; height: 84px; object-fit: contain; background: #f4f6fa; border: 1px solid var(--line); border-radius: 8px; }
.ship-prod strong { display: block; font-size: .98rem; }
.ship-prod span { display: block; font-size: .8rem; color: var(--muted); }
.ship-list { list-style: none; margin: 1rem 0 0; display: grid; gap: .65rem; font-size: .88rem; }
.ship-list li { display: flex; justify-content: space-between; gap: 1rem; }
.ship-list li span:first-child { color: var(--muted); flex: none; }
.ship-list li span:last-child { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ship-total { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.ship-total strong { color: #006BE8; font-size: 1.15rem; }
.ship-total small { display: block; margin-top: .25rem; color: var(--muted); font-size: .76rem; }
.ship-edit { display: inline-block; margin-top: 1rem; font-size: .84rem; font-weight: 600; color: #006BE8; }
.ship-form h3 { margin-bottom: .2rem; }
.ship-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.ship-guard, .ship-done { max-width: 620px; margin-inline: auto; text-align: center; }
.ship-guard h2, .ship-done h2 { margin-bottom: .6rem; }
.ship-guard p, .ship-done p { color: var(--muted); margin-bottom: 1.2rem; }
.ship-guard[hidden], .ship-done[hidden], .ship-layout[hidden] { display: none; }
.ship-done .confirm-icon { margin: 0 auto 1rem; }
.ship-meta { margin: 1rem 0; padding: .8rem 1rem; background: #f4f7fc; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .88rem; color: var(--ink); text-align: left; }
.ship-note { margin-top: 1rem; padding: .8rem 1rem; background: #fff8e1; border: 1px solid #f2d779; border-radius: var(--r-md); font-size: .84rem; color: #6b5200; }

/* ==========================================================================
   COMPACT INDUSTRY CATEGORIES  (one line on desktop, grid on mobile)
   ========================================================================== */
.dn-cats-wrap { position: relative; }
.dn-cats { display: flex; flex-wrap: nowrap; gap: .75rem; overflow-x: auto; overflow-y: hidden; padding: .35rem .25rem .9rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b9c9e6 transparent; }
.dn-cats::-webkit-scrollbar { height: 6px; }
.dn-cats::-webkit-scrollbar-thumb { background: #b9c9e6; border-radius: 10px; }
.dn-cat { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.dn-cat:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.dn-cat-img { aspect-ratio: 1 / 1; background: #0b0f16; overflow: hidden; }
.dn-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-cat-img.no-img { background: linear-gradient(160deg, #123a66, #0a6ae8); position: relative; }
.dn-cat-img.no-img::after { content: ""; position: absolute; inset: 0; margin: auto; width: 46%; aspect-ratio: 1; background: rgba(255,255,255,.9); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 3L3 6l2 4 2-1v12h10V9l2 1 2-4-5-3c-.5 1.5-2 2.5-4 2.5S8.500 4.500 8 3z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 3L3 6l2 4 2-1v12h10V9l2 1 2-4-5-3c-.5 1.5-2 2.5-4 2.5S8.500 4.500 8 3z'/></svg>") center / contain no-repeat; }
.dn-cat h3 { font-family: var(--font-head); font-size: .92rem; line-height: 1.2; font-weight: 700; color: var(--ink); text-align: center; margin: .55rem .5rem .1rem; min-height: 2.2em; display: flex; align-items: center; justify-content: center; }
.dn-cat-btn { margin: auto .55rem .6rem; padding: .42rem .4rem; border: 0; border-radius: 100px; background: #0a6ae8; color: #fff; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.dn-cat-btn:hover { background: #0856bd; }
.dn-cat-btn.is-on { background: #fff; color: #0a6ae8; box-shadow: inset 0 0 0 2px #0a6ae8; }
.dn-cat.is-selected { border-color: #006BE8; box-shadow: 0 0 0 2px #006BE8; }
@media (max-width: 760px) {
  .dn-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; overflow: visible; padding: 0; }
  .dn-cat { flex: none; }
  .dn-cat h3 { font-size: .8rem; }
  .dn-cat-btn { font-size: .64rem; letter-spacing: .02em; margin: .35rem .4rem .5rem; }
}
@media (max-width: 440px) { .dn-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   COMPACT, PROFESSIONAL "design?" / "logo?" SECTIONS
   ========================================================================== */
.dn-compact { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.dn-compact .dn-head { margin-bottom: 1rem; }
.dn-compact .dn-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: .2rem; }
.dn-compact .dn-head p { font-size: .88rem; }
.dn-compact .dn-choices { gap: .7rem; max-width: 640px; }
.dn-compact .dn-choice { padding: .7rem .95rem; gap: .65rem; border-width: 1px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; box-shadow: none; }
.dn-compact .dn-choice .dot { width: 18px; height: 18px; border-width: 2px; }
.dn-compact .dn-choice .dot::after { width: 8px; height: 8px; }
.dn-compact .dn-choice:has(input:checked) { background: #f1f7ff; box-shadow: none; }
.dn-compact .dn-sub { margin-top: .9rem; max-width: 640px; padding: 1.1rem 1.2rem; }
.dn-compact .dn-sub h4 { font-size: 1.05rem; }
.dn-compact .dn-sub > p { font-size: .82rem; }
.dn-compact .dn-form .field-group { margin-bottom: .8rem; }
.dn-compact .dn-form textarea { min-height: 80px; }
.dn-compact .dn-upload { margin-top: .7rem; }
.dn-compact .dn-upload .upload-zone { padding: 1rem .8rem; }
.dn-compact .dn-upload .upload-zone strong { font-size: .92rem; }
.dn-compact .dn-upload .upload-zone svg { width: 24px; height: 24px; }
@media (max-width: 640px) { .dn-compact .dn-choices { grid-template-columns: 1fr 1fr; } .dn-compact .dn-choice { padding: .6rem .6rem; font-size: .8rem; } .dn-compact .dn-sub { padding: 1rem; } }

/* ==========================================================================
   DESIGN NOW v2  -  style first, logo, existing design, popup form
   ========================================================================== */

/* page now starts straight under the menu (banner removed) */
.dn-steps ol { display: flex; justify-content: center; align-items: center; gap: clamp(.4rem, 3vw, 1.6rem); width: 100%; margin: 0 auto; padding-inline: clamp(8px, 3vw, 28px); }
.dn-steps li { flex: 0 1 auto; }
.dn-steps a { padding-inline: clamp(.5rem, 2vw, 1.1rem); }

/* centered section headings / content */
.dn-head { text-align: center; }
.dn-head p { margin-inline: auto; }
.dn-compact .dn-choices { margin-inline: auto; }
.dn-compact .dn-sub { margin-inline: auto; }
.dn-compact .dn-sub > h4, .dn-compact .dn-sub > p { text-align: center; }
.dn-compact .dn-err[data-err="design"], .dn-compact .dn-err[data-err="logo"] { max-width: 640px; margin-inline: auto; text-align: center; }
.dn-compact .dn-upload { max-width: 460px; margin-inline: auto; }
.dn-final { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.dn-final .btn { margin-inline: auto; }

/* Style section: the picture slot is exactly 1024 x 1080 */
.dn-cz { align-items: start; grid-template-columns: 1fr; }
.dn-cz .cz-stage-wrap { position: static; }
.dn-stage { aspect-ratio: 2576 / 1852; max-height: none; max-width: 1100px; width: 100%; background: #fff; touch-action: pan-y pinch-zoom; }
.dn-cz .cz-panel { max-width: 1100px; width: 100%; margin-inline: auto; }
.dn-stage { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.dn-stage > img { object-fit: contain; }
.dn-stage > img[hidden], .dn-stage-ph[hidden] { display: none; }
.dn-stage-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1rem; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: inherit; }
.dn-stage-ph strong { color: var(--ink); font-size: 1rem; }
.dn-stage-ph span { font-size: .82rem; }
.dn-stage-ph code { padding: .1rem .4rem; border-radius: 4px; background: #e9eef8; color: #0a3d91; font-size: .78rem; word-break: break-all; }
@media (max-width: 860px) { .dn-stage { max-height: none; max-width: 100%; } .dn-cap { margin-bottom: .4rem; } }

/* ---------- popup form ---------- */
body.dn-modal-open { overflow: hidden; }
.dn-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(10px, 3vw, 24px); }
.dn-modal[hidden] { display: none; }
.dn-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 20, .68); backdrop-filter: blur(3px); }
.dn-modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: var(--r-lg); padding: clamp(1.3rem, 4vw, 2rem); box-shadow: 0 24px 70px rgba(0, 0, 0, .4); outline: none; animation: dnPop .22s ease-out; }
@keyframes dnPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dn-modal-x { position: absolute; top: .6rem; right: .7rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f9; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dn-modal-x:hover { background: #dfe7f5; }
.dn-modal-card h3 { margin: 0 2rem .3rem 0; }
.dn-modal-sub { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.dn-sum { list-style: none; margin: 0 0 1.1rem; padding: .8rem 1rem; display: grid; gap: .4rem; background: #f4f7fc; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .84rem; }
.dn-sum li { display: flex; justify-content: space-between; gap: 1rem; }
.dn-sum li span:first-child { color: var(--muted); flex: none; }
.dn-sum li span:last-child { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.dn-modal-card .field-group { margin-bottom: .9rem; }
.dn-modal-card textarea { resize: vertical; min-height: 84px; }
.dn-modal-card .field-group.invalid textarea { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.dn-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dn-modal-card .dn-err[data-dn-submit-error] { margin: 0 0 .9rem; }
.dn-modal-done { text-align: center; }
.dn-modal-done h3 { margin-right: 0; }
.dn-modal-done p { color: var(--muted); margin-bottom: 1rem; }
.dn-modal-done .confirm-icon { margin: 0 auto 1rem; }
@media (max-width: 480px) { .dn-modal { align-items: flex-end; padding: 0; } .dn-modal-card { max-width: none; border-radius: 18px 18px 0 0; max-height: 94dvh; } }

/* ==========================================================================
   MOBILE SCROLL FIX  (Design Now)
   ========================================================================== */

/* ROOT CAUSE: .cz-stage (shared with the Customize page, where the logo is
   dragged) uses touch-action:none. On Design Now the preview image fills most
   of a phone screen, so any swipe that started on it was swallowed and the
   page would not scroll. Design Now has nothing to drag, so let the browser
   handle vertical panning (and pinch-zoom) on it. */
.dn-stage { touch-action: pan-y pinch-zoom; user-select: auto; -webkit-user-select: auto; -webkit-touch-callout: none; }
.dn-stage > img { pointer-events: none; }

/* Anchor jumps: html already has scroll-padding-top = nav + 16px, and the old
   .dn-sec scroll-margin-top added the whole nav height AGAIN, so sections
   landed far too low. Only add the sticky steps bar's height here. */
.dn-sec, .dn-catprods { scroll-margin-top: 36px; }
@media (max-width: 760px) { .dn-sec, .dn-catprods { scroll-margin-top: 48px; } }

/* Popup form: stop the page behind it from scrolling / bouncing through
   (iOS ignores overflow:hidden on body alone) and keep inner scrolling smooth. */
html:has(body.dn-modal-open) { overflow: hidden; }
body.dn-modal-open { overflow: hidden; overscroll-behavior: none; }
.dn-modal { overscroll-behavior: contain; }
.dn-modal-backdrop { touch-action: none; }
.dn-modal-card { touch-action: pan-y; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }

/* Keep the sticky steps bar from being squeezed or scrolled sideways on tiny phones */
.dn-steps ol { overflow: visible; }
@media (max-width: 360px) { .dn-steps a { padding-inline: .15rem; font-size: .62rem; } }

/* style search bar */
.dn-search { position: relative; margin-bottom: .7rem; }
.dn-search input { width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: .9rem; background: #fff; }
.dn-search input:focus { outline: none; border-color: #006BE8; }
.dn-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.dn-results[hidden] { display: none; }
.dn-result { display: block; width: 100%; padding: .65rem .9rem; text-align: left; font-size: .88rem; font-weight: 600; background: #fff; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.dn-result:last-child { border-bottom: 0; }
.dn-result:hover { background: #eef4ff; color: #006BE8; }
.dn-noresult { padding: .8rem .9rem; font-size: .85rem; color: var(--muted); }
