/* rdvdesvinsbio.fr — local visual fixes */

/* --- Header: dark bar, white nav & buttons --- */
.site-header,
.storefront-primary-navigation,
.sidebar .site-header {
	background-color: #3d2314 !important;
	border-bottom-color: #2a180e !important;
}

.site-header .site-title a,
.site-header .beta.site-title a,
.main-navigation ul li a,
.main-navigation ul.menu li a,
.primary-navigation ul li a,
#site-navigation ul li a,
.site-header-cart .cart-contents,
a.cart-contents,
.site-header .site-search .search-field,
.site-branding .site-title a,
.site-branding .site-description,
.sidebar .main-navigation a,
.sidebar .site-header .site-title a,
.sidebar .site-header .site-description,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
	color: #ffffff !important;
}

/* --- Broken icon font (Font Awesome src:url(#) in mirror) --- */
.widget_product_search form::before,
.widget_search form:not(.wp-block-search)::before,
.site-header-cart .cart-contents::after,
.site-header-cart .cart-contents::before,
.woocommerce-breadcrumb a:first-of-type::before,
.widget_product_categories ul li::before,
.widget_product_categories ul li.current-cat::before,
.widget_categories ul li::before,
.widget_archive ul li::before,
.widget_pages ul li::before,
.widget_nav_menu ul li::before,
.show-password-input,
.show-password-input::after,
.storefront-handheld-footer-bar ul li > a::before {
	display: none !important;
	content: none !important;
}

.site-search .widget_product_search input[type="search"],
.site-search .widget_product_search input[type="text"],
.site-header .widget_product_search input[type="search"],
.site-header .widget_product_search input[type="text"] {
	padding-left: 1em !important;
}

.widget_product_categories ul,
.widget_product_categories ul li {
	list-style: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

.widget_product_categories ul li a {
	padding-left: 0 !important;
}

.password-input {
	padding-right: 0 !important;
}

/* --- Header cart (Storefront: icon ::after removed, fix bloated block) --- */
.site-header-cart {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.site-header-cart > li {
	margin: 0 !important;
	padding: 0 !important;
}

.site-header-cart .cart-contents {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.2em 0.45em;
	padding: 0.75em 0.5em !important;
	height: auto !important;
	width: auto !important;
	max-width: 100%;
	line-height: 1.35 !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	background: transparent !important;
	box-sizing: border-box;
}

.site-header-cart .cart-contents::after,
.site-header-cart .cart-contents::before {
	float: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.site-header-cart .cart-contents .amount {
	margin-right: 0 !important;
	font-weight: 600;
	white-space: nowrap;
}

.site-header-cart .cart-contents .count {
	opacity: 0.85 !important;
	font-size: 0.875em;
	white-space: nowrap;
}

@media screen and (min-width: 768px) {
	.woocommerce-active .site-header .site-header-cart {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		margin-bottom: 0 !important;
	}

	.site-header-cart .cart-contents {
		padding: 1em 0.75em !important;
	}
}

.main-navigation ul li a:hover,
.primary-navigation ul li a:hover,
#site-navigation ul li a:hover,
.site-header-cart .cart-contents:hover,
a.cart-contents:hover,
.site-branding .site-title a:hover,
.woocommerce-breadcrumb a:hover {
	color: #f0e6dc !important;
}

.site-header .widget_product_search button,
.site-search .widget_product_search button,
.site-header button.menu-toggle,
.sidebar .site-header .secondary-toggle,
.age-gate-submit {
	background-color: #ffffff !important;
	border-color: #ffffff !important;
	color: #3d2314 !important;
}

.site-header .widget_product_search button:hover,
.site-search .widget_product_search button:hover,
.site-header button.menu-toggle:hover,
.sidebar .site-header .secondary-toggle:hover,
.age-gate-submit:hover {
	background-color: #f0e6dc !important;
	border-color: #f0e6dc !important;
	color: #3d2314 !important;
}

button.menu-toggle:after,
button.menu-toggle:before,
button.menu-toggle span:before {
	background-color: #ffffff !important;
}

.site-header .search-field::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

/* --- WooCommerce checkboxes: native style (icon font missing locally) --- */
.woocommerce form .form-row input[type="checkbox"],
.woocommerce-form__input-checkbox,
.input-checkbox {
	position: static !important;
	opacity: 1 !important;
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
	width: auto !important;
	height: auto !important;
	margin: 0 0.5em 0 0 !important;
	vertical-align: middle !important;
}

.woocommerce form .form-row label.checkbox,
.woocommerce-form__label-for-checkbox,
.woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center !important;
	gap: 0.35em;
}

.woocommerce form .form-row label.checkbox::before,
.woocommerce form .form-row label.checkbox::after,
.woocommerce-form__label-for-checkbox::before,
.woocommerce-form__label-for-checkbox::after {
	display: none !important;
	content: none !important;
}

.mailchimp-newsletter {
	display: flex !important;
	align-items: flex-start !important;
	gap: 0.35em;
}

.mailchimp-newsletter label {
	margin: 0 !important;
}

/* --- FAQ plugin hidden fields --- */
.ewd-ufaq-faq-list input[type="hidden"] {
	display: none !important;
}

/* --- Product images --- */
.woocommerce-product-gallery {
	opacity: 1 !important;
}

.woocommerce-product-gallery__image img,
.woocommerce ul.products li.product a img {
	max-width: 100%;
	height: auto;
	display: block;
}

.woocommerce ul.products li.product a img {
	margin-bottom: 0.75em;
}

/* --- Show images even if lazy-load JS did not run --- */
html:not(.jetpack-lazy-images-js-enabled):not(.js) .jetpack-lazy-image {
	display: inline !important;
}

.custom-logo-link img.custom-logo {
	max-height: 120px;
	width: auto;
	height: auto;
}
