/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* ==========================================================================
   Global WooCommerce Sale Price Strikethrough Alignment Fix
   Resolves off-center strikethrough across mixed Unicode scripts (Bangla Taka
   symbol ৳ + Latin numerals) across all catalog grids, single products,
   quick view modals, carousels, and cart/checkout tables.
   ========================================================================== */

/* 1. Disable native baseline-skewed text-decoration line-through on del and children */
.woocommerce del,
.woocommerce-page del,
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce-page div.product p.price del,
.woocommerce-page div.product span.price del,
.woocommerce #content div.product p.price del,
.woocommerce #content div.product span.price del,
.woocommerce .price del,
.woocommerce-page .price del,
.woocommerce-cart del,
.woocommerce-checkout del,
.woocommerce-mini-cart del,
.widget_shopping_cart del,
.cart_list del,
.nectar-quick-view-box .summary .price del,
.nectar-prod-wrap .price del,
.wc-block-components-product-price del,
.wc-block-grid__product-price del,
del:has(.woocommerce-Price-amount) {
	text-decoration: none !important;
	position: relative !important;
	display: inline-block !important;
	vertical-align: baseline !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: rgba(145, 145, 145, 0.65) !important;
	opacity: 1 !important;
}

.woocommerce del *,
.woocommerce-page del *,
.woocommerce .price del *,
.woocommerce-page .price del *,
.woocommerce-cart del *,
.woocommerce-checkout del *,
.woocommerce-mini-cart del *,
del:has(.woocommerce-Price-amount) * {
	text-decoration: none !important;
}

/* 2. Precision-centered strikethrough line overlay */
.woocommerce del::after,
.woocommerce-page del::after,
.woocommerce ul.products li.product .price del::after,
.woocommerce-page ul.products li.product .price del::after,
.woocommerce div.product p.price del::after,
.woocommerce div.product span.price del::after,
.woocommerce-page div.product p.price del::after,
.woocommerce-page div.product span.price del::after,
.woocommerce #content div.product p.price del::after,
.woocommerce #content div.product span.price del::after,
.woocommerce .price del::after,
.woocommerce-page .price del::after,
.woocommerce-cart del::after,
.woocommerce-checkout del::after,
.woocommerce-mini-cart del::after,
.widget_shopping_cart del::after,
.cart_list del::after,
.nectar-quick-view-box .summary .price del::after,
.nectar-prod-wrap .price del::after,
.wc-block-components-product-price del::after,
.wc-block-grid__product-price del::after,
del:has(.woocommerce-Price-amount)::after {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 50% !important;
	height: max(1.5px, 0.075em) !important;
	background-color: currentColor !important;
	transform: translateY(-50%) !important;
	pointer-events: none !important;
}

/* ==========================================================================
   Signal Services Carousel - Dynamic Radius, Heading & Hover Actions
   ========================================================================== */

/* Do NOT hardcode border-radius - WPBakery dropdown controls it dynamically */
#featured-services-carousel .nectar-flickity.nectar-carousel .flickity-slider .inner-wrap {
	overflow: hidden;
	position: relative;
}

#featured-services-carousel .nectar-flickity.nectar-carousel .flickity-slider .inner-wrap .flickity-slider__link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 15;
}

/* Card Heading - Clean modern styling matching demo */
#featured-services-carousel .nectar-flickity.nectar-carousel .flickity-slider .inner-wrap .nectar-responsive-text {
	position: relative;
	z-index: 20;
	width: 100%;
}

#featured-services-carousel .nectar-flickity.nectar-carousel .flickity-slider .inner-wrap .nectar-responsive-text h3 {
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 26px !important;
	line-height: 1.25 !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em !important;
	margin: 0 !important;
	text-shadow: none !important;
}

/* Remove gradient effects and color layers from cards */
#featured-services-carousel .nectar_color_layer {
	display: none !important;
	opacity: 0 !important;
	background: none !important;
}

#featured-services-carousel .cell.nectar-background-gradient-blur {
	background-image: none !important;
}

/* ==========================================================================
   Signal Services Carousel - Native Salient WooCommerce Action Buttons
   Inherits button layout, styling, and Quick View from Salient > WooCommerce.
   ========================================================================== */

#featured-services-carousel .carousel-card-actions-wrapper,
#featured-services-carousel .posh-card-actions-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 120;
	pointer-events: none;
}

#featured-services-carousel .carousel-card-actions-wrapper ul.products,
#featured-services-carousel .posh-card-actions-wrapper ul.products {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: block !important;
}

#featured-services-carousel .carousel-card-actions-wrapper ul.products li.product,
#featured-services-carousel .posh-card-actions-wrapper ul.products li.product {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
	display: block !important;
}

