/*
Theme Name: Astra DOLK Child
Template: astra
Version: 1.0.0
*/



@import url('https://fonts.googleapis.com/css2?family=Allerta+Stencil&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');

/* CRO Fix: Reducer hero-banner på produkt- og kategorisider */

/* Forhindrer hero-indhold i at blokere navigation/touch på alle sider */
.ast-inside-advanced-header-content {
  pointer-events: none;
}

/* Skjul den indre content-area på produkt- og kategorisider */
body.single-product .ast-inside-advanced-header-content,
body.archive .ast-inside-advanced-header-content {
  display: none;
}

/* Fjern padding-top der skaber tomt rum */
body.single-product .ast-advanced-headers-layout-2,
body.archive .ast-advanced-headers-layout-2 {
  padding-top: 0 !important;
}

.dolk-hook-header-meta {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 4px 10px;
	background: #000;
}

/* Keep Astra logo visible in the transparent header */
.site-header .site-branding,
.site-header .ast-site-identity,
.site-header .site-logo-img,
.site-header .custom-logo-link {
	display: flex;
	align-items: center;
	overflow: visible;
	opacity: 1;
	visibility: visible;
}

.site-header .site-branding,
.site-header .ast-site-identity {
	position: relative;
	z-index: 6;
	min-width: 120px;
}

.site-header .custom-logo-link {
	max-width: 220px;
}

.dolk-header-search-slot {
	display: flex;
	align-items: center;
}

.dolk-header-search-slot .wp-block-woocommerce-product-search,
.dolk-header-search-slot .wc-block-product-search,
.dolk-header-search-slot .wc-block-product-search__fields {
	width: 100%;
}

.dolk-header-search-slot--desktop {
	flex: 0 0 220px;
	width: 220px;
	max-width: 220px;
	min-width: 220px;
	margin-right: 16px;
}

.site-header .ast-header-woo-cart,
.site-header .ast-builder-layout-element[data-section*="woo-cart"],
.site-header .ast-header-cart-li {
	flex: 0 0 auto;
}

body.single-product .dolk-header-search-slot--desktop,
body.archive .dolk-header-search-slot--desktop,
body.tax-product_cat .dolk-header-search-slot--desktop,
body.tax-product_tag .dolk-header-search-slot--desktop {
	flex-basis: 160px;
	width: 160px;
	max-width: 160px;
	min-width: 160px;
	margin-right: 8px;
}

body.single-product .dolk-header-search-slot--desktop .custom-header-search,
body.archive .dolk-header-search-slot--desktop .custom-header-search,
body.tax-product_cat .dolk-header-search-slot--desktop .custom-header-search,
body.tax-product_tag .dolk-header-search-slot--desktop .custom-header-search {
	height: 44px;
	padding: 0 14px;
	font-size: 14px;
}

.dolk-header-search-slot .custom-header-search {
	width: 100%;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.96);
	color: #2b2b2b;
	font-size: 15px;
	box-shadow: none;
}

.dolk-header-search-slot .custom-header-search::placeholder {
	color: #6a6a6a;
	opacity: 1;
}

.dolk-header-search-slot .custom-header-search:focus {
	outline: none;
	border-color: rgba(139, 79, 35, 0.65);
	box-shadow: 0 0 0 3px rgba(139, 79, 35, 0.14);
}

