/* ==========================================================
   CM24 Product Slider v2.0
   ========================================================== */

.cm24-slider-section {
	--cm24-accent: #F7941D;
	--cm24-accent-dark: #d97d0c;
	--cm24-ink: #1f2328;
	--cm24-muted: #8a9099;
	--cm24-line: #e9ecef;
	--cm24-radius: 14px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 12px;
	box-sizing: border-box;
}

.cm24-slider-section *,
.cm24-slider-section *::before,
.cm24-slider-section *::after {
	box-sizing: border-box;
}

/* ---------- Heading ---------- */
.cm24-slider-title {
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	color: var(--cm24-ink);
	margin: 0 0 22px;
	line-height: 1.25;
}

.cm24-slider-title::after {
	content: "";
	display: block;
	width: 54px;
	height: 3px;
	background: var(--cm24-accent);
	border-radius: 3px;
	margin: 10px auto 0;
}

/* ---------- Shell ---------- */
.cm24-slider {
	position: relative;
	padding: 0 46px;
}

.cm24-viewport {
	overflow: hidden;
	width: 100%;
}

.cm24-track {
	display: flex;
	transition: transform .45s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}

.cm24-slide {
	flex: 0 0 auto;
	padding: 6px;
	min-width: 0;
}

/* ---------- Card ---------- */
.cm24-card {
	background: #fff;
	border: 1px solid var(--cm24-line);
	border-radius: var(--cm24-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cm24-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .10);
	border-color: #dfe3e8;
}

/* ---------- Image ---------- */
.cm24-img-link {
	position: relative;
	display: block;
	background: #fff;
	padding: 14px;
	line-height: 0;
}

.cm24-slider-section .cm24-img,
.cm24-img-link img {
	width: 100% !important;
	height: 200px !important;
	object-fit: contain !important;
	display: block;
	margin: 0 !important;
	border-radius: 8px;
	transition: transform .35s ease;
}

.cm24-card:hover .cm24-img,
.cm24-card:hover .cm24-img-link img {
	transform: scale(1.05);
}

/* ---------- Badges ---------- */
.cm24-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #fff;
	padding: 5px 10px;
	border-radius: 20px;
	line-height: 1;
	z-index: 2;
}

.cm24-badge-sale { background: var(--cm24-accent); }
.cm24-badge-oos  { background: #6c757d; left: auto; right: 12px; }

/* ---------- Body ---------- */
.cm24-body {
	padding: 4px 16px 18px;
	text-align: center;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.cm24-cat {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cm24-muted);
	display: block;
	margin-bottom: 6px;
}

.cm24-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
	min-height: 39px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cm24-name a {
	color: var(--cm24-ink);
	text-decoration: none !important;
	border: 0 !important;
}

.cm24-name a:hover { color: var(--cm24-accent); }

.cm24-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--cm24-accent);
	margin-bottom: 12px;
	margin-top: auto;
	line-height: 1.3;
}

.cm24-price del {
	color: var(--cm24-muted);
	font-weight: 500;
	font-size: 14px;
	margin-right: 5px;
}

.cm24-price ins {
	text-decoration: none;
	background: transparent;
}

/* ---------- Button ---------- */
.cm24-slider-section .cm24-btn {
	display: block;
	width: 100%;
	background: var(--cm24-accent);
	color: #fff !important;
	border: 0;
	border-radius: 9px;
	padding: 11px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s ease;
	line-height: 1.3;
	margin: 0;
}

.cm24-slider-section .cm24-btn:hover {
	background: var(--cm24-accent-dark);
	color: #fff !important;
}

.cm24-slider-section .cm24-btn.loading { opacity: .65; }

.cm24-slider-section .cm24-btn.added::after {
	content: " ✓";
	font-weight: 700;
}

.cm24-slider-section .added_to_cart {
	display: block;
	margin-top: 7px;
	font-size: 11px;
	color: var(--cm24-accent);
	text-decoration: underline;
}

/* ---------- Arrows ---------- */
.cm24-nav {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--cm24-line);
	color: var(--cm24-accent);
	box-shadow: 0 3px 14px rgba(0, 0, 0, .13);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	padding: 0;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.cm24-nav:hover {
	background: var(--cm24-accent);
	color: #fff;
	border-color: var(--cm24-accent);
}

.cm24-nav[disabled] {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

.cm24-prev { left: 0; }
.cm24-next { right: 0; }

/* ---------- Dots ---------- */
.cm24-dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.cm24-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d6dae0;
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: all .25s ease;
}

.cm24-dot.active {
	background: var(--cm24-accent);
	width: 24px;
	border-radius: 5px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.cm24-slider { padding: 0 40px; }
	.cm24-slider-section .cm24-img,
	.cm24-img-link img { height: 170px !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.cm24-slider-section { padding: 0 8px; }
	.cm24-slider-title { font-size: 20px; margin-bottom: 16px; }
	.cm24-slider { padding: 0 30px; }

	.cm24-slide { padding: 4px; }
	.cm24-img-link { padding: 10px; }

	.cm24-slider-section .cm24-img,
	.cm24-img-link img { height: 130px !important; }

	.cm24-body { padding: 2px 10px 14px; }
	.cm24-name { font-size: 12.5px; min-height: 35px; }
	.cm24-price { font-size: 15px; margin-bottom: 9px; }

	.cm24-slider-section .cm24-btn {
		font-size: 11px;
		padding: 9px 8px;
	}

	.cm24-nav { width: 32px; height: 32px; }
	.cm24-nav svg { width: 16px; height: 16px; }
}
