/* Panprisa Slider Tab - Frontend */
.panprisa-slider-tab {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0px;
}

.pst-tabs {
	display: flex;
	width: 100%;
	gap: 10px;
	margin-bottom: 20px;
}

.pst-tab {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	background: #e8eaf6;
	color: #333;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

.pst-tab.is-active,
.pst-tab:hover {
	background: #013392;
	color: #fff;
}

.pst-tab.is-active .pst-tab-icon img,
.pst-tab:hover .pst-tab-icon img {
	filter: brightness(0) invert(1);
}

.pst-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pst-tab-icon img {
	width: 25px;
	height: 20px;
	object-fit: contain;
}

.pst-panels {
	position: relative;
}

.pst-panel {
	display: none;
	position: relative;
	padding: 0 0px;
}

.pst-panel.is-active {
	display: block;
	animation: pst-fade-in 0.4s ease forwards;
}

@keyframes pst-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.pst-slider {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pst-slider::-webkit-scrollbar {
	display: none;
}

.pst-card-track {
	display: flex;
	gap: 16px;
}

.pst-card {
	flex: 0 0 calc(25% - 12px);
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
	scroll-snap-align: start;
}

.pst-card-thumb {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
	overflow: hidden;
}

.pst-color-slide {
	display: none;
	position: absolute;
	inset: 0;
}

.pst-color-slide.is-active {
	display: block;
}

.pst-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.pst-color-label {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 3px 7px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 11px;
	line-height: 1.2;
}

.pst-color-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 26px;
	height: 32px;
	padding: 0 0 6px 0;
	border: 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 27px;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
}

.pst-color-prev {
	left: 0;
}

.pst-color-next {
	right: 0;
}

.pst-card-body {
	padding: 10px;
}

.pst-card-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 5px;
	line-height: 1.2;
	letter-spacing: -0.75px;
}

.pst-card-prices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
	margin-bottom: 10px;
}

.pst-card-price {
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.pst-price-label {
	font-size: 12px;
	color: #555;
}

.pst-price-value {
	font-size: 14px;
	color: #e53935;
	font-weight: 600;
}

.pst-price-coret {
	font-size: 11px;
	color: #999;
	text-decoration: line-through;
}

.pst-card-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 10px;
	background: #333;
	color: #fff;
	border-radius: 5px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	transition: background 0.2s ease;
	transition-duration: 0.2s;
	transition-delay: 0s;
	text-decoration: none !important;
}

.pst-card-btn:hover {
	background: #013392;
	color: #eee;
}

.pst-arrow,
.pst-arrow:hover,
.pst-arrow:active,
.pst-arrow:focus,
.pst-arrow:focus-visible {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent;
	background-color: transparent !important;
	color: #333 !important;
	cursor: pointer;
	font-size: 50px;
	line-height: 1;
	z-index: 2;
	transition: color 0.2s ease;
	transition-duration: 0.2s;
	transition-delay: 0s;
	transition-duration: 0.2s;
	transition-delay: 0s;
	box-shadow: none !important;
	outline: none !important;
}

.pst-arrow:hover {
	color: #000 !important;
}

.pst-arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.pst-arrow-prev {
	left: -30px;
}

.pst-arrow-next {
	right: -30px;
}

.pst-empty-panel {
	width: 100%;
	text-align: center;
	padding: 40px 20px;
	font-size: 16px;
	color: #666;
	background: #fff;
	border-radius: 8px;
}

@media (max-width: 992px) {
	.pst-card {
		flex: 0 0 calc(33.333% - 10.666px);
	}
}

@media (max-width: 640px) {
	.pst-tabs {
		display: flex;
		flex-wrap: nowrap;
		gap: 6px;
	}

	.pst-tab {
		flex: 1 1 0;
		min-width: 0;
	}

	.pst-tab-icon img {
		width: 20px;
		height: 20px;
	}

	.pst-card {
		flex: 0 0 calc(50% - 8px);
	}

	.pst-slider {
		margin: 0 20px;
	}

	.pst-arrow-prev {
		left: -10px;
	}

	.pst-arrow-next {
		right: -10px;
	}
}

@media (max-width: 768px) {
	.pst-card {
		display: flex;
		flex: 0 0 calc(50% - 8px);
		flex-direction: column;
	}

	.pst-card-body {
		display: flex;
		flex: 1;
		flex-direction: column;
	}

	.pst-card-title {
		display: -webkit-box;
		height: 36px;
		overflow: hidden;
		font-size: 15px;
		font-weight: 600;
		margin: 0 0 10px;
		line-height: 1.2;
		letter-spacing: -0.75px;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.pst-card-price {
		min-height: 46px;
		margin-bottom: 10px;
	}

	.pst-price-label {
		font-size: 12px;
		color: #555;
		line-height: 10px;
	}

	.pst-price-value {
		font-size: 14px;
		color: #e53935;
		font-weight: 600;
		line-height: 25px;
	}

	.pst-price-coret {
		font-size: 11px;
		color: #999;
		text-decoration: line-through;
		line-height: 10px;
	}

	.pst-card-btn {
		margin-top: auto;
	}

	.pst-slider {
		margin: 0 0px;
	}
}

@media (max-width: 480px) {
	.pst-card {
		flex: 0 0 calc(50% - 4px);
	}

	.pst-card-prices {
		grid-template-columns: 1fr;
	}

	.pst-arrow {
		width: 30px;
		height: 30px;
		font-size: 50px;
	}

	.pst-arrow-prev {
		left: -30px;
	}

	.pst-arrow-next {
		right: -30px;
	}

	.pst-tabs {
		gap: 4px;
	}

	.pst-tab {
		padding: 8px 6px;
		font-size: 12px;
	}
}