.dolk-header-search-slot--mobile {
	display: none;
	margin: 0 0 18px;
	padding: 0 0 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .site-logo-img img {
	display: block !important;
	width: auto;
	max-width: 100%;
	max-height: 72px;
	opacity: 1 !important;
	visibility: visible !important;
}

.ast-theme-transparent-header .site-header .site-branding,
.ast-theme-transparent-header .site-header .ast-site-identity {
	position: relative;
	z-index: 8;
}

@media (max-width: 921px) {
	.site-header .custom-logo,
	.site-header .custom-logo-link img,
	.site-header .site-logo-img img {
		max-height: 56px;
	}

	.site-header .custom-logo-link {
		max-width: 170px;
	}

	.dolk-header-search-slot--desktop {
		display: none;
	}

	.dolk-header-search-slot--mobile {
		display: block;
		width: 100%;
	}

	.dolk-header-search-slot--mobile .custom-header-search {
		height: 48px;
		border-radius: 10px;
	}
}

@media (min-width: 922px) and (max-width: 1280px) {
	.dolk-header-search-slot--desktop {
		flex-basis: 180px;
		width: 180px;
		max-width: 180px;
		min-width: 180px;
		margin-right: 12px;
	}

	.dolk-header-search-slot .custom-header-search {
		height: 48px;
		padding: 0 16px;
		font-size: 14px;
	}

	body.single-product .dolk-header-search-slot--desktop,
	body.archive .dolk-header-search-slot--desktop,
	body.tax-product_cat .dolk-header-search-slot--desktop,
	body.tax-product_tag .dolk-header-search-slot--desktop {
		flex-basis: 140px;
		width: 140px;
		max-width: 140px;
		min-width: 140px;
	}
}


/* Fælles produktkort-layout for WooCommerce grids */
.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product,
.single-product section.related.products ul.products li.product,
.tax-product_brand ul.products li.product {
	display: flex;
	flex-direction: column;
}

.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap,
.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap,
.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap,
.single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap,
.tax-product_brand ul.products li.product .astra-shop-thumbnail-wrap {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 260px;
	margin-bottom: 16px;
}

.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-LoopProduct-link,
.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-LoopProduct-link,
.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-LoopProduct-link,
.single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-LoopProduct-link,
.tax-product_brand ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap img,
.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap img,
.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap img,
.single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap img,
.tax-product_brand ul.products li.product .astra-shop-thumbnail-wrap img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
}

/* Statuslabels må ikke skubbe layout */
.post-type-archive-product ul.products li.product .ast-shop-product-out-of-stock,
.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap .stock,
.tax-product_cat ul.products li.product .ast-shop-product-out-of-stock,
.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap .stock,
.tax-product_tag ul.products li.product .ast-shop-product-out-of-stock,
.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap .stock,
.single-product section.related.products ul.products li.product .ast-shop-product-out-of-stock,
.single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap .stock,
.tax-product_brand ul.products li.product .ast-shop-product-out-of-stock,
.tax-product_brand ul.products li.product .astra-shop-thumbnail-wrap .stock {
	position: static !important;
	display: block;
	margin-top: 8px;
	line-height: 1.3;
}

/* Tekstdel */
.post-type-archive-product ul.products li.product .astra-shop-summary-wrap,
.tax-product_cat ul.products li.product .astra-shop-summary-wrap,
.tax-product_tag ul.products li.product .astra-shop-summary-wrap,
.single-product section.related.products ul.products li.product .astra-shop-summary-wrap,
.tax-product_brand ul.products li.product .astra-shop-summary-wrap {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-type-archive-product ul.products li.product .ast-loop-product__link,
.tax-product_cat ul.products li.product .ast-loop-product__link,
.tax-product_tag ul.products li.product .ast-loop-product__link,
.single-product section.related.products ul.products li.product .ast-loop-product__link,
.tax-product_brand ul.products li.product .ast-loop-product__link {
	display: block;
}

.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
.single-product section.related.products ul.products li.product .woocommerce-loop-product__title,
.tax-product_brand ul.products li.product .woocommerce-loop-product__title {
	min-height: 3.9em;
	line-height: 1.3;
	margin: 0 0 10px;
}

.post-type-archive-product ul.products li.product .price,
.tax-product_cat ul.products li.product .price,
.tax-product_tag ul.products li.product .price,
.single-product section.related.products ul.products li.product .price,
.tax-product_brand ul.products li.product .price {
	min-height: 58px;
	display: block;
	margin-bottom: 14px;
}

/* Knap i bund */
.post-type-archive-product ul.products li.product .button,
.tax-product_cat ul.products li.product .button,
.tax-product_tag ul.products li.product .button,
.single-product section.related.products ul.products li.product .button,
.tax-product_brand ul.products li.product .button {
	margin-top: auto !important;
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

/* Tablet */
@media (max-width: 921px) {
	.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap,
	.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap,
	.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap,
	.single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap,
	.tax-product_brand ul.products li.product .astra-shop-thumbnail-wrap {
		min-height: 220px;
	}

	.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap img,
	.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap img,
	.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap img,
	.single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap img,
	.tax-product_brand ul.products li.product .astra-shop-thumbnail-wrap img {
		height: 180px;
	}
}

/* Mobil */
@media (max-width: 544px) {
	.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
	.post-type-archive-product ul.products li.product .price,
	.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
	.tax-product_cat ul.products li.product .price,
	.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
	.tax-product_tag ul.products li.product .price,
	.single-product section.related.products ul.products li.product .woocommerce-loop-product__title,
	.single-product section.related.products ul.products li.product .price,
	.tax-product_brand ul.products li.product .woocommerce-loop-product__title,
	.tax-product_brand ul.products li.product .price {
		min-height: auto;
	}
}

/* Custom catalog filters */
.dolk-archive {
	margin-top: 12px;
}

.dolk-archive-header {
	margin-bottom: 24px;
}

.dolk-archive-header__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 28px;
	border-radius: 18px;
}

.dolk-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding: 16px 18px;
	border: 1px solid #e6e1d8;
	border-radius: 16px;
	background: #faf7f1;
}

