/**
 * WooCommerce layout overrides — keep Modave/Logicware look
 */

/* ---- Reset WC table chrome on cart ---- */
.woocommerce-cart .woocommerce-cart-form table.shop_table,
.woocommerce-cart .woocommerce-cart-form table.shop_table td,
.woocommerce-cart .woocommerce-cart-form table.shop_table th {
	border: 0;
	background: transparent;
}
.woocommerce-cart .woocommerce-cart-form table.shop_table {
	margin: 0 0 28px;
}
.woocommerce-cart .woocommerce-cart-form .product-thumbnail img,
.woocommerce-cart .tf-cart-item_product .img-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}
.woocommerce-cart .tf-cart-item_product .img-box {
	flex-shrink: 0;
}
.woocommerce-cart .tf-cart-item_product .img-box .attachment-woocommerce_thumbnail,
.woocommerce-cart .tf-cart-item_product .img-box img {
	display: block;
}

/* Quantity compact on cart (no “Cantitate:” label) */
.woocommerce-cart .quantity.quantity--compact,
.woocommerce-cart .tf-cart-item_quantity .quantity {
	margin: 0;
	display: flex;
	justify-content: center;
}
.woocommerce-cart .quantity.quantity--compact .tf-product-info-quantity .title,
.woocommerce-cart .tf-cart-item_quantity .title {
	display: none !important;
}
.woocommerce-cart .tf-cart-item .wg-quantity {
	width: 120px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid var(--line, #e9e9e9);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.woocommerce-cart .tf-cart-item .wg-quantity input.quantity-product,
.woocommerce-cart .tf-cart-item .wg-quantity input.qty {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	text-align: center;
	width: 40px;
	height: 38px;
	padding: 0;
	margin: 0;
	-moz-appearance: textfield;
}
.woocommerce-cart .tf-cart-item .wg-quantity input::-webkit-outer-spin-button,
.woocommerce-cart .tf-cart-item .wg-quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.woocommerce-cart .tf-cart-item .wg-quantity .btn-quantity {
	cursor: pointer;
	user-select: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 30px;
	font-size: 22px;
	line-height: 1;
	color: inherit;
}

/* Coupon row like HTML */
.woocommerce-cart .ip-discount-code {
	position: relative;
	margin-bottom: 16px;
}
.woocommerce-cart .ip-discount-code input.input-text {
	width: 100%;
	padding: 12px 20px;
	padding-right: 140px;
	border: 1px solid var(--line, #e9e9e9);
	border-radius: 8px;
	height: auto;
}
.woocommerce-cart .ip-discount-code .tf-btn {
	position: absolute;
	right: 8px;
	top: 8px;
	bottom: 8px;
	border-radius: 8px;
	padding: 6px 20px;
	margin: 0;
}
.woocommerce-cart .cart-actions-update {
	margin-top: 12px;
}

/* Sidebar order box */
.woocommerce-cart .fl-sidebar-cart .cart_totals,
.woocommerce-cart .box-order {
	width: 100%;
}
.woocommerce-cart .box-order .shop_table,
.woocommerce-cart .box-order table {
	width: 100%;
	border: 0;
	margin: 0;
}
.woocommerce-cart .box-order .wc-proceed-to-checkout {
	padding: 0;
	margin: 0;
}
.woocommerce-cart .box-order .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .box-order .box-progress-checkout .tf-btn,
.woocommerce-cart .box-order .checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 32px;
	text-align: center;
	margin: 0;
}

/* Shipping methods → ship-item look */
.woocommerce-cart .box-order .woocommerce-shipping-totals,
.woocommerce-cart .box-order .woocommerce-shipping-destination {
	display: block;
}
.woocommerce-cart .box-order ul#shipping_method,
.woocommerce-cart .box-order ul.woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-cart .box-order ul#shipping_method li,
.woocommerce-cart .box-order ul.woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	padding: 0;
}
.woocommerce-cart .box-order ul#shipping_method li label,
.woocommerce-cart .box-order ul.woocommerce-shipping-methods li label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-grow: 1;
	gap: 12px;
	margin: 0;
	cursor: pointer;
}
.woocommerce-cart .box-order .shipping td,
.woocommerce-cart .box-order .shipping th {
	display: block;
	padding: 0;
	border: 0;
	width: 100% !important;
}
.woocommerce-cart .box-order table.shop_table_responsive tr.shipping {
	display: block;
}

/* Hide duplicate WC cross-sells in sidebar if any remain */
.woocommerce-cart .fl-sidebar-cart .cross-sells {
	display: none !important;
}

/* Messages */
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper {
	max-width: 1290px;
	margin: 20px auto 0;
	padding: 0 15px;
}

