/* BIGM Product Categories */

/* Per-device values come from inline variables set by the widget.
   Breakpoints match Elementor's (tablet <= 1024px, mobile <= 767px). */
.bigm-pc {
	--bigm-pc-columns: var(--bigm-pc-columns-desktop, 8);
	--bigm-pc-gap: var(--bigm-pc-gap-desktop, 25px);
	--bigm-pc-arrow-size: 19px;
	--bigm-pc-arrow-color: var(--e-global-color-secondary, #732121);
	--bigm-pc-arrow-color-hover: var(--e-global-color-primary, #c42c34);
	--bigm-pc-dot-size: 6px;
	--bigm-pc-dot-color: var(--e-global-color-accent, #0b171c);
	--bigm-pc-dot-color-active: var(--e-global-color-primary, #c42c34);
	position: relative;
}

@media (max-width: 1024px) {
	.bigm-pc {
		--bigm-pc-columns: var(--bigm-pc-columns-tablet, 2);
		--bigm-pc-gap: var(--bigm-pc-gap-tablet, 25px);
	}
}

@media (max-width: 767px) {
	.bigm-pc {
		--bigm-pc-columns: var(--bigm-pc-columns-mobile, 1);
		--bigm-pc-gap: var(--bigm-pc-gap-mobile, 25px);
	}
}

.bigm-pc__track {
	display: flex;
	gap: var(--bigm-pc-gap);
}

.bigm-pc__item {
	min-width: 0;
	text-align: center;
}

/* Grid */
.bigm-pc--grid .bigm-pc__track {
	display: grid;
	grid-template-columns: repeat(var(--bigm-pc-columns), minmax(0, 1fr));
}

/* Carousel: size slides before Swiper starts so the layout does not jump. */
.bigm-pc--carousel .bigm-pc__viewport {
	overflow: hidden;
}

.bigm-pc--carousel .bigm-pc__item {
	flex: 0 0 calc((100% - (var(--bigm-pc-columns) - 1) * var(--bigm-pc-gap)) / var(--bigm-pc-columns));
}

.bigm-pc--carousel .swiper-initialized .bigm-pc__track {
	gap: 0;
}

.bigm-pc--carousel .swiper-initialized .bigm-pc__item {
	flex: 0 0 auto;
}

/* Image */
.bigm-pc__thumb {
	display: block;
}

.bigm-pc__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.bigm-pc--circle .bigm-pc__thumb img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
}

/* Title */
.bigm-pc__title {
	margin: 5px 0 10px;
	text-align: center;
}

.bigm-pc__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

/* Arrows. "button.bigm-pc__arrow" inside .bigm-pc out-ranks the kit's
   global button styles (.elementor-kit-N button, incl. :hover). */
.bigm-pc button.bigm-pc__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--bigm-pc-arrow-color);
	font-size: var(--bigm-pc-arrow-size);
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.bigm-pc button.bigm-pc__arrow:hover,
.bigm-pc button.bigm-pc__arrow:focus {
	border: 0;
	background: none;
	color: var(--bigm-pc-arrow-color-hover);
}

.bigm-pc__arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bigm-pc__arrow--prev {
	left: 0;
}

.bigm-pc__arrow--next {
	right: 0;
}

.bigm-pc button.bigm-pc__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

/* Swiper locks navigation when every slide already fits. */
.bigm-pc button.bigm-pc__arrow.swiper-button-lock {
	display: none;
}

/* Dots */
.bigm-pc__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.bigm-pc__dots.swiper-pagination-lock {
	display: none;
}

.bigm-pc__dots .swiper-pagination-bullet {
	width: var(--bigm-pc-dot-size);
	height: var(--bigm-pc-dot-size);
	margin: 0;
	border-radius: 50%;
	background: var(--bigm-pc-dot-color);
	opacity: 0.3;
	cursor: pointer;
}

.bigm-pc__dots .swiper-pagination-bullet-active {
	background: var(--bigm-pc-dot-color-active);
	opacity: 1;
}

/* Keyboard focus */
.bigm-pc__title a:focus-visible,
.bigm-pc__arrow:focus-visible,
.bigm-pc__dots .swiper-pagination-bullet:focus-visible {
	outline: 2px solid var(--bigm-pc-dot-color-active);
	outline-offset: 2px;
}

/* Editor notice */
.bigm-pc__empty {
	padding: 16px;
	border: 1px dashed currentColor;
	opacity: 0.6;
	text-align: center;
}
