/* sk-shop: shop archive and product category pages (handoff "Systemkassen Shop Redesign"), Divi 5 + WooCommerce templates.
   Ported from woodmart-child/css/sk-shop.css and the sk-list/sk-boxfinder parts of style.css (2026-10-13 … 10-29): same
   values, selectors rewritten from WoodMart/Elementor widgets to the theme's structure (woocommerce/archive-product.php,
   woocommerce/content-product.php, inc/shop.php). Loaded only on the shop archives, scoped to body.sk-shop. */
.sk-shop { --sk-r: 8px; --sk-field: #cbd5e3; --sk-panel: #eaf3fc; }
.sk-shop .sk-main.sk-woo { background: #f3f6fa; padding-bottom: 60px; }

/* Breadcrumb + result count: compact, secondary */
.sk-shop-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 20px; border-bottom: 1px solid var(--sk-border); margin-bottom: 30px; }
.sk-shop .sk-shop-crumbs, .sk-shop .woocommerce-result-count { margin: 0 !important; font-size: 14px; color: var(--sk-muted); float: none; }
.sk-shop .sk-shop-crumbs a { color: var(--sk-muted); text-decoration: none; }
.sk-shop .sk-shop-crumbs a:hover { color: var(--sk-blue-03); }
.sk-shop .sk-shop-crumbs .sk-crumbs__sep { margin: 0 8px; }
.sk-shop .sk-shop-crumbs > :last-child { color: var(--sk-text); font-weight: 600; }
.sk-shop-desc:empty, .sk-shop-desc:not(:has(*)) { display: none; }
.sk-shop .term-description, .sk-shop .page-description { max-width: 800px; margin: 0 0 30px; line-height: 1.65; }

/* Two columns: 270px filter panel | content */
.sk-shop-cols { display: flex; align-items: flex-start; gap: 30px; }
.sk-shop-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* WoodMart layout 1229: the list column is 1020px (Elementor left 40px free to the right of it) */
@media (min-width: 1025px) { .sk-shop-main { margin-right: 40px; } }

/* Filter panel: one calm white panel, "Filtre" heading, collapsible groups, checkbox rows */
.sk-filters { flex: 0 0 270px; width: 270px; box-sizing: border-box; padding: 20px; background: var(--sk-surface); border: 1px solid var(--sk-border); border-radius: var(--sk-r); }
.sk-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 14px; }
.sk-site .sk-filter-title { margin: 0; padding: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--sk-deep-blue); }
.sk-filter-clear { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--sk-blue-03); text-decoration: none; }
.sk-filter-clear:hover { color: var(--sk-blue-02); text-decoration: underline; }
.sk-filter-close { display: none; }
.sk-fgroup { margin: 0; padding: 16px 0; border-top: 1px solid var(--sk-border); }
.sk-site .sk-fgroup__title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--sk-deep-blue); cursor: pointer; }
.sk-fgroup__title::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin: 0 4px 0 12px; border: solid var(--sk-deep-blue); border-width: 0 2px 2px 0; transform: translateY(2px) rotate(-135deg); transition: transform .15s; }
.sk-fgroup.sk-collapsed .sk-fgroup__title { margin-bottom: 0; }
.sk-fgroup.sk-collapsed .sk-fgroup__title::after { transform: translateY(-2px) rotate(45deg); }
.sk-fgroup.sk-collapsed .sk-fgroup__body { display: none; }
.sk-filters ul { margin: 0; padding: 0 !important; list-style: none; }
.sk-filters li { list-style: none; }
.sk-filters :is(.wc-layered-nav-term, .product-categories li) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; padding: 4px 0; font-size: 14px; line-height: 1.35; color: var(--sk-text); }
.sk-filters :is(.wc-layered-nav-term > a, .product-categories li > a) { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; font-size: 14px; color: var(--sk-text); text-decoration: none; }
.sk-filters :is(.wc-layered-nav-term > a, .product-categories li > a)::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; box-sizing: border-box; border: 1.5px solid #8a94a6; border-radius: 3px; background: #fff center / 12px no-repeat; }
.sk-filters .wc-layered-nav-term.chosen > a::before { background-color: var(--sk-blue-03); border-color: var(--sk-blue-03); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sk-filters .wc-layered-nav-term.chosen > a { font-weight: 600; color: var(--sk-deep-blue); }
/* Categories are navigation (one at a time): round marker, current category filled. Branches open only on the current path. */
.sk-filters .product-categories li > a::before { border-radius: 50%; }
.sk-filters .product-categories li.current-cat > a::before { border-color: var(--sk-blue-03); background-color: var(--sk-blue-03); box-shadow: inset 0 0 0 3px #fff; }
.sk-filters .product-categories li.current-cat > a { font-weight: 600; color: var(--sk-deep-blue); }
.sk-filters .product-categories .children { flex: 0 0 100%; margin: 4px 0 0 26px !important; }
.sk-filters .product-categories li > a { padding: 8px 0; }
.sk-filters .product-categories li:not(.current-cat):not(.current-cat-parent):not(.current-cat-ancestor):not(.is-open) > .children,
.sk-filters .product-categories li.is-closed > .children { display: none; }
.sk-cat-toggle { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 -6px 0 0; padding: 0; border: 0; background: none; color: #8a94a6; cursor: pointer; }
.sk-cat-toggle::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.sk-cat-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.sk-cat-toggle:hover { color: var(--sk-deep-blue); }
.sk-filters .count { margin: 0 0 0 auto; font-size: 13px; color: var(--sk-muted); }
.sk-filters a:hover { color: var(--sk-blue-03); }

/* Dimension search: light blue panel, fields in a row, SØG button */
.sk-boxfinder--light { margin: 0; padding: 20px 24px; background: var(--sk-panel); border: 1px solid #d6e6f7; border-radius: var(--sk-r); color: var(--sk-text); }
.sk-boxfinder fieldset.sk-bf-dims { min-width: 0; margin: 0; padding: 0; border: 0; }
.sk-bf-dims--row { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 12px; }
.sk-site .sk-bf-dims legend { float: left; grid-column: 1 / -1; width: 100%; margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 700; color: var(--sk-deep-blue); }
.sk-boxfinder--light label { display: block; margin: 0; font-size: 14px; font-weight: 500; color: var(--sk-text); }
.sk-site .sk-boxfinder--light input { display: block; box-sizing: border-box; width: 100%; height: 44px; margin-top: 6px; padding: 0 14px; background: #fff; border: 1px solid var(--sk-field); border-radius: var(--sk-r); color: var(--sk-text); font: 400 14px var(--sk-font); text-align: left; }
.sk-boxfinder--light input::placeholder { color: #6b7487; opacity: 1; }
.sk-site .sk-bf-go { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 32px; border: 0; border-radius: var(--sk-r); background: var(--sk-blue-03); color: #fff; font: 700 15px var(--sk-font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.sk-site .sk-bf-go:hover { background: var(--sk-blue-02); }

/* Toolbar: white bar, title left, sorting right; the list below is one card with it */
.sk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 -20px; padding: 18px 24px; background: var(--sk-surface); border: 1px solid var(--sk-border); border-radius: var(--sk-r) var(--sk-r) 0 0; }
.sk-site .sk-toolbar__title { margin: 0; padding: 0; font-size: 24px; line-height: 1.2; color: var(--sk-deep-blue); }
.sk-toolbar__right { display: flex; align-items: center; gap: 12px; }
.sk-shop .woocommerce-ordering { margin: 0 !important; float: none; }
/* Own chevron 14px in from the edge: the browser's native arrow ignores padding and sat against the border. */
.sk-shop .woocommerce-ordering select.orderby { height: 44px; padding: 0 40px 0 14px; font-size: 14px; color: var(--sk-text); background: var(--sk-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat; border: 1px solid var(--sk-field); border-radius: var(--sk-r); -webkit-appearance: none; appearance: none; cursor: pointer; }
.sk-filter-open { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--sk-field); border-radius: var(--sk-r); background: var(--sk-surface); color: var(--sk-deep-blue); font: 600 14px var(--sk-font); cursor: pointer; }

/* Product rows: image | title+Varenr+Varegruppe | price | units | quantity | cart | favourite */
.sk-shop ul.products { display: block; margin: 0 !important; padding: 0 !important; background: var(--sk-surface); border: 1px solid var(--sk-border); border-top: 0; border-radius: 0 0 var(--sk-r) var(--sk-r); overflow: hidden; }
.sk-shop ul.products::before, .sk-shop ul.products::after { display: none !important; }
.sk-shop ul.products li.sk-l-row {
	position: relative; display: grid; float: none; width: auto !important; margin: 0 !important; padding: 16px 20px !important;
	grid-template-columns: 80px minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, .85fr) 276px 36px; column-gap: 20px; align-items: center;
	border-bottom: 1px solid var(--sk-border); list-style: none; text-align: left;
}
.sk-shop ul.products li.sk-l-row:last-child { border-bottom: 0; }
/* Divi sizes product grids with ul.products li.product:nth-child(n) { width; float; margin !important } below 980px */
.sk-shop .sk-shop-main ul.products li.product.sk-l-row:nth-child(n) { float: none !important; clear: none !important; width: auto !important; margin: 0 !important; }
.sk-l-thumb { display: block; width: 80px; height: 80px; background: var(--sk-bg); border-radius: var(--sk-r); overflow: hidden; }
.sk-l-thumb img { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: contain; }
.sk-site .sk-l-title, .sk-shop ul.products li.sk-l-row .sk-l-title { margin: 0 0 3px; padding: 0; font-size: 15px !important; line-height: 1.3; font-weight: 700; }
.sk-l-title a { color: var(--sk-deep-blue); text-decoration: none; }
.sk-l-title a:hover { color: var(--sk-blue-03); }
.sk-l-sku, .sk-l-group { margin: 0 !important; padding: 0; font-size: 13px; line-height: 1.5; color: var(--sk-muted); }
/* vertical dividers left of the price and units columns (centred in the 20px gap) */
@media (min-width: 1025px) {
	.sk-l-pricecol, .sk-l-unitscol { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
	.sk-l-pricecol::before, .sk-l-unitscol::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: -10px; width: 1px; background: var(--sk-border); }
}
/* price column (plugin ssk-product-list + sk_pp_price_stack): pallet price first, anbrudspris underneath, EPR note */
.sk-l-price { display: flex; flex-direction: column; font-size: 12px; line-height: 1.4; color: var(--sk-muted); }
.sk-l-price p { margin: 0 !important; padding: 0; }
.sk-l-price .sk-price-main { font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--sk-deep-blue); }
.sk-l-price.is-tiered .sk-price-main { color: var(--sk-blue-03); }
.sk-l-price .sk-price-main :is(.amount, bdi) { color: inherit !important; font-size: inherit !important; font-weight: inherit; }
.sk-l-price .sk-price-main .woocommerce-price-suffix { display: none; }
.sk-l-price .sk-price-anbrud { margin-top: 4px !important; color: var(--sk-text); }
.sk-l-price .sk-price-anbrud :is(span, .amount, bdi) { font-weight: 600; color: var(--sk-text) !important; font-size: inherit !important; }
.sk-l-price .sk-l-epr2 { color: var(--sk-muted); }
.sk-l-units { margin: 0 !important; padding: 0; font-size: 13px; color: var(--sk-muted); }

/* Buy: quantity stepper [-][n][+] (js/sk-qty.js around the CPA input) + "Læg i kurv", one line */
.sk-l-buy .cpa-loop-purchase-control { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 0 20px; margin: 0; }
.sk-l-buy .cpa-uom-control--fixed { display: none; }
.sk-l-buy .cpa-uom-control:not(.cpa-uom-control--fixed) { grid-column: 1 / -1; margin-bottom: 6px; font-size: 13px; color: var(--sk-muted); }
.sk-shop .cpa-uom-quantity > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.sk-shop .cpa-uom-quantity.sk-qty { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 0; width: 120px; height: 44px; margin: 0; border: 1px solid var(--sk-field); border-radius: var(--sk-r); background: var(--sk-surface); overflow: hidden; }
.sk-shop .cpa-uom-quantity.sk-qty input[name="quantity"] { flex: 1 1 auto; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--sk-border); border-right: 1px solid var(--sk-border); border-radius: 0; text-align: center; color: var(--sk-deep-blue); font-weight: 600; -moz-appearance: textfield; appearance: textfield; box-shadow: none; background: #fff; }
.sk-shop .cpa-uom-quantity.sk-qty input::-webkit-outer-spin-button, .sk-shop .cpa-uom-quantity.sk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sk-shop .sk-qty-btn { flex: 0 0 36px; width: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--sk-surface); color: var(--sk-deep-blue); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; }
.sk-shop .sk-qty-btn:hover { background: var(--sk-blue-05); }
.sk-shop .sk-qty-btn:focus-visible, .sk-shop .cpa-uom-quantity.sk-qty input:focus-visible { outline: 2px solid var(--sk-blue-03); outline-offset: -2px; }
.sk-shop .cpa-uom-quantity.sk-qty:focus-within { border-color: var(--sk-blue-03); }
.sk-shop .sk-l-buy .button { width: 100%; min-height: 44px; height: 44px; margin: 0 !important; padding: 0 12px; border-radius: var(--sk-r); background: var(--sk-blue-03); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; box-shadow: none; }
.sk-shop .sk-l-buy .button:hover { background: var(--sk-blue-02); color: #fff; }
.sk-shop .sk-l-buy .button:focus-visible { outline: 2px solid var(--sk-deep-blue); outline-offset: 2px; }
.sk-shop .sk-l-buy .added_to_cart { display: none; }
.sk-l-wish { display: flex; justify-content: center; }
.sk-l-wish .bdk-wishlist-loop { display: flex; }
.sk-l-wish .bdk-wishlist-btn { width: 36px; height: 36px; justify-content: center; color: var(--sk-text); }
.sk-l-wish .bdk-wishlist-btn:hover { color: var(--sk-blue-03); }

/* Pagination */
.sk-shop .woocommerce-pagination { margin-top: 30px; text-align: center; }
.sk-shop .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 6px; margin: 0; padding: 0; border: 0 !important; }
.sk-shop .woocommerce-pagination ul.page-numbers li { margin: 0; border: 0 !important; list-style: none; }
.sk-shop .woocommerce-pagination .page-numbers li :is(a, span) { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; box-sizing: border-box; border: 1px solid var(--sk-border); border-radius: var(--sk-r); background: var(--sk-surface); color: var(--sk-deep-blue); text-decoration: none; }
.sk-shop .woocommerce-pagination .page-numbers li a:hover { border-color: var(--sk-blue-03); color: var(--sk-blue-03); }
.sk-shop .woocommerce-pagination .page-numbers li span.current { background: var(--sk-blue-03); border-color: var(--sk-blue-03); color: #fff; }

/* Empty result / målsøgning message */
/* WoodMart: with no products the toolbar is a closed box, the yellow notice sits 20px below it */
.sk-shop-main .sk-toolbar:has(+ .sk-shop-empty) { margin-bottom: 0; border-radius: var(--sk-r); }
.sk-shop-empty .woocommerce-info { margin: 0; }

/* "Om kategorien" under the list */
.sk-shop-about { padding: 50px 0 60px; background: #fff; }
.sk-site .sk-shop-about h2 { margin: 0 0 20px; font-size: 32px; }
.sk-shop-about p { max-width: 800px; }

/* Off-canvas filters below 1025px (opened from the toolbar) */
@media (max-width: 1024px) {
	.sk-shop-cols { display: block; }
	.sk-filter-open { display: inline-flex; }
	.sk-filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100001; width: min(340px, 90vw); overflow-y: auto; border-radius: 0; transform: translateX(-100%); transition: transform .25s ease; visibility: hidden; }
	.sk-filters.is-open { transform: none; visibility: visible; box-shadow: 0 0 9px rgba(0, 0, 0, .12); }
	.sk-filter-close { display: inline-flex; padding: 6px; border: 0; background: none; color: var(--sk-text); cursor: pointer; }
	.sk-filters-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .55); }
	.sk-shop ul.products li.sk-l-row { grid-template-columns:  80px minmax(0, 1fr); row-gap: 12px; }
	.sk-l-thumb { grid-column: 1; grid-row: 1; }
	.sk-l-info { grid-column: 2; grid-row: 1; }
	/* WoodMart hides the list's wishlist button below 1025px */
	.sk-l-wish { display: none; }
	.sk-l-pricecol { grid-column: 1 / -1; grid-row: 2; }
	.sk-l-unitscol { grid-column: 1 / -1; grid-row: 3; }
	.sk-l-buy { grid-column: 1 / -1; grid-row: 4; }
	/* 481–1024px: stepper and button joined on one line */
	.sk-l-buy .cpa-loop-purchase-control { grid-template-columns: 120px 1fr; gap: 0; }
	.sk-shop .sk-l-buy .cpa-uom-quantity.sk-qty { border-radius: var(--sk-r) 0 0 var(--sk-r); }
	.sk-shop .sk-l-buy .button { border-radius: 0 var(--sk-r) var(--sk-r) 0; }
}
/* 768–1024px (WoodMart): price left, "Antal pr. bundt" right, at the bottom of the same row */
@media (min-width: 768px) and (max-width: 1024px) {
	.sk-shop ul.products li.sk-l-row { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); }
	.sk-l-info { grid-column: 2 / -1; }
	.sk-l-pricecol { grid-column: 1 / 3; }
	.sk-l-unitscol { grid-column: 3; grid-row: 2; align-self: end; }
	.sk-l-buy { grid-row: 3; }
}
@media (max-width: 767px) {
	.sk-shop-top { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 16px; margin-bottom: 20px; }
	.sk-bf-dims--row { grid-template-columns: repeat(3, 1fr); }
	.sk-bf-dims--row .sk-bf-go { grid-column: 1 / -1; }
	/* Title on its own line; "Filtre" left and sorting as a 44px icon button right, as WoodMart. The 232px select ran
	   62px past the screen edge next to a long category title. The native picker still opens on tap. */
	.sk-toolbar { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
	.sk-toolbar__title { flex: 1 0 100%; }
	.sk-toolbar__right { flex: 1 0 100%; justify-content: space-between; }
	.sk-shop .woocommerce-ordering select.orderby { width: 44px; padding: 0 0 0 44px; overflow: hidden; color: transparent !important; -webkit-text-fill-color: transparent; background: var(--sk-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300205B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E") center / 20px no-repeat; -webkit-appearance: none; appearance: none; cursor: pointer; }
	.sk-shop .woocommerce-ordering select.orderby option { color: var(--sk-text); -webkit-text-fill-color: var(--sk-text); }
	.sk-shop ul.products li.sk-l-row { padding: 16px !important; }
}
@media (max-width: 480px) {
	.sk-l-buy .cpa-loop-purchase-control { grid-template-columns: 1fr; row-gap: 12px; }
	.sk-shop .sk-l-buy .cpa-uom-quantity.sk-qty { width: 100%; border-radius: var(--sk-r); }
	.sk-shop .sk-l-buy .button { border-radius: var(--sk-r); }
}

/* No products: WooCommerce's notice + a product search below, as WoodMart */
.sk-shop-empty__search { margin-top: 20px; }
