/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Hide snow-banner sections with Romanian-only images on non-RO languages.
   Sections: Maserati (7359297) and Paco Rabanne (962cdf8).
   The Hugo Boss banner (30f5972) is kept visible. */
html:not([lang="ro-RO"]) .elementor-element-7359297,
html:not([lang="ro-RO"]) .elementor-element-962cdf8 {
	display: none !important;
}

/* ===== Cookie banner: full-width bottom strip, 3 buttons stacked vertically on the right (desktop) ===== */
@media (min-width: 769px) {
	#cmplz-cookiebanner-container {
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
	}
	/* Only apply the grid layout while banner is in 'show' state — when JS toggles 'cmplz-dismissed' the banner must hide. */
	.cmplz-cookiebanner.cmplz-show {
		display: grid !important;
		grid-template-columns: 1fr 240px !important;
		grid-template-areas:
			"header  buttons"
			"divh    buttons"
			"body    buttons"
			"links   buttons"
			"divf    .      "
			"docs    .      " !important;
		max-width: 100% !important;
		width: 100% !important;
		margin: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		border-radius: 0 !important;
		gap: 4px 36px !important;
		padding: 20px clamp(28px, 6vw, 80px) 22px !important;
		box-shadow: 0 -8px 32px rgba(0,0,0,.10) !important;
		animation: lf-cmplz-slide-up .35s ease-out !important;
	}
	.cmplz-cookiebanner > .cmplz-header         { grid-area: header  !important; padding: 0 !important; margin-bottom: 4px !important; }
	.cmplz-cookiebanner > .cmplz-divider-header { grid-area: divh    !important; display: none !important; }
	.cmplz-cookiebanner > .cmplz-body           { grid-area: body    !important; padding: 0 !important; }
	.cmplz-cookiebanner > .cmplz-links          { grid-area: links   !important; padding: 0 !important; }
	.cmplz-cookiebanner > .cmplz-divider-footer { grid-area: divf    !important; display: none !important; }
	.cmplz-cookiebanner > .cmplz-documents      { grid-area: docs    !important; padding: 0 !important; }

	.cmplz-cookiebanner > .cmplz-buttons {
		grid-area: buttons !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
		align-self: center !important;
		justify-self: end !important;
		width: 240px !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.cmplz-cookiebanner > .cmplz-buttons .cmplz-btn {
		width: 100% !important;
		padding: 10px 16px !important;
		font-size: 13px !important;
		line-height: 1.2 !important;
		min-height: 0 !important;
		margin: 0 !important;
	}

	/* Title: brand-prominent, left-aligned */
	.cmplz-cookiebanner > .cmplz-header {
		display: flex !important;
		justify-content: flex-start !important;
		align-items: center !important;
		text-align: left !important;
		grid-template-columns: auto 1fr auto !important;
	}
	.cmplz-cookiebanner > .cmplz-header .cmplz-logo {
		margin: 0 !important;
		padding: 0 !important;
		flex: 0 0 auto !important;
	}
	.cmplz-cookiebanner .cmplz-title {
		font-family: inherit !important;
		font-size: 18px !important;
		font-weight: 900 !important;
		letter-spacing: .2px !important;
		color: #0f1115 !important;
		text-align: left !important;
		margin: 0 !important;
		justify-self: start !important;
		flex: 0 0 auto !important;
	}
	.cmplz-cookiebanner .cmplz-title::before {
		content: "🍪 " !important;
		margin-right: 4px;
	}
	.cmplz-cookiebanner .cmplz-message { font-size: 13px !important; line-height: 1.5 !important; max-width: 75ch !important; }
}

@keyframes lf-cmplz-slide-up {
	from { transform: translateY(100%); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* GDPR: visitor must make an explicit choice via a button — hide the close (X) icon. */
.cmplz-cookiebanner .cmplz-close,
.cmplz-cookiebanner > .cmplz-header .cmplz-close { display: none !important; }

/* Make sure dismissed banner stays hidden regardless of our layout overrides. */
.cmplz-cookiebanner.cmplz-dismissed,
.cmplz-cookiebanner.cmplz-hidden { display: none !important; }


/* ===== Task 2: Checkout — bordered fields + tighter spacing on the
   (renamed) billing/shipping section. Selectors cover both wrappers
   because some installs render the relabeled block inside .woocommerce-billing-fields. */
.woocommerce-checkout .woocommerce-billing-fields p.form-row,
.woocommerce-checkout .woocommerce-shipping-fields p.form-row {
	margin-bottom: 12px;
}
body.woocommerce-checkout .woocommerce-billing-fields .form-row input.input-text,
body.woocommerce-checkout .woocommerce-billing-fields .form-row select,
body.woocommerce-checkout .woocommerce-billing-fields .form-row textarea,
body.woocommerce-checkout .woocommerce-shipping-fields .form-row input.input-text,
body.woocommerce-checkout .woocommerce-shipping-fields .form-row select,
body.woocommerce-checkout .woocommerce-shipping-fields .form-row textarea {
	border: 1px solid #d9d9d9 !important;
	border-radius: 6px !important;
	padding: 14px 16px !important;
	height: auto !important;
	background: #fff !important;
	box-shadow: none !important;
}
.woocommerce-checkout .woocommerce-billing-fields .form-row input.input-text:focus,
.woocommerce-checkout .woocommerce-shipping-fields .form-row input.input-text:focus,
.woocommerce-checkout .woocommerce-billing-fields .form-row select:focus,
.woocommerce-checkout .woocommerce-shipping-fields .form-row select:focus,
.woocommerce-checkout .woocommerce-billing-fields .form-row textarea:focus,
.woocommerce-checkout .woocommerce-shipping-fields .form-row textarea:focus {
	border-color: #0f1115;
	outline: none;
}
.woocommerce-checkout .woocommerce-billing-fields .form-row label,
.woocommerce-checkout .woocommerce-shipping-fields .form-row label {
	font-size: 13px;
	margin-bottom: 6px;
	display: block;
}

/* Same-as-shipping checkbox row */
.lft-same-as-shipping {
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}
.lft-same-as-shipping input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
}
/* Hide WC's native "ship to a different address" wrapper (we invert the logic) */
body.woocommerce-checkout h3#ship-to-different-address {
	display: none !important;
}

