/* personalgavan.se: shop additions on top of site.css (same tokens, see DESIGN.md). */

.skip { position: absolute; left: -9999px; top: 0.5rem; background: var(--card); padding: 0.6rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; }

/* Header: mark, nav and order button. Below 48rem the nav takes its own row and scrolls sideways. */
.top .wrap { flex-wrap: wrap; row-gap: 0; }
.nav { order: 3; flex-basis: 100%; display: flex; gap: 1.25rem; overflow-x: auto; padding: 0 0 0.75rem; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--ink); padding: 0.25rem 0; }
.nav a:hover { color: var(--berry); }
.nav a[aria-current="page"] { color: var(--fir); box-shadow: inset 0 -2px 0 var(--fir); }
@media (min-width: 48rem) {
  .top .wrap { flex-wrap: nowrap; }
  .nav { order: 0; flex-basis: auto; padding: 0; margin-left: auto; gap: 1.5rem; overflow: visible; }
}
.btn-small { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.95rem; }

/* Generic page wrapper */
.page { padding-top: var(--space-4); padding-bottom: var(--space-5); }
.page > h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: var(--space-3); }
.section-lead { color: var(--muted); }
.more { margin-top: var(--space-4); font-weight: 500; }
.h-sub { font-size: 1.6rem; margin: var(--space-5) 0 var(--space-2); }
.prose-cols p { max-width: 66ch; }
.prose-page h2 { font-size: 1.5rem; margin: var(--space-5) 0 var(--space-3); }
.prose-page .spec { max-width: 40rem; }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.hero-product { padding-top: 0; }

/* Product cards */
.cards { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card a { text-decoration: none; color: var(--ink); display: block; }
.card-img { background: var(--paper-deep); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: var(--space-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card a:hover .card-img img { transform: scale(1.03); }
.card h2, .card h3 { font-size: 1.35rem; font-variation-settings: 'opsz' 24; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.card a:hover :is(h2, h3) { color: var(--berry); }
.card-price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin: 0; }
.card-price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.card-meta { color: var(--muted); font-size: 0.92rem; margin: 0.2rem 0 0; }

/* Occasion links */
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); padding: 1rem 0; display: grid; gap: 0.25rem; }
@media (min-width: 48rem) { .links li { grid-template-columns: 18rem 1fr; gap: 2rem; align-items: baseline; } }
.links a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 560; }
.links span { color: var(--muted); }

/* Guide */
.guide { max-width: 46rem; }
.guide h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: var(--space-3); }
.guide h2 { font-size: 1.6rem; margin: var(--space-5) 0 var(--space-3); }
.guide .byline { color: var(--muted); font-size: 0.92rem; }
.guide ul { padding-left: 1.2rem; }
.guide li { margin-bottom: 0.4rem; }
.guide-cta { font-weight: 600; margin-top: var(--space-5); }

/* Configurator */
@media (min-width: 60rem) {
  .form-grid > .summary { order: 2; }
}
.preview { position: relative; background: var(--paper-deep); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; margin-bottom: 0.6rem; }
.preview > img { width: 100%; height: 100%; object-fit: cover; }
.preview-yta {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--muted); border-radius: var(--radius-sm);
  font-size: 0.75rem; line-height: 1.2; text-align: center; color: var(--muted); padding: 0.2rem;
}
.preview-yta.har-logga { border-color: transparent; }
.preview-yta img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 59.99rem) {
  .summary .preview { max-width: 16rem; margin-inline: auto; }
}
/* Newsreader and Schibsted have figure-width punctuation in tabular-nums, which opens gaps before , and . */
.examples { font-variant-numeric: normal; }
.choices { display: grid; gap: 0.6rem; margin-bottom: var(--space-3); }
@media (min-width: 40rem) { .choices { grid-template-columns: 1fr 1fr; } }
.sizes { margin-bottom: var(--space-3); }
.sizes[hidden] { display: none; }
.sizes .label { font-weight: 500; font-size: 0.97rem; margin-bottom: 0.35rem; }
.sizes-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.sizes-row .field { margin-bottom: 0.35rem; }
.sizes-row input { padding-inline: 0.5rem; text-align: center; }
.choice {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 0.6rem;
  font-weight: 400;
}
.choices.stangd .choice:not(:has(input:checked)) { display: none; }
.choices.stangd { grid-template-columns: 1fr; }
.byt { margin: -0.4rem 0 var(--space-3); font-size: 0.95rem; }
.choice:has(input:checked) { border-color: var(--fir); box-shadow: inset 0 0 0 1px var(--fir); }
.choice input { width: 1.2rem; min-height: auto; accent-color: var(--fir); flex: none; }
.choice img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-deep); }
.choice span { font-size: 0.95rem; }
#nivaer { margin-top: 0; }
#nivaer tr.aktiv td { font-weight: 600; color: var(--fir); }
