body.single-product #rabeea-store-root.rabeea-store {
	--rb-slider-gap: 0.875rem;
	--rb-slider-main-height: clamp(580px, 76vh, 700px);
	--rb-slider-thumb-size: 160px;
	--rb-slider-thumb-gap: 0.75rem;
	--rb-slider-thumb-visible: 4;
	--rb-slider-arrow-size: 38px;
	--rb-slider-thumb-gap-total: calc(var(--rb-slider-thumb-gap) * 3);
	--rb-slider-thumbs-height: calc(var(--rb-slider-main-height) - (var(--rb-slider-arrow-size) * 2) - 1rem);
	--rb-slider-thumb-height: calc((var(--rb-slider-thumbs-height) - var(--rb-slider-thumb-gap-total)) / var(--rb-slider-thumb-visible));
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery {
	position: relative;
	width: 100%;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__layout {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: var(--rb-slider-gap);
	width: 100%;
	min-height: var(--rb-slider-main-height);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__stage {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	height: var(--rb-slider-main-height);
	min-height: var(--rb-slider-main-height);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__zoom {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(var(--rb-brand-primary-rgb), 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.97);
	color: var(--rb-brand-primary);
	box-shadow: 0 10px 24px rgba(18, 34, 54, 0.10);
	cursor: pointer;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__sale-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--rb-sale-start) 0%, var(--rb-sale-end) 100%);
	color: var(--rb-sale-text);
	font-weight: 800;
	font-size: 0.95rem;
	line-height: 1;
	box-shadow: 0 10px 20px rgba(232, 63, 124, 0.26);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main {
	display: flex;
	width: 100%;
	height: var(--rb-slider-main-height) !important;
	max-height: var(--rb-slider-main-height);
	border: 1px solid rgba(var(--rb-brand-primary-rgb), 0.08);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 16px 30px rgba(18, 34, 54, 0.06);
	overflow: hidden;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main .swiper-wrapper {
	height: var(--rb-slider-main-height) !important;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main-slide {
	height: var(--rb-slider-main-height) !important;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main-frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--rb-slider-main-height);
	max-height: var(--rb-slider-main-height);
	min-height: var(--rb-slider-main-height);
	padding: 0;
	overflow: hidden;
	background: #ffffff;
	cursor: zoom-in;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main-image {
	display: block;
	width: 100%;
	height: var(--rb-slider-main-height);
	max-height: var(--rb-slider-main-height);
	object-fit: contain;
	transform: scale(1);
	transform-origin: 50% 50%;
	transition: transform 0.18s ease;
	will-change: transform;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main-frame.is-zoomed .rb-product-gallery__main-image {
	transform: scale(1.85);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	gap: 0.5rem;
	flex: 0 0 var(--rb-slider-thumb-size);
	width: var(--rb-slider-thumb-size);
	min-width: var(--rb-slider-thumb-size);
	height: var(--rb-slider-main-height);
	max-height: var(--rb-slider-main-height);
	min-height: var(--rb-slider-main-height);
	align-self: stretch;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell.has-prev.has-next {
	grid-template-rows: var(--rb-slider-arrow-size) minmax(0, var(--rb-slider-thumbs-height)) var(--rb-slider-arrow-size);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell.has-prev:not(.has-next) {
	grid-template-rows: var(--rb-slider-arrow-size) minmax(0, calc(var(--rb-slider-main-height) - var(--rb-slider-arrow-size) - 0.5rem));
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell:not(.has-prev).has-next {
	grid-template-rows: minmax(0, calc(var(--rb-slider-main-height) - var(--rb-slider-arrow-size) - 0.5rem)) var(--rb-slider-arrow-size);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--rb-slider-arrow-size);
	border: 1px solid rgba(var(--rb-brand-primary-rgb), 0.12);
	border-radius: 14px;
	background: #ffffff;
	color: var(--rb-text-body);
	box-shadow: 0 10px 20px rgba(18, 34, 54, 0.08);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow.is-prev {
	grid-row: 1;
	    grid-column: 2;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs {
	grid-row: 1;
	    grid-column: 2;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow.is-next {
	grid-row: 2;
	    grid-column: 2;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell.has-prev .rb-product-gallery__thumbs {
	grid-row: 2;
	    grid-column: 2;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell:not(.has-prev).has-next .rb-product-gallery__thumbs {
	grid-row: 1;
	    grid-column: 2;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell:not(.has-prev).has-next .rb-product-gallery__thumb-arrow.is-next {
	grid-row: 2;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell.has-prev.has-next .rb-product-gallery__thumb-arrow.is-next {
	grid-row: 3;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow[hidden] {
	display: none;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs {
	height: 100%;
	width: 100%;
	padding: 2px 0;
	overflow: hidden;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs .swiper-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--rb-slider-thumb-gap);
	height: auto;
	transition: transform 0.28s ease;
	will-change: transform;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-slide {
	flex: 0 0 auto;
	height: var(--rb-slider-thumb-height);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 1px solid rgba(var(--rb-brand-primary-rgb), 0.12);
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #ffffff;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb.is-active,
body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb:hover {
	border-color: var(--rb-brand-secondary);
	box-shadow: 0 0 0 1px rgba(var(--rb-brand-secondary-rgb), 0.22);
	transform: translateY(-1px);
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__native {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__native .woocommerce-product-gallery__trigger,
body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__native .flex-control-thumbs {
	display: none !important;
}

@media (max-width: 767px) {
	body.single-product #rabeea-store-root.rabeea-store {
		--rb-slider-gap: 0.75rem;
		--rb-slider-main-height: min(92vw, 420px);
		--rb-slider-thumb-gap: 0.45rem;
		--rb-slider-arrow-size: 38px;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__layout {
		flex-direction: column;
		gap: 0.75rem;
		min-height: 0;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__stage {
		height: auto;
		min-height: 0;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__zoom {
		top: 12px;
		left: 12px;
		width: 42px;
		height: 42px;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__sale-badge {
		top: 12px;
		right: 12px;
		min-height: 32px;
		padding: 0.4rem 0.875rem;
		font-size: 0.9rem;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main,
	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main .swiper-wrapper,
	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main-slide,
	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main-frame,
	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main-image {
		height: var(--rb-slider-main-height) !important;
		max-height: var(--rb-slider-main-height);
		min-height: 0;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__main {
		border-radius: 12px;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.45rem;
		width: 100%;
		min-width: 0;
		height: auto;
		max-height: none;
		min-height: 76px;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell.has-prev.has-next {
		display: flex;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell.has-prev:not(.has-next) {
		display: flex;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs-shell:not(.has-prev).has-next {
		display: flex;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs {
		order: 2;
		flex: 1 1 auto;
		min-width: 0;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow.is-next {
		order: 3;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow.is-prev {
		order: 1;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow {
		flex: 0 0 var(--rb-slider-arrow-size);
		width: var(--rb-slider-arrow-size);
		height: 76px;
		border-radius: 10px;
		box-shadow: 0 8px 18px rgba(18, 34, 54, 0.08);
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow.is-prev i {
		transform: rotate(-90deg);
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-arrow.is-next i {
		transform: rotate(-90deg);
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs {
		height: 76px;
		min-height: 76px;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumbs .swiper-wrapper {
		flex-direction: row;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb-slide {
		flex: 0 0 calc((100% - (var(--rb-slider-thumb-gap) * 3)) / 4);
		width: calc((100% - (var(--rb-slider-thumb-gap) * 3)) / 4);
		height: 76px;
	}

	body.single-product #rabeea-store-root.rabeea-store .rb-product-gallery__thumb {
		border-radius: 9px;
	}
}
