/* ==========================================================================
   WooCommerce — winkelwagen & checkout (blokken)
   Werkt binnen de article-body layout (licht). We resetten eerst de
   article-content typografie binnen WC-blokken, dan voegen we brand-styling
   toe. We laten de WooCommerce blocks hun eigen flex-layout behouden.
   ========================================================================== */

/* ── Brede container, overschrijft .reading (720px) ──────────────────────── */

.shop-content {
	max-width: var(--width-content);
	width: 100%;
	margin: 0 auto;
	color: var(--dark-text);
	text-wrap: balance;
}

/* WC-blok wrappers forceren op volle breedte van .shop-content.
   Zonder theme.json vallen ze terug op content_width (640px) = smalle kolom. */
.shop-content .wp-block-woocommerce-cart,
.shop-content .wp-block-woocommerce-checkout,
.shop-content .wp-block-woocommerce-empty-cart-block,
.shop-content > .wc-block-cart,
.shop-content > .wc-block-checkout {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* ==========================================================================
   RESET — .article-content typografie niet toepassen op WC-blokken
   ========================================================================== */

.shop-content .wp-block-woocommerce-cart,
.shop-content .wp-block-woocommerce-checkout,
.shop-content .wp-block-woocommerce-empty-cart-block,
.shop-content .wp-block-woocommerce-mini-cart,
.shop-content [class*="wc-block-"] {
	font-size: 1rem;
	line-height: 1.5;
}

.shop-content [class*="wc-block-"] ul,
.shop-content [class*="wc-block-"] ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.shop-content [class*="wc-block-"] li {
	margin: 0;
}
.shop-content [class*="wc-block-"] figure {
	margin: 0;
}
.shop-content [class*="wc-block-"] img {
	border-radius: 0;
}
.shop-content [class*="wc-block-"] p {
	margin: 0 0 0.5rem;
	line-height: 1.5;
}
.shop-content [class*="wc-block-"] a {
	font-weight: inherit;
}

/* Laat WC z'n eigen flex/grid layout doen — geen overrides */

/* ==========================================================================
   TITELS
   ========================================================================== */

.shop-content .wc-block-components-title,
.shop-content .wc-block-components-checkout-step__title,
.shop-content h2.wp-block-heading,
.shop-content h3.wp-block-heading {
	font-family: var(--font-sans);
	font-weight: 700;
	color: var(--dark-text);
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 0 0 0.75rem;
}

/* ==========================================================================
   CART — PRODUCTREGELS
   ========================================================================== */

.shop-content .wc-block-cart-items__header {
	color: rgba(19, 19, 19, 0.55);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(19, 19, 19, 0.15);
	padding-bottom: 0.75rem;
}
.shop-content .wc-block-cart-items__row {
	border-bottom: 1px solid rgba(19, 19, 19, 0.1);
	padding: 1.25rem 0;
}
.shop-content .wc-block-cart-items__row .wc-block-cart-item__product .wc-block-components-product-price [class*="wc-block-"]{
	font-size: .85rem;
}
.shop-content .wc-block-cart-item__image img {
	border-radius: calc(var(--borderradius) / 1.5);
}
.shop-content .wc-block-cart-item__product-name,
.shop-content .wc-block-cart-item__product-name a,
.shop-content .wc-block-components-product-name {
	font-family: var(--font-sans);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--dark-text);
	text-decoration: none;
}
.shop-content .wc-block-cart-item__product-metadata,
.shop-content .wc-block-components-product-metadata,
.shop-content .wc-block-components-order-summary-item__description [class*="wc-block-"]{
	color: rgba(19, 19, 19, 0.65);
	font-size: 0.9rem;
}
.shop-content .wc-block-components-product-price,
.shop-content .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	color: var(--dark-text);
	font-weight: 600;
}
.shop-content .wc-block-components-product-price__value--regular {
	color: rgba(19, 19, 19, 0.5);
	text-decoration: line-through;
}
.shop-content .wc-block-cart-item__remove-link {
	color: rgba(19, 19, 19, 0.55);
	text-decoration: underline;
	font-size: 0.85rem;
	font-weight: 400;
}
.shop-content .wc-block-cart-item__remove-link:hover {
	color: var(--button-action);
}