.dolk-shop-toolbar__filters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: #b96d3d;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.dolk-shop-toolbar__meta {
	color: #58606a;
	font-size: 14px;
}

.dolk-shop-toolbar__sort {
	margin-left: auto;
}

.dolk-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.dolk-active-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: #eef2e5;
	color: #2f4310;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
}

.dolk-active-filter-chip--reset {
	background: #f3ece5;
	color: #8a562f;
}

.dolk-shop-layout {
	position: relative;
}

.dolk-shop-filters {
	position: sticky;
	top: 120px;
	padding: 18px;
	border: 1px solid #e6e1d8;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(32, 26, 18, 0.05);
}

.dolk-shop-filters__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.dolk-shop-filters__header h2 {
	margin: 0;
	font-size: 1.1rem;
}

.dolk-shop-filters__close {
	display: none;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.dolk-catalog-filters__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dolk-filter-group {
	border-top: 1px solid #ede8df;
	padding-top: 16px;
}

.dolk-filter-group:first-child {
	border-top: 0;
	padding-top: 0;
}

.dolk-filter-group__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #2f4310;
	font-size: 15px;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
}

.dolk-filter-group__toggle::after {
	content: "+";
	font-size: 20px;
	line-height: 1;
	color: #8a562f;
}

.dolk-filter-group__toggle[aria-expanded="true"]::after {
	content: "-";
}

.dolk-filter-group__panel {
	display: none;
	padding-top: 12px;
}

.dolk-filter-group__panel--open {
	display: block;
}

.dolk-filter-group__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 280px;
	overflow-y: auto;
	padding-right: 4px;
}

.dolk-filter-check {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #31363d;
	font-size: 14px;
	line-height: 1.4;
}

.dolk-filter-check input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #b96d3d;
}

.dolk-price-range {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.dolk-price-range label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #5a626c;
}

.dolk-price-range input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #d9d1c6;
	border-radius: 10px;
	background: #fff;
}

.dolk-catalog-filters__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 8px;
}

.dolk-filter-submit,
.dolk-filter-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 16px;
	border-radius: 12px;
	font-weight: 700;
	text-decoration: none;
}

.dolk-filter-submit {
	border: 0;
	background: #2f4310;
	color: #fff;
	cursor: pointer;
}

.dolk-filter-reset {
	background: #f5f1ea;
	color: #8a562f;
}

.dolk-shop-results {
	min-width: 0;
}

.dolk-shop-filters-backdrop {
	display: none;
}

.dolk-catalog-sidebar--desktop {
	display: block;
}

.dolk-catalog-sidebar__inner {
	position: sticky;
	top: 120px;
	padding: 18px;
	border: 1px solid #e6e1d8;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(32, 26, 18, 0.05);
}

@media (min-width: 922px) {
	.dolk-shop-toolbar__filters {
		display: none;
	}

	.dolk-shop-filters--drawer,
	.dolk-shop-filters-backdrop {
		display: none !important;
	}
}

