/*
Theme Name: Manufacturer Child
Template: manufacturer
Version: 1.9.9
Text Domain: manufacturer-child
*/

/* ======================================================================
	Header Override (Plugin-Safe)
	====================================================================== */

/*
Override elementor-sm-widgets rule:
#masthead { position: absolute !important; width: 100%; }
*/
.ehf-header #masthead {
	position: relative !important;
	z-index: 99;
}

/* ==========================================================================
   Shop Page Layout - Hide Sidebar on Main Shop and Product Pages
   ========================================================================== */

/* Hide sidebar on shop, archive, and single product pages */
body.post-type-archive-product .man_sidebar_col,
body.woocommerce-shop .man_sidebar_col,
body.single-product .man_sidebar_col {
	display: none !important;
}

/* Make main content full width on shop, archive, and single product pages */
body.post-type-archive-product .man_main_sidebar,
body.woocommerce-shop .man_main_sidebar,
body.single-product .man_main_sidebar {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* ==========================================================================
   Product Range Grid Styles
   ========================================================================== */

.product-range-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 20px 0;
}

.product-range-card {
	flex: 0 0 calc(25% - 15px);
	max-width: calc(25% - 15px);
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s ease;
}

.product-range-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-range-card__header {
	background: #dd3333;
	padding: 10px 15px;
	text-align: center;
}

.product-range-card__header a {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.5px;
}

.product-range-card__header a:hover {
	color: #fff;
	opacity: 0.9;
}

.product-range-card__content {
	display: flex;
	padding: 15px;
	min-height: 120px;
	align-items: stretch;
}

.product-range-card__manufacturers {
	flex: 1;
	padding-right: 10px;
}

.product-range-card__manufacturers ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-range-card__manufacturers {
	flex: 1;
	padding-right: 10px;
	min-width: 0;
}

.product-range-card__manufacturers li {
	margin-bottom: 4px;
}

