/* Stemmerne Shop – bruger temaets farver og skrifter (med reserver, hvis temaet mangler). */
.sshop, .sshop-grid, .sshop-cart-link {
	--s-ink: var(--ink, #1A1612);
	--s-paper: var(--paper, #F3EEE4);
	--s-paper-2: var(--paper-2, #EAE3D6);
	--s-white: var(--white, #fff);
	--s-accent: var(--accent, #D63A22);
	--s-accent-text: var(--accent-text, #B8301B);
	--s-muted: var(--muted, #5E554B);
	--s-line: var(--line, #D9D0C2);
	--s-yellow: var(--yellow, #F0B429);
	--s-radius: var(--radius, 20px);
	--s-serif: var(--serif, Georgia, serif);
}

/* Kurv i headeren */
.sshop-cart-link { position: relative; display: none; }
.sshop-cart-link.is-shop, .sshop-cart-link.has-items { display: inline-flex; }
.sshop-count {
	position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: var(--s-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}

/* Beskeder */
.sshop-notice { margin: 0 0 24px; padding: 14px 18px; border: 2px solid var(--s-ink); border-radius: 14px; background: var(--s-yellow); font-weight: 600; }
.sshop-notice.is-warn { background: #FBE3DE; }

/* Oversigt */
.sshop-hero .cat-title { font-size: clamp(48px, 7vw, 96px); }
.sshop .sshop-archive { margin-top: 56px; margin-bottom: 96px; }
.sshop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.sshop-card { display: flex; flex-direction: column; gap: 14px; color: var(--s-ink); min-width: 0; }
.sshop-card:hover { color: var(--s-ink); }
.sshop-card-media {
	position: relative; display: block; aspect-ratio: 1 / 1; border: 2px solid var(--s-ink); border-radius: var(--s-radius);
	overflow: hidden; background: var(--s-white); transition: transform .15s ease, box-shadow .15s ease;
}
.sshop-card:hover .sshop-card-media { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--s-ink); }
.sshop-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sshop-card-media .sshop-ph { display: block; width: 100%; height: 100%; }
.sshop-card.is-sold-out img { filter: grayscale(.8); opacity: .7; }
.sshop-card-text { display: flex; flex-direction: column; gap: 4px; }
.sshop-card h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
.sshop-card:hover h3 { color: var(--s-accent-text); }
.sshop-card-price { font-weight: 700; }
.sshop-compare { color: var(--s-muted); font-weight: 400; margin-left: 4px; }
.sshop-badge {
	position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--s-yellow); color: var(--s-ink);
	border: 2px solid var(--s-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.sshop-badge.is-out { background: var(--s-ink); color: var(--s-paper); }
.sshop-badge.is-digital { background: var(--s-white); }
.sshop-badge.is-inline { position: static; display: inline-block; align-self: flex-start; }
.sshop-ph { display: block; width: 100%; height: 100%; min-height: 80px; }
.sshop-fineprint { margin: 40px 0 0; color: var(--s-muted); font-size: 15px; }
.sshop-empty { border: 2px dashed var(--s-ink); border-radius: var(--s-radius); padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sshop-empty h2 { font-size: 36px; font-weight: 800; }
.sshop-empty p { margin: 0 0 8px; color: var(--s-muted); max-width: 520px; }

/* Produktside */
.sshop .sshop-product { margin-top: 32px; margin-bottom: 80px; }
.sshop-crumbs { font-size: 15px; color: var(--s-muted); margin-bottom: 24px; }
.sshop-crumbs a { font-weight: 700; color: var(--s-ink); }
.sshop-product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.sshop-gallery-main { border: 2px solid var(--s-ink); border-radius: var(--s-radius); overflow: hidden; background: var(--s-white); display: flex; align-items: center; justify-content: center; }
/* Hele billedet vises altid (plakater, t-shirts …) – intet beskæres. */
.sshop-gallery-main img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.sshop-gallery-main .sshop-ph { display: block; width: 100%; aspect-ratio: 1 / 1; }
.sshop-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sshop-thumb { width: 76px; height: 76px; padding: 0; border: 2px solid var(--s-line); border-radius: 12px; overflow: hidden; background: none; cursor: pointer; }
.sshop-thumb.is-active { border-color: var(--s-ink); }
.sshop-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sshop-buy { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.sshop-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.sshop-buy-price { margin: 0; font-size: 26px; font-weight: 700; }
.sshop-buy-price small { font-size: 14px; font-weight: 400; color: var(--s-muted); }
.sshop-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--s-muted); }
.sshop-form { display: flex; flex-direction: column; gap: 16px; }
.sshop-variants { border: 0; margin: 0; padding: 0; min-width: 0; }
.sshop-variants legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.sshop-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sshop-pill { position: relative; }
.sshop-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sshop-pill span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 48px; padding: 0 16px;
	border: 2px solid var(--s-ink); border-radius: 999px; font-weight: 700; background: var(--s-white);
}
.sshop-pill input:checked + span { background: var(--s-ink); color: var(--s-paper); }
.sshop-pill input:focus-visible + span { outline: 3px solid var(--s-accent); outline-offset: 2px; }
.sshop-pill.is-out span { border-color: var(--s-line); color: var(--s-muted); text-decoration: line-through; background: transparent; }
.sshop-left { margin: 0; font-weight: 700; color: var(--s-accent-text); min-height: 0; }
.sshop-left:empty { display: none; }
.sshop-add-row { display: flex; gap: 10px; }
.sshop-qty input {
	width: 84px; height: 56px; border: 2px solid var(--s-ink); border-radius: 999px; text-align: center; font: inherit; font-weight: 700;
	background: var(--s-white); color: var(--s-ink);
}
.sshop-add { flex: 1; min-height: 56px; font-size: 17px; }
.sshop-soldout { margin: 0; padding: 16px 18px; border: 2px dashed var(--s-ink); border-radius: 14px; }
.sshop-members { padding: 20px; border: 2px solid var(--s-ink); border-radius: 16px; background: var(--s-yellow); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sshop-members p { margin: 0; }
.sshop-delivery { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1.5px solid var(--s-line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--s-muted); }
.sshop-delivery li { padding-left: 22px; position: relative; }
.sshop-delivery li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--s-accent); }
.sshop-description { max-width: 760px; margin-top: 64px; }
.sshop-description h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }

/* Kurv */
.sshop .sshop-cart-page, .sshop .sshop-thanks { margin-top: 32px; margin-bottom: 96px; }
.sshop-page-title { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 32px; }
.sshop-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.sshop-lines { border-top: 2px solid var(--s-ink); }
.sshop-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1.5px solid var(--s-line); }
.sshop-line-img { display: block; width: 96px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 2px solid var(--s-ink); }
.sshop-line-img { background: var(--s-white); }
.sshop-line-img img, .sshop-line-img .sshop-ph { display: block; width: 100%; height: 100%; object-fit: contain; }
.sshop-line-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.sshop-line-name { font-family: var(--s-serif); font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--s-ink); }
.sshop-line-meta { font-size: 14px; color: var(--s-muted); }
.sshop-remove { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--s-accent-text); text-decoration: underline; cursor: pointer; }
.sshop-line .sshop-qty input { width: 72px; height: 44px; }
.sshop-qty-fixed { width: 72px; text-align: center; font-weight: 700; }
.sshop-line-total { font-weight: 700; min-width: 80px; text-align: right; white-space: nowrap; }
.sshop-summary {
	position: sticky; top: 24px; border: 2px solid var(--s-ink); border-radius: var(--s-radius); background: var(--s-white);
	padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 8px 8px 0 var(--s-ink);
}
.sshop-summary h2 { font-size: 28px; font-weight: 800; }
.sshop-sum-row { display: flex; justify-content: space-between; gap: 16px; }
.sshop-sum-row.is-total { border-top: 2px solid var(--s-ink); padding-top: 14px; font-size: 20px; font-weight: 800; }
.sshop-delivery-choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sshop-delivery-choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.sshop-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--s-line); border-radius: 12px; cursor: pointer; }
.sshop-radio:has(input:checked) { border-color: var(--s-ink); background: var(--s-paper); }
.sshop-radio input { accent-color: var(--s-ink); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.sshop-radio-text { flex: 1; min-width: 0; }
.sshop-radio-price { font-weight: 700; white-space: nowrap; }
.sshop-hint { margin: 0; font-size: 14px; color: var(--s-muted); }
.sshop-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.sshop-terms input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--s-ink); flex-shrink: 0; }
.sshop-terms a { text-decoration: underline; }
.sshop-pay { width: 100%; min-height: 56px; font-size: 17px; }
.sshop-secure { margin: 0; font-size: 13px; color: var(--s-muted); text-align: center; }
.sshop-test { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFF4D6; font-size: 13px; }

/* Tak */
.sshop-thanks { max-width: 760px; }
.sshop-thanks .cat-kicker { margin-bottom: 12px; }
.sshop-receipt { border: 2px solid var(--s-ink); border-radius: var(--s-radius); background: var(--s-white); padding: 24px; margin: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.sshop-dl { display: inline-block; margin-left: 8px; font-weight: 700; color: var(--s-accent-text); text-decoration: underline; }

@media (max-width: 960px) {
	.sshop-product-grid { grid-template-columns: 1fr; gap: 32px; }
	.sshop-buy { position: static; }
	.sshop-cart-grid { grid-template-columns: 1fr; }
	.sshop-summary { position: static; }
}
@media (max-width: 720px) {
	.sshop .sshop-archive { margin-top: 32px; margin-bottom: 56px; }
	.sshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
	.sshop-card h3 { font-size: 17px; }
	.sshop-card-price { font-size: 15px; }
	.sshop-badge { left: 8px; top: 8px; padding: 3px 8px; font-size: 10px; }
	.sshop-card:hover .sshop-card-media { transform: none; box-shadow: none; }
	.sshop .sshop-product { margin-top: 20px; margin-bottom: 48px; }
	.sshop-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img qty total"; gap: 8px 14px; }
	.sshop-line-img { grid-area: img; width: 72px; align-self: start; }
	.sshop-line-info { grid-area: info; }
	.sshop-line .sshop-qty, .sshop-qty-fixed { grid-area: qty; justify-self: start; }
	.sshop-line-total { grid-area: total; align-self: center; }
	.sshop-summary { padding: 20px; box-shadow: 5px 5px 0 var(--s-ink); }
	.sshop .sshop-cart-page, .sshop .sshop-thanks { margin-top: 20px; margin-bottom: 56px; }
	.sshop-page-title { margin-bottom: 20px; }
	.sshop-empty h2 { font-size: 28px; }
}