/* ──────────────────────────────────────────────────────────────
   Upsell-aanbieding (checkout-upsell-woocommerce)
   ────────────────────────────────────────────────────────────── */

.shop-content .cuw-offer .wc-block-cart-item__total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
}
.shop-content .cuw-offer .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	order: 1;
}
.shop-content .cuw-button {
	order: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--badge-salie);
	color: var(--light);
	border: 0;
	border-radius: var(--borderradius);
	padding: 0.55rem 1.1rem;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}
.shop-content .cuw-button:hover {
	background: #8C9D81;
	color: var(--light);
}
.shop-content .cuw-offer-cta-text {
	display: inline-block;
}

/* Mobiele layout — de cuw-offer is een <table>. We breken de
   table-structuur volledig open zodat het gedraagt als een stack. */
@media (max-width: 700px) {
	.cuw-offers{
		padding: 0 var(--padding);
    	margin-bottom: var(--padding);
	}
	table.cuw-offer,
	table.cuw-offer tbody,
	table.cuw-offer tr,
	table.cuw-offer td {
		display: block !important;
		width: auto !important;
	}
	table.cuw-offer .wc-block-cart-items__row {
		display: grid !important;
		grid-template-columns: 80px 1fr !important;
		grid-column-gap: 1rem !important;
		grid-row-gap: 0.5rem !important;
		padding: 1.25rem 0 !important;
		align-items: start !important;
	}
	table.cuw-offer .wc-block-cart-item__image {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 80px !important;
	}
	table.cuw-offer .wc-block-cart-item__image img {
		width: 100% !important;
		height: auto !important;
		display: block !important;
		max-width: 80px;
	}
	table.cuw-offer .wc-block-cart-item__product {
		grid-column: 2 !important;
		grid-row: 1 !important;
		min-width: 0 !important;
	}
	table.cuw-offer .wc-block-cart-item__total {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 1rem !important;
		margin-top: 0.5rem;
	}
	table.cuw-offer .cuw-button {
		padding: 0.65rem 1.2rem;
		font-size: 0.95rem;
	}
	.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content{
		float:none !important;
		width:100% !important;
	}
}

/* Sale badge */
.shop-content .wc-block-components-sale-badge {
	background: var(--badge-salie);
	color: var(--light);
	border-radius: calc(var(--borderradius) / 2);
	border: 0;
	padding: 0.2rem 0.6rem;
	font-weight: 600;
	font-size: 0.8rem;
}

/* ==========================================================================
   AANTAL-SELECTOR
   ========================================================================== */

.shop-content .wc-block-components-quantity-selector {
	border: 1px solid rgba(19, 19, 19, 0.2);
	border-radius: var(--borderradius);
	background: var(--light);
}
.shop-content .wc-block-components-quantity-selector__input {
	color: var(--dark-text);
	background: transparent;
	font-weight: 600;
}
.shop-content .wc-block-components-quantity-selector__button {
	color: var(--dark-text);
	background: transparent;
}
.shop-content .wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: rgba(19, 19, 19, 0.06);
}

/* ==========================================================================
   SIDEBAR — ORDER SUMMARY
   ========================================================================== */

.shop-content .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.shop-content .wp-block-woocommerce-cart-order-summary-block,
.shop-content .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--light-mid);
	border-radius: var(--borderradius);
	padding: 1.5rem;
}

