/* «Mine design»-butikken (ADR-070/071). Ingen nye komponenter: sidene bygger på .step-card, .order,
   .choice, .swatch, .summary, .notice, .order-declare, .stripe-skel, .order-bar og takk-sidens .confirm-wrap
   (alt fra order.css/styles.css). Denne filen har bare det som ikke finnes fra før: katalogkort, bildegalleri,
   og noen få aliaser/luker Dina fant i mockup-runden. Basert på Dinas godkjente css/design.css. */

/* Katalogseksjon på forsiden: samme seksjonsrytme som .verksted-section. */
.design-section { padding-block: clamp(48px, 8vh, 80px); border-top: 1px solid var(--line); }
.design-section h2 { font-size: 26px; }
.design-section__lead { max-width: 56ch; margin: 8px 0 24px; color: var(--text-dim); }
.design-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.design-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; }
.design-card__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt-2, #EEE6DA); }
@media (hover: hover) { .design-card:hover { border-color: var(--orange); color: var(--ink); } }
.design-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.design-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 14px 16px; }
.design-card__title { font-weight: 600; color: var(--ink); }
.design-card__desc { font-size: 14px; line-height: 1.5; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.design-card__prices { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; font-size: 14px; color: var(--text-faint); }
.design-card__prices b { font: 500 14px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.design-card__prices--short { display: none; }
.design-section__empty, .design-section__error { color: var(--text-dim); }
@media (max-width: 960px) { .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .design-card__body { padding: 10px 12px 12px; } .design-card__desc, .design-card__prices--full { display: none; } .design-card__prices--short { display: flex; } }

/* Designside og kjøp: rammen er .wizard > .step-card > .order som i steg 2–4. */
.crumbs { font-size: 14px; color: var(--text-faint); margin: 20px 0 16px; }
.crumbs a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.step-card__head h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
@media (max-width: 860px) { .step-card__head h1 { font-size: 26px; } }
.dp__main-img { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dp__main-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt-2, #EEE6DA); }
.dp__thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; }
.dp__thumb { display: block; width: 100%; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.dp__thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dp__thumb[aria-current="true"] { border-color: var(--o-select); box-shadow: inset 0 0 0 1px var(--o-select); }
.dp__thumb:focus-visible { outline: 2px solid var(--o-focus); outline-offset: 2px; }
.dp__plate { margin: 0 0 16px; }
.dp__plate img { display: block; width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt-2, #EEE6DA); }
.dp__plate figcaption { margin-top: 6px; font-size: 13px; color: var(--muted, #6b6459); }
.order-section > p { margin: 0 0 12px; max-width: 62ch; }
.order .notice a, .confirm-wrap .notice a, .confirm-wrap .order-section__help a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }

/* Nedlasting/design-takk: takk-sidens .confirm-wrap; .notice fra order.css trenger avstand utenfor .order. */
.confirm-wrap .notice { margin: 20px auto 16px; text-align: left; }
.confirm-wrap .notice, .confirm-wrap .btn-block { max-width: 420px; margin-inline: auto; }
a.btn-primary, .order a.btn-primary { color: var(--orange-on); text-decoration: none; }
.confirm-wrap .order-section__help { font-size: 14px; color: var(--text-faint); margin-top: 12px; }
.confirm-wrap.wrap-narrow { padding-inline: 6vw; } /* .confirm-wrap { padding: X 0 } nuller sidemargen til .wrap-narrow */

.order-bar [hidden], .dp [hidden], .buy [hidden] { display: none !important; }
/* 5 lenker + logo får ikke plass på 390 px: «Tjenester» skjules på smal mobil. */
@media (max-width: 560px) { .nav-links .nav-opt { display: none; } }

.design-card__dots { display: flex; gap: 4px; padding-top: 6px; }
.design-card__dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line, #ccc); background: var(--c, #ccc); }
.swatch--out { opacity: .5; }

/* Beskrivelse fra admin: bevar linjeskift og avsnitt (teksten settes inn som ren tekst). */
#dp-lead, #dp-description { white-space: pre-line; }