.product-range-card__manufacturers a {
	display: block;
	padding: 4px 10px;
	border-left: 3px solid #dd3333;
	color: #333;
	font-size: 15px;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.product-range-card__manufacturers a:hover {
	color: #dd3333;
	border-left-color: #bb2222;
}

.product-range-card__image {
	flex: 0 0 150px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-range-card__image img {
	max-width: 100%;
	max-height: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Centered image when no manufacturers */
.product-range-card.no-manufacturers .product-range-card__content {
	justify-content: center;
}

.product-range-card.no-manufacturers .product-range-card__image {
	flex: 0 0 auto;
}

/* Responsive: 3 columns on medium screens */
@media (max-width: 1200px) {
	.product-range-card {
		flex: 0 0 calc(33.333% - 14px);
		max-width: calc(33.333% - 14px);
	}
}

/* Responsive: 2 columns on tablets */
@media (max-width: 992px) {
	.product-range-card {
		flex: 0 0 calc(50% - 10px);
		max-width: calc(50% - 10px);
	}
}

/* Responsive: 1 column on mobile */
@media (max-width: 576px) {
	.product-range-card {
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.product-range-card__content {
		min-height: auto;
	}
	
	.product-range-card__image {
		flex: 0 0 80px;
	}
}

/* ==========================================================================
   End Product Range Grid Styles
   ========================================================================== */

/* ==========================================================================
   Fix: Lift product-content row above Elementor footer stacking context
   The footer's .elementor-container has z-index:3 inside #page (z-index:0).
   The product grid .row has z-index:1, so it paints beneath the footer and
   any card overlay is clipped/hidden by the footer stacking context.
   Setting z-index:4 here ensures our overlay always sits above the footer.
   ========================================================================== */

body.post-type-archive-product .container > .row,
body.woocommerce-shop .container > .row,
body.tax-product_cat .container > .row {
	z-index: 4 !important;
}

/* Hide view-by toggle */
.stm-view-by {
	display: none !important;
}

/* Hide price + add-to-cart row on product cards (shop/category grids) */
body.woocommerce-shop .stm-products-main .stm-product-item__content .meta-bottom,
body.post-type-archive-product .stm-products-main .stm-product-item__content .meta-bottom,
body.tax-product_cat .stm-products-main .stm-product-item__content .meta-bottom {
	display: none !important;
}

/* Hide product category children by default */
.widget_product_categories .cat-item .children {
	display: none;
}

/* Show children when parent has active class */
.widget_product_categories .cat-item.active > .children {
	display: block;
}

/* 5 Columns Layout */
.stm-products-main.cols-5 .stm-product-item,
.stm-products-main.cols-5 > li.product {
	flex: 0 0 calc(20% - 12px) !important;
	max-width: calc(20% - 12px) !important;
	box-sizing: border-box;
	margin: 0 15px 30px 0 !important;
}

.stm-products-main.cols-5 .stm-product-item:nth-child(5n),
.stm-products-main.cols-5 > li.product:nth-child(5n) {
	margin-right: 0 !important;
}

/* 6 Columns Layout */
.stm-products-main.cols-6 .stm-product-item,
.stm-products-main.cols-6 > li.product {
	flex: 0 0 calc(16.666666% - 12.5px) !important;
	max-width: calc(16.666666% - 12.5px) !important;
	box-sizing: border-box;
	margin: 0 15px 30px 0 !important;
}

.stm-products-main.cols-6 .stm-product-item:nth-child(6n),
.stm-products-main.cols-6 > li.product:nth-child(6n) {
	margin-right: 0 !important;
}

/* Responsive adjustments for 5 and 6 columns */
@media (max-width: 1200px) {
	.stm-products-main.cols-5 .stm-product-item,
	.stm-products-main.cols-5 > li.product,
	.stm-products-main.cols-6 .stm-product-item,
	.stm-products-main.cols-6 > li.product {
		flex: 0 0 calc(25% - 11.25px) !important;
		max-width: calc(25% - 11.25px) !important;
	}
	
	.stm-products-main.cols-5 .stm-product-item:nth-child(5n),
	.stm-products-main.cols-5 > li.product:nth-child(5n),
	.stm-products-main.cols-6 .stm-product-item:nth-child(6n),
	.stm-products-main.cols-6 > li.product:nth-child(6n) {
		margin-right: 15px !important;
	}
	
	.stm-products-main.cols-5 .stm-product-item:nth-child(4n),
	.stm-products-main.cols-5 > li.product:nth-child(4n),
	.stm-products-main.cols-6 .stm-product-item:nth-child(4n),
	.stm-products-main.cols-6 > li.product:nth-child(4n) {
		margin-right: 0 !important;
	}
}

@media (max-width: 992px) {
	.stm-products-main.cols-5 .stm-product-item,
	.stm-products-main.cols-5 > li.product,
	.stm-products-main.cols-6 .stm-product-item,
	.stm-products-main.cols-6 > li.product {
		flex: 0 0 calc(33.333333% - 10px) !important;
		max-width: calc(33.333333% - 10px) !important;
	}
	
	.stm-products-main.cols-5 .stm-product-item:nth-child(4n),
	.stm-products-main.cols-5 > li.product:nth-child(4n),
	.stm-products-main.cols-6 .stm-product-item:nth-child(4n),
	.stm-products-main.cols-6 > li.product:nth-child(4n) {
		margin-right: 15px !important;
	}
	
	.stm-products-main.cols-5 .stm-product-item:nth-child(3n),
	.stm-products-main.cols-5 > li.product:nth-child(3n),
	.stm-products-main.cols-6 .stm-product-item:nth-child(3n),
	.stm-products-main.cols-6 > li.product:nth-child(3n) {
		margin-right: 0 !important;
	}
}

@media (max-width: 768px) {
	.stm-products-main.cols-5 .stm-product-item,
	.stm-products-main.cols-5 > li.product,
	.stm-products-main.cols-6 .stm-product-item,
	.stm-products-main.cols-6 > li.product {
		flex: 0 0 calc(50% - 7.5px) !important;
		max-width: calc(50% - 7.5px) !important;
	}
	
	.stm-products-main.cols-5 .stm-product-item:nth-child(3n),
	.stm-products-main.cols-5 > li.product:nth-child(3n),
	.stm-products-main.cols-6 .stm-product-item:nth-child(3n),
	.stm-products-main.cols-6 > li.product:nth-child(3n) {
		margin-right: 15px !important;
	}
	
	.stm-products-main.cols-5 .stm-product-item:nth-child(2n),
	.stm-products-main.cols-5 > li.product:nth-child(2n),
	.stm-products-main.cols-6 .stm-product-item:nth-child(2n),
	.stm-products-main.cols-6 > li.product:nth-child(2n) {
		margin-right: 0 !important;
	}
}

@media (max-width: 480px) {
	.stm-products-main.cols-5 .stm-product-item,
	.stm-products-main.cols-5 > li.product,
	.stm-products-main.cols-6 .stm-product-item,
	.stm-products-main.cols-6 > li.product {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
	}
}

.stm-products-main.grid .stm-product-item {
	margin-left: 0;
}

.stm-products-main.grid .stm-product-item__image {
	padding: 15px;
}

.stm-product-item__title {
	white-space: unset;
}

/* Ensure equal height product cards */
.stm-products-main {
	align-items: stretch;
	position: relative;
	overflow: visible;
}

.stm-products-main .stm-product-item {
	display: flex !important;
	flex-direction: column;
	position: relative;
	/* Expose card radius as a variable so hover overlay can match it. */
	--stm-card-radius: 10px;
}

.stm-products-main .stm-product-item__content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.stm-products-main .stm-product-item__content .meta-middle {
	flex-grow: 1;
}

.stm-products-main .stm-product-item__content .meta-bottom {
	margin-top: auto;
}

.woocommerce .woocommerce-ordering select {
	padding: 10px 30px 10px 20px !important;
}

/* ==========================================================================
   Product Card Power Info
   ========================================================================== */

.stm-product-item__power {
	margin-top: 8px;
	font-size: 14px;
	background-color: #fff;
	padding: 10px 0;
	font-size: 15px;
    text-align: left;
}

.stm-product-item__power .power-label {
	color: #666;
}

.stm-product-item__power .power-value {
	font-weight: 600;
	color: #25aae1;
	float: right;
}

/* ==========================================================================
   PDF Datasheet Download Button in Product Attributes Table
   ========================================================================== */

.woocommerce-product-attributes-item--pdf_datasheet .woocommerce-product-attributes-item__value {
	padding: 8px 12px;
}

a.pdf-datasheet-btn {
	display: inline-flex;
	align-items: center;
	background-color: #25aae1;
	color: #fff;
	padding: 8px 18px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	line-height: 1.4;
}

a.pdf-datasheet-btn:hover {
	background-color: #1d8dbd;
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

a.pdf-datasheet-btn:active {
	background-color: #1a7da8;
}

a.pdf-datasheet-btn svg {
	flex-shrink: 0;
}

/* ==========================================================================
   Hide Related Products Tab
   ========================================================================== */

/* Hide the Related Products tab and its content on all product pages */
.woocommerce-tabs .tabs li.related_products_tab,
#tab-title-related_products,
#tab-related_products,
.woocommerce-Tabs-panel--related_products {
	display: none !important;
}

/* ==========================================================================
   Product Card Hover Effect (lift + shadow, like manufacturer site)
   ========================================================================== */

@media (hover: hover) {
	.stm-products-main .stm-product-item {
		transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	}

	.stm-products-main .stm-product-item.is-card-hovered {
		transform: translateY(-5px);
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
		border-color: transparent;
	}
}

/* ==========================================================================
   Product Card Hover Attributes – absolute overlay approach
   ========================================================================== */

/*
 * The attribute overlay is absolutely positioned so it does NOT
 * affect the card's intrinsic height and therefore does NOT cause
 * sibling cards in the same flex row to stretch.
 */
.stm-products-main .stm-product-item__content {
	overflow: visible !important;
}

/* Override plugin's display:none on .meta-middle */
.stm-products-main.grid .stm-product-item__content .meta-middle {
	display: block !important;
	min-height: 0;
	margin: 0;
	flex-grow: 1;
}

/* ---- Attributes overlay: absolutely positioned, out of flow ---- */
.stm-product-item .hover-attr-content {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 3000;
	background: #fff;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.35s ease, opacity 0.25s ease;
	padding: 0 10px;
	border-radius: 0 0 var(--stm-card-radius, 10px) var(--stm-card-radius, 10px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	/* Hide scrollbar */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.stm-product-item .hover-attr-content::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

/* Card z-index on hover so overlay sits above sibling cards */
.stm-product-item.is-card-hovered,
.stm-product-item.is-card-expanded {
	z-index: 2999;
}

/* ---- Peek state: ~3 rows revealed on hover ---- */
.stm-product-item.is-card-hovered .hover-attr-content {
	max-height: 100px;
	opacity: 1;
}

/* ---- Expanded state: all rows ---- */
.stm-product-item .hover-attr-content.attr-expanded {
	max-height: 600px;
	opacity: 1;
	overflow-y: auto;
}

/* Inner wrapper: reserve space for gradient/button */
.hover-attr-content-inner {
	overflow: hidden;
	padding-bottom: 24px;
}

.hover-attr-content.attr-expanded .hover-attr-content-inner {
	padding-bottom: 2px;
}

/* ---- Three-dots expand / collapse button ---- */
.attr-expand-btn {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 24px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: linear-gradient(to bottom, transparent, #fff 70%);
	text-decoration: none;
	color: #555;
	font-size: 20px;
	letter-spacing: 3px;
	line-height: 1;
	padding-bottom: 0;
	cursor: pointer;
	transition: color 0.2s;
}

@media (max-width: 992px) {
	.attr-expand-btn {
		bottom: -10px;
	}
}

.attr-expand-btn:hover {
	color: #d33535;
}

/* When expanded turn dots into a collapse indicator */
.hover-attr-content.attr-expanded .attr-expand-btn {
	position: relative;
	height: auto;
	background: none;
	padding: 2px 0 4px;
	font-size: 14px;
	letter-spacing: 0;
	color: #999;
}

/* Hide button when all rows fit in the peek height */
.attr-expand-btn.attr-btn-hidden {
	display: none;
}

/* ---- Attribute table styling (compact) ---- */
.hover-attr-content table.shop_attributes {
	width: 100%;
	font-size: 13px;
	border: none;
	margin: 0;
	border-collapse: collapse;
}

.hover-attr-content table.shop_attributes th,
.hover-attr-content table.shop_attributes td {
	padding: 2px 0;
	border: none;
	border-bottom: 1px dashed #e0e0e0;
	vertical-align: middle;
	background: none;
	margin: 0;
}

.hover-attr-content table.shop_attributes th {
	font-weight: 600;
	color: #333;
	text-align: left;
	width: 55%;
}

.hover-attr-content table.shop_attributes td {
	color: #555;
	text-align: right;
}

.hover-attr-content table.shop_attributes p {
	margin: 0;
	padding: 0;
}

.hover-attr-content table.shop_attributes tr:last-child th,
.hover-attr-content table.shop_attributes tr:last-child td {
	border-bottom: none;
}

/* ---- Touch devices: peek visible by default ---- */
@media (hover: none) {
	.stm-product-item .hover-attr-content {
		position: relative;
		max-height: 100px;
		opacity: 1;
		overflow: hidden;
		padding: 0 10px;
		box-shadow: none;
		border-radius: 0;
	}

	.stm-product-item .hover-attr-content.attr-expanded {
		max-height: 600px;
		overflow-y: auto;
	}
}

/* ==========================================================================
   Single Product Page – Title Above Image & Attributes in Summary
   ========================================================================== */

/* Title is now output before the floated gallery/summary columns.
   As a block element it naturally sits full-width above both. */
body.single-product .product > .product_title.entry-title {
	width: 100%;
	clear: both;
	text-align: center;
	margin-bottom: 15px;
	font-size: 28px;
}

/* Attributes table inside the summary area */
body.single-product .summary .woocommerce-product-attributes-wrapper {
	margin-top: 0;
}

body.single-product .summary table.woocommerce-product-attributes {
	width: 100%;
}

body.single-product .summary table.woocommerce-product-attributes th,
body.single-product .summary table.woocommerce-product-attributes td {
	padding: 6px 10px!important;
	font-size: 14px;
}

body.single-product .summary table.woocommerce-product-attributes td {
	text-align: right;
}

.woocommerce-product-attributes.shop_attributes {
	border-radius: 10px;
}

.man_page .product table tr {
	background-color: #F7F7F7!important;
}

body.single-product .summary table.woocommerce-product-attributes p {
	margin: 0;
}

.woocommerce table.shop_attributes {
	border: none;
}
.woocommerce table.shop_attributes tr:last-child th,
.woocommerce table.shop_attributes tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   Personalized Offer CTA (single product page)
   ========================================================================== */

.personalized-offer-cta {
	clear: both;
	background: #a91d1d;
	color: #fff;
	border-radius: 12px;
	padding: 32px 40px;
	margin: 24px auto 0;
	width: 50%;
	box-sizing: border-box;
	text-align: left;
}

.personalized-offer-cta__title {
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 10px;
	color: #fff !important;
	letter-spacing: 0.5px;
}

.personalized-offer-cta__desc {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 22px;
	color: #fff !important;
}

.personalized-offer-cta__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 16px 24px;
	border: none;
	border-radius: 50px;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.personalized-offer-cta__btn:hover {
	background: #fff;
	color: #222;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.personalized-offer-cta__btn svg {
	color: #fff;
}

@media (max-width: 768px) {
	.personalized-offer-cta {
		width: 100%;
		padding: 24px 20px;
	}
}

.personalized-offer-form {
	margin: 16px 0 0;
	padding: 16px;
	background: #f9f9f9;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
}

.personalized-offer-form--modal {
	margin: 0;
	padding-top: 20px;
	background: transparent;
	border: none;
	position: relative;
}

.offer-modal-open {
	overflow: hidden;
}

.personalized-offer-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.personalized-offer-modal[hidden] {
	display: none !important;
}

.personalized-offer-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.personalized-offer-modal__dialog {
	position: relative;
	width: min(840px, 100%);
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
	z-index: 2;
}

.personalized-offer-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #a91d1d;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
	z-index: 3;
}

.personalized-offer-modal__close:hover {
	background: #8a1717;
}

@media (max-width: 600px) {
	.personalized-offer-modal {
		padding: 12px;
	}

	.personalized-offer-modal__dialog {
		padding: 16px;
	}
}

/* Offer form inner layout */
.offer-form-header {
	margin-bottom: 12px;
}

.offer-form-product {
	font-size: 12px !important;
	font-weight: 700;
	color: #c01818 !important;
	text-transform: uppercase;
	margin: 0 0 6px;
	letter-spacing: 0.5px;
	line-height: 1.3;
}

.offer-form-heading {
	font-size: 22px;
	font-weight: 800;
	color: #222;
	margin: 0 0 6px;
}

.offer-form-desc {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
	margin: 0;
}

.offer-form-row {
	display: flex;
	gap: 10px;
	margin-bottom: 0;
}

.offer-form-col {
	flex: 1;
}

.personalized-offer-form label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 0;
	display: block;
}

.personalized-offer-form label + br,
.personalized-offer-form .offer-form-consent + br {
	display: none;
}

.personalized-offer-form p {
	margin: 0 0 10px;
}

.personalized-offer-form .wpcf7-form-control-wrap {
	display: block;
	margin: 2px 0 0 !important;
}

/* Keep CF7 validation messages in normal flow inside modal fields. */
.personalized-offer-form span.wpcf7-not-valid-tip,
.personalized-offer-form .wpcf7-not-valid-tip {
	position: static;
	display: block;
	margin: 6px 0 0 !important;
	font-size: 13px !important;
	line-height: 1.25;
}

.personalized-offer-form .wpcf7-form-control:not(textarea) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.2 !important;
}

.personalized-offer-form .required {
	color: #a91d1d;
}

.personalized-offer-form input[type="text"],
.personalized-offer-form input[type="email"],
.personalized-offer-form input[type="tel"] {
	width: 100%;
	padding: 7px 10px !important;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px !important;
	line-height: 1 !important;
	height: 38px;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
	margin: 0 !important;
}

.personalized-offer-form textarea {
	width: 100%;
	padding: 7px 10px !important;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px !important;
	line-height: 1.4 !important;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
	margin: 0 !important;
}

.personalized-offer-form input:focus,
.personalized-offer-form textarea:focus {
	border-color: #a91d1d;
	outline: none;
	box-shadow: 0 0 0 2px rgba(169, 29, 29, 0.1);
}

.personalized-offer-form textarea {
	resize: vertical;
	min-height: 62px !important;
	height: 96px;
	max-height: 140px;
}

.offer-form-consent {
	margin: 8px 0 12px;
	font-size: 13px;
	color: #555;
}

.offer-form-consent a {
	color: #222;
	font-weight: 700;
	text-decoration: underline;
}

.personalized-offer-form .wpcf7-submit,
.personalized-offer-form input.offer-form-submit {
	display: block;
	width: 100%;
	padding: 10px 14px !important;
	background: #a91d1d;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background 0.2s;
	margin: 4px 0 0 !important;
}

.personalized-offer-form .wpcf7-submit:hover,
.personalized-offer-form input.offer-form-submit:hover {
	background: #8a1717;
}

/* Hide CF7 default spinner and empty paragraph wrappers */
.personalized-offer-form .wpcf7-spinner {
	display: none !important;
}

.personalized-offer-form p:empty {
	display: none;
}

/* Inline spinner on the button while CF7 is submitting */
.personalized-offer-form .wpcf7-submit {
	position: relative;
}

.personalized-offer-form .wpcf7-submit::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	margin-left: 10px;
	vertical-align: middle;
	opacity: 0;
	transition: opacity 0.15s;
}

.personalized-offer-form form.submitting .wpcf7-submit::after {
	opacity: 1;
	animation: offer-btn-spin 0.7s linear infinite;
}

@keyframes offer-btn-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
	.offer-form-row {
		flex-direction: column;
		gap: 4px;
	}
}

/* ==========================================================================
   Brand Filter Bar (category pages)
   ========================================================================== */

.brand-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	align-items: center;
	justify-content: flex-start;
}

.brand-filter-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	min-height: 50px;
	min-width: 100px;
}

.brand-filter-item:hover {
	border-color: #25aae1;
	box-shadow: 0 2px 8px rgba(37, 170, 225, 0.15);
}

.brand-filter-item.active {
	border-color: #25aae1;
	background: #f0faff;
	box-shadow: 0 0 0 1px #25aae1;
}


.brand-filter-item img {
	max-height: 36px;
	width: auto;
	object-fit: contain;
}

.brand-filter-item .brand-filter-name {
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.man_page h1 {
	font-size: 36px!important;
}

.home-product-card {
	display: block;
	max-width: 300px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-product-card:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.home-product-card__image {
	position: relative;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	min-height: 200px;
	border-bottom: 1px solid #e5e7eb;
}

.home-product-card__image img {
	max-width: 100%;
	max-height: 180px;
	object-fit: contain;
	display: block;
}

.home-product-card__tag {
	position: absolute;
	top: 16px;
	left: 16px;
	background: #f3f4f6;
	color: #555;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
	letter-spacing: 0.3px;
	font-style: italic;
}

.home-product-card__info {
	padding: 24px;
	background: #fff;
}

.home-product-card__title {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
	line-height: 1.3;
}

.home-product-card__description {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 20px;
}

.home-product-card__link {
	display: inline-block;
	background: #dd3432;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 8px;
	letter-spacing: 0.3px;
	transition: background 0.2s ease;
}

.home-product-card:hover .home-product-card__link {
	background: #a93226;
}