/**
 * Transport Carousel — Frontend styles.
 *
 * @package Transporter_Core
 * @version 1.0.3
 */

/* -- Section -- */
.trc-carousel-section {
	width: 100%;
	position: relative;
	padding: 0 0 10px;
	overflow: hidden;
}
.trc-carousel-section .trc-section-title {
	font-family: 'Bebas', sans-serif;
	font-size: 48px;
	font-weight: 400;
	color: #242424;
	margin: 0;
	padding: 0;
	letter-spacing: 1px;
}
.trc-carousel-section .swiper {
	width: 100%;
	padding: 15px 0 5px;
}
.trc-carousel-section .swiper-slide {
	height: auto;
	display: flex;
	overflow: visible;
}

/* -- Card -- */
.trc-card {
	width: 100%;
	background: #ffffff;
	padding: 15px;
	position: relative;
	text-decoration: none;
	display: block;
	color: inherit;
	overflow: visible;
	border: 1px solid #f0f0f0;
	transition: box-shadow 0.3s ease;
}
.trc-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: #C62D3C;
	transition: width 0.3s ease;
}
.trc-card:hover::after {
	width: 100%;
}
.trc-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* -- Image area -- */
.trc-card-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
}

/* Sale badge */
.trc-sale-badge {
	position: absolute;
	top: 0;
	left: 0;
	background: #C62D3C;
	color: #ffffff;
	font-family: 'FiraGo', Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	line-height: 1;
	border-radius: 999px;
	z-index: 2;
}

/* Brand logo */
.trc-brand-logo {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 60px;
	height: 60px;
	z-index: 2;
	pointer-events: none;
}
.trc-brand-logo img {
	width: auto;
	height: 60px;
	object-fit: contain;
}

/* Product image */
.trc-card-image-wrap > a {
	display: block;
	width: 100%;
	height: 100%;
}
.trc-card-image-wrap > a > img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* -- Bottom section -- */
.trc-card-info {
	padding-top: 8px;
}

/* Title */
.trc-card-title {
	margin: 0;
	line-height: 1.1;
}
.trc-card-title a {
	font-family: 'Bebas', sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #333333;
	text-decoration: none;
	display: block;
	transition: color 0.2s ease;
}
.trc-card-title a:hover {
	color: #C62D3C;
}

/* Price */
.trc-card-price {
	margin-top: 4px;
	display: flex;
	align-items: baseline;
	gap: 6px;
}
.trc-card-price del {
	text-decoration: line-through;
	font-family: 'Bebas', Arial, Helvetica, sans-serif;
	font-size: 13.5px;
	color: #BBBBBB;
}
.trc-card-price ins {
	text-decoration: none;
	font-family: 'Bebas', Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: #C62D3C;
}
.trc-card-price .trc-regular-price {
	font-family: 'Bebas', Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: #333;
}

/* -- Swiper Navigation -- */
.trc-carousel-section .swiper-button-prev,
.trc-carousel-section .swiper-button-next {
	color: #333;
	background: none;
	width: 44px;
	height: 44px;
	transition: opacity 0.3s, transform 0.2s;
}
.trc-carousel-section .swiper-button-prev:hover,
.trc-carousel-section .swiper-button-next:hover {
	transform: scale(1.2);
}
.trc-carousel-section .swiper-button-prev::after,
.trc-carousel-section .swiper-button-next::after {
	font-size: 22px;
	font-weight: 100;
}
.trc-carousel-section .swiper-button-prev,
.trc-carousel-section .swiper-button-next {
	opacity: 0;
}
.trc-carousel-section:hover .swiper-button-prev,
.trc-carousel-section:hover .swiper-button-next {
	opacity: 1;
}

/* -- Swiper Pagination -- */
.trc-carousel-section .swiper-pagination {
	position: relative !important;
	bottom: auto !important;
	margin-top: 10px;
}
.trc-carousel-section .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: transparent;
	border: 1px solid #999;
	opacity: 1;
	transition: background 0.3s, border-color 0.3s;
}
.trc-carousel-section .swiper-pagination-bullet-active {
	background: #333;
	border-color: #333;
}

/* -- Mobile compact -- */
@media (max-width: 576px) {
	.trc-carousel-section .swiper {
		padding: 10px 0 2px;
	}
	.trc-carousel-section .swiper-pagination {
		margin-top: 8px;
	}
	.trc-card {
		padding: 10px;
	}
	.trc-card-title a {
		font-size: 15px;
	}
	.trc-card-price del {
		font-size: 12px;
	}
	.trc-card-price ins,
	.trc-card-price .trc-regular-price {
		font-size: 13px;
	}
	.trc-sale-badge {
		font-size: 11px;
		padding: 4px 8px;
	}
	.trc-brand-logo {
		width: 45px;
		height: 45px;
		top: -8px;
		right: -8px;
	}
	.trc-brand-logo img {
		height: 45px;
	}
}