#featured-services-carousel .carousel-card-actions-wrapper .product-wrap,
#featured-services-carousel .carousel-card-actions-wrapper .product-image-wrap,
#featured-services-carousel .posh-card-actions-wrapper .product-wrap,
#featured-services-carousel .posh-card-actions-wrapper .product-image-wrap {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: transparent !important;
	border: none !important;
}

/* Helper hidden image for Quick View aspect ratio calculation and modal preview */
#featured-services-carousel .carousel-qv-thumb-helper,
#featured-services-carousel .posh-qv-thumb-helper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
}

#featured-services-carousel .carousel-qv-thumb-helper img,
#featured-services-carousel .posh-qv-thumb-helper img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	visibility: hidden !important;
	opacity: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.nectar-quick-view-box .preview_image img {
	visibility: visible !important;
	opacity: 1 !important;
}

/* Position action buttons container at bottom of card */
#featured-services-carousel .product-add-to-cart {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	padding: 10px !important;
	z-index: 130 !important;
	display: flex !important;
	box-sizing: border-box !important;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.3s cubic-bezier(0.2, 0.75, 0.5, 1), transform 0.3s cubic-bezier(0.2, 0.75, 0.5, 1);
}

/* Show buttons on hover over the card */
body #featured-services-carousel .cell:hover .product-add-to-cart,
body #featured-services-carousel .inner-wrap:hover .product-add-to-cart,
body #featured-services-carousel .cell:hover .carousel-card-actions-wrapper,
body #featured-services-carousel .inner-wrap:hover .carousel-card-actions-wrapper,
body #featured-services-carousel .cell:hover .posh-card-actions-wrapper,
body #featured-services-carousel .inner-wrap:hover .posh-card-actions-wrapper {
	opacity: 1 !important;
	transform: translateY(0) !important;
	pointer-events: auto !important;
}

body #featured-services-carousel .cell:hover .product-add-to-cart a,
body #featured-services-carousel .inner-wrap:hover .product-add-to-cart a {
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: translateY(0) !important;
}

/* Ensure link buttons inherit Salient native flex proportions and hover styles */
#featured-services-carousel .product-add-to-cart a {
	cursor: pointer !important;
}

/* Ensure slide-in cart product titles and thumbnails match regardless of permalink */
.nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart .cart_list .mini_cart_item > .no-permalink {
	display: block !important;
	float: left !important;
	margin-right: 25px !important;
}

.nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart .cart_list .product-meta .product-details,
.nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart .cart_list .product-meta .product-details > a:not(.remove) {
	font-family: "Work Sans", sans-serif !important;
	font-size: 22px !important;
	line-height: 28px !important;
	font-weight: 500 !important;
}

/* ==========================================================================
   Footer Copyright Bar - White 16px Font & Agency CTA Animation
   ========================================================================== */

#footer-outer #copyright {
	background-color: #111111 !important;
	border-top: 1px solid #5e5e5e !important;
	padding: 28px 0 !important;
}

#footer-outer #copyright .container {
	max-width: 1300px;
}

#footer-outer #copyright .col.span_5 {
	width: 100% !important;
	float: none !important;
}

#footer-outer #copyright .col.span_7,
#footer-outer #copyright ul.social:empty {
	display: none !important;
}

#footer-outer #copyright .salient-child-copyright-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	width: 100%;
	font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 26px !important;
	color: #ffffff !important;
	text-align: center;
}

#footer-outer #copyright .salient-child-copyright-brand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ffffff !important;
	font-size: 16px !important;
}

#footer-outer #copyright .salient-child-copyright-brand * {
	color: #ffffff !important;
	font-size: 16px !important;
}

#footer-outer #copyright .salient-child-copyright-dot {
	color: #ffffff !important;
	font-size: 16px !important;
	user-select: none;
}

#footer-outer #copyright .salient-child-agency-credit {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #ffffff !important;
	font-size: 16px !important;
}

#footer-outer #copyright .salient-child-agency-credit .agency-credit-label {
	color: #ffffff !important;
	font-size: 16px !important;
}

#footer-outer #copyright .salient-child-agency-credit .nectar-cta {
	display: inline-block !important;
	vertical-align: baseline !important;
	margin: 0 !important;
}

#footer-outer #copyright .salient-child-agency-credit .nectar-cta .link_text {
	font-size: 16px !important;
	font-weight: 500 !important;
	color: #ffffff !important;
	border-color: #ffffff !important;
	line-height: inherit !important;
}

@media (max-width: 768px) {
	#footer-outer #copyright {
		padding: 22px 16px !important;
	}
	#footer-outer #copyright .salient-child-copyright-wrap {
		flex-direction: column;
		gap: 8px;
	}
	#footer-outer #copyright .salient-child-copyright-dot {
		display: none;
	}
}

