.rolmax-product-tabs {
	--rolmax-navy: #2d3b52;
	--rolmax-blue: #4f8dff;
	--rolmax-line: #e4e7ec;
	--rolmax-muted: #8b909a;
	background: transparent;
	box-sizing: border-box;
	padding: 0;
	width: 100%;
}

.rolmax-product-tabs *,
.rolmax-product-tabs *::before,
.rolmax-product-tabs *::after {
	box-sizing: border-box;
}

.rolmax-product-tabs__inner {
	margin: 0 auto;
	max-width: 1180px;
}

.rolmax-product-tabs__shell {
	background: #fff;
	position: relative;
}

.rolmax-product-tabs__nav-wrap {
	background: #f3f3f6;
	overflow: hidden;
}

.rolmax-product-tabs__nav {
	display: flex;
	min-width: max-content;
}

.rolmax-product-tabs__tab {
	appearance: none;
	background: transparent;
	/* Protejează taburile de stilurile globale ale temei pentru <button>. */
	border-top: 0 !important;
	border-bottom: 0 !important;
	border-left: 0 !important;
	border-right: 1px solid #dedfe4 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #74767b;
	cursor: pointer;
	flex: 1 0 auto;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .11em;
	line-height: 1.25;
	min-height: 64px;
	padding: 16px 32px;
	text-transform: uppercase;
	transition: color .2s ease, background .2s ease;
	outline: 0 !important;
}

.rolmax-product-tabs__tab:last-child {
	border-right: 0 !important;
}

.rolmax-product-tabs__tab:hover,
.rolmax-product-tabs__tab:focus-visible,
.rolmax-product-tabs__tab.is-active {
	background: #fff;
	color: var(--rolmax-blue);
	outline: 0 !important;
	box-shadow: none !important;
}

/* Stări pe care unele teme WordPress le colorează global în roșu. */
.rolmax-product-tabs .rolmax-product-tabs__tab:focus,
.rolmax-product-tabs .rolmax-product-tabs__tab:focus-visible,
.rolmax-product-tabs .rolmax-product-tabs__tab:active {
	border-top: 0 !important;
	border-bottom: 0 !important;
	border-left: 0 !important;
	border-right: 1px solid #dedfe4 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

.rolmax-product-tabs .rolmax-product-tabs__tab:last-child:focus,
.rolmax-product-tabs .rolmax-product-tabs__tab:last-child:focus-visible,
.rolmax-product-tabs .rolmax-product-tabs__tab:last-child:active {
	border-right: 0 !important;
}

.rolmax-product-tabs__panel {
	padding: 16px 22px 24px;
	position: relative;
}

.rolmax-product-tabs__panel[hidden] {
	display: none;
}

.rolmax-product-tabs__track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-x;
	-webkit-overflow-scrolling: touch;
}

.rolmax-product-tabs__track::-webkit-scrollbar {
	display: none;
}

.rolmax-product-card {
	background: #fff;
	border: 1px solid var(--rolmax-line);
	box-shadow: 0 3px 12px rgba(23, 38, 61, .08);
	display: flex;
	flex: 0 0 calc((100% - 44px) / 3);
	flex-direction: column;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	scroll-snap-align: start;
}

.rolmax-product-card__image {
	aspect-ratio: 1 / 1;
	background: #f3f4f6;
	display: block;
	overflow: hidden;
}

.rolmax-product-card__image img {
	display: block;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform .35s ease;
	width: 100%;
}

.rolmax-product-card:hover .rolmax-product-card__image img {
	transform: scale(1.025);
}

.rolmax-product-card__title {
	align-items: center;
	background: var(--rolmax-navy);
	color: #fff !important;
	display: flex;
	font-size: 19px;
	font-weight: 400;
	justify-content: center;
	line-height: 1.25;
	min-height: 72px;
	padding: 12px 16px;
	text-align: center;
	text-decoration: none !important;
}

.rolmax-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 14px;
	padding: 18px 18px 19px;
}

.rolmax-product-card__price {
	align-items: baseline;
	display: flex;
	font-size: 15px;
	gap: 10px;
	justify-content: space-between;
	line-height: 1.3;
}