@media (max-width: 921px) {
	.dolk-catalog-sidebar--desktop {
		display: none;
	}

	.dolk-shop-toolbar {
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 14px;
	}

	.dolk-shop-toolbar__sort {
		width: 100%;
		margin-left: 0;
	}

	.dolk-shop-toolbar__filters {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 0 16px;
		border-radius: 999px;
		font-size: 14px;
		font-weight: 800;
		gap: 8px;
	}

	.dolk-shop-toolbar__filters-badge {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 22px;
		height: 22px;
		padding: 0 6px;
		border-radius: 999px;
		background: #2f4310;
		color: #fff;
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
	}

	.dolk-active-filters {
		gap: 8px;
		margin: 12px 0 16px;
	}

	.dolk-active-filter-chip {
		padding: 8px 12px;
		font-size: 13px;
	}

	.dolk-shop-filters {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 1001;
		width: min(400px, calc(100vw - 20px));
		max-width: 100%;
		padding: 0;
		border: 0;
		border-radius: 0 18px 18px 0;
		transform: translateX(-110%);
		transition: transform 0.24s ease;
		overflow: hidden;
		box-shadow: 0 20px 60px rgba(17, 17, 17, 0.28);
		background: #fff;
		top: 0;
	}

	.dolk-shop-filters__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 999px;
		background: #f5f1ea;
		color: #8a562f;
		font-size: 24px;
	}

	.dolk-shop-filters-backdrop {
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: rgba(13, 14, 15, 0.48);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.24s ease;
		display: block;
	}

	.dolk-shop-filters__header {
		position: sticky;
		top: 0;
		z-index: 2;
		padding: 16px 16px 14px;
		margin: 0;
		background: #fff;
		border-bottom: 1px solid #ede8df;
	}

	.dolk-shop-filters__header h2 {
		margin: 0;
		font-size: 1rem;
		letter-spacing: 0.02em;
	}

	.dolk-shop-filters__header-copy {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.dolk-shop-filters__summary {
		margin: 0;
		font-size: 13px;
		line-height: 1.35;
		color: #727b85;
	}

	.dolk-shop-filters__summary.has-selection {
		color: #8a562f;
		font-weight: 700;
	}

	.dolk-shop-filters .dolk-catalog-filters__form {
		height: calc(100dvh - 72px);
		padding: 14px 16px 16px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		gap: 14px;
	}

	.dolk-shop-filters .dolk-filter-group {
		padding-top: 14px;
	}

	.dolk-shop-filters .dolk-filter-group.has-selected {
		border-top-color: #dcc6b1;
	}

	.dolk-shop-filters .dolk-filter-group__toggle {
		font-size: 14px;
	}

	.dolk-shop-filters .dolk-filter-group.has-selected .dolk-filter-group__toggle {
		color: #8a562f;
	}

	.dolk-shop-filters .dolk-filter-group__options {
		gap: 12px;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.dolk-shop-filters .dolk-filter-check {
		gap: 12px;
		font-size: 15px;
		line-height: 1.45;
		padding: 8px 10px;
		border-radius: 12px;
		transition: background-color 0.18s ease, color 0.18s ease;
	}

	.dolk-shop-filters .dolk-filter-check input {
		width: 18px;
		height: 18px;
		flex: 0 0 auto;
	}

	.dolk-shop-filters .dolk-filter-check.is-selected {
		background: #f5f1ea;
		color: #2f4310;
		font-weight: 700;
	}

	.dolk-shop-filters .dolk-price-range {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.dolk-shop-filters .dolk-price-range input {
		min-height: 44px;
		font-size: 16px;
	}

	.dolk-shop-filters .dolk-catalog-filters__actions {
		position: sticky;
		bottom: -16px;
		margin: 6px -16px -16px;
		padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #ede8df;
		box-shadow: 0 -8px 24px rgba(32, 26, 18, 0.08);
	}

	.dolk-shop-filters .dolk-filter-submit,
	.dolk-shop-filters .dolk-filter-reset {
		min-height: 46px;
		font-size: 15px;
	}

	body.dolk-filters-open .dolk-shop-filters {
		transform: translateX(0);
	}

	body.dolk-filters-open .dolk-shop-filters-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	body.dolk-filters-open {
		overflow: hidden;
	}
}

@media (max-width: 544px) {
	.dolk-shop-filters {
		width: calc(100vw - 12px);
		border-radius: 0 16px 16px 0;
	}

	.dolk-shop-toolbar__sort .woocommerce-ordering,
	.dolk-shop-toolbar__sort select {
		width: 100%;
	}
}

