/* Homepage — Popular Products carousel */

.popular-carousel {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	padding: 8px 0 40px;
	box-sizing: border-box;
}

.popular-carousel__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	scroll-behavior: auto;
	scrollbar-width: none;
	cursor: grab;
	overscroll-behavior-x: contain;
	touch-action: none;
	container-type: inline-size;
	container-name: popular-carousel;
	-webkit-user-select: none;
	user-select: none;
}

.popular-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.popular-carousel.is-transform-carousel .popular-carousel__viewport {
	overflow: hidden;
}

.popular-carousel__viewport.is-dragging {
	cursor: grabbing;
}

.popular-carousel__track {
	--popular-gap: 24px;
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--popular-gap);
	width: max-content;
	padding: 0;
	margin: 0;
	transform: translate3d(0, 0, 0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.popular-carousel__track.is-animating {
	pointer-events: none;
}

/* Desktop / web view: exactly 4 products visible */
.popular-carousel__slide {
	flex: 0 0 calc((100cqw - (3 * var(--popular-gap))) / 4);
	width: calc((100cqw - (3 * var(--popular-gap))) / 4);
	min-width: 0;
	box-sizing: border-box;
}

.popular-carousel__nav {
	flex: 0 0 auto;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #d8d4cc;
	border-radius: 50%;
	background: #fff;
	color: #1a1916;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	z-index: 2;
}

.popular-carousel__nav:hover:not(:disabled) {
	background: #1a1916;
	border-color: #1a1916;
	color: #fff;
}

.popular-carousel__nav:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* At last product: no further forward swipe feel */
.popular-carousel.is-at-end .popular-carousel__viewport {
	overscroll-behavior-x: none;
}

.popular-carousel.is-at-start .popular-carousel__viewport {
	overscroll-behavior-x: none;
}

.popular-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	height: 100%;
}

.popular-card__media {
	display: block;
	background: #cfe8f2;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	line-height: 0;
}

.popular-card__media img,
.popular-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	pointer-events: none;
}

.popular-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 10px;
	gap: 2px;
}

/* Product name on left, category under it */
.popular-card__heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
}

.popular-card__title {
	font-family: var(--pt-font), "Instrument Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	color: #1a1916;
	text-decoration: none;
	text-align: left;
	max-width: 100%;
}

.popular-card__title:hover {
	color: #1a1916;
}

.popular-card__meta {
	margin: 0;
	font-family: var(--pt-font), "Instrument Sans", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	color: #8a8680;
	text-align: left;
}

.popular-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
	margin-top: 8px;
}

.popular-card__price,
.popular-card__price .amount {
	font-family: var(--pt-font), "Instrument Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #1a1916;
}

.popular-card__add {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #000 !important;
	color: #fff !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.popular-card__add:hover {
	opacity: 0.88;
	color: #fff !important;
	background: #000 !important;
	transform: scale(1.04);
}

/*
 * Popular Products layout:
 * [ POPULAR PRODUCTS .................. VIEW ALL PRODUCTS → ]
 * [ ← product | product | product | product → ]
 */
.elementor-42 .elementor-element-f23990e,
.elementor-42 .e-f23990e-518002d {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	padding-block: 48px 32px !important;
	padding-inline: clamp(16px, 4vw, 50px) !important;
	gap: 28px !important;
}

/* Header row: title left, link right */
.elementor-42 .elementor-element-d105e7b,
.elementor-42 .e-d105e7b-7f13b79 {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 24px !important;
}

.elementor-42 .e-da306f6-7023c70 {
	flex: 0 1 auto;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	font-family: "Instrument Sans", sans-serif !important;
	font-weight: 700 !important;
	font-size: clamp(26px, 3vw, 36px) !important;
	line-height: 1.1 !important;
	letter-spacing: -0.02em;
	color: #1a1916 !important;
	text-transform: uppercase;
	white-space: nowrap;
}

