/* ==========================================================================
   WooCommerce-harmonisering. Indlæses kun på Woo-sider. Matcher temaets
   designsystem (pille-knapper, farver, kort).
   ========================================================================== */

.woocommerce-wrap a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .product a.button {
	background: var(--color-primary, #1f3a5f);
	color: var(--color-on-primary, var(--paper));
	border-radius: var(--radius-pill, 999px);
	padding: 12px 22px;
	min-height: 44px;
	font-weight: 600;
	border: 0;
	transition: transform 0.12s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { transform: translateY(-2px); }

.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--color-accent, #e0a449); color: var(--ink); }

/* Produkt-grid */
.woocommerce ul.products li.product {
	background: var(--paper);
	border: 1px solid var(--color-border, #eceef1);
	border-radius: var(--radius-md, 14px);
	padding: 16px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-card, 0 10px 28px rgba(0, 0, 0, 0.08));
}
.woocommerce ul.products li.product img { border-radius: 10px; }
.woocommerce ul.products li.product .price { color: var(--color-primary, #1f3a5f); font-weight: 700; }

/* Onsale-badge */
.woocommerce span.onsale {
	background: var(--color-accent, #e0a449);
	color: var(--ink);
	border-radius: 999px;
	min-height: 0;
	min-width: 0;
	padding: 4px 12px;
	line-height: 1.4;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--color-primary, #1f3a5f);
	border-radius: 10px;
}

/* Single produkt-titel + pris */
.woocommerce div.product .product_title { font-size:1.95rem; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--color-primary, #1f3a5f); font-weight: 700; }

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--color-primary, #1f3a5f); }

/* =========================================================================
 * HJSH SHOP v2.5 — skovgrøn brand-mapping + to-kolonne shop med filtre,
 * søgning, sortering og premium produkt-grid.
 * ====================================================================== */

/* Map de generiske Woo-tokens til HJSH-paletten (fjerner navy-fallbacks). */
.woocommerce,
.shop,
body.woocommerce-page {
	--color-primary: #2e5c39;
	--color-accent: #d8633f;
	--color-on-primary: #ffffff;
	--color-border: #e4e0d2;
	--radius-pill: 999px;
	--radius-md: 14px;
}

/* Shop-wrapper + header */
.shop { padding: 56px 0 76px; }
.shop .container,
.shop { max-width: 1200px; margin-inline: auto; }
.shop__head { padding: 0 24px; margin-bottom: 28px; }
.shop__title { margin-top: 10px; color: #1d3c25; }
.shop__head .eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: #d8633f; }
.shop__head .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #d8633f; }
.shop__promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.shop__promises div { background: #fff; border: 1px solid #e4e0d2; border-radius: 14px; padding: 14px 16px; min-height: 76px; }
.shop__promises strong { display: block; color: #1d3c25; font-family: var(--font-head, Manrope), sans-serif; font-size: .98rem; }
.shop__promises span { display: block; color: #5b6b5f; font-size: .84rem; margin-top: 2px; }

/* To-kolonne layout */
.shop__layout { display: grid; grid-template-columns: 268px 1fr; gap: 34px; padding: 0 24px; align-items: start; }

/* Sidebar */
.shop__filters { position: sticky; top: 96px; display: grid; gap: 22px; }
.shop__filters-title { background: #fff; border: 1px solid #e4e0d2; border-radius: 16px; padding: 16px 18px; }
.shop__filters-title strong { display: block; color: #1d3c25; font-family: var(--font-head, Manrope), sans-serif; font-size: 1.02rem; }
.shop__filters-title span { display: block; margin-top: 4px; color: #5b6b5f; font-size: .86rem; }
.shop__search { display: flex; border: 1px solid #e4e0d2; border-radius: 999px; overflow: hidden; background: #fff; }
.shop__search input { flex: 1; border: 0; padding: 12px 16px; font: inherit; background: transparent; outline: none; }
.shop__search button { border: 0; background: #2e5c39; color: #fff; padding: 0 16px; cursor: pointer; display: flex; align-items: center; }
.shop__search button:hover { background: #1d3c25; }

.filter-group { background: #fff; border: 1px solid #e4e0d2; border-radius: 16px; padding: 16px 18px; }
.filter-group__title { font-family: var(--font-head, Manrope), sans-serif; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; color: #2e5c39; margin: 0 0 10px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-list__item a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: #2c3a30; font-size: .95rem; }
.filter-list__item a:hover { background: #f6f4ec; }
.filter-list__item.is-active a { background: #2e5c39; color: #fff; }
.filter-list__count { font-size: .78rem; opacity: .7; background: #f6f4ec; color: #2e5c39; border-radius: 999px; padding: 1px 8px; min-width: 22px; text-align: center; }
.filter-list__item.is-active .filter-list__count { background: rgba(255,255,255,.2); color: #fff; }
.filter-list--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-list--chips .filter-list__item a { border: 1px solid #e4e0d2; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.filter-list--chips .filter-list__item.is-active a { border-color: #2e5c39; }

.filter-price__row { display: flex; align-items: center; gap: 8px; }
.filter-price__row input { width: 100%; padding: 9px 10px; border: 1px solid #e4e0d2; border-radius: 9px; font: inherit; }
.filter-price__btn { width: 100%; margin-top: 12px; justify-content: center; }
.filter-price__reset { display: block; text-align: center; margin-top: 8px; font-size: .85rem; color: #5b6b5f; }

.filter-help { background: #1d3c25; color: #e7efe6; border-radius: 16px; padding: 18px; }
.filter-help strong { color: #fff; display: block; margin-bottom: 4px; }
.filter-help p { margin: 0 0 12px; font-size: .9rem; color: #cfe0d4; }
.filter-help .btn { background: #d8633f; border-color: #d8633f; color: #fff; }

/* Toolbar: result count + ordering på én linje */
.shop__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #e4e0d2; }
.shop__toolbar .woocommerce-result-count { margin: 0; color: #5b6b5f; }
.shop__toolbar .woocommerce-ordering { margin: 0; }
.shop__toolbar .woocommerce-ordering select { padding: 10px 14px; border: 1px solid #e4e0d2; border-radius: 999px; background: #fff; font: inherit; cursor: pointer; }
.shop__active { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 20px; color: #5b6b5f; font-size: .86rem; }
.shop__active span { font-weight: 700; color: #1d3c25; }
.shop__active strong,
.shop__active a { display: inline-flex; align-items: center; min-height: 32px; border-radius: 999px; padding: 0 12px; background: #fff; border: 1px solid #e4e0d2; }
.shop__active strong { color: #1d3c25; font-weight: 700; }
.shop__active a { color: #d8633f; font-weight: 700; text-decoration: none; }

/* Produkt-grid */
.shop__main ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 !important; }
.shop__main ul.products::before,
.shop__main ul.products::after { display: none !important; }
.woocommerce .shop__main ul.products li.product,
.shop__main ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	display: flex; flex-direction: column; background: #fff; border: 1px solid #e4e0d2;
	border-radius: 16px; padding: 0; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease;
}
.shop__main ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(29,60,37,.14); }
.shop__main ul.products li.product a.woocommerce-LoopProduct-link { display: block; padding: 0; }
.shop__main ul.products li.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f6f4ec; margin: 0 !important; border-radius: 0; padding: 14px; }
.shop__main ul.products li.product .woocommerce-loop-product__title { padding: 14px 16px 2px; font-family: var(--font-head, Manrope), sans-serif; font-size: 1rem; font-weight: 700; color: #1d3c25; line-height: 1.25; min-height: 3.25em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop__main ul.products li.product .price { padding: 0 16px; color: #1d3c25 !important; font-weight: 800; }
.shop__main ul.products li.product .price del { color: #9aa79d; font-weight: 500; margin-right: 6px; }
.shop__main ul.products li.product .price ins { text-decoration: none; color: #d8633f !important; }
.shop__main ul.products li.product .button { margin: 12px 16px 16px; text-align: center; }
.shop__main ul.products li.product .star-rating { margin: 8px 16px 0; }
.shop__main ul.products li.product span.onsale { left: 12px; top: 12px; right: auto; margin: 0; position: absolute; }
.shop__main ul.products li.product { position: relative; }
.hjsh-card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 16px 0; min-height: 32px; }
.hjsh-card-meta span { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; background: #f6f4ec; color: #2e5c39; padding: 0 9px; font-size: .72rem; font-weight: 700; }
.hjsh-card-delivery { color: #5b6b5f; font-size: .8rem; padding: 8px 16px 0; min-height: 42px; }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin-top: 34px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; gap: 6px; display: flex; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid #e4e0d2; border-radius: 10px; padding: 8px 14px; color: #2e5c39;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: #2e5c39; color: #fff; border-color: #2e5c39; }

.shop__empty { background: #fff; border: 1px solid #e4e0d2; border-radius: 16px; padding: 40px; text-align: center; }

/* Responsivt: sidebar over grid */
@media (max-width: 980px) {
	.shop__layout { grid-template-columns: 1fr; }
	.shop__filters { position: static; }
	.shop__promises { grid-template-columns: repeat(2, 1fr); }
	.shop__main ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.shop { padding-top: 36px; }
	.shop__head,
	.shop__layout { padding-inline: 18px; }
	.shop__promises { grid-template-columns: 1fr 1fr; gap: 10px; }
	.shop__promises div { padding: 12px; min-height: 70px; }
	.shop__main ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
	.shop__main ul.products li.product .woocommerce-loop-product__title { font-size: .9rem; }
	.hjsh-card-delivery { display: none; }
	.hjsh-card-meta { padding-inline: 12px; }
	.shop__main ul.products li.product .price { padding-inline: 12px; font-size: .95rem; }
	.shop__main ul.products li.product .button { margin: 10px 12px 12px; padding-inline: 10px; width: calc(100% - 24px); }
}