/* ---- Checkout ---- */
.woocommerce-checkout .tf-page-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .tf-page-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .tf-page-checkout .woocommerce-additional-fields__field-wrapper {
	display: grid;
	gap: 16px;
}
.woocommerce-checkout .tf-page-checkout .form-row {
	margin: 0;
	padding: 0;
	width: 100% !important;
	float: none !important;
}
.woocommerce-checkout .tf-page-checkout .form-row input.input-text,
.woocommerce-checkout .tf-page-checkout .form-row textarea,
.woocommerce-checkout .tf-page-checkout .form-row select,
.woocommerce-checkout .tf-page-checkout .select2-container .select2-selection--single {
	width: 100%;
	min-height: 48px;
	border-radius: 8px;
	border: 1px solid var(--line, #e9e9e9);
	padding: 10px 14px;
}
.woocommerce-checkout .tf-page-checkout .form-row label {
	margin-bottom: 6px;
}
.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}
.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	border: 0;
	background: transparent;
}
.woocommerce-checkout #payment div.form-row {
	padding: 16px 0 0;
}
.woocommerce-checkout #place_order {
	width: 100%;
	float: none;
	margin: 0;
	padding: 12px 32px;
	border-radius: 8px;
}
.woocommerce-checkout .flat-sidebar-checkout .sec-discount .ip-discount-code {
	position: relative;
	margin-bottom: 8px;
}
.woocommerce-checkout .flat-sidebar-checkout .sec-discount .ip-discount-code input {
	width: 100%;
	padding: 12px 20px;
	padding-right: 110px;
	border: 1px solid var(--line, #e9e9e9);
	border-radius: 8px;
}
.woocommerce-checkout .flat-sidebar-checkout .sec-discount .ip-discount-code .tf-btn {
	position: absolute;
	right: 8px;
	top: 8px;
	bottom: 8px;
	margin: 0;
}

/* Mini-cart image size (full product via contain — see rules below) */
#shoppingCart .tf-mini-cart-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

/* Wishlist active state */
.wishlist-btn.in-wishlist .icon,
.box-icon.wishlist.in-wishlist .icon {
	color: var(--critical, #e74c3c);
}

@media (max-width: 767px) {
	.woocommerce-cart .tf-table-page-cart thead {
		display: none;
	}
	.woocommerce-cart .tf-table-page-cart .tf-cart-item {
		display: block;
		position: relative;
		padding-left: 98px;
		min-height: 140px;
		border-bottom: 1px solid var(--line, #e9e9e9);
		margin-bottom: 15px;
	}
	.woocommerce-cart .tf-table-page-cart .tf-cart-item td {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		padding: 10px 0;
		border: 0;
	}
	.woocommerce-cart .tf-table-page-cart .tf-cart-item td:not(:last-child) {
		border-bottom: 1px dashed var(--line, #e9e9e9);
	}
	.woocommerce-cart .tf-table-page-cart .tf-cart-item .img-box {
		position: absolute;
		top: 0;
		left: 0;
		width: 80px;
		height: 110px;
		margin: 0;
	}
	.woocommerce-cart .tf-table-page-cart .tf-cart-item td[data-cart-title]::before {
		content: attr(data-cart-title);
		color: var(--main, #181818);
		flex: 1 1 auto;
		text-align: start;
	}
	.woocommerce-cart .box-order .ship {
		flex-direction: column;
		gap: 12px;
	}
}

/* ============================================================
   Mini-cart drawer (modal-shopping-cart) — match HTML demo
   ============================================================ */

/* Cart column only (no recommendations panel) */
.modal-shopping-cart .modal-content {
	max-width: 480px !important;
}
.modal-shopping-cart .logicware-minicart-fragment,
.modal-shopping-cart .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: 100%;
	min-height: 0;
	flex: 1 1 auto;
	overflow: hidden;
}
.modal-shopping-cart .tf-minicart-recommendations {
	display: none !important;
}

/* Cart column: header + wrap (threshold + items/footer) */
.modal-shopping-cart .logicware-minicart-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: 100%;
	flex: 1 1 auto;
	overflow: hidden;
}
.modal-shopping-cart .logicware-minicart-main > .header {
	flex-shrink: 0;
}
.modal-shopping-cart .logicware-minicart-main > .wrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.modal-shopping-cart .logicware-minicart-main .tf-mini-cart-threshold {
	flex-shrink: 0;
}
.modal-shopping-cart .logicware-minicart-main .tf-mini-cart-wrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
	overflow: hidden;
}
.modal-shopping-cart .logicware-minicart-main .tf-mini-cart-wrap > .tf-mini-cart-main {
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
}
.modal-shopping-cart .logicware-minicart-main .tf-mini-cart-wrap > .tf-mini-cart-bottom {
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	background: var(--white, #fff);
}

/* Recommendations column height */
.modal-shopping-cart .tf-minicart-recommendations {
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

/* Item rows: title + Elimină top; variant + qty×price bottom */
.modal-shopping-cart .tf-mini-cart-item {
	align-items: flex-start;
}
.modal-shopping-cart .tf-mini-cart-item .tf-mini-cart-info {
	min-width: 0;
}
.modal-shopping-cart .logicware-minicart-row-top {
	flex-wrap: nowrap !important;
	width: 100%;
	align-items: flex-start !important;
}
.modal-shopping-cart .logicware-minicart-row-top .text-title {
	flex: 1 1 auto;
	min-width: 0;
}
.modal-shopping-cart .logicware-minicart-row-top .text-title .link,
.modal-shopping-cart .logicware-minicart-row-top .text-title span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.modal-shopping-cart .logicware-minicart-row-top .tf-btn-remove {
	flex: 0 0 auto;
	white-space: nowrap;
	margin-left: 8px;
	line-height: 1.4;
}
.modal-shopping-cart .logicware-minicart-row-bot {
	flex-wrap: nowrap !important;
	width: 100%;
}
.modal-shopping-cart .logicware-minicart-row-bot .text-secondary-2 {
	flex: 1 1 auto;
	min-width: 0;
}
.modal-shopping-cart .logicware-minicart-row-bot .text-button {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Thumbnails */
.modal-shopping-cart .tf-mini-cart-image a {
	display: block;
	width: 100%;
	height: 100%;
}
.modal-shopping-cart .tf-mini-cart-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.modal-shopping-cart .tf-minicart-recommendations .list-cart-item .image a,
.modal-shopping-cart .tf-minicart-recommendations .list-cart-item .image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Tools: icon + label like HTML (horizontal) */
.modal-shopping-cart .tf-mini-cart-tool .tf-mini-cart-tool-btn {
	text-decoration: none;
	color: inherit;
}
.modal-shopping-cart .tf-mini-cart-tool .tf-mini-cart-tool-btn:hover {
	color: var(--primary, #000);
}

/* Terms */
.modal-shopping-cart .tf-cart-checkbox a {
	font-weight: 600;
	text-decoration: underline;
}


/* ============================================================
   Product previews: contain + multiply (white BG blends away)
   ============================================================ */
.card-product .card-product-wrapper {
	background-color: var(--surface, #f5f5f5);
}
.card-product .card-product-wrapper img,
.card-product .card-product-wrapper .img-product,
.card-product .card-product-wrapper .img-hover {
	object-fit: contain !important;
	object-position: center !important;
	background-color: transparent;
	mix-blend-mode: multiply;
}

/* Cart page thumbs */
.woocommerce-cart .tf-cart-item .tf-cart-item_product .img-box,
.woocommerce-cart .tf-cart-item_product .img-box {
	background-color: var(--surface, #f5f5f5);
}
.woocommerce-cart .tf-cart-item .tf-cart-item_product .img-box img,
.woocommerce-cart .tf-cart-item_product .img-box img,
.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}

/* Mini-cart + recommendations */
.modal-shopping-cart .tf-mini-cart-image,
#shoppingCart .tf-mini-cart-image {
	background-color: var(--surface, #f5f5f5);
}
.modal-shopping-cart .tf-mini-cart-image img,
#shoppingCart .tf-mini-cart-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}
.modal-shopping-cart .tf-minicart-recommendations .list-cart-item .image {
	background-color: var(--surface, #f5f5f5);
}
.modal-shopping-cart .tf-minicart-recommendations .list-cart-item .image img {
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}

/* Checkout sidebar product thumbs */
.sidebar-checkout-content .item-product .img-product {
	background-color: var(--surface, #f5f5f5);
}
.sidebar-checkout-content .item-product .img-product img {
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}

/* Sticky ATC / order / compare-ish product peeks */
.form-sticky-atc .tf-sticky-atc-img img,
.form-sticky-atc .tf-sticky-atc-product .image img,
.wd-form-order .order-head .img-product img,
.tf-mini-cart-item .tf-mini-cart-image img,
.canvas-search .tf-loop-item .image img,
.offcanvas-compare .tf-compare-item .image img {
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}

/* Mega-menu product cards */
.box-nav-ul .mega-menu .card-product .card-product-wrapper img {
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}

/* ============================================================
   Cart page � match shopping-cart.html
   ============================================================ */
.logicware-cart-page .tf-table-page-cart {
	width: 100%;
}
.logicware-cart-page .tf-table-page-cart thead th {
	font-weight: 600;
	text-align: left;
}
.logicware-cart-page .tf-table-page-cart thead th:nth-child(2),
.logicware-cart-page .tf-table-page-cart thead th:nth-child(3),
.logicware-cart-page .tf-table-page-cart thead th:nth-child(4) {
	text-align: center;
}
.logicware-cart-page .tf-cart-item_product .img-box {
	background-color: var(--surface, #f5f5f5);
}
.logicware-cart-page .tf-cart-item_product .img-box img {
	object-fit: contain !important;
	mix-blend-mode: multiply;
}
.logicware-cart-page .tf-cart-item_product .cart-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 600;
}
.logicware-cart-page .tf-cart-item_product .variant-box,
.logicware-cart-page .tf-cart-item_product .variation {
	font-size: 13px;
	color: var(--secondary-2, #888);
}
.logicware-cart-page .tf-cart-item_product .variation {
	margin: 0;
	padding: 0;
	border: 0;
}
.logicware-cart-page .tf-cart-item_product .variation dt,
.logicware-cart-page .tf-cart-item_product .variation dd {
	display: inline;
	margin: 0;
	float: none;
}
.logicware-cart-page .tf-cart-item_product .variation dd p {
	display: inline;
	margin: 0;
}
.logicware-cart-page .remove-cart .remove {
	display: inline-flex;
	text-decoration: none;
}
.logicware-cart-page .cart-actions-update {
	margin-top: 16px;
}

/* Shipping radios ? ship-item look */
.logicware-cart-page .box-order .logicware-cart-shipping table,
.logicware-cart-page .box-order .logicware-cart-shipping tr,
.logicware-cart-page .box-order .logicware-cart-shipping th,
.logicware-cart-page .box-order .logicware-cart-shipping td {
	display: block;
	width: 100% !important;
	border: 0;
	padding: 0;
	background: transparent;
}
.logicware-cart-page .box-order .logicware-cart-shipping th {
	display: none;
}
.logicware-cart-page .box-order ul#shipping_method li,
.logicware-cart-page .box-order ul.woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
}
.logicware-cart-page .box-order ul#shipping_method li label,
.logicware-cart-page .box-order ul.woocommerce-shipping-methods li label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-grow: 1;
	gap: 12px;
	margin: 0;
	color: var(--secondary, #666);
}
.logicware-cart-page .box-order ul#shipping_method li input:checked + label,
.logicware-cart-page .box-order ul.woocommerce-shipping-methods li input:checked + label {
	color: var(--main, #181818);
}
.logicware-cart-page .box-order .check-agree {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	border: 0;
	padding: 0;
	margin: 0;
}
.logicware-cart-page .box-order .check-agree label {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}
.logicware-cart-page .box-order .check-agree label a {
	font-weight: 600;
	text-decoration: underline;
}
.logicware-cart-page .box-order .wc-proceed-to-checkout .tf-btn,
.logicware-cart-page .box-order .checkout-button.tf-btn {
	width: 100%;
	justify-content: center;
}

/* Hide WC Blocks cart chrome if somehow still rendered */
.woocommerce-cart .wp-block-woocommerce-cart {
	display: none !important;
}

@media (max-width: 1199.98px) {
	.logicware-cart-page .tf-table-page-cart thead {
		display: none;
	}
	.logicware-cart-page .tf-table-page-cart tbody tr.tf-cart-item {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 8px 12px;
		padding: 16px 0;
	}
	.logicware-cart-page .tf-table-page-cart tbody td {
		padding: 0 !important;
		border: 0;
	}
	.logicware-cart-page .tf-cart-item_product {
		grid-column: 1 / -1;
	}
	.logicware-cart-page .tf-cart-item_price::before,
	.logicware-cart-page .tf-cart-item_quantity::before,
	.logicware-cart-page .tf-cart-item_total::before {
		content: attr(data-cart-title);
		display: block;
		font-size: 12px;
		color: var(--secondary-2, #888);
		margin-bottom: 4px;
	}
	.logicware-cart-page .remove-cart {
		justify-self: end;
		align-self: start;
	}
}

/* ============================================================
   Single product: full image + smaller title
   ============================================================ */
.single-product .tf-product-media-main .item {
	background-color: var(--surface, #f7f7f7);
	display: flex;
	align-items: center;
	justify-content: center;
	/* Let height follow the image so Drift zoom maps landscape correctly */
	height: auto !important;
	max-height: 687px;
	min-height: 320px;
}
.single-product .tf-product-media-main .item img,
.single-product .tf-product-media-thumbs .item img,
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__wrapper img,
.single-product .flex-control-thumbs img {
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}
/* Main gallery: img box = visible pixels (critical for Drift on landscape) */
.single-product .tf-product-media-main .item img.tf-image-zoom,
.single-product .tf-product-media-main .item img {
	width: 100% !important;
	height: auto !important;
	max-height: 687px;
	display: block;
}
.single-product .tf-product-media-thumbs .item {
	background-color: var(--surface, #f7f7f7);
	border-radius: 4px;
	overflow: hidden;
}

/* Desktop: thumbs column height follows main image (JS sets height); overflow scrolls */
@media (min-width: 768px) {
	.single-product .thumbs-slider {
		align-items: flex-start;
	}
	.single-product .tf-product-media-thumbs {
		position: relative;
		max-height: none;
		overflow: hidden;
	}
	.single-product .tf-product-media-thumbs .tf-product-media-thumbs-scrollbar,
	.single-product .tf-product-media-thumbs .swiper-scrollbar {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		width: 3px;
		background: rgba(0, 0, 0, 0.06);
		border-radius: 999px;
		z-index: 2;
	}
	.single-product .tf-product-media-thumbs .swiper-scrollbar-drag {
		background: rgba(0, 0, 0, 0.35);
		border-radius: 999px;
	}
}
@media (max-width: 767.98px) {
	.single-product .tf-product-media-thumbs .tf-product-media-thumbs-scrollbar,
	.single-product .tf-product-media-thumbs .swiper-scrollbar {
		display: none !important;
	}
}

/*
 * Zoom pane: do NOT force img to 100%/contain — that kills Drift's region zoom
 * and shows the whole photo. Drift sizes/positions the pane img itself.
 * Only neutralize theme `object-fit: cover` which cropped landscape zooms.
 */
.single-product .tf-zoom-main .drift-zoom-pane {
	background-color: #fff;
	overflow: hidden;
}
.single-product .tf-zoom-main .drift-zoom-pane img,
.single-product .drift-zoom-pane.drift-open img {
	object-fit: unset !important;
	max-width: none !important;
}

/* Variable ATC: full-width row (parent was shrinking in flex-row form) */
.tf-product-info-list form.variations_form.cart {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 12px !important;
}
.tf-product-info-list form.variations_form .single_variation_wrap,
.tf-product-info-list form.variations_form .woocommerce-variation-add-to-cart,
.tf-product-info-list form.variations_form .tf-product-info-by-btn {
	width: 100% !important;
	max-width: 100% !important;
}
.tf-product-info-list form.variations_form .tf-product-info-by-btn .single_add_to_cart_button.button,
.tf-product-info-list form.variations_form .tf-product-info-by-btn .single_add_to_cart_button.alt {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
}

/* Long product names: smaller H1 than global 40px */
.single-product .tf-product-info-name .name,
.single-product .tf-product-info-name h1.product_title,
.single-product h1.product_title.entry-title {
	font-size: 24px;
	line-height: 1.35;
	margin-bottom: 12px;
	font-weight: 600;
}

@media (max-width: 767.98px) {
	.single-product .tf-product-info-name .name,
	.single-product .tf-product-info-name h1.product_title,
	.single-product h1.product_title.entry-title,
	.single-product .logicware-pdp-mobile-title .name,
	.single-product .logicware-pdp-mobile-title h1.product_title {
		font-size: 20px;
		line-height: 1.35;
	}

	/* Title sits above gallery on mobile */
	.single-product .logicware-pdp-mobile-title {
		margin-bottom: 12px;
	}
	.single-product .logicware-pdp-mobile-title .name {
		margin: 0;
		font-weight: 600;
	}

	/*
	 * Main gallery: height follows the active slide (portrait vs landscape),
	 * so landscape images don't leave empty space under them.
	 */
	.single-product .tf-product-media-main.swiper-autoheight .swiper-slide {
		height: auto;
	}
	.single-product .tf-product-media-main .item {
		min-height: 0 !important;
		max-height: none !important;
		height: auto !important;
	}
	.single-product .tf-product-media-main .item img.tf-image-zoom,
	.single-product .tf-product-media-main .item img {
		max-height: none !important;
		width: 100% !important;
		height: auto !important;
	}
}

/* ============================================================
   Category circles ? 1:1 squares with radius
   ============================================================ */
.collection-circle .img-style {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	border-radius: 12px !important;
	overflow: hidden;
	background-color: var(--surface, #f7f7f7);
}
.collection-circle .img-style img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	object-position: center;
	mix-blend-mode: normal;
}

/* ============================================================
   Blog grid (wg-blog) � image fill + placeholder
   ============================================================ */
.wg-blog.style-1 .image {
	aspect-ratio: 16 / 10;
	background-color: var(--surface, #f7f7f7);
}
.wg-blog.style-1 .image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.wg-blog.style-1 .logicware-blog-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	background: var(--surface, #f7f7f7);
	border-radius: 12px;
}
.wg-pagination .page-numbers,
.wg-pagination .pagination-item {
	text-decoration: none;
}
.wg-pagination span.pagination-item.current,
.wg-pagination li.active .pagination-item {
	pointer-events: none;
}

/* ============================================================
   Contact page (contact-02) � map iframe fill
   ============================================================ */
.contact-us-map .wrap-map iframe.map-contact {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 500px;
	border: 0;
}
.form-leave-comment .cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.form-leave-comment fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}
.form-leave-comment input,
.form-leave-comment textarea {
	width: 100%;
	border: 1px solid var(--line, #e9e9e9);
	border-radius: 8px;
	padding: 12px 16px;
	background: #fff;
}
.form-leave-comment .send-wrap {
	display: flex;
	justify-content: center;
}
@media (max-width: 767.98px) {
	.form-leave-comment .cols {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Blog detail (blog-detail.html)
   ============================================================ */
.blog-detail-wrap {
	padding-bottom: 80px;
}
.blog-detail-wrap > .image {
	background-image: none; /* set inline per post */
}
.blog-detail-wrap > .inner {
	padding-bottom: 48px !important;
}
.logicware-blog-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.logicware-blog-content p,
.logicware-blog-content li {
	font-size: 16px;
	line-height: 26px;
	color: var(--secondary, #4d4e4f);
}
.logicware-blog-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.logicware-blog-content h2,
.logicware-blog-content h3,
.logicware-blog-content h4 {
	margin-top: 8px;
}
.leave-comment .form-leave-comment .logged-in-as {
	margin-bottom: 16px;
}
.reply-comment-item .comment-reply-link,
.reply-comment-item .text-button {
	font-weight: 600;
	text-decoration: underline;
}
.blog-detail-wrap .tf-social-icon.style-1 a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Home section titles — same h2 look everywhere */
.page-template-page-templates-home-php .heading-section > h2,
.page-template-page-templates-home-php .heading-section-2 > h2 {
	font-family: "Barlow Condensed", serif !important;
	font-weight: 600 !important;
	font-size: 44px;
	line-height: 50px;
	color: var(--main);
	margin-bottom: 12px;
	text-transform: capitalize;
}
@media (max-width: 991px) {
	.page-template-page-templates-home-php .heading-section > h2,
	.page-template-page-templates-home-php .heading-section-2 > h2 {
		font-size: 34px;
		line-height: 40px;
	}
}
@media (max-width: 767px) {
	.page-template-page-templates-home-php .heading-section > h2,
	.page-template-page-templates-home-php .heading-section-2 > h2 {
		font-size: 24px;
		line-height: 30px;
	}
}

/* ---- PDP brand logo (between title and price) ---- */
.logicware-product-brand {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 14px;
	margin-bottom: 14px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.logicware-product-brand-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	max-width: 180px;
}
.logicware-product-brand-logo {
	display: block;
	max-width: 140px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}
.logicware-product-brand-name {
	display: inline-block;
	line-height: 1.3;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- UOM next to price ---- */
.logicware-uom {
	font-size: 0.85em;
	font-weight: 500;
	color: var(--secondary, #64666c);
	white-space: nowrap;
}
.tf-product-info-price .logicware-uom {
	font-size: 0.55em;
	vertical-align: middle;
}

/* ---- Product badges ---- */
.card-product-wrapper {
	position: relative;
}
.tf-product-media-main {
	position: relative;
}
/* Card: discount + custom badge stacked top-left (sale first, badge under) */
.card-product .card-product-wrapper .logicware-card-corner-badges {
	position: absolute;
	top: 5px;
	left: 5px;
	right: auto;
	z-index: 5;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	max-width: calc(100% - 56px);
	pointer-events: none;
}
.card-product .card-product-wrapper .logicware-card-corner-badges .on-sale-wrap {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	display: block;
	z-index: auto;
	width: auto;
	flex-shrink: 0;
}
.card-product .card-product-wrapper .logicware-card-corner-badges .logicware-badge-labels--card,
.card-product .card-product-wrapper .logicware-card-corner-badges .logicware-badge-sticker--card {
	position: static;
	top: auto;
	left: auto;
	max-width: 100%;
	flex-shrink: 1;
}
/* Custom badge: smaller text than discount, same pill height/padding feel */
.card-product .card-product-wrapper .logicware-badge-label,
.logicware-badge-label {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0 8px;
	min-height: 20px;
	min-width: 0;
	font-size: 10px !important;
	font-weight: 600;
	line-height: 20px !important;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-align: center;
	border-radius: 144px;
	margin: 0;
	box-sizing: border-box;
}
.logicware-badge-on-image .logicware-badge-label {
	font-size: 10px !important;
	line-height: 20px !important;
	min-height: 20px;
	padding: 0 8px;
}
.logicware-badge-sticker {
	display: block;
	line-height: 0;
}
.logicware-badge-sticker img {
	display: block;
	width: auto;
	height: auto;
	max-width: 72px;
	max-height: 72px;
	object-fit: contain;
}
.logicware-badge-on-image {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	pointer-events: none;
	max-width: calc(100% - 28px);
}
.logicware-badge-on-image .logicware-badge-label {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.logicware-badge-sticker--pdp img {
	max-width: 96px;
	max-height: 96px;
}

/* ---- Share modal: WhatsApp ---- */
.tf-product-modal .tf-social-icon .box-icon.social-whatsapp {
	background: #25d366;
	color: #fff;
}
.tf-product-modal .tf-social-icon .box-icon.social-whatsapp:hover {
	opacity: 0.9;
}
.tf-product-info-extra-link .tf-product-extra-icon {
	cursor: pointer;
}

/* ---- Descriere tab: force uniform black 16px (beat inline editor styles) ---- */
.woocommerce-tabs .tab-description-simple,
.woocommerce-Tabs-panel--description .tab-description-simple {
	color: #111111 !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
}
.woocommerce-tabs .tab-description-simple p,
.woocommerce-tabs .tab-description-simple span,
.woocommerce-tabs .tab-description-simple li,
.woocommerce-tabs .tab-description-simple td,
.woocommerce-tabs .tab-description-simple th,
.woocommerce-tabs .tab-description-simple div,
.woocommerce-tabs .tab-description-simple font,
.woocommerce-tabs .tab-description-simple a,
.woocommerce-Tabs-panel--description .tab-description-simple p,
.woocommerce-Tabs-panel--description .tab-description-simple span,
.woocommerce-Tabs-panel--description .tab-description-simple li,
.woocommerce-Tabs-panel--description .tab-description-simple a {
	color: #111111 !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
}
.woocommerce-tabs .tab-description-simple ul,
.woocommerce-tabs .tab-description-simple ol,
.woocommerce-Tabs-panel--description .tab-description-simple ul,
.woocommerce-Tabs-panel--description .tab-description-simple ol {
	padding-left: 1.25em !important;
	margin: 0 0 16px !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: #111111 !important;
}
.woocommerce-tabs .tab-description-simple ul li,
.woocommerce-tabs .tab-description-simple ol li,
.woocommerce-Tabs-panel--description .tab-description-simple ul li,
.woocommerce-Tabs-panel--description .tab-description-simple ol li {
	margin-bottom: 8px !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: #111111 !important;
}
.woocommerce-tabs .tab-description-simple p {
	margin-bottom: 12px !important;
}
.woocommerce-tabs .tab-description-simple h1,
.woocommerce-tabs .tab-description-simple h2,
.woocommerce-tabs .tab-description-simple h3,
.woocommerce-tabs .tab-description-simple h4,
.woocommerce-tabs .tab-description-simple h5,
.woocommerce-tabs .tab-description-simple h6 {
	color: #111111 !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	margin: 20px 0 10px !important;
}
.woocommerce-tabs .tab-description-simple h1 { font-size: 26px !important; }
.woocommerce-tabs .tab-description-simple h2 { font-size: 22px !important; }
.woocommerce-tabs .tab-description-simple h3 { font-size: 20px !important; }
.woocommerce-tabs .tab-description-simple h4 { font-size: 18px !important; }
.woocommerce-tabs .tab-description-simple h5,
.woocommerce-tabs .tab-description-simple h6 { font-size: 16px !important; }
.woocommerce-tabs .tab-description-simple strong,
.woocommerce-tabs .tab-description-simple b {
	font-weight: 700 !important;
	color: #111111 !important;
	font-size: inherit !important;
}
.woocommerce-tabs .tab-description-simple a {
	text-decoration: underline;
}

@media (max-width: 767.98px) {
	.woocommerce-tabs .tab-description-simple,
	.woocommerce-Tabs-panel--description .tab-description-simple,
	.woocommerce-tabs .tab-description-simple p,
	.woocommerce-tabs .tab-description-simple span,
	.woocommerce-tabs .tab-description-simple li,
	.woocommerce-tabs .tab-description-simple td,
	.woocommerce-tabs .tab-description-simple th,
	.woocommerce-tabs .tab-description-simple div,
	.woocommerce-tabs .tab-description-simple font,
	.woocommerce-tabs .tab-description-simple a,
	.woocommerce-tabs .tab-description-simple ul,
	.woocommerce-tabs .tab-description-simple ol,
	.woocommerce-Tabs-panel--description .tab-description-simple p,
	.woocommerce-Tabs-panel--description .tab-description-simple span,
	.woocommerce-Tabs-panel--description .tab-description-simple li,
	.woocommerce-Tabs-panel--description .tab-description-simple a,
	.woocommerce-Tabs-panel--description .tab-description-simple ul,
	.woocommerce-Tabs-panel--description .tab-description-simple ol,
	.woocommerce-tabs.widget-tabs.style-1 .widget-content-inner.woocommerce-Tabs-panel--description,
	.woocommerce-tabs.widget-tabs.style-1 .widget-content-inner.woocommerce-Tabs-panel--description p,
	.woocommerce-tabs.widget-tabs.style-1 .widget-content-inner.woocommerce-Tabs-panel--description li {
		font-size: 14px !important;
		line-height: 1.65 !important;
	}
	.woocommerce-tabs .tab-description-simple h1 { font-size: 20px !important; }
	.woocommerce-tabs .tab-description-simple h2 { font-size: 18px !important; }
	.woocommerce-tabs .tab-description-simple h3 { font-size: 16px !important; }
	.woocommerce-tabs .tab-description-simple h4 { font-size: 15px !important; }
	.woocommerce-tabs .tab-description-simple h5,
	.woocommerce-tabs .tab-description-simple h6 { font-size: 14px !important; }
}

/* ---- Specificații tab ---- */
.logicware-product-specifications .shop_attributes,
.logicware-product-specifications .woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
}
.logicware-product-specifications .shop_attributes th,
.logicware-product-specifications .shop_attributes td,
.logicware-product-specifications .woocommerce-product-attributes th,
.logicware-product-specifications .woocommerce-product-attributes td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line, #e5e5e5);
	font-size: 14px;
	text-align: left;
	vertical-align: top;
	color: #111111 !important;
}
.logicware-product-specifications .shop_attributes th,
.logicware-product-specifications .woocommerce-product-attributes th {
	width: 40%;
	font-weight: 600;
	color: #111111 !important;
}
.logicware-product-specifications .shop_attributes td,
.logicware-product-specifications .woocommerce-product-attributes td,
.logicware-product-specifications .shop_attributes td p,
.logicware-product-specifications .woocommerce-product-attributes td p,
.logicware-product-specifications .shop_attributes td span,
.logicware-product-specifications .woocommerce-product-attributes td span,
.logicware-product-specifications .woocommerce-product-attributes-item__value,
.logicware-product-specifications .woocommerce-product-attributes-item__value p {
	color: #111111 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	margin: 0 !important;
}

/* ---- Documents tab ---- */
.logicware-product-documents {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.logicware-product-document-link {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	padding: 14px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.logicware-product-document-link:hover {
	border-color: var(--main, #111);
	background: #fafafa;
}
.logicware-product-document-title {
	font-weight: 600;
	color: #111;
	flex: 1 1 auto;
	min-width: 0;
}
.logicware-doc-icon {
	flex: 0 0 auto;
	display: inline-flex;
	line-height: 0;
}
.logicware-doc-icon-svg {
	display: block;
}
.logicware-doc-icon--pdf { color: #e53935; }
.logicware-doc-icon--doc { color: #1e88e5; }
.logicware-doc-icon--xls { color: #43a047; }
.logicware-doc-icon--img { color: #8e24aa; }
.logicware-doc-icon--file { color: #607d8b; }

/* ============================================================
   PDP mobile: scrollable tabs + no page horizontal scroll
   ============================================================ */
@media (max-width: 767.98px) {
	/* Page-level sideways scroll only — don't clip .container (shrinks tabs vs summary) */
	body.single-product {
		overflow-x: hidden;
	}
	body.single-product #wrapper,
	body.single-product .tf-main-product,
	body.single-product .flat-spacing {
		max-width: 100%;
	}

	/* Less space above tabs */
	body.single-product .flat-spacing-description {
		padding-top: 16px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.tf-main-product + section .widget-tabs.style-1,
	.woocommerce-tabs.widget-tabs.style-1 {
		padding-top: 8px !important;
		padding-bottom: 24px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	/*
	 * Same content width as product summary above:
	 * keep container 15px, drop Bootstrap col gutters so tabs aren't double-inset.
	 */
	body.single-product .flat-spacing-description > .container {
		padding-left: 15px !important;
		padding-right: 15px !important;
		max-width: 100% !important;
		overflow: visible !important;
	}
	body.single-product .flat-spacing-description .row {
		--bs-gutter-x: 0;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100%;
	}
	body.single-product .flat-spacing-description .col-12 {
		padding-left: 0 !important;
		padding-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	body.single-product .tf-main-product .row {
		--bs-gutter-x: 0;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.single-product .tf-main-product [class*="col-"] {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Tabs: slightly larger text, one line, real horizontal scroll */
	.woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab,
	.tf-product-description .woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab,
	body.single-product .woocommerce-tabs.widget-tabs.style-1 ul.tabs.widget-menu-tab {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 18px !important;
		margin: 0 0 14px !important;
		padding: 0 0 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		touch-action: pan-x;
		scrollbar-width: thin !important;
		-ms-overflow-style: auto !important;
		/* Avoid vertical scrollbar from underline / line-box overflow */
		padding-bottom: 10px !important;
	}
	.woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab::-webkit-scrollbar,
	body.single-product .woocommerce-tabs.widget-tabs.style-1 ul.tabs.widget-menu-tab::-webkit-scrollbar {
		height: 3px !important;
		width: 0 !important;
		display: block !important;
	}
	.woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab::-webkit-scrollbar:vertical {
		display: none !important;
		width: 0 !important;
	}
	.woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab::-webkit-scrollbar-thumb {
		background: rgba(0, 0, 0, 0.25);
		border-radius: 999px;
	}
	.woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab .item-title,
	body.single-product .woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab .item-title {
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: max-content !important;
		font-size: 18px !important;
		font-weight: 600 !important;
		line-height: 1.25 !important;
		padding: 8px 0 !important;
		white-space: nowrap !important;
	}

	/* Tab panel: same width as summary, compact padding */
	.woocommerce-tabs.widget-tabs.style-1 .widget-content-inner,
	body.single-product .widget-tabs.style-1 .widget-content-inner {
		padding: 14px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/* Specificații: label + value pe același rând pe mobil */
	.woocommerce-tabs .shop_attributes,
	.woocommerce-tabs .woocommerce-product-attributes,
	.logicware-product-specifications .shop_attributes,
	.logicware-product-specifications .woocommerce-product-attributes {
		display: block;
		width: 100% !important;
		max-width: 100%;
	}
	.woocommerce-tabs .shop_attributes tbody,
	.woocommerce-tabs .woocommerce-product-attributes tbody {
		display: block;
		width: 100%;
	}
	.woocommerce-tabs .shop_attributes tr,
	.woocommerce-tabs .woocommerce-product-attributes tr,
	.logicware-product-specifications .shop_attributes tr,
	.logicware-product-specifications .woocommerce-product-attributes tr {
		display: flex !important;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		border-bottom: 1px solid var(--line, #e5e5e5);
	}
	.woocommerce-tabs .shop_attributes th,
	.woocommerce-tabs .shop_attributes td,
	.woocommerce-tabs .woocommerce-product-attributes th,
	.woocommerce-tabs .woocommerce-product-attributes td,
	.logicware-product-specifications .shop_attributes th,
	.logicware-product-specifications .shop_attributes td,
	.logicware-product-specifications .woocommerce-product-attributes th,
	.logicware-product-specifications .woocommerce-product-attributes td {
		display: block;
		width: auto !important;
		max-width: 55%;
		box-sizing: border-box;
		word-break: break-word;
		overflow-wrap: anywhere;
		border-bottom: 0 !important;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}
	.woocommerce-tabs .shop_attributes th,
	.woocommerce-tabs .woocommerce-product-attributes th,
	.logicware-product-specifications .shop_attributes th,
	.logicware-product-specifications .woocommerce-product-attributes th {
		flex: 1 1 45%;
		font-weight: 600;
	}
	.woocommerce-tabs .shop_attributes td,
	.woocommerce-tabs .woocommerce-product-attributes td,
	.logicware-product-specifications .shop_attributes td,
	.logicware-product-specifications .woocommerce-product-attributes td {
		flex: 1 1 45%;
		text-align: right;
		max-width: 55%;
	}

	/* Sticky ATC: don't force min-widths that blow past the viewport */
	.tf-sticky-btn-atc,
	.tf-sticky-btn-atc .container,
	.tf-sticky-btn-atc .form-sticky-atc {
		max-width: 100%;
		box-sizing: border-box;
	}
	.tf-sticky-btn-atc .form-sticky-atc {
		gap: 10px !important;
		padding-left: 0;
		padding-right: 0;
	}
	.tf-sticky-btn-atc .form-sticky-atc .tf-sticky-atc-btns,
	.tf-sticky-btn-atc .tf-sticky-atc-infos .tf-sticky-atc-btns {
		width: auto !important;
		min-width: 0 !important;
		flex: 1 1 auto;
	}
	.tf-sticky-btn-atc .form-sticky-atc .tf-sticky-atc-btns .btn-add-to-cart {
		min-width: 0 !important;
		width: 100%;
		padding: 10px 14px !important;
		font-size: 12px !important;
	}
}

/* Category archive: subcategory / sub-subcategory text buttons */
.logicware-subcat-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.logicware-subcat-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--line, #e5e5e5);
	border-radius: 999px;
	background: #fff;
	color: var(--main, #111);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.logicware-subcat-btn:hover {
	border-color: var(--main, #111);
	background: #f7f7f7;
	color: var(--main, #111);
}
.logicware-subcat-btn__name {
	min-width: 0;
}
.logicware-subcat-btn__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	padding: 2px 7px;
	border-radius: 999px;
	background: #f0f0f0;
	color: var(--secondary-2, #666);
	font-size: 12px;
	font-weight: 600;
}
.logicware-subcat-btn:hover .logicware-subcat-btn__count {
	background: #e8e8e8;
	color: var(--main, #111);
}

/* PDP tabs: no scroll on desktop (underline must not trigger overflow-y) */
.single-product .woocommerce-tabs.widget-tabs.style-1 .widget-menu-tab,
.single-product .woocommerce-tabs.widget-tabs.style-1 ul.tabs.widget-menu-tab {
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
}

/* PDP related / “S-ar putea să-ți placă…” — keep original casing */
.single-product .flat-animate-tab .tab-product .nav-tab-item a {
	text-transform: none;
}

/* ============================================================
   PDP upsell mini-snippets (between short desc and quantity)
   ============================================================ */
.logicware-upsell-snippets-wrap {
	margin-top: 16px;
	width: 100%;
}
.logicware-upsell-snippets-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--main, #111);
	margin-bottom: 10px;
}
.logicware-upsell-snippets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}
.logicware-upsell-snippet {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--line, #e5e5e5);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	min-width: 0;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
a.logicware-upsell-snippet:hover {
	border-color: var(--main, #111);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	color: inherit;
}
.logicware-upsell-snippet.is-selected {
	border-color: var(--main, #111);
	border-width: 2px;
	background: #f7f7f7;
	box-shadow: inset 0 0 0 1px var(--main, #111);
	cursor: default;
	pointer-events: none;
}
.logicware-upsell-snippet__img {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--surface, #f7f7f7);
	display: flex;
	align-items: center;
	justify-content: center;
}
.logicware-upsell-snippet__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.logicware-upsell-snippet__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}
.logicware-upsell-snippet__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--main, #111);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.logicware-upsell-snippet__price {
	font-size: 12px;
	line-height: 1.35;
	color: var(--main, #111);
	font-weight: 600;
}
.logicware-upsell-snippet__price del {
	color: var(--secondary-2, #888);
	font-weight: 400;
	margin-right: 4px;
}
.logicware-upsell-snippet__price ins {
	text-decoration: none;
	color: var(--main, #111);
}
.logicware-upsell-snippet__price .logicware-uom {
	font-weight: 400;
	color: var(--secondary-2, #888);
}

@media (min-width: 1200px) {
	.logicware-upsell-snippets {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	}
}

@media (max-width: 767.98px) {
	.logicware-upsell-snippets-wrap {
		margin-top: 12px;
	}
	.logicware-upsell-snippets {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}
	.logicware-upsell-snippet {
		flex-direction: column;
		align-items: flex-start;
		padding: 8px;
		gap: 8px;
	}
	.logicware-upsell-snippet__img {
		width: 100%;
		height: 56px;
		flex-basis: auto;
	}
	.logicware-upsell-snippet__title {
		font-size: 11px;
	}
	.logicware-upsell-snippet__price {
		font-size: 11px;
	}
}

/* ============================================================
   Compare FAB + drawer + page polish
   ============================================================ */
/* Hide scroll-top on PDP (conflicts with compare FAB / sticky ATC). */
body.single-product #scroll-top {
	display: none !important;
}

.logicware-compare-fab {
	position: fixed;
	right: 24px;
	bottom: 110px;
	z-index: 1045;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: #181818;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.logicware-compare-fab.has-items {
	display: inline-flex;
}
.logicware-compare-fab:hover {
	background: #333;
	transform: translateY(-2px);
}
.logicware-compare-fab .icon {
	font-size: 18px;
	line-height: 1;
}
.logicware-compare-fab__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.logicware-compare-fab__count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: #181818;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}
.logicware-compare-fab:not(.has-items) .logicware-compare-fab__count {
	opacity: 0.55;
}
.box-icon.compare.in-compare,
.box-icon.compare.compare-btn.in-compare {
	color: var(--primary, #181818);
}
.offcanvas-compare .logicware-compare-empty {
	flex: 1 1 100%;
	padding: 12px 8px;
	font-size: 14px;
}
.logicware-compare-page-empty {
	margin: 0;
	padding: 40px 16px;
}

/* Drawer item layout */
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item {
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
}
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item .image {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	background: var(--surface, #f5f5f5);
	display: flex;
	align-items: center;
	justify-content: center;
}
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item .image img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item .content {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item .text-title {
	margin-bottom: 4px;
}
.offcanvas-compare .logicware-compare-price,
.offcanvas-compare .logicware-compare-price .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 6px;
	line-height: 1.3;
}
.offcanvas-compare .logicware-compare-price del,
.offcanvas-compare .logicware-compare-price ins {
	text-decoration: line-through;
}
.offcanvas-compare .logicware-compare-price ins {
	text-decoration: none;
}

/* Drawer remove — small, clean */
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item > .icon-close,
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item > .logicware-compare-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--line, #e5e5e5);
	border-radius: 50%;
	background: #fff;
	color: #181818;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	z-index: 5;
	cursor: pointer;
}
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item > .logicware-compare-remove:hover {
	background: #181818;
	border-color: #181818;
	color: #fff;
}
.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item > .logicware-compare-remove span {
	display: block;
	margin-top: -1px;
}

/* Compare page */
.tf-compare-table .tf-compare-item {
	position: relative;
	padding: 16px;
	text-align: center;
}
.tf-compare-table .tf-compare-image-wrap {
	position: relative;
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface, #f5f5f5);
}
.tf-compare-table .tf-compare-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.tf-compare-table .tf-compare-image img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
}
.tf-compare-table .logicware-compare-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	right: auto;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	max-width: calc(100% - 48px);
	pointer-events: none;
}
.tf-compare-table .logicware-compare-badges .on-sale-wrap {
	position: static !important;
}
.tf-compare-table .logicware-compare-badges .on-sale-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	min-height: 20px;
	border-radius: 144px;
	background: var(--primary, #dc3545);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.tf-compare-table .logicware-compare-badges .logicware-badge-sticker img {
	max-width: 56px;
	max-height: 56px;
}
.tf-compare-table .logicware-compare-page-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--line, #e5e5e5);
	border-radius: 50%;
	background: #fff;
	color: #181818;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}
.tf-compare-table .logicware-compare-page-remove:hover {
	background: #181818;
	border-color: #181818;
	color: #fff;
}
.tf-compare-table .logicware-compare-page-remove span {
	display: block;
	margin-top: -1px;
}
.tf-compare-table .tf-compare-content {
	margin-top: 12px;
	text-align: center;
}
.tf-compare-table .tf-compare-field {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 52px;
}
.tf-compare-table .tf-compare-field:first-child {
	justify-content: flex-start;
	text-align: left;
}
.tf-compare-table .tf-compare-field .price,
.tf-compare-table .tf-compare-field.tf-compare-viewcart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 6px;
	width: 100%;
}
.tf-compare-table .tf-compare-field .price del {
	opacity: 0.65;
}
.tf-compare-table .tf-compare-col {
	min-width: 220px;
	max-width: 320px;
}
.tf-compare-table .tf-compare-row .tf-compare-col:first-child {
	max-width: 240px;
}
body.single-product .logicware-compare-fab,
body.tf-sticky-btn-atc-visible .logicware-compare-fab {
	bottom: 150px;
}
@media (max-width: 767.98px) {
	.logicware-compare-fab {
		right: 16px;
		bottom: 98px;
		padding: 12px 14px;
	}
	.logicware-compare-fab__label {
		display: none;
	}
	body.single-product .logicware-compare-fab {
		bottom: 130px;
	}
	.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item .image {
		width: 64px;
		height: 64px;
		max-height: none;
	}
	.offcanvas-compare .tf-compare-list .tf-compare-wrap .tf-compare-item {
		flex-direction: row;
		width: 220px;
	}
}
