/* ==========================================================================
   Kategori (hub + listing), søgning, mærke
   ========================================================================== */

.c-listing { padding-top: 24px; }
.c-listing__head { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; max-width: 820px; }
.c-listing__head h1 { font-size: 44px; line-height: 1.1; }
.c-listing__count { color: var(--muted); font-weight: 600; }
.c-listing__intro { margin: 0; font-size: 17px; }
.c-exact {
	margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: #fff;
	border: 1px solid var(--accent); border-radius: var(--r-lg); color: var(--ink); text-decoration: none;
}
.c-exact:hover { color: var(--ink); border-color: var(--dark); }
.c-exact__name { font-weight: 600; }
.c-exact__go { margin-left: auto; font-weight: 600; color: var(--dark-2); }
.c-sibs { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.c-sibs::-webkit-scrollbar { display: none; }
.c-sibs .c-chip { flex: none; }
.c-sibs .c-chip[aria-current] .c-count { color: #fff; }

.c-listing__grid { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
@media (max-width: 1100px) { .c-listing__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; } }

/* Filters */
.c-filters { position: sticky; top: 176px; max-height: calc(100vh - 192px); overflow-y: auto; overflow-x: hidden; min-width: 0; scrollbar-width: thin; padding-right: 4px; }
.admin-bar .c-filters { top: 208px; max-height: calc(100vh - 224px); }
.c-filters__mhead, .c-filters__mfoot { display: none; }
.c-fit { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.c-fit__head { display: flex; align-items: center; gap: 8px; font: 600 16px var(--ff-display); }
.c-fit__head .c-icon { color: var(--dark); }
.c-fit__sub { font-size: 13px; color: var(--muted); margin-top: -6px; }
.c-fit__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c-fit__grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; color: var(--dark-2); min-width: 0; }
.c-fit__grid .c-input { height: 40px; padding: 0 8px; font-size: 13px; }
.c-fgroups { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 16px; }
.c-fgroup { border-bottom: 1px solid var(--line); }
.c-fgroup:last-child { border-bottom: 0; }
.c-fgroup__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; text-align: left; color: var(--ink); }
.c-fgroup__btn .c-icon { color: var(--dark); transition: transform var(--t-fast); }
.c-fgroup__btn[aria-expanded="true"] .c-icon { transform: rotate(180deg); }
.c-fgroup__n { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 11px; }
.c-fgroup__body { padding: 0 0 16px; }
.c-fgroup__body[hidden] { display: none; }
.c-fgroup__body--checks { padding-bottom: 14px; }
.c-fgroup__body--checks .c-check { padding: 5px 0; }
.c-fgroup__body--checks .c-check span:nth-child(2) { flex: 1; }
.c-check.is-disabled { opacity: .4; cursor: default; }
.c-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.c-chip--check { font-weight: 600; padding: 0 12px; position: relative; }
.c-chip--check.is-active .c-count { color: #fff; }
.c-chip--check:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-frange { display: flex; flex-direction: column; gap: 10px; }
.c-frange input[type="range"] { width: 100%; accent-color: var(--dark); }
.c-frange__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c-frange__inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); min-width: 0; }
.c-fgroup--toggle { padding: 0; }
.c-fstock { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; cursor: pointer; }
.c-fstock__label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.c-fstock__label .c-count { font-weight: 500; }
.c-fstock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.c-fstock input:focus-visible + .c-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-fstock input:checked + .c-switch { background: var(--ok); }
.c-fstock input:checked + .c-switch::after { left: 19px; }