/* ==========================================================================
   Header Mega Menu Promo Card Styling & Category Icons
   Removes background gradient bug on .menu-title-text inside promo card,
   ensuring title and description render crisply in pure white over the banner.
   ========================================================================== */

#header-outer .nectar-ext-menu-item .inner-content,
#header-outer .nectar-ext-menu-item .inner-content .title,
#header-outer .nectar-ext-menu-item .inner-content .title span,
#header-outer .nectar-ext-menu-item .inner-content .menu-title-text,
#header-outer .nectar-ext-menu-item .inner-content .menu-item-desc {
	background: transparent !important;
	background-image: none !important;
	color: #ffffff !important;
}

#header-outer[data-lhe="animated_underline"] #top nav > ul > li .nectar-ext-menu-item .menu-title-text:after,
#header-outer .sf-menu li ul li a .nectar-ext-menu-item .menu-title-text:after {
	display: none !important;
}

#header-outer .sf-menu > .megamenu .sub-menu li a .nectar-menu-icon.svg-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

#header-outer .sf-menu > .megamenu .sub-menu li a .nectar-menu-icon.svg-icon svg {
	width: 22px;
	height: 22px;
}

#header-outer .sf-menu > .megamenu .sub-menu li a .nectar-menu-icon.svg-icon svg path {
	fill: #222222 !important;
	transition: fill 0.25s ease;
}

#header-outer .sf-menu > .megamenu .sub-menu li a:hover .nectar-menu-icon.svg-icon svg path {
	fill: #ea6225 !important;
}

/* ==========================================================================
   Hide Promo Card Banner from Mobile & Off-Canvas Menu
   Ensures the visual promo banner remains active exclusively on desktop
   mega menu, keeping mobile and off-canvas navigation clean with categories.
   ========================================================================== */

#slide-out-widget-area li.hide-on-mobile-menu,
#slide-out-widget-area li.mega-promo-card,
#slide-out-widget-area li.hide-on-mobile,
#slide-out-widget-area li.megamenu-column-width-40,
#mobile-menu li.hide-on-mobile-menu,
#mobile-menu li.mega-promo-card,
#mobile-menu li.hide-on-mobile,
#mobile-menu li.megamenu-column-width-40,
.off-canvas-menu-container li.hide-on-mobile-menu,
.off-canvas-menu-container li.mega-promo-card,
.off-canvas-menu-container li.hide-on-mobile,
.off-canvas-menu-container li.megamenu-column-width-40 {
	display: none !important;
}

@media (max-width: 999px) {
	li.hide-on-mobile-menu,
	li.mega-promo-card,
	li.hide-on-mobile,
	li.megamenu-column-width-40 {
		display: none !important;
	}
}

/* ==========================================================================
   WooCommerce Block Checkout & Cart Visual Polish
   1. Fix duplicate rogue checkmark on Block checkboxes (Salient ::before clash).
   2. Ensure order summary item thumbnails have consistent 64px size & aspect ratio.
   3. Ensure cart item thumbnails preserve cover ratio without distortion.
   ========================================================================== */

/* 1. Remove duplicate Salient pseudo checkmark on WooCommerce Block checkboxes */
.wc-block-components-checkbox .wc-block-components-checkbox__input::before,
.wc-block-components-checkbox .wc-block-components-checkbox__input::after,
.wc-block-components-checkbox input[type="checkbox"]::before,
.wc-block-components-checkbox input[type="checkbox"]::after,
label:has(.wc-block-components-checkbox__input) input[type="checkbox"]::before,
label:has(.wc-block-components-checkbox__input) input[type="checkbox"]::after {
	display: none !important;
	content: none !important;
}

/* 2. Order summary product thumbnails (Checkout block sidebar) */
.wc-block-components-order-summary .wc-block-components-order-summary-item__image {
	width: 64px !important;
	min-width: 64px !important;
	max-width: 64px !important;
	height: 64px !important;
	flex: 0 0 64px !important;
	flex-shrink: 0 !important;
	border-radius: 8px !important;
	background: #f4f4f4 !important;
	overflow: visible !important;
	padding: 0 !important;
	margin-top: 4px !important;
	position: relative !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image > img,
.wc-block-components-order-summary .wc-block-components-order-summary-item__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	display: block !important;
}

.wc-block-components-order-summary-item__quantity {
	top: -8px !important;
	right: -8px !important;
	z-index: 2 !important;
}

/* 3. Cart block product thumbnails */
.wc-block-cart-items .wc-block-cart-item__image,
.wc-block-cart-items .wc-block-cart-item__image a {
	display: block !important;
}

.wc-block-cart-items .wc-block-cart-item__image img {
	width: 80px !important;
	height: 80px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
}

