/**
 * Homepage jean-style slider (Elementor kitify-banner-list, data-id c3c9bdc).
 * Square 8px tiles, #FDE466 bg, 0.75 of original column width, 30px gaps (JS).
 */

/* Section title — match brand heading (b40aaaf): centered 36px / 24px mobile. */
.jaj-style-slider__title {
	display: block;
	width: 100%;
	margin: 0 0 30px;
	padding: 0;
	text-align: center;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.35;
	color: #181818;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.jaj-style-slider__title {
		font-size: 24px;
		margin-bottom: 20px;
	}
}

/* Same CTA as hero button — under collection photo slider. */
.jaj-shop-cta {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 40px 0 0;
	padding: 0;
	box-sizing: border-box;
}

.jaj-shop-cta .elementor-button-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

.jaj-shop-cta .jaj-shop-cta__btn.elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--site-primary-button-bg, #2e5aa7);
	color: #ffffff;
	fill: #ffffff;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	min-height: 59px;
	padding: 7px 28px;
	border: 0;
	border-radius: 8px !important;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.jaj-shop-cta .jaj-shop-cta__btn.elementor-button:hover,
.jaj-shop-cta .jaj-shop-cta__btn.elementor-button:focus {
	background-color: var(--site-secondary-button-bg, #222222);
	color: #ffffff;
}

@media (max-width: 767px) {
	.jaj-shop-cta {
		margin-top: 28px;
	}
}

.elementor-element-c3c9bdc .kitify-bannerlist__item {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Unlock kitify % columns; width = 0.75 of original column (minus old 20px pad). */
.elementor-element-c3c9bdc .kitify-bannerlist__item.swiper-slide {
	flex: 0 0 auto !important;
	max-width: none !important;
	box-sizing: border-box;
}

/* Mobile: 2 cols → 50% * 0.75 */
@media (max-width: 767px) {
	.elementor-element-c3c9bdc .kitify-bannerlist__item.swiper-slide {
		width: calc(37.5% - 15px) !important;
	}
}

/* Tablet: 4 cols → 25% * 0.75 */
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-element-c3c9bdc .kitify-bannerlist__item.swiper-slide {
		width: calc(18.75% - 15px) !important;
	}
}

/* PC: exactly 5 cards (4 × 30px gaps) */
@media (min-width: 1025px) {
	.elementor-element-c3c9bdc .kitify-bannerlist__item.swiper-slide {
		width: calc((100% - 120px) / 5) !important;
	}
}

.elementor-element-c3c9bdc .kitify-bannerlist__image {
	border-radius: 8px !important;
	background-color: #fde466 !important;
	background-image: none !important;
}

.elementor-element-c3c9bdc .kitify-bannerlist__image-instance {
	border-radius: 8px;
	object-fit: contain;
	object-position: center center;
	background-color: transparent !important;
}

/* بوت کات: pants at 80% — yellow tile bg stays full opacity. */
.elementor-element-c3c9bdc .elementor-repeater-item-f40c89e .kitify-bannerlist__image-instance,
.elementor-element-c3c9bdc img[data-jaj-style="jaj-style-bootcut.webp"] {
	opacity: 0.8;
}

/* Hide مردانه slide (Elementor repeater item) */
.elementor-element-c3c9bdc .elementor-repeater-item-f185b61 {
	display: none !important;
}

/*
 * Model (c3c9bdc) + homepage product carousels slide buttons —
 * identical look to product-page gallery controls (jaj-digipay-badge.css).
 * Positions left/right unchanged from Elementor.
 */
.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 8px !important;
	background: rgba(46, 90, 167, 0.5) !important;
	background-color: rgba(46, 90, 167, 0.5) !important;
	color: #fff !important;
	fill: #fff !important;
	border: none !important;
	box-shadow: none !important;
	line-height: 0 !important;
	text-align: center !important;
	/* Center on photo height (set by jaj-style-slider.js). */
	top: var(--jaj-arrow-top, 50%) !important;
	transform: translateY(-50%) !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow span,
.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow i,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow span,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow i {
	display: none !important;
}

.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow::before,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow::before {
	content: "" !important;
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	margin: 0 !important;
	flex-shrink: 0;
	background-color: #fff !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow.prev-arrow::before,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow.prev-arrow::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 5L8 12l7 7' stroke='%23000' stroke-width='3.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 5L8 12l7 7' stroke='%23000' stroke-width='3.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow.next-arrow::before,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow.next-arrow::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 5l7 7-7 7' stroke='%23000' stroke-width='3.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 5l7 7-7 7' stroke='%23000' stroke-width='3.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow:hover,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow:hover {
	background: rgba(0, 0, 0, 0.5) !important;
	background-color: rgba(0, 0, 0, 0.5) !important;
	color: #fff !important;
	fill: #fff !important;
}

.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow:hover::before,
.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow:hover::before {
	background-color: #fff !important;
	color: transparent !important;
}

/* Mobile: 5px from the screen edges (outside the photos).
 * Section side padding is 25px; --padding-left is 0 on the widget so do not use it. */
@media (max-width: 767px) {
	.elementor-4937 .elementor-element.elementor-element-8c08390,
	.elementor-4937 .elementor-element.elementor-element-8c08390 > .e-con-inner,
	.elementor-4937 .elementor-element.elementor-element-bc77c4b,
	.elementor-4937 .elementor-element.elementor-element-bc77c4b > .e-con-inner,
	.elementor-4937 .elementor-element.elementor-element-c3c9bdc,
	.elementor-4937 .elementor-element.elementor-element-c3c9bdc > .elementor-widget-container,
	.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel,
	.elementor-4937 .jaj-home-products-slider,
	.elementor-4937 .jaj-home-products-slider > .elementor-widget-container,
	.elementor-4937 .jaj-home-products-slider .woocommerce,
	.elementor-4937 .jaj-home-products-slider .kitify-carousel {
		overflow: visible !important;
	}

	/* 25px section pad − 5px screen gap = pull 20px outside the photo track */
	.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow.prev-arrow,
	.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow.prev-arrow {
		left: -20px !important;
		right: auto !important;
	}

	.elementor-4937 .elementor-element.elementor-element-c3c9bdc .kitify-carousel .kitify-arrow.next-arrow,
	.elementor-4937 .jaj-home-products-slider .kitify-carousel .kitify-arrow.next-arrow {
		right: -20px !important;
		left: auto !important;
	}
}

/*
 * Homepage product carousels (newest + most viewed): match related-products cards —
 * full-width 9:16 photo, text inside the card (PC + mobile).
 */
.elementor-4937 .jaj-home-products-slider .product-item__thumbnail {
	aspect-ratio: 9 / 16;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	overflow: hidden;
	border-radius: 8px;
}

.elementor-4937 .jaj-home-products-slider .product-item,
.elementor-4937 .jaj-home-products-slider li.product {
	/* Keep card clipping for title; pill lives inside thumbnail. */
	overflow: hidden;
	height: auto;
}

/* Allow the photo-action pill to paint inside the 9:16 photo. */
.elementor-4937 .jaj-home-products-slider .product-item:has(.jaj-photo-actions-pill) .product-item__thumbnail {
	overflow: hidden;
	position: relative;
	z-index: 1;
}

/*
 * Homepage photo/products slider: same pill UX as shop —
 * PC hover / open class, phone click-to-open (not always visible).
 * Selectors beat jaj-photo-actions-pill-critical closed-state.
 */
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item .jaj-photo-actions-pill {
	z-index: 5 !important;
}

.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item__thumbnail.jaj-photo-actions-open .jaj-photo-actions-pill,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .product-item__description--top-actions.jaj-photo-actions-pill,
body.rtl .elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill {
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill > .nova_product_wishlist_btn,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill > .jaj-product-share-btn,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill > .button,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill > a,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item__thumbnail.jaj-photo-actions-open .jaj-photo-actions-pill > .nova_product_wishlist_btn,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item__thumbnail.jaj-photo-actions-open .jaj-photo-actions-pill > .jaj-product-share-btn,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item__thumbnail.jaj-photo-actions-open .jaj-photo-actions-pill > .button {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: none !important;
}

/*
 * Homepage slider: keep pill open + white wishlist spinner through hover/unhover
 * while the request is in flight (closed-state rules otherwise hide the pill).
 */
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:has(.nova_product_wishlist_btn.loading) .jaj-photo-actions-pill,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:has(.nova_product_wishlist_btn.jaj-wish-loading) .jaj-photo-actions-pill,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:has(.nova_product_wishlist_btn.loading) .product-item__description--top-actions.jaj-photo-actions-pill,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:has(.nova_product_wishlist_btn.jaj-wish-loading) .product-item__description--top-actions.jaj-photo-actions-pill,
.jaj-home-products-slider ul.products .product .product-item:has(.nova_product_wishlist_btn.loading) .jaj-photo-actions-pill,
.jaj-home-products-slider ul.products .product .product-item:has(.nova_product_wishlist_btn.jaj-wish-loading) .jaj-photo-actions-pill {
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.elementor-4937 .jaj-home-products-slider ul.products .product .product-item .jaj-photo-actions-pill > .nova_product_wishlist_btn.loading,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item .jaj-photo-actions-pill > .nova_product_wishlist_btn.jaj-wish-loading,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill > .nova_product_wishlist_btn.loading,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill > .nova_product_wishlist_btn.jaj-wish-loading,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:not(:hover) .jaj-photo-actions-pill > .nova_product_wishlist_btn.loading,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:not(:hover) .jaj-photo-actions-pill > .nova_product_wishlist_btn.jaj-wish-loading,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill > .nova_product_wishlist_btn.loading,
.elementor-4937 .jaj-home-products-slider ul.products .product .product-item.jaj-photo-actions-open .jaj-photo-actions-pill > .nova_product_wishlist_btn.jaj-wish-loading,
.jaj-home-products-slider ul.products .product .product-item .jaj-photo-actions-pill > .nova_product_wishlist_btn.loading,
.jaj-home-products-slider ul.products .product .product-item .jaj-photo-actions-pill > .nova_product_wishlist_btn.jaj-wish-loading {
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid #fff !important;
	border-color: #fff !important;
	color: #2e5aa7 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

@media (hover: hover) and (pointer: fine) {
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill,
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .product-item__description--top-actions.jaj-photo-actions-pill,
	body.rtl .elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill {
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}

	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill > .nova_product_wishlist_btn,
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill > .jaj-product-share-btn,
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill > .button,
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:hover .jaj-photo-actions-pill > a {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: none !important;
	}

	/* Unhover must not slide the pill away mid-spinner. */
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:not(:hover):has(.nova_product_wishlist_btn.loading) .jaj-photo-actions-pill,
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:not(:hover):has(.nova_product_wishlist_btn.jaj-wish-loading) .jaj-photo-actions-pill,
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:not(.jaj-photo-actions-open):not(:hover):has(.nova_product_wishlist_btn.loading) .jaj-photo-actions-pill,
	.elementor-4937 .jaj-home-products-slider ul.products .product .product-item:not(.jaj-photo-actions-open):not(:hover):has(.nova_product_wishlist_btn.jaj-wish-loading) .jaj-photo-actions-pill {
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}

.elementor-4937 .jaj-home-products-slider .product-item__description {
	overflow: hidden;
	padding-bottom: 6px;
}

.elementor-4937 .jaj-home-products-slider .product-item__thumbnail-placeholder,
.elementor-4937 .jaj-home-products-slider .product-item__thumbnail-placeholder a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.elementor-4937 .jaj-home-products-slider .product-item__thumbnail-placeholder a img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}

.elementor-4937 .jaj-home-products-slider .product-item__thumbnail-placeholder .product_second_image {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
	opacity: 0;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	transition: opacity 300ms ease-in-out;
	pointer-events: none;
	z-index: 1;
}

.elementor-4937 .jaj-home-products-slider .product-item:hover .product-item__thumbnail-placeholder .product_second_image,
.elementor-4937 .jaj-home-products-slider .product-item.is-showing-second .product-item__thumbnail-placeholder .product_second_image {
	opacity: 1;
}

/* Keep slide gaps consistent with related (15px column_gap). */
.elementor-4937 .jaj-home-products-slider .kitify-carousel .swiper-slide {
	box-sizing: border-box;
}

.elementor-4937 .jaj-home-products-slider .kitify-products.kitify-carousel {
	--column-gap: 15px;
}

@media (max-width: 767px) {
	.elementor-4937 .jaj-home-products-slider .kitify-carousel .swiper-slide {
		/* 2 columns; Swiper spaceBetween handles the gutter */
		box-sizing: border-box;
	}
}