.rolmax-product-card__price-label {
	color: var(--rolmax-muted);
}

.rolmax-product-card__price-value,
.rolmax-product-card__price-value .amount,
.rolmax-product-card__price-value .rolmax-price-from,
.rolmax-card-price-from {
	color: var(--rolmax-blue) !important;
	font-size: inherit !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}

.rolmax-product-card__price-value del {
	opacity: .55;
}

.rolmax-product-card__button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--rolmax-blue);
	border-radius: 3px;
	color: var(--rolmax-blue) !important;
	display: flex;
	font-size: 15px;
	font-weight: 500;
	gap: 8px;
	justify-content: center;
	margin-top: auto;
	min-height: 46px;
	padding: 10px 14px;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease;
}

.rolmax-product-card__button:hover,
.rolmax-product-card__button:focus-visible {
	background: var(--rolmax-blue);
	color: #fff !important;
	outline: 0;
}

.rolmax-product-card__button:hover span,
.rolmax-product-card__button:focus-visible span {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.rolmax-product-tabs__arrow {
	align-items: center;
	appearance: none;
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 8px;
	box-shadow: none;
	color: #fff !important;
	cursor: pointer;
	display: flex;
	font-size: 0 !important;
	height: 36px;
	justify-content: center;
	line-height: 1;
	opacity: 1;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
	width: 36px;
	z-index: 3;
}

.rolmax-product-tabs__arrow::before {
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
	content: "";
	display: block;
	height: 9px;
	width: 9px;
}

.rolmax-product-tabs__arrow.is-prev::before {
	transform: rotate(-135deg);
}

.rolmax-product-tabs__arrow.is-next::before {
	transform: rotate(45deg);
}

.rolmax-product-tabs__arrow:hover,
.rolmax-product-tabs__arrow:focus-visible {
	background: #fff !important;
	border-color: rgba(255, 255, 255, .92) !important;
	box-shadow: 0 4px 12px rgba(17, 31, 52, .16);
	color: var(--rolmax-blue) !important;
	outline: 0;
}

.rolmax-product-tabs__arrow.is-prev {
	left: -72px;
}

.rolmax-product-tabs__arrow.is-next {
	right: -72px;
}

.rolmax-tabs-empty {
	padding: 20px;
}

@media (max-width: 1260px) {
	.rolmax-product-tabs__arrow {
		height: 34px;
		width: 34px;
	}

	.rolmax-product-tabs__arrow.is-prev {
		left: 7px;
	}

	.rolmax-product-tabs__arrow.is-next {
		right: 7px;
	}
}

@media (max-width: 900px) {
	.rolmax-product-tabs__nav-wrap {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.rolmax-product-tabs__nav-wrap::-webkit-scrollbar {
		display: none;
	}

	.rolmax-product-tabs__tab {
		font-size: 12px;
		min-height: 58px;
		padding: 14px 22px;
	}
}

@media (max-width: 767px) {
	.rolmax-product-tabs {
		left: 50%;
		margin-left: -50vw;
		position: relative;
		width: 100vw;
	}

	.rolmax-product-tabs__inner {
		max-width: none;
		width: 100%;
	}

	.rolmax-product-tabs__panel {
		padding: 7px 4px 10px;
	}

	.rolmax-product-tabs__track {
		gap: 6px;
	}

	.rolmax-product-card {
		flex-basis: calc((100% - 6px) / 2);
	}

	.rolmax-product-card__title {
		font-size: 13px;
		min-height: 58px;
		padding: 8px 7px;
	}

	.rolmax-product-card__body {
		gap: 10px;
		padding: 11px 8px 10px;
	}

	.rolmax-product-card__price {
		align-items: flex-start;
		flex-direction: column;
		font-size: 12px;
		gap: 2px;
	}

	.rolmax-product-card__button {
		font-size: 12px;
		gap: 4px;
		min-height: 39px;
		padding: 7px 5px;
	}

	.rolmax-product-tabs__arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rolmax-product-tabs__track {
		scroll-behavior: auto;
	}

	.rolmax-product-card__image img,
	.rolmax-product-card__button {
		transition: none;
	}
}