/* Sticky sidebar onder het menu i.p.v. aan de bovenkant van het scherm. */
.shop-content .wc-block-components-sidebar,
.shop-content .wc-block-cart__sidebar,
.shop-content .wc-block-checkout__sidebar {
	top: calc(var(--nav-height) + 1rem) !important;
}

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block{
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.shop-content .wc-block-components-order-summary-item {
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(19, 19, 19, 0.08);
}
.shop-content .wc-block-components-order-summary-item:last-child {
	border-bottom: 0;
}
.shop-content .wc-block-components-order-summary-item__image > img {
	border-radius: calc(var(--borderradius) / 1.5);
}
.shop-content .wc-block-components-order-summary-item__quantity {
	background: var(--button-gold);
	color: #111;
	border: 0;
	box-shadow: none;
	font-weight: 700;
}

/* Totalen */
.shop-content .wc-block-components-totals-wrapper {
	border-top: 1px solid rgba(19, 19, 19, 0.18);
	padding-top: 0.85rem;
}
.shop-content .wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper,
.shop-content .wc-block-components-totals-wrapper + .wc-block-components-totals-footer-item,
.shop-content .wc-block-components-totals-wrapper:has(+ .wc-block-components-totals-footer-item) {
	border-top: 0;
}
.shop-content .wc-block-components-totals-item {
	color: var(--dark-text);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-size: 0.95rem;
}
.shop-content .wc-block-components-totals-item__label {
	color: rgba(19, 19, 19, 0.75);
	flex: 1;
}
.shop-content .wc-block-components-totals-item__value {
	color: var(--dark-text);
	font-weight: 600;
	font-size: 1rem;
	text-align: right;
	white-space: nowrap;
}
.shop-content .wc-block-components-totals-item__description {
	flex-basis: 100%;
	font-size: 0.85rem;
	color: rgba(19, 19, 19, 0.6);
}
.shop-content .wc-block-components-totals-footer-item {
	padding-top: 0.75rem;
	font-size: 1.15rem;
}
.shop-content .slot-wrapper{
	display: none;
}
.shop-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-weight: 700;
	color: var(--dark-text);
	font-size: 0;
	line-height: 0;
}
.shop-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__label::before {
	content: "Totaal";
	font-size: 1.15rem;
	line-height: 1.3;
}
.shop-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.25rem;
	font-family: var(--font-sans);
	font-weight: 700;
	color: var(--dark-text);
}
.shop-content .wc-block-components-totals-footer-item__description {
	color: rgba(19, 19, 19, 0.6);
	font-size: 0.85rem;
}

/* Coupon-paneel */
.shop-content .wc-block-components-panel__button {
	color: var(--button-action);
	background: transparent;
	font-weight: 600;
}
.shop-content .wc-block-components-panel__button-icon {
	fill: var(--button-action);
}

/* ==========================================================================
   FORMULIEREN (checkout)
   ========================================================================== */

.shop-content .wc-block-components-text-input input,
.shop-content .wc-block-components-combobox-control input,
.shop-content .wc-block-components-select select,
.shop-content .wc-block-components-textarea textarea {
	background: var(--light);
	border: 1px solid rgba(19, 19, 19, 0.22);
	color: var(--dark-text);
	border-radius: var(--borderradius);
	font-family: var(--font-sans);
	font-size: 1rem;
}
.shop-content .wc-block-components-text-input input:focus,
.shop-content .wc-block-components-combobox-control input:focus,
.shop-content .wc-block-components-select select:focus,
.shop-content .wc-block-components-textarea textarea:focus {
	border-color: var(--button-action);
	outline: none;
	box-shadow: 0 0 0 3px rgba(130, 38, 32, 0.12);
}
.shop-content .wc-block-components-text-input label,
.shop-content .wc-block-components-combobox label,
.shop-content .wc-block-components-select label,
.shop-content .wc-block-components-textarea label {
	color: rgba(19, 19, 19, 0.7);
}
.shop-content .wc-block-components-text-input.is-active label,
.shop-content .wc-block-components-combobox.is-active label {
	color: var(--button-action);
}
.shop-content .wc-block-components-validation-error {
	color: #a82a22;
	font-size: 0.85rem;
}
.shop-content .wc-block-components-checkbox__input,
.shop-content .wc-block-components-radio-control__input {
	accent-color: var(--button-action);
}
.shop-content .wc-block-components-checkbox__label,
.shop-content .wc-block-components-radio-control__label {
	color: var(--dark-text);
}

