/* Sortberg Shop: siderne (forside, kategori, søgning, produkt og størrelsesguide). Indlæses efter style.css. */
/* ------------------------------------------------------------------ */
/* Forside                                                             */
/* ------------------------------------------------------------------ */
.page-stack { padding-top: 40px; padding-bottom: 80px; display: grid; gap: 64px; }
.page-stack--tight { gap: 32px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--sh-primary-soft); }
.hero__text { padding: 56px; display: grid; gap: 20px; align-content: center; justify-items: start; }
.hero__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-text-2); }
.hero h1, .hero h2 { font-size: 48px; font-weight: 500; }
.hero__lead { font-size: 17px; line-height: 26px; color: var(--c-text-2); }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { border: 1px solid var(--c-border); background: var(--c-bg); height: 440px; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: contain; }

.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.status .card { display: grid; gap: 10px; align-content: start; }
.status__big { font-size: 28px; font-weight: 500; }
.status__mid { font-size: 22px; font-weight: 500; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status__mid--icon { font-size: 20px; }
.status p.muted { font-size: 14px; }
.status .link { justify-self: start; }

.section { display: grid; gap: 24px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section__head p { font-size: 14px; color: var(--c-text-2); margin-top: 4px; }

.reorder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reorder__item { border: 1px solid var(--c-border); padding: 16px; display: flex; gap: 16px; align-items: center; }
.reorder__img { width: 72px; height: 88px; border: 1px solid var(--c-border); background: var(--c-bg-muted); flex: none; overflow: hidden; }
.reorder__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.reorder__text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.reorder__name { font-size: 15px; font-weight: 500; text-decoration: none; }
.reorder__meta { font-size: 13px; color: var(--c-text-2); }
.reorder__price { font-size: 14px; font-weight: 500; }
.reorder__btn-icon { display: none; }

/* Produktkort */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { display: grid; gap: 14px; align-content: start; position: relative; }
.pcard__img { position: relative; border: 1px solid var(--c-border); background: var(--c-bg-muted); aspect-ratio: 4 / 5; overflow: hidden; display: block; }
/* Hele tøjet skal kunne ses: billedet skaleres ind med luft om, aldrig beskåret. */
.pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.pcard__heart { position: absolute; top: 7px; right: 7px; z-index: 2; }
.heart-btn { width: 34px; height: 34px; display: grid; place-items: center; background: var(--c-bg); border: 0; padding: 0; color: var(--c-text); }
.heart-btn[aria-pressed="true"] { color: var(--sh-primary); }
.heart-btn[aria-pressed="true"] svg path { fill: currentColor; }
.pcard__text { display: grid; gap: 4px; }
.pcard__name { font-size: 16px; font-weight: 500; text-decoration: none; }
.pcard__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__row { display: flex; gap: 16px; align-items: center; }
.pcard__price { font-size: 15px; font-weight: 500; white-space: nowrap; }
.pcard__action { position: relative; z-index: 2; }
.pcard__cta { pointer-events: none; }
.pcard__cta { transition: background-color .15s, border-color .15s; }
.pcard:hover .pcard__cta { background: var(--sh-primary-hover); border-color: var(--sh-primary-hover); }
.pcard:hover .pcard__img img { transform: scale(1.03); }
.pcard__img img { transition: transform .25s ease; }
.swatches { display: flex; gap: 6px; }
.swatch { display: grid; gap: 3px; }
.swatch i { display: block; width: 24px; height: 16px; border: 1px solid var(--c-border); }
.swatch b { display: block; width: 24px; height: 2px; background: var(--c-text); visibility: hidden; }
.swatch:first-child b { visibility: visible; }

/* ------------------------------------------------------------------ */
/* Kategori og søgning                                                 */
/* ------------------------------------------------------------------ */
.crumbs { font-size: 13px; color: var(--c-text-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.catalog { padding-top: 32px; padding-bottom: 96px; display: grid; gap: 28px; }
.catalog__head { display: grid; gap: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 14px; border: 1px solid var(--c-border); font-size: 14px; text-decoration: none; background: var(--c-bg); white-space: nowrap; }
.chip:hover { border-color: var(--c-border-selected); }
.chip.is-active { background: var(--sh-primary); border-color: var(--sh-primary); color: var(--sh-on-primary); }
.catalog__more { display: grid; gap: 14px; justify-items: center; font-size: 13px; color: var(--c-text-2); margin-top: 8px; }
.search-page form.search { width: 100%; max-width: 560px; height: 48px; }

/* ------------------------------------------------------------------ */
/* Produktside                                                         */
/* ------------------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 80px; padding-right: 80px; max-width: var(--max); margin: 0 auto; }
.gallery { display: grid; gap: 2px; align-content: start; }
.gallery__main { position: relative; border: 1px solid var(--c-border); border-top: 0; background: var(--c-bg); aspect-ratio: 640 / 785; min-height: 560px; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__slide { position: absolute; inset: 0; display: none; }
.gallery__slide.is-active { display: block; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: var(--c-bg-muted); display: grid; place-items: center; }
.gallery__nav--prev { left: 24px; }
.gallery__nav--next { right: 24px; }
.gallery__count { position: absolute; left: 24px; bottom: 24px; background: var(--c-bg-muted); padding: 9px 16px; font-size: 12px; line-height: 17px; }
.gallery__zoom { position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px; background: var(--c-bg-muted); border: 0; display: grid; place-items: center; }
.gallery__thumbs { display: flex; gap: 8px; padding: 12px 0 12px 40px; flex-wrap: wrap; }
.gallery__thumb { width: 88px; height: 88px; border: 1px solid var(--c-border); padding: 0; background: var(--c-bg); overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gallery__thumb[aria-current="true"] { border-color: var(--sh-primary); border-width: 2px; }
.gallery__dots { display: none; }

.pdp__info { padding: 32px 0 96px; display: grid; gap: 20px; align-content: start; }
.pdp__title { display: flex; align-items: center; gap: 14px; }
.pdp__title h1 { font-size: 28px; line-height: 52px; font-weight: 500; }
.pdp__title .heart-btn { width: 44px; height: 44px; }
.pdp__sub { font-size: 16px; line-height: 23px; color: var(--c-text-2); margin-top: -8px; }
.pdp__price { display: flex; align-items: baseline; gap: 8px; font-size: 24px; line-height: 40px; font-weight: 500; padding: 8px 0 20px; border-bottom: 1px solid var(--c-border); }
.pdp__price small { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--c-text-2); }
.buy-form { display: grid; gap: 20px; }
.opt { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.opt__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.opt__head legend, .opt__legend { padding: 0; font-size: 15px; }
.js-sizes .opt__legend { font-size: 16px; line-height: 23px; }
.opt__head strong { font-weight: 600; margin-left: 2px; }
.opt__aside { font-size: 12px; color: var(--c-text-2); }
.colors { display: flex; gap: 12px; flex-wrap: wrap; }
.color { display: grid; gap: 8px; justify-items: center; width: 72px; padding-top: 4px; font-size: 13px; color: var(--c-text-2); cursor: pointer; position: relative; }
.color input { position: absolute; opacity: 0; pointer-events: none; }
.color i { width: 64px; height: 64px; border: 1px solid var(--c-border); display: block; position: relative; }
.color input:checked + i { outline: 2px solid var(--sh-primary); outline-offset: 2px; }
.color input:checked + i::after {
	content: ""; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; background: var(--sh-primary)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.color input:checked ~ span { color: var(--c-text); font-weight: 600; }
.color input:focus-visible + i { outline: 2px solid var(--c-focus); outline-offset: 4px; }
/* Farvefelt: farvens billede, farvekoden eller det første bogstav (inc/colors.php). */
.color__swatch--image img { width: 100%; height: 100%; object-fit: cover; }
.color .color__swatch--light { border-color: var(--c-border-strong); }
.color .color__swatch--letter { display: grid; place-items: center; background: var(--c-bg-muted); color: var(--c-text-2); font-size: 20px; font-style: normal; font-weight: 500; }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.size { position: relative; display: grid; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: grid; place-items: center; height: 56px; border: 1px solid var(--c-border-strong); margin: 0 -1px -1px 0; font-size: 14px; font-weight: 500; cursor: pointer; background: var(--c-bg); }
.size input:checked + span { background: var(--sh-primary); color: var(--sh-on-primary); border-color: var(--sh-primary); position: relative; z-index: 1; }
.size input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: -2px; z-index: 2; }
.size input:checked:focus-visible + span { outline-color: var(--sh-on-primary); outline-offset: -5px; }
.size input:disabled + span { background: var(--c-bg-muted); color: var(--c-text-2); text-decoration: line-through; cursor: not-allowed; }
.size small { display: none; text-align: center; font-size: 11px; line-height: 17px; color: var(--c-text-2); padding-top: 8px; }
.size input:disabled ~ small { display: block; }
.guide-link { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 400; }
.custom { background: var(--sh-tint); }
.custom summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.custom summary > span { display: grid; gap: 3px; }
.custom summary::-webkit-details-marker { display: none; }
.custom summary strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.52px; text-transform: uppercase; color: var(--c-text); }
.custom summary span span { font-size: 12px; color: var(--c-text-2); }
.custom summary .icon { color: var(--sh-primary); }
.custom[open] summary .icon { transform: rotate(45deg); }
.custom__body { padding: 0 16px 16px; display: grid; gap: 16px; font-size: 14px; }
.custom .field select { width: 100%; min-height: 46px; padding: 11px 48px 11px 14px; border: 1px solid var(--c-border-strong); border-radius: 0; background-color: var(--c-bg); font-size: 15px; }
.custom legend.field__label { padding: 0; margin-bottom: 0; }
.placements { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.placement { position: relative; display: grid; cursor: pointer; }
.placement input { position: absolute; opacity: 0; pointer-events: none; }
.placement__box { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px 8px; border: 1px solid var(--c-border-strong); background: var(--c-bg); font-size: 13px; }
.placement__box small { font-size: 12px; color: var(--c-text-2); }
.placement input:checked + .placement__box { border: 2px solid var(--sh-primary); padding: 11px 7px; font-weight: 500; }
.placement input:focus-visible + .placement__box { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.custom__locked { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--c-border); background: var(--c-bg-muted); }
.custom__locked .muted { margin-left: auto; font-size: 12px; }
.buy { display: flex; gap: 8px; }
.buy .qty--large { width: 140px; height: 56px; justify-content: space-between; padding: 0 4px; }
.buy .qty--large button { width: 44px; height: 44px; }
.buy .qty--large input { width: 44px; height: 44px; font-size: 16px; }
.buy .btn { flex: 1; min-height: 56px; font-size: 15px; letter-spacing: 0.8px; padding: 0 16px; }
.buy .qty__label { display: none; }
.prev-order { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.prev-order p { font-size: 12px; color: var(--c-text-2); }
.prev-order strong { font-weight: 500; font-size: 14px; display: block; color: var(--c-text); margin-top: 2px; }
.prev-order .btn { min-height: 0; padding: 10px 16px; font-size: 13px; letter-spacing: 0.8px; }
.acc { border-top: 1px solid var(--c-border-strong); }
.acc details { border-bottom: 1px solid var(--c-border-strong); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] summary .icon { transform: rotate(45deg); }
.acc__body { padding: 0 0 20px; font-size: 15px; color: var(--c-text-2); display: grid; gap: 10px; }
.acc__body a { color: var(--c-text); }
/* Pointboksen under købsknappen: én sætning og en bjælke. For få point er en rolig advarsel. */
.points-after--item { padding: 14px 16px; gap: 10px; }
.points-after__text { font-size: 14px; font-weight: 500; line-height: 1.4; }
.points-after--item .progress { height: 6px; }
.points-after--item.points-after--short { border-color: var(--c-warning); background: var(--c-warning-soft); }
.points-after--item.points-after--short .points-after__text { color: var(--c-warning-text); }
.points-after--item.points-after--short .progress { background: var(--n-0); }
.points-after--item.points-after--short .progress > span { background: var(--c-warning); }
.gallery.is-single .gallery__nav, .gallery.is-single .gallery__thumbs, .gallery.is-single .gallery__dots { display: none; }
.sku { font-size: 12px; line-height: 20px; color: var(--c-text-3); padding-top: 16px; }
.sticky-buy { display: none; }

/* Størrelsesguide og billedzoom (dialog) */
.dialog { border: 1px solid var(--c-border-selected); padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--c-bg); color: var(--c-text); }
.dialog::backdrop { background: color-mix(in srgb, var(--n-950) 45%, transparent); }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; background: var(--c-bg); }
.dialog__head h2 { font-size: 24px; }
.dialog__head p { font-size: 13px; color: var(--c-text-2); margin-top: 4px; }
.dialog__close { width: 40px; height: 40px; border: 1px solid var(--c-border); background: var(--c-bg); display: grid; place-items: center; flex: none; }
.dialog__body { padding: 24px 28px 28px; display: grid; gap: 28px; }
.dialog--zoom { width: min(1100px, calc(100vw - 32px)); }
.dialog--zoom img { width: 100%; height: auto; max-height: calc(100vh - 160px); object-fit: contain; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--c-border); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px 10px 0; margin-right: 16px; font-size: 14px; font-weight: 500; color: var(--c-text-2); }
.tabs button[aria-selected="true"] { color: var(--c-text); border-bottom-color: var(--sh-primary); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.6px; color: var(--c-text-3); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table td:last-child, .table th:last-child { text-align: right; padding-right: 0; }
.table--guide th, .table--guide td { text-align: center; padding: 12px 8px; }
.table--guide th:first-child, .table--guide td:first-child { text-align: left; font-weight: 500; color: var(--c-text); }
.table--guide th:last-child, .table--guide td:last-child { text-align: center; }
.table--guide tbody th { font-size: 14px; font-weight: 500; color: var(--c-text); letter-spacing: 0; }
.table--guide tr.is-current th, .table--guide tr.is-current td { background: var(--sh-tint); }
.how-to { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-to div { border: 1px solid var(--c-border); padding: 16px; display: grid; gap: 6px; font-size: 13px; color: var(--c-text-2); }
.how-to strong { color: var(--c-text); font-size: 14px; font-weight: 500; }
.how-to b { display: grid; place-items: center; width: 24px; height: 24px; background: var(--c-bg-muted); font-size: 12px; font-weight: 500; color: var(--c-text); }


/* ------------------------------------------------------------------ */
/* Toast "Lagt i kurven" (Figma 201:669)                               */
/* ------------------------------------------------------------------ */
.woocommerce-message.toast {
	position: fixed; z-index: 70; top: 131px; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + 80px));
	width: min(390px, calc(100vw - 2 * var(--gutter))); margin: 0; padding: 12px 12px 12px 16px;
	display: flex; gap: 12px; align-items: center; flex-wrap: nowrap;
	background: var(--c-bg-inverse); color: var(--c-text-inverse); border: 0;
	font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px color-mix(in srgb, var(--n-950) 15%, transparent);
}
/* WooCommerce renser beskedens HTML (svg mister stroke/fill), så stregen sættes her. */
.toast svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.toast__body { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toast__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.toast__close { width: 28px; height: 28px; display: grid; place-items: center; flex: none; background: none; border: 0; padding: 0; color: inherit; }