/* Main column */
.c-listing__main { min-width: 0; }
.c-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.c-pills .c-icon { flex: none; }
.c-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.c-toolbar__count { font-size: 14px; }
.c-toolbar__right { display: flex; align-items: center; gap: 12px; }
.c-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.c-toolbar__sort .c-select { height: 40px; width: auto; padding: 0 10px; font-size: 14px; }
.c-mfilter { display: none; }
.c-grid--listing { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.c-listing.is-loading [data-listing-results] { opacity: .5; transition: opacity var(--t-fast); pointer-events: none; }

/* List view */
.c-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.c-rows table { width: 100%; font-size: 14px; min-width: 860px; }
.c-rows thead tr { text-align: left; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.c-rows th { padding: 12px 10px; font-weight: 600; white-space: nowrap; }
.c-rows th:first-child { padding-left: 16px; }
.c-rows th a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.c-rows th a.is-on { color: var(--ink); }
.c-rows th a span { font-size: 10px; }
.c-rows tbody tr { border-bottom: 1px solid var(--tile); }
.c-rows tbody tr:hover { background: var(--accent-50); }
.c-rows td { padding: 10px; vertical-align: middle; }
.c-rows__thumb { width: 56px; padding: 10px 0 10px 16px !important; }
.c-rows__name a { font-weight: 600; color: var(--ink); text-decoration: none; }
.c-rows__name a:hover { text-decoration: underline; }
.c-rows__sku { font-size: 12px; color: var(--muted); }
.c-rows__num { font-size: 13px; white-space: nowrap; }
.c-rows__price { text-align: right; font-weight: 700; white-space: nowrap; font-feature-settings: "tnum"; }
.c-rows__act { text-align: right; padding-right: 16px !important; }
.c-rows .c-stock { white-space: nowrap; }

/* Paging + empty */
.c-more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 36px 0 0; }
.c-noresults { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.c-noresults__title { font: 700 24px var(--ff-display); }
.c-listing__below { margin-top: 96px; }
.c-stack { display: flex; flex-direction: column; gap: 16px; }
.c-listing__seo { padding: 64px 0 96px; }

/* Hub */
.c-hub { padding-top: 24px; }
.c-hub__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 16px; }
.c-hub__text { display: flex; flex-direction: column; gap: 16px; }
.c-hub__text h1 { font-size: 52px; line-height: 1.05; }
.c-hub__intro { margin: 0; font-size: 18px; max-width: 560px; }
.c-hub__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.c-hub__img { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); }
.c-hub__img img { width: 100%; height: 100%; object-fit: cover; }
.c-subtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.c-subtile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color var(--t-fast); }
.c-subtile:hover { border-color: var(--dark); color: var(--ink); }
.c-subtile__img { aspect-ratio: 4 / 3; background: var(--tile); display: flex; align-items: center; justify-content: center; position: relative; color: var(--ghost); }
.c-subtile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.c-subtile__body { padding: 12px 14px 14px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.c-subtile__body span:first-child { font-weight: 600; font-size: 15px; line-height: 1.3; }
.c-bigcta { margin-top: 24px; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px 16px; border: 1px solid var(--dark); border-radius: var(--r-md); background: #fff; font-weight: 600; color: var(--dark); text-decoration: none; }
.c-bigcta:hover { background: var(--accent-50); color: var(--dark); }

/* Shop */
.c-shop { padding-top: 24px; }
.c-shopcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.c-shopcat { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.c-shopcat__img { aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--tile); }
.c-shopcat__img img { width: 100%; height: 100%; object-fit: cover; }
.c-shopcat h2 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.c-shopcat h2 a { color: var(--ink); text-decoration: none; }
.c-shopcat ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; font-size: 14px; }
.c-shopcat li { padding: 3px 0; break-inside: avoid; }
.c-shopcat li a { color: var(--ink); text-decoration: none; }
.c-shopcat li a:hover { text-decoration: underline; }

/* Brand */
.c-brandhead { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; }
.c-brandhead__logo { aspect-ratio: 16 / 9; border: 1px dashed var(--line-2); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; padding: 16px; }
.c-brandhead__logo img { max-height: 100%; width: auto; object-fit: contain; }
.c-brandhead__name { font: 700 32px var(--ff-display); letter-spacing: -0.01em; }
.c-brandhead__text { display: flex; flex-direction: column; gap: 12px; }
.c-brandhead__text h1 { font-size: 44px; line-height: 1.1; }
.c-brandhead__desc p { margin: 0 0 8px; font-size: 17px; max-width: 680px; }
.c-brandhead__stats { display: flex; gap: 28px; margin-top: 6px; font-size: 14px; }
.c-brandhead__stats b { font: 700 22px var(--ff-display); }
.c-brandcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.c-brandcat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; }
.c-brandcat:hover { border-color: var(--dark); color: var(--ink); }
.c-brandcat__img { aspect-ratio: 3 / 2; background: var(--tile); }
.c-brandcat__img img { width: 100%; height: 100%; object-fit: cover; }
.c-brandcat__name { padding: 14px; font: 600 16px var(--ff-display); display: flex; justify-content: space-between; gap: 8px; }

/* Mobile: filters become a full-height bottom sheet */
@media (max-width: 900px) {
	.c-listing__head h1, .c-brandhead__text h1 { font-size: 30px; }
	.c-hub__text h1 { font-size: 34px; }
	.c-listing__intro, .c-hub__intro { font-size: 16px; }
	.c-listing__grid { grid-template-columns: 1fr; margin-top: 16px; }
	.c-hub__hero { grid-template-columns: 1fr; gap: 20px; }
	.c-hub__img { order: -1; aspect-ratio: 16 / 9; }
	.c-filters {
		position: fixed; inset: 0; top: 0 !important; max-height: none !important; z-index: 86; background: var(--bg); padding: 0;
		transform: translateY(100%); visibility: hidden; transition: transform var(--t) ease-out, visibility var(--t); overflow: hidden;
	}
	.c-filters.is-open { transform: none; visibility: visible; }
	.c-filters__form { height: 100%; display: flex; flex-direction: column; }
	.c-filters__mhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; background: #fff; border-bottom: 1px solid var(--line); min-height: 60px; }
	.c-filters__scroll { flex: 1; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
	.c-filters__mfoot { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
	.c-mfilter { display: flex; gap: 8px; position: sticky; top: calc(var(--sticky-top) + 8px); z-index: 20; margin-bottom: 12px; transition: top var(--t) var(--ease); }
	.c-mfilter .c-btn { flex: 1; }
	.c-mfilter__sort { flex: 1; }
	.c-mfilter__sort .c-select { height: 44px; font-weight: 600; font-size: 14px; }
	.c-toolbar__sort { display: none; }
	.c-toolbar { margin-bottom: 12px; padding-bottom: 12px; }
	.c-subtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.c-subtile__body { flex-direction: column; gap: 2px; padding: 10px; }
	.c-subtile__body span:first-child { font-size: 14px; }
	.c-noresults { padding: 24px; }
	.c-listing__below { margin-top: 56px; }
	.c-brandhead { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
	.c-brandhead__logo { aspect-ratio: auto; min-height: 90px; }
	.c-shopcat { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
	.c-shopcat ul { columns: 1; }
}
@media (max-width: 480px) { .c-toolbar__right .c-seg a { padding: 0 8px; } }