/* Verzend- & betaalopties */
.shop-content .wc-block-components-radio-control__option {
	border: inherit;
	border-radius: var(--borderradius);
	padding: 1rem 1.25rem 1rem 3rem;
	margin-bottom: 0.5rem;
	position: relative;
}
.shop-content .wc-block-components-radio-control__input {
	left: 1.25rem;
}
.shop-content .wc-block-components-radio-control__option:hover {
	border-color: rgba(19, 19, 19, 0.35);
}
.shop-content .wc-block-components-radio-control__option-checked {
	border-color: var(--button-action);
	background: rgba(130, 38, 32, 0.04);
}

/* ==========================================================================
   KNOPPEN
   ========================================================================== */

.shop-content .wc-block-components-button,
.shop-content button.wc-block-components-button,
.shop-content .wp-block-button__link {
	background: var(--button-action);
	color: var(--light);
	border: 0;
	border-radius: var(--borderradius);
	padding: 0.85rem 1.75rem;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}
.shop-content .wc-block-components-button:hover,
.shop-content button.wc-block-components-button:hover,
.shop-content .wp-block-button__link:hover {
	background: var(--button-action-hover);
	color: var(--light);
}

/* Primary CTA — volle breedte */
.shop-content .wc-block-components-checkout-place-order-button,
.shop-content .wc-block-cart__submit-button,
.shop-content a.wc-block-cart__submit-button {
	background: var(--button-action);
	color: var(--light);
	width: 100%;
	padding: 1.05rem 1.75rem;
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
}
.shop-content .wc-block-components-checkout-place-order-button:hover,
.shop-content .wc-block-cart__submit-button:hover,
.shop-content a.wc-block-cart__submit-button:hover {
	background: var(--button-action-hover);
	color: var(--light);
}

/* ==========================================================================
   MELDINGEN
   ========================================================================== */

.shop-content .wc-block-components-notice-banner {
	border-radius: var(--borderradius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	color: var(--dark-text);
}
.shop-content .wc-block-components-notice-banner.is-info {
	background: rgba(211, 165, 11, 0.1);
	border-color: rgba(211, 165, 11, 0.5);
}
.shop-content .wc-block-components-notice-banner.is-success {
	background: rgba(122, 139, 111, 0.12);
	border-color: rgba(122, 139, 111, 0.5);
}
.shop-content .wc-block-components-notice-banner.is-error {
	background: rgba(130, 38, 32, 0.08);
	border-color: rgba(130, 38, 32, 0.5);
}

/* ==========================================================================
   LEGE WINKELWAGEN
   ========================================================================== */

.shop-content .wc-block-cart__empty-cart__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 2.2rem;
	color: var(--dark-text);
	margin-bottom: 1rem;
	text-align: center;
}
.shop-content .wp-block-woocommerce-empty-cart-block {
	text-align: center;
}

/* Loading */
.shop-content .wc-block-components-spinner::before {
	border-top-color: var(--button-action);
}

/* ==========================================================================
   LINKS
   ========================================================================== */

.shop-content [class*="wc-block-"] a:not(.wc-block-components-button):not(.wp-block-button__link) {
	color: var(--button-action);
}
.shop-content [class*="wc-block-"] a:not(.wc-block-components-button):not(.wp-block-button__link):hover {
	color: var(--button-action-hover);
}

/* ==========================================================================
   UPSEEL
   ========================================================================== */

.cuw-offers{
	background: var(--light-mid);
	border-radius: var(--borderradius);
	margin-top: var(--padding);
}
.cuw-offers table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image{
	width:120px;
}
.shop-content .wc-block-components-product-metadata__description{
	display: none;
}
.shop-content .cuw-offers .wc-block-components-product-metadata__description{
	background: none !important;
	display: block;
}
.shop-content .cuw-offers .wc-block-components-product-metadata__description i{
	font-style: normal;
}
.shop-content .cuw-offers .wc-block-cart-items td{
	border-top:none;
}
.shop-content .cuw-offers .wc-block-cart-items{
	border-bottom: none;
}
.wc-block-components-product-details{
	display: none;
}
.wc-block-checkout__terms{
	display: none;
}
.wc-block-checkout__sidebar .wc-block-components-sale-badge{
	display: none;
}