/* =========================================================
   Dutch Detailing Squad – site-breed
   1200px content, zelfde 24px rand als de header, huisstijl,
   responsive basis en browser-fallbacks
   ========================================================= */

:root {
	--global-content-width: 1200px;
	--global-content-edge-padding: 24px;
	--global-content-boxed-padding: 0px;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.ddsq {
	font-family: Arial, Helvetica, sans-serif;
	background: #ffffff;
	color: #000000;
	overflow-x: hidden;
}

body.ddsq .site,
body.ddsq .content-area,
body.ddsq .site-container {
	background: #ffffff;
	color: #000000;
}

/* Containers exact gelijk aan de header: 1200px, 24px rand (16px op telefoon) */
body.ddsq .site-container,
body.ddsq .content-container,
body.ddsq .site-header-row-container-inner,
body.ddsq .site-footer-row-container-inner {
	max-width: 1200px;
	padding-left: 24px;
	padding-right: 24px;
}

body.ddsq .content-container .content-wrap,
body.ddsq .entry-hero-container-inner .site-container {
	padding-left: 0;
	padding-right: 0;
}

body.ddsq .entry-hero.page-hero-section {
	background: #ffffff;
}

/* Geen 'boxed' binnenpadding: inhoud start exact op de 24px-rand, net als de header */
body.ddsq .single-entry .entry-content-wrap,
body.ddsq .content-bg.single-entry,
body.ddsq.content-style-boxed .single-entry .entry-content-wrap,
body.ddsq .woocommerce-page .content-wrap,
body.ddsq .content-wrap > .content-bg:not(.loop-entry) {
	padding: 0;
	background: #ffffff;
	box-shadow: none;
	border-radius: 0;
}

body.ddsq.content-style-boxed .wp-site-blocks .entry-content .alignwide {
	margin-left: 0;
	margin-right: 0;
}

body.ddsq .entry-hero .entry-header {
	padding-left: 0;
	padding-right: 0;
}

body.ddsq .content-area {
	margin-top: 32px;
	margin-bottom: 48px;
}

/* Media nooit breder dan de kolom */
body.ddsq img,
body.ddsq video,
body.ddsq iframe,
body.ddsq svg {
	max-width: 100%;
}

body.ddsq img {
	height: auto;
}

body.ddsq table {
	width: 100%;
	max-width: 100%;
}

/* Koppen en tekst */
body.ddsq h1,
body.ddsq h2,
body.ddsq h3,
body.ddsq h4,
body.ddsq h5,
body.ddsq h6 {
	color: #000000;
	font-family: Arial, Helvetica, sans-serif;
	overflow-wrap: break-word;
}

body.ddsq p,
body.ddsq li {
	overflow-wrap: break-word;
}

/* Linkkleur alleen in de inhoud; header, footer en paneel regelen hun eigen kleuren */
body.ddsq .entry-content a:not(.wp-block-button__link):not(.ddsq-brands a),
body.ddsq .site-main .woocommerce-info a,
body.ddsq .site-main .woocommerce-message a,
body.ddsq .site-main .entry-content p a {
	color: #ca0000;
}

body.ddsq .entry-content a:not(.wp-block-button__link):hover {
	color: #a30000;
}

/* Winkelwagenknop: rood met wit karretje, altijd */
body.ddsq .ddsq-header .ddsq-cart,
body.ddsq .ddsq-header .ddsq-cart:hover,
body.ddsq .ddsq-header .ddsq-cart:focus {
	background: #ca0000;
	color: #ffffff;
}

body.ddsq .ddsq-header .ddsq-cart:hover {
	background: #a30000;
}

body.ddsq .ddsq-header .ddsq-cart svg {
	fill: #ffffff;
	color: #ffffff;
}

body.ddsq .ddsq-header a,
body.ddsq .ddsq-footer a,
body.ddsq .ddsq-panel a {
	text-decoration: none;
}

/* CTA-knoppen (content + WooCommerce). Header/footer/paneel hebben eigen stijl. */
body.ddsq .wp-block-button__link,
body.ddsq .woocommerce a.button,
body.ddsq .woocommerce button.button,
body.ddsq .woocommerce input.button,
body.ddsq .woocommerce #respond input#submit,
body.ddsq .woocommerce .single_add_to_cart_button,
body.ddsq .woocommerce-form-login .button,
body.ddsq .woocommerce-form-register .button,
body.ddsq .woocommerce-ResetPassword .button,
body.ddsq .wc-block-components-button,
body.ddsq .wc-block-cart__submit-button,
body.ddsq .wc-block-components-checkout-place-order-button,
body.ddsq .button:not(.ddsq-btn),
body.ddsq input[type="submit"]:not(.ddsq-btn) {
	background: #ca0000;
	border-color: #ca0000;
	color: #ffffff;
	border-radius: 4px;
	font-weight: 700;
}

body.ddsq .wp-block-button__link:hover,
body.ddsq .woocommerce a.button:hover,
body.ddsq .woocommerce button.button:hover,
body.ddsq .woocommerce input.button:hover,
body.ddsq .woocommerce .single_add_to_cart_button:hover,
body.ddsq .wc-block-components-button:hover,
body.ddsq .button:not(.ddsq-btn):hover,
body.ddsq input[type="submit"]:not(.ddsq-btn):hover {
	background: #a30000;
	border-color: #a30000;
	color: #ffffff;
}

/* Formuliervelden in content/WooCommerce */
body.ddsq .woocommerce form .form-row input.input-text,
body.ddsq .woocommerce form .form-row textarea,
body.ddsq .woocommerce form .form-row select,
body.ddsq .entry-content input[type="text"],
body.ddsq .entry-content input[type="email"],
body.ddsq .entry-content input[type="password"],
body.ddsq .entry-content textarea {
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background: #ffffff;
	color: #000000;
	box-shadow: none;
}

body.ddsq .woocommerce form .form-row input.input-text:focus,
body.ddsq .entry-content input:focus,
body.ddsq .entry-content textarea:focus {
	border-color: #ca0000;
	outline: none;
	box-shadow: 0 0 0 3px rgba(202, 0, 0, .12);
}

/* Zichtbare focus voor toetsenbordgebruikers (site heeft hide-focus-outline) */
body.ddsq a:focus-visible,
body.ddsq button:focus-visible,
body.ddsq input:focus-visible,
body.ddsq [tabindex]:focus-visible {
	outline: 2px solid #ca0000;
	outline-offset: 2px;
}

/* Merkenoverzicht ([ddsq_brands]) */
body.ddsq .entry-content ul.ddsq-brands,
.ddsq-brands {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}

body.ddsq .entry-content ul.ddsq-brands li,
.ddsq-brands li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ddsq-brands a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 120px;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
	text-decoration: none;
	color: #000000;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	transition: border-color .15s, box-shadow .15s, color .15s;
}

.ddsq-brands a:hover {
	border-color: #ca0000;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	color: #ca0000;
}

.ddsq-brands__img img {
	display: block;
	max-height: 60px;
	width: auto;
}

/* WooCommerce productgrid: vloeiend meeschalen */
body.ddsq ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}

body.ddsq ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
	body.ddsq ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	:root {
		--global-content-edge-padding: 16px;
	}

	body.ddsq .site-container,
	body.ddsq .content-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.ddsq .content-area {
		margin-top: 20px;
		margin-bottom: 32px;
	}

	body.ddsq .entry-content ul.ddsq-brands,
	.ddsq-brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	body.ddsq ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	body.ddsq h1 {
		font-size: 28px;
	}

	body.ddsq h2 {
		font-size: 22px;
	}
}

@media (max-width: 379px) {
	body.ddsq ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Print */
@media print {
	.ddsq-header,
	.ddsq-footer,
	.ddsq-panel,
	.ddsq-panel-backdrop {
		display: none !important;
	}
}