.elementor-42 .e-34d438f-c0ed032 {
	flex: 0 0 auto;
	align-self: center !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 !important;
	padding: 10px 18px !important;
	font-family: "Instrument Sans", sans-serif !important;
	font-weight: 500 !important;
	font-size: 11px !important;
	line-height: 1 !important;
	letter-spacing: 0.08em;
	color: #1a1916 !important;
	text-decoration: none !important;
	text-transform: uppercase;
	border: 1px solid #1a1916 !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.elementor-42 .e-34d438f-c0ed032:hover {
	color: #fff !important;
	background: #1a1916 !important;
	border-color: #1a1916 !important;
}

/* Products track full width under the header */
.elementor-42 .elementor-element-0324022,
.elementor-42 .e-0324022-ca23927 {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Hide duplicate / second product rows — carousel shows all */
.elementor-42 .elementor-element-4f99b96,
.elementor-42 .elementor-element-53bfe80 {
	display: none !important;
}

/* Show desktop Popular Products loop on mobile */
.elementor-42 .elementor-element-d69c55b.elementor-hidden-mobile {
	display: block !important;
}

@media (max-width: 1024px) {
	/* Tablet: 2 products visible */
	.popular-carousel__track {
		--popular-gap: 18px;
	}

	.popular-carousel__slide {
		flex: 0 0 calc((100cqw - var(--popular-gap)) / 2);
		width: calc((100cqw - var(--popular-gap)) / 2);
	}
}

@media (max-width: 767px) {
	.elementor-42 .elementor-element-f23990e,
	.elementor-42 .e-f23990e-518002d {
		padding-block: 24px 16px !important;
		padding-inline: 16px !important;
		gap: 12px !important;
		max-width: 100% !important;
		overflow: hidden;
		box-sizing: border-box;
	}

	.elementor-42 .elementor-element-d105e7b,
	.elementor-42 .e-d105e7b-7f13b79 {
		flex-wrap: wrap !important;
		gap: 10px !important;
		max-width: 100% !important;
	}

	.elementor-42 .e-da306f6-7023c70 {
		font-size: 20px !important;
		white-space: normal !important;
		max-width: 100% !important;
	}

	.elementor-42 .e-34d438f-c0ed032 {
		font-size: 10px !important;
		letter-spacing: 0.06em;
		padding: 8px 14px !important;
		white-space: normal !important;
		max-width: 100% !important;
	}

	.popular-carousel {
		padding: 0 0 16px;
		gap: 0;
		max-width: 100%;
		overflow: hidden;
	}

	/* Mobile: swipe / autoplay — no arrows */
	.popular-carousel__nav {
		display: none !important;
	}

	.popular-carousel__viewport {
		padding-inline: 0;
		width: 100%;
		max-width: 100%;
		container-type: normal;
	}

	.popular-carousel__track {
		--popular-gap: 12px;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: var(--popular-gap);
		padding: 0;
		width: max-content;
	}

	/*
	 * Mobile: always 2 product cards per row (not one full-width card).
	 * Use vw — more reliable than cqw on phones / WebViews.
	 * Section padding is 16px each side → (100vw - 32px - 12px gap) / 2
	 */
	.popular-carousel__slide {
		flex: 0 0 calc((100vw - 44px) / 2) !important;
		width: calc((100vw - 44px) / 2) !important;
		min-width: calc((100vw - 44px) / 2) !important;
		max-width: calc((100vw - 44px) / 2) !important;
		padding-inline: 0 !important;
		box-sizing: border-box !important;
	}

	.popular-card,
	.popular-card__media,
	.popular-card__media img,
	.popular-card__image {
		width: 100% !important;
		max-width: 100% !important;
	}

	.popular-card__media {
		aspect-ratio: 1 / 1;
	}

	.popular-card__body {
		padding-top: 8px;
		gap: 2px;
	}

	.popular-card__title {
		font-size: 14px;
		line-height: 1.2;
	}

	.popular-card__meta {
		font-size: 11px;
		line-height: 1.3;
		color: #8a8680;
	}

	.popular-card__row {
		margin-top: 6px;
		gap: 8px;
	}

	.popular-card__price,
	.popular-card__price .amount {
		font-size: 14px;
	}

	.popular-card__add {
		width: 28px !important;
		height: 28px !important;
		min-width: 28px !important;
		font-size: 18px !important;
	}
}