/* ===== Task 4: equal-height product cards on mobile sliders ===== */
@media (max-width: 768px) {
	.products .product-grid-item .wrap-loop-title .wd-entities-title,
	.products .product-grid-item .wd-entities-title {
		min-height: 3.2em;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.products .product-grid-item .product-wrapper {
		display: flex;
		flex-direction: column;
	}
	.products .product-grid-item .wd-add-btn,
	.products .product-grid-item .price {
		margin-top: auto;
	}
}

/* ===== Task 6: scrollable category filter widget ===== */
.widget_product_categories > ul,
.wd-widget-categories > ul,
.widget_layered_nav ul,
.woof_container_inner .woof_list,
.wd-widget-product-categories ul {
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
	padding-right: 6px;
}
.widget_product_categories > ul::-webkit-scrollbar,
.wd-widget-categories > ul::-webkit-scrollbar,
.widget_layered_nav ul::-webkit-scrollbar,
.woof_container_inner .woof_list::-webkit-scrollbar,
.wd-widget-product-categories ul::-webkit-scrollbar {
	width: 6px;
}
.widget_product_categories > ul::-webkit-scrollbar-thumb,
.wd-widget-categories > ul::-webkit-scrollbar-thumb,
.widget_layered_nav ul::-webkit-scrollbar-thumb,
.woof_container_inner .woof_list::-webkit-scrollbar-thumb,
.wd-widget-product-categories ul::-webkit-scrollbar-thumb {
	background: #c9c9d1;
	border-radius: 3px;
}

/* ===== Popular Categories (lfpc) image overrides — global across all WPML languages =====
   Originally lived in Elementor Page Settings → Custom CSS on the RO Home page only,
   so EN/DE/HU/EL/BG translations rendered cards without images. Moved here to apply globally. */
.lfpc__card--parfumuri .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-parfumuri.jpg") center center / cover no-repeat !important; }
.lfpc__card--parfumuri .lfpc__bg.lfpc__bg::before,
.lfpc__card--parfumuri .lfpc__bg.lfpc__bg::after { display: none !important; }

.lfpc__card--ceasuri .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-ceasuri.jpg") center center / cover no-repeat !important; }
.lfpc__card--ceasuri .lfpc__bg.lfpc__bg::before,
.lfpc__card--ceasuri .lfpc__bg.lfpc__bg::after { display: none !important; }

.lfpc__card--bodymist .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-bodymist.jpg") center center / cover no-repeat !important; }
.lfpc__card--bodymist .lfpc__bg.lfpc__bg::before,
.lfpc__card--bodymist .lfpc__bg.lfpc__bg::after { display: none !important; }

.lfpc__card--eyeshadow .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-eyeshadow.jpg") center center / cover no-repeat !important; }
.lfpc__card--eyeshadow .lfpc__bg.lfpc__bg::before,
.lfpc__card--eyeshadow .lfpc__bg.lfpc__bg::after { display: none !important; }

.lfpc__card--mascara .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-mascara.jpg") center center / cover no-repeat !important; }
.lfpc__card--mascara .lfpc__bg.lfpc__bg::before,
.lfpc__card--mascara .lfpc__bg.lfpc__bg::after { display: none !important; }

.lfpc__card--cosmetice .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-cosmetice.jpg") center center / cover no-repeat !important; }
.lfpc__card--cosmetice .lfpc__bg.lfpc__bg::before,
.lfpc__card--cosmetice .lfpc__bg.lfpc__bg::after { display: none !important; }

.lfpc__card--lotiuni .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-lotiuni-1.jpg") center center / cover no-repeat !important; }
.lfpc__card--lotiuni .lfpc__bg.lfpc__bg::before,
.lfpc__card--lotiuni .lfpc__bg.lfpc__bg::after { display: none !important; }

.lfpc__card--ochelari .lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg.lfpc__bg { background: url("https://fashion.evenleads.com/wp-content/uploads/2026/05/lfpc-v2-ochelari-1.jpg") center center / cover no-repeat !important; }
.lfpc__card--ochelari .lfpc__bg.lfpc__bg::before,
.lfpc__card--ochelari .lfpc__bg.lfpc__bg::after { display: none !important; }

/* Brand-picks slider pagination dots: woodmart's `button { min-height: 42px }`
   inflates the dot height. Force the intended 8px round dots / 28px pill. */
.brand-picks .carousel-pagination .pagination-dot,
.carousel-pagination .pagination-dot {
    min-height: 0 !important;
    height: 8px !important;
    line-height: 0 !important;
    box-shadow: none !important;
}
.brand-picks .carousel-pagination .pagination-dot.active,
.carousel-pagination .pagination-dot.active {
    height: 8px !important;
}
