/*
Theme Name: Dansk Biosalg
Theme URI: https://danskbiosalg.dk/
Author: Websitecare.dk
Author URI: https://websitecare.dk/
Description: Blok-tema til Dansk Biosalg. Erstatter Avada. Understøtter WooCommerce, fuld site-editor og bundne mønstre for alle sider.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danskbiosalg
*/

/* ---------- Generelt ---------- */
html { scroll-behavior: smooth; }
img { height: auto; max-width: 100%; }
:where(a) { text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

/* ---------- Topbjælke: vigtig info ---------- */
.dbs-notice p { margin: 0; }
.dbs-notice .wp-block-button__link { padding: .3em .9em; font-size: .8rem; }

/* ---------- USP-bjælke ---------- */
.dbs-usp p { margin: 0; display: inline-flex; align-items: center; gap: .4em; }
.dbs-usp p::before {
	content: "";
	width: 1em; height: 1em; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4.3-4.3 1.4-1.4 2.9 2.9 6.1-6.1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4.3-4.3 1.4-1.4 2.9 2.9 6.1-6.1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 781px) {
	.dbs-usp p:nth-child(n+3) { display: none; }
}

/* ---------- Header ---------- */
.dbs-header .wp-block-site-logo img,
.dbs-header .dbs-logo img { width: 148px; }
.dbs-tagline p { margin: 0; line-height: 1.25; }
.dbs-tagline a { color: inherit; text-decoration: none; }
.dbs-tagline a:hover { text-decoration: underline; }
.dbs-header .wp-block-search__input { border-radius: 2px; min-width: 200px; border-color: transparent; }
@media (max-width: 781px) {
	.dbs-header .wp-block-search { display: none; }
	.dbs-tagline { text-align: right; font-size: .95rem !important; }
}

/* Menu-bjælke */
.dbs-nav { border-bottom: 1px solid var(--wp--preset--color--light); }
.dbs-nav .wp-block-navigation-item__content { padding: 1rem 0; }
.dbs-nav .wp-block-navigation .current-menu-item > a,
.dbs-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary-dark); }
.dbs-nav .wp-block-navigation__submenu-container { border: 0 !important; border-top: 3px solid var(--wp--preset--color--primary) !important; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.dbs-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .6rem 1rem; }

/* ---------- Kort på forsiden ---------- */
.dbs-card { display: flex; flex-direction: column; }
.dbs-card > .wp-block-buttons { margin-top: auto !important; padding-top: 1rem; }
.dbs-card p { color: #e6e6e6; }
.dbs-card a:not(.wp-block-button__link) { color: var(--wp--preset--color--primary); }
.dbs-card .wp-block-button__link:hover,
.dbs-footer .wp-block-button__link:hover { background: #fff; color: #000; }
.dbs-footer .wp-block-button__link { color: #000; }
.dbs-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: #000; border-color: #fff; }

/* Hero */
.dbs-hero .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size); }

/* ---------- Footer ---------- */
.dbs-footer { border-top: 3px solid var(--wp--preset--color--primary); }
.dbs-footer a { color: #fff; }
.dbs-footer a:hover { color: var(--wp--preset--color--primary); }
.dbs-footer ul { padding-left: 0; list-style: none; }
.dbs-footer ul li { padding: .45em 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.dbs-footer .dbs-checklist li { padding-left: 1.5em; position: relative; }
.dbs-footer .dbs-checklist li::before { content: "›"; position: absolute; left: .2em; color: var(--wp--preset--color--primary); font-weight: 700; }
.dbs-copyright a { color: inherit; }

/* ---------- Kontakt ---------- */
.dbs-map iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ---------- WooCommerce ---------- */
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--alert);
	color: #fff;
	border: 0;
	border-radius: 2px;
	text-transform: uppercase;
	font-weight: 700;
}
.wc-block-components-product-price del,
.woocommerce .price del { opacity: .55; }
.wc-block-components-product-price ins,
.woocommerce .price ins { text-decoration: none; color: var(--wp--preset--color--alert); }
.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wp-block-woocommerce-product-image img { aspect-ratio: 1; object-fit: contain; background: #fff; }
.wc-block-mini-cart__button { color: inherit; }
.wp-block-woocommerce-product-template .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.wp-block-woocommerce-product-template .wp-block-post-title a:hover { color: var(--wp--preset--color--primary-dark); }
