/* ==========================================================================
   Product Slider
   ========================================================================== */
.ksc-product-container {
	position: relative;
	box-sizing: border-box;
}

.ksc-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--ksc-cols, 4), 1fr);
	gap: 20px;
}

@media (max-width: 1024px) {
	.ksc-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.ksc-product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

.ksc-grid-footer {
	text-align: center;
	margin-top: 30px;
}

.ksc-grid-item {
	min-width: 0;
}

/* Product Header (Carousel) */
.ksc-product-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
}

.ksc-product-heading {
	font-size: 38px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0;
	color: #1a1a1a;
}

/* Kích thước nhỏ hơn cho phần Sản phẩm liên quan */
.ksc-type-related .ksc-product-heading {
	font-size: 28px;
}

.ksc-swiper-next {
	padding: 4px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #1a1a1a;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1a1a1a;
	transition: all 0.3s ease;
}

.ksc-swiper-next:hover,
.ksc-swiper-next:active,
.ksc-swiper-next:focus {
	background: #cb3362; /* Màu hồng đỏ rực rỡ theo hình của bạn */
	color: #fff;
}

/* Custom Scrollbar for Swiper */
.ksc-product-container .swiper-scrollbar {
	position: relative;
	background: #f1f1f1;
	height: 4px;
	margin-top: 40px;
	width: 100%;
	left: 0;
}
.ksc-product-container .swiper-scrollbar-drag {
	background: #1a1a1a;
}
.ksc-btn-view-all {
	display: inline-block;
	background: #f1f5f9;
	color: #1e293b;
	padding: 10px 30px;
	border-radius: 30px;
	text-decoration: none !important;
	border-bottom: none !important;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}
.ksc-btn-view-all:hover {
	background: #e2e8f0;
	text-decoration: none !important;
}

.ksc-product-card {
	background: transparent;
	position: relative;
	min-width: 0;
}

.ksc-product-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #d10d01;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	z-index: 2;
}

.ksc-product-image {
	width: 100%;
	aspect-ratio: 3/4;
	background-color: #f1f5f9;
	border-radius: 13px;
	border: 1px solid #eee;
	overflow: hidden;
}
.ksc-product-image > a:first-child {
	display: block;
	width: 100%;
	height: 100%;
}
.ksc-product-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.ksc-product-image {
	position: relative;
}

.ksc-product-actions-tr {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: all 0.3s ease;
	z-index: 10;
}

.ksc-product-card:hover .ksc-product-actions-tr {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.ksc-pa-btn {
	width: 40px !important;
	height: 40px !important;
	background: #f5f5f5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease;
	flex-shrink: 0;
	padding: 0;
	box-sizing: border-box;
}

.ksc-pa-btn:hover {
	background: #d10d01;
	color: #fff;
}

.ksc-pa-btn svg {
	width: 20px;
	height: 20px;
}

.ksc-product-info {
	margin-top: 20px;
	min-width: 0;
}

.ksc-product-title {
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 5px;
	color: #1a1a1a;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ksc-product-desc {
	font-size: 13px;
	font-weight: 500;
	color: #777;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ksc-product-price-action {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0px;
	flex-wrap: wrap;
	gap: 8px;
}

.ksc-product-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

/* Ẩn chữ Xem giỏ hàng mặc định của WooCommerce */
.ksc-product-price-action .added_to_cart.wc-forward,
.ksc-video-product-info .added_to_cart.wc-forward {
	display: none !important;
}

.ksc-product-price del {
	font-size: 12px;
	color: #999;
}

.ksc-product-price ins, .ksc-product-price > span.amount {
	font-size: 16px;
	font-weight: 700;
	color: #d10d01;
	text-decoration: none;
}

.ksc-price-prefix {
	font-size: 12px;
	font-weight: 400;
	color: #777;
	margin-right: 2px;
}

/* For simple price without sale */
.ksc-product-price > span.amount {
	font-size: 16px;
	font-weight: 700;
	color: #d10d01;
}

.ksc-add-to-cart-btn {
	background: #f5f5f5;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #333;
	transition: background 0.2s;
}

.ksc-add-to-cart-btn:hover {
	background: #d10d01;
	color: #fff;
}

.ksc-add-to-cart-btn svg {
	width: 20px;
	height: 20px;
}

/* Tối ưu Mobile 2 cột */
@media (max-width: 768px) {
	.ksc-product-heading {
		font-size: 24px;
	}
	.ksc-type-related .ksc-product-heading {
		font-size: 20px;
	}
	.ksc-product-title {
		font-size: 13px;
	}
	.ksc-product-desc {
		font-size: 12px;
		margin-bottom: 10px;
	}
	.ksc-product-price-action {
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		gap: 5px;
	}
	.ksc-product-price {
		flex-wrap: wrap;
		gap: 4px;
	}
	.ksc-product-price del {
		font-size: 11px;
	}
	.ksc-product-price ins, .ksc-product-price > span.amount {
		font-size: 14px;
	}
	.ksc-add-to-cart-btn {
		width: 32px;
		height: 32px;
	}
	.ksc-add-to-cart-btn svg {
		width: 16px;
		height: 16px;
	}
	.ksc-product-badge {
		font-size: 10px;
		padding: 3px 8px;
	}
}

/* ==========================================================================
   Video Review Slider
   ========================================================================== */
.ksc-video-slider-container {
	background: #fff;
	color: #000;
	text-align: center;
	overflow: hidden;
}

.ksc-video-slider-heading {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 30px;
	text-transform: uppercase;
	color: #000;
}

.ksc-video-swiper {
	padding-bottom: 50px;
}

.ksc-video-card {
	background: transparent;
	width: 100%;
	position: relative;
}

.ksc-video-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 9/16;
	border-radius: 12px;
	overflow: hidden;
}

.ksc-video-wrapper video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ksc-video-controls {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ksc-video-controls button {
	background: rgba(0,0,0,0.3);
	border: none;
	padding: 8px;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksc-video-controls button svg {
	width: 20px;
	height: 20px;
}

.ksc-video-product-info {
    border: 1px solid #f6f6f6;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 10px;
    text-align: left;
    background: #fff;
    border-radius: 8px;
    margin: 10px 0 0 0;
    position: relative;
    z-index: 2;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.ksc-video-product-info img {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
}

.ksc-vp-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ksc-vp-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ksc-vp-price {
    margin-top: 5px;
    font-size: 13px;
    font-weight: bold;
    color: #000000;
}

.ksc-vp-add {
	background: #000;
	color: #fff;
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ksc-vp-add:hover {
	background: #333;
}

/* Video Slider Pagination */
.ksc-video-slider-container {
	position: relative;
}
.ksc-video-container .swiper-pagination-bullet {
	background: #000;
}
.ksc-video-container .swiper-pagination-bullet-active {
	background: #d10d01;
}

/* Mobile Coverflow Effect for Video Slider */
@media (max-width: 768px) {
	.ksc-video-swiper .swiper-slide {
		transition: transform 0.4s ease, opacity 0.4s ease;
		transform: scale(0.85);
	}
	.ksc-video-swiper .swiper-slide-active {
		transform: scale(1);
	}
}

.ksc-video-slider-container .swiper-pagination {
	position: relative;
	margin-top: 30px;
}
.ksc-video-slider-container .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #ccc;
	opacity: 1;
	transition: 0.3s;
}
.ksc-video-slider-container .swiper-pagination-bullet-active {
	width: 30px;
	border-radius: 4px;
	background: #1a1a1a;
}

/* Video Slider Navigation */
.ksc-video-swiper .ksc-video-nav-prev,
.ksc-video-swiper .ksc-video-nav-next {
	position: absolute;
	top: calc(50% - 20px);
	transform: translateY(-50%);
	z-index: 10;
	background: #fff;
	border: 1px solid #ddd;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	color: #333;
}

.ksc-video-swiper:hover .ksc-video-nav-prev,
.ksc-video-swiper:hover .ksc-video-nav-next {
	opacity: 1;
	visibility: visible;
}

.ksc-video-swiper .ksc-video-nav-prev {
	left: 10px;
}

.ksc-video-swiper .ksc-video-nav-next {
	right: 10px;
}

.ksc-video-swiper .ksc-video-nav-prev:hover,
.ksc-video-swiper .ksc-video-nav-next:hover {
	background: #000;
	color: #fff;
}

/* Pagination */
.ksc-pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}
.ksc-pagination a,
.ksc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 30px;
	font-weight: 600;
	color: #000;
	text-decoration: none;
	transition: all 0.3s ease;
}
.ksc-pagination a:hover,
.ksc-pagination span.current {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* ==========================================================================
   Banner Sectionder
   ========================================================================== */
.ksc-banner-slider-container {
	position: relative;
	width: 100%;
}

.ksc-banner-item-wrap {
	width: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: flex-end;
	background-color: #e8e8e8;
}

@media (max-width: 768px) {
	.ksc-banner-item-wrap {
		height: 450px;
	}
}

.ksc-banner-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50%;
	background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
	z-index: 1;
}

.ksc-banner-content {
	position: relative;
	z-index: 2;
	padding: 0 5% 60px 5%;
	max-width: 800px;
	color: #000;
	text-align: left;
}

.ksc-banner-title {
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 10px;
	line-height: 1.1;
	color: #000;
}

.ksc-banner-desc {
	font-size: 16px;
	margin-bottom: 25px;
	line-height: 1.5;
	color: #333;
}

.ksc-banner-btn {
	display: inline-block;
	background-color: #d12229;
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 900;
	border-radius: 50px;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.ksc-banner-btn:hover {
	background-color: #a01a1f;
	color: #fff;
}

.ksc-banner-pagination {
	bottom: 20px !important;
}

.ksc-banner-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #000;
	opacity: 0.2;
}
.ksc-banner-pagination .swiper-pagination-bullet-active {
	width: 30px;
	border-radius: 5px;
	background: #d12229;
	opacity: 1;
}

/* ==========================================================================
   Blog Slider
   ========================================================================== */
.ksc-blog-section {
	/* max-width and padding removed for Elementor compatibility */
}
.ksc-blog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}
.ksc-blog-header .ksc-section-title {
	font-size: 38px;
	font-weight: 800;
	margin: 0;
	color: #1a1a1a;
	text-transform: uppercase;
}
.ksc-blog-nav {
	display: flex;
	gap: 15px;
}
.ksc-blog-nav > div {
	width: 45px;
	height: 45px;
	border: 1.5px solid #000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}
.ksc-blog-nav > div:hover {
	background: #000;
	color: #fff;
}
.ksc-blog-grid {
	display: grid;
	grid-template-columns: repeat(var(--ksc-blog-cols, 3), 1fr);
	gap: 20px;
}
@media (max-width: 1024px) {
	.ksc-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.ksc-blog-grid { grid-template-columns: 1fr; }
}
.ksc-blog-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ksc-blog-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 30px;
	border: 1px solid #e5e5e5;
	overflow: hidden;
}
.ksc-blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.ksc-blog-card:hover .ksc-blog-image img {
	transform: scale(1.05);
}
.ksc-blog-content {
	padding: 0 5px;
}
.ksc-blog-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 10px;
}
.ksc-blog-title a {
	color: #000;
	text-decoration: none;
}
.ksc-blog-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}
.ksc-blog-readmore {
	font-size: 14px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: color 0.3s ease;
}
.ksc-blog-readmore:hover {
	color: #d12229;
}
@media (max-width: 768px) {
	.ksc-blog-header .ksc-section-title {
		font-size: 24px;
	}
}

/* ==========================================================================
   Product Gallery (Single Product)
   ========================================================================== */
.ksc-product-gallery-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.ksc-pg-thumbnails {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 80px;
	flex-shrink: 0;
	max-height: 500px;
	overflow-y: auto;
}

/* Hide scrollbar for thumbnails */
.ksc-pg-thumbnails::-webkit-scrollbar {
	width: 4px;
}
.ksc-pg-thumbnails::-webkit-scrollbar-track {
	background: #f1f1f1; 
}
.ksc-pg-thumbnails::-webkit-scrollbar-thumb {
	background: #ccc; 
	border-radius: 4px;
}
.ksc-pg-thumbnails::-webkit-scrollbar-thumb:hover {
	background: #999; 
}

.ksc-pg-thumb-item {
	width: 100%;
	aspect-ratio: 3 / 4;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s ease;
	opacity: 0.6;
}

.ksc-pg-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ksc-pg-thumb-item:hover,
.ksc-pg-thumb-item.active {
	opacity: 1;
	border-color: #d12229;
}

.ksc-pg-main-image {
	flex-grow: 1;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	background: #f9f9f9;
	aspect-ratio: 3 / 4;
}

.ksc-pg-main-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
	.ksc-product-gallery-wrapper {
		flex-direction: column-reverse;
	}
	.ksc-pg-thumbnails {
		flex-direction: row;
		width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}
	.ksc-pg-thumb-item {
		width: 70px;
		flex-shrink: 0;
	}
}

/* Nav Positions */
.ksc-product-gallery-wrapper[data-nav="right"] {
	flex-direction: row-reverse;
}
.ksc-product-gallery-wrapper[data-nav="bottom"] {
	flex-direction: column-reverse;
}
.ksc-product-gallery-wrapper[data-nav="bottom"] .ksc-pg-thumbnails {
	flex-direction: row;
	width: 100%;
	max-height: none;
	overflow-x: auto;
	overflow-y: hidden;
}
.ksc-product-gallery-wrapper[data-nav="bottom"] .ksc-pg-thumb-item {
	width: 80px;
}

/* Zoom Container & Main Nav */
.ksc-pg-zoom-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: zoom-in;
}

.ksc-pg-main-track {
	display: flex;
	transition: margin-left 0.3s ease-in-out;
	width: 100%;
	height: 100%;
}

.ksc-pg-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksc-pg-main-image .ksc-pg-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.1s ease-out; /* For smooth zooming */
}

.ksc-pg-main-prev,
.ksc-pg-main-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: #fff;
	color: #333;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	cursor: pointer;
	opacity: 0;
	transition: 0.3s ease;
	z-index: 5;
}
.ksc-pg-zoom-container:hover .ksc-pg-main-prev,
.ksc-pg-zoom-container:hover .ksc-pg-main-next {
	opacity: 1;
}
.ksc-pg-main-prev:hover,
.ksc-pg-main-next:hover {
	background: #d12229;
	color: #fff;
}
.ksc-pg-main-prev {
	left: 15px;
}
.ksc-pg-main-next {
	right: 15px;
}

.ksc-pg-main-zoom-icon {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	color: #000;
	z-index: 5;
	pointer-events: none; /* Let clicks pass through to zoom container */
}

/* Gallery Navigation Dots */
.ksc-pg-dots {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 15px;
	margin-bottom: 10px;
	width: 100%;
	clear: both;
}
.ksc-pg-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #dcdcdc;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-block;
}
.ksc-pg-dot.active {
	width: 24px;
	border-radius: 12px;
	background-color: #111111;
}

@media (max-width: 991px) {
	.ksc-pg-thumbnails {
		display: none !important;
	}
	.ksc-pg-dots {
		display: flex !important;
	}
	.ksc-product-gallery-wrapper {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
	}
	.ksc-pg-main-image {
		width: 100% !important;
	}
}

/* Lightbox Modal */
.ksc-pg-lightbox-overlay {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9);
	align-items: center;
	justify-content: center;
}
.ksc-pg-lightbox-overlay.show {
	display: flex;
}
.ksc-pg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.2s;
	z-index: 2;
}
.ksc-pg-lightbox-close:hover {
	color: #d12229;
}
.ksc-pg-lightbox-prev,
.ksc-pg-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	padding: 20px;
	transition: 0.2s;
	user-select: none;
	z-index: 2;
}
.ksc-pg-lightbox-prev {
	left: 20px;
}
.ksc-pg-lightbox-next {
	right: 20px;
}
.ksc-pg-lightbox-prev:hover,
.ksc-pg-lightbox-next:hover {
	color: #d12229;
}
.ksc-pg-lightbox-img {
	max-width: 90%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   Add To Cart Custom Block
   ========================================================================== */
.ksc-atc-wrapper {
	font-family: inherit;
	color: #333;
}
.ksc-atc-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
	font-size: 14px;
}
.ksc-stars {
	display: flex;
	align-items: center;
	gap: 2px;
}
.ksc-rating-num {
	font-weight: 600;
}
.ksc-rating-text {
	color: #666;
}
.ksc-atc-price-box {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 15px;
}
/* Hàng chứa: giá sale + giá gốc + badge % */
.ksc-atc-price-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.ksc-atc-price {
	font-size: 28px;
	font-weight: 800;
	color: #c94f38;
	line-height: 1;
}
.ksc-atc-regular-price {
	font-size: 16px;
	color: #999;
	text-decoration: line-through;
}
/* Badge % đỏ cạnh giá */
.ksc-atc-badge {
	display: inline-flex;
	align-items: center;
	background-color: #d10d01;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 50px;
	line-height: 1;
	flex-shrink: 0;
}
.ksc-atc-savings {
	font-size: 14px;
	font-weight: 600;
	color: #c94f38;
}
.ksc-atc-stock {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #019d05;
	margin-bottom: 25px;
}
.ksc-stock-icon {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}
.ksc-stock-icon.ksc-instock {
	background-color: #019d05;
}
.ksc-stock-icon.ksc-outstock {
	background-color: #d12229;
}
/* Form ATC Variables */
.ksc-atc-variable-wrapper .variations {
	width: 100% !important;
	margin-bottom: 20px !important;
	display: block !important;
}
.ksc-atc-variable-wrapper form.variations_form table.variations tbody,
.ksc-atc-variable-wrapper form.variations_form table.variations tbody > tr,
.ksc-atc-variable-wrapper form.variations_form table.variations tbody > tr > td {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	border: none !important;
}
.ksc-atc-variable-wrapper form.variations_form table.variations tbody > tr {
	margin-bottom: 15px !important;
}
.ksc-atc-variable-wrapper form.variations_form table.variations tbody > tr > td.label {
	margin-bottom: 8px !important;
	text-align: left !important;
	background: transparent !important;
}
.ksc-atc-variable-wrapper .variations label {
	font-weight: 800 !important;
	text-transform: uppercase !important;
	font-size: 15px !important;
	color: #111 !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 5px;
}
.ksc-selected-swatch-name {
	color: #111;
}
.ksc-atc-variable-wrapper .variations select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 25px;
	font-size: 14px;
	outline: none;
	background: #f9f9f9;
}
.ksc-atc-variable-wrapper .woocommerce-variation-price {
	display: none; /* Ẩn giá mặc định của Woo vì đã đưa vào nút */
}
.ksc-atc-variable-wrapper .reset_variations {
	font-size: 12px;
	color: #d12229;
	margin-top: 5px;
	display: inline-block;
}

/* Swatches Variables */
.ksc-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 5px;
}
.ksc-swatch {
	display: inline-block;
	cursor: pointer;
	border-radius: 4px;
	box-shadow: 0 0 0 1px #ddd;
	transition: all 0.2s ease;
	position: relative;
}
.ksc-swatch.selected {
	box-shadow: 0 0 0 2px #d12229;
}
.ksc-swatch:hover {
	box-shadow: 0 0 0 1px #999;
}
.ksc-swatch.selected:hover {
	box-shadow: 0 0 0 2px #d12229;
}
.ksc-swatch-color {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid #fff; /* Khoảng cách trắng giữa màu và viền select */
}
.ksc-swatch-label {
	padding: 6px 12px;
	font-size: 13px;
	background: #f1f5f9;
	color: #333;
}
.ksc-swatch-label.selected {
	background: #d12229;
	color: #fff;
}
.ksc-swatch-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 9px;
	padding: 2px 5px;
	border-radius: 8px;
	font-weight: bold;
	white-space: nowrap;
	z-index: 2;
	line-height: 1;
}
.ksc-badge-hot {
	background: #000;
	color: #fff;
}
.ksc-badge-new {
	background: #fff;
	color: #000;
	border: 1px solid #000;
}

/* Thu gọn nội dung mô tả sản phẩm (Read More) */
.ksc-readmore-collapsed {
	position: relative;
	max-height: 400px;
	overflow: hidden;
}
.ksc-readmore-expanded {
	max-height: none !important;
}
.ksc-readmore-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 150px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 60%, rgba(255,255,255,1) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 10px;
	z-index: 10;
}
.ksc-readmore-btn {
	background: #fff;
	border: 1px solid #ccc;
	color: #666;
	padding: 8px 25px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.ksc-readmore-btn:hover {
	background: #f9f9f9;
	color: #333;
	border-color: #999;
}

/* Đổi màu link trong bài viết thành đỏ */
.woocommerce-Tabs-panel--description a, 
.elementor-widget-woocommerce-product-content a, 
.woocommerce-product-details__short-description a {
	color: #d12229;
	text-decoration: underline;
}
.woocommerce-Tabs-panel--description a:hover, 
.elementor-widget-woocommerce-product-content a:hover, 
.woocommerce-product-details__short-description a:hover {
	color: #a31a20;
}

/* Ẩn nút View Cart mặc định của WooCommerce hiện ra sau khi thêm giỏ bằng AJAX */
a.added_to_cart.wc-forward {
	display: none !important;
}
.ksc-atc-version {
	margin-bottom: 20px;
}
.ksc-version-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #666;
	letter-spacing: 1px;
	margin-bottom: 10px;
	text-transform: uppercase;
}
.ksc-version-value {
	display: inline-block;
	padding: 10px 20px;
	background: #d12229;
	color: #fff;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14px;
	cursor: default;
}
.ksc-atc-actions {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
}
.ksc-quantity-selector {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 30px;
	overflow: hidden;
	height: 50px;
	width: 120px;
}
.ksc-qty-btn {
	background: none;
	border: none;
	width: 40px;
	height: 100%;
	font-size: 20px;
	cursor: pointer;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ksc-qty-btn:hover {
	background: #f5f5f5;
}
.ksc-qty-input {
	width: 40px;
	height: 100%;
	border: none;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	-moz-appearance: textfield;
}
.ksc-qty-input::-webkit-outer-spin-button,
.ksc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.ksc-btn-add-cart {
	flex-grow: 1;
	background: #d12229 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 30px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px !important;
	height: auto !important;
	min-height: 50px;
}
.ksc-btn-add-cart:hover {
	opacity: 0.9;
}
.ksc-btn-add-cart .ksc-btn-price {
	margin-left: 5px;
}
.ksc-btn-add-cart .ksc-btn-price .woocommerce-Price-amount {
	color: #fff;
}
.ksc-btn-buy-now {
	width: 100%;
	height: 50px;
	background: #fff;
	color: #d12229;
	border: 1px solid #d12229;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}
.ksc-btn-buy-now:hover {
	background: #fdf2f2;
}
@media (max-width: 768px) {
	.ksc-atc-actions {
		flex-direction: column;
		align-items: flex-start;
	}
	.ksc-quantity-selector {
		width: 120px; /* Ngắn lại */
	}
	.ksc-quantity-selector input {
		width: 40px !important;
	}
	.ksc-btn-add-cart {
		width: 100%;
		height: 50px;
	}
	.ksc-atc-price-box {
		flex-wrap: wrap;
	}
	.ksc-atc-savings {
		width: 100%; /* Đưa xuống dòng mới */
		margin-top: -5px;
	}
}

/* Product Videos Gallery */
.ksc-product-videos-wrapper {
	margin: 30px 0;
	background: #ffffff;
	border-radius: 20px;
}
.ksc-videos-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.ksc-videos-title {
	font-weight: 900;
	font-size: 24px;
	text-transform: uppercase;
	color: #000;
	margin: 0;
}
.ksc-videos-nav {
	display: flex;
	gap: 10px;
}
.ksc-videos-prev,
.ksc-videos-next {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #333;
}
.ksc-videos-prev:hover,
.ksc-videos-next:hover {
	background: #000;
	color: #fff;
	border-color: #000;
}
.ksc-videos-container {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 5px;
	/* Hide scrollbar for cleaner look since we have arrows */
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.ksc-videos-container::-webkit-scrollbar {
	display: none;
}
.ksc-video-item {
	flex: 0 0 auto;
	/* Width = (100% - (cols-1)*gap) / cols */
	width: calc((100% - ((var(--ksc-video-cols, 4) - 1) * 15px)) / var(--ksc-video-cols));
	aspect-ratio: 9 / 16;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	scroll-snap-align: start;
	background-color: #000;
	cursor: pointer;
}
.ksc-video-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ksc-video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}
.ksc-play-icon {
	opacity: 0.8;
	transition: opacity 0.3s ease;
}
.ksc-video-item:hover .ksc-video-overlay {
	background: rgba(0,0,0,0.3);
}
.ksc-video-item:hover .ksc-play-icon {
	opacity: 1;
}
.ksc-video-item.is-playing .ksc-video-overlay {
	opacity: 0;
	pointer-events: none;
}
@media (max-width: 768px) {
	.ksc-product-videos-wrapper {
		--ksc-video-cols: 2.2 !important; /* Hiển thị 2 video và một phần của video thứ 3 trên mobile */
	}
}

/* ============================================================
   KUSANCO TICKER (MARQUEE)
   ============================================================ */
.ksc-ticker-wrapper {
	width: 100%;
	background: #e8e8e8;
	overflow: hidden;
	white-space: nowrap;
	padding: 12px 0;
	display: flex;
	position: relative;
}

.ksc-ticker-content {
	display: flex;
	align-items: center;
	animation: ksc-ticker-scroll 120s linear infinite;
	width: max-content;
}

.ksc-ticker-content:hover {
	animation-play-state: paused;
}

.ksc-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 30px;
	font-weight: 600;
	font-size: 16px;
	color: #000;
}

.ksc-ticker-item img {
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block;
}

@keyframes ksc-ticker-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media (max-width: 768px) {
	.ksc-ticker-item {
		font-size: 14px;
		padding: 0 20px;
	}
	.ksc-ticker-item img {
		width: 30px !important;
		height: 30px !important;
	}
}

/* ============================================================
   KUSANCO TABBED PRODUCTS
   ============================================================ */
.ksc-products-tabbed-container {
	margin-bottom: 40px;
}
.ksc-category-tabs {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.ksc-tab-btn {
	background: #eee;
	color: #000;
	border: none;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}
.ksc-tab-btn:hover {
	background: #ddd;
}
.ksc-tab-btn.active {
	background: #d10d01;
	color: #fff;
}
.ksc-tab-content {
	transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
	.ksc-category-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		white-space: nowrap;
		gap: 8px;
		margin-bottom: 20px;
		-ms-overflow-style: none; /* IE and Edge */
		scrollbar-width: none; /* Firefox */
	}
	.ksc-category-tabs::-webkit-scrollbar {
		display: none;
	}
	.ksc-tab-btn {
		font-size: 12px;
		padding: 6px 14px;
		flex-shrink: 0;
	}
}

/* ==========================================================================
   Categories Slider
   ========================================================================== */
.ksc-categories-heading {
	text-align: center;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 38px;
	margin-bottom: 40px;
	line-height: 1.2;
}

.ksc-category-card {
	display: block;
	position: relative;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 16/9;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	text-decoration: none;
	transition: transform 0.3s ease;
}

@media (max-width: 768px) {
	.ksc-categories-heading {
		font-size: 24px;
		margin-bottom: 25px;
	}
	.ksc-category-card {
		aspect-ratio: 4/3;
	}
}

.ksc-category-card:hover {
	transform: translateY(-5px);
}

.ksc-category-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
	z-index: 1;
}

.ksc-category-info {
	position: absolute;
	bottom: 25px;
	left: 25px;
	right: 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}

.ksc-category-title {
	color: #fff;
	font-size: 28px;
	font-weight: 900;
	margin: 0;
}

.ksc-category-arrow {
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksc-categories-pagination {
	position: relative !important;
	bottom: auto !important;
	margin-top: 30px;
}
.ksc-categories-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #999;
	opacity: 1;
	border-radius: 10px;
	transition: all 0.3s ease;
}
.ksc-categories-pagination .swiper-pagination-bullet-active {
	width: 40px;
}

/* Quick View Modal */
.ksc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.ksc-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Quick View Add to Cart Form */
.ksc-quickview-content .cart {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.ksc-quickview-content .quantity {
    display: flex;
    align-items: center;
}

.ksc-quickview-content .quantity input.qty {
    width: 60px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
}

.ksc-quickview-content .single_add_to_cart_button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 30px;
    height: 44px;
    line-height: 44px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.ksc-quickview-content .single_add_to_cart_button:hover {
    background: #d10d01;
}

/* Hide duplicated swatches if any */
.ksc-quickview-content .variations tr td.value > div:nth-of-type(2),
.ksc-quickview-content .variations tr td.value > ul:nth-of-type(2),
.ksc-quickview-content .variations tr td.value .vi-wpvs-variation-wrap:nth-of-type(2) {
    display: none !important;
}

.ksc-quickview-content .variations {
    width: 100%;
    margin-bottom: 15px;
    border: none;
}
.ksc-quickview-content .variations th, 
.ksc-quickview-content .variations td {
    padding: 10px 0;
    border: none;
    vertical-align: middle;
}
.ksc-quickview-content .variations th {
    text-align: left;
    width: 80px;
    color: #000;
}
.ksc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}
.ksc-modal-inner {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    padding: 30px;
    z-index: 10000;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.ksc-modal.active .ksc-modal-inner {
    transform: translateY(0);
}
.ksc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #666;
}
.ksc-modal-close:hover {
    color: #d10d01;
}
.ksc-quickview-content {
    display: flex;
    gap: 30px;
    align-items: center;
}
.ksc-qv-image {
    width: 45%;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}
.ksc-qv-image img {
    width: 100%;
    height: auto;
    display: block;
}
.ksc-qv-info {
    width: 55%;
}
.ksc-qv-title {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 800;
}
.ksc-qv-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.ksc-qv-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}
.ksc-qv-rating .star-rating {
    font-size: 14px;
}
.ksc-qv-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ksc-qv-price {
    font-size: 24px;
    color: #d10d01;
    font-weight: bold;
    margin-bottom: 0;
}
.ksc-qv-price del {
    color: #999;
    font-size: 16px;
    font-weight: normal;
    margin-left: 5px;
}
.ksc-qv-price ins {
    text-decoration: none;
}
.ksc-qv-saving {
    font-size: 13px;
    color: #d10d01;
    font-weight: 600;
}
.ksc-qv-buy-now {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid #d10d01;
    color: #d10d01;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    transition: all 0.3s;
}
.ksc-qv-buy-now:hover {
    background: #d10d01;
    color: #fff;
}
.ksc-qv-btn {
    display: inline-block;
    background: #d10d01;
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}
.ksc-qv-btn:hover {
    background: #a00a01;
    color: #fff;
}
.ksc-loader {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #888;
}
@media (max-width: 768px) {
    .ksc-quickview-content {
        flex-direction: column;
    }
    .ksc-qv-image, .ksc-qv-info {
        width: 100%;
    }
}

/* Toast Notification */
#ksc-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 30px;
    padding: 16px 24px;
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#ksc-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}
@media (max-width: 768px) {
    #ksc-toast.show {
        bottom: 80px;
    }
}

/* Accordion Shortcode */
.ksc-accordion-wrapper {
	margin: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.ksc-accordion-item {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 20px;
	overflow: hidden;
}
.ksc-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	cursor: pointer;
	user-select: none;
}
.ksc-accordion-title {
	margin: 0;
	font-size: 18px;
	font-weight: bold;
	color: #000;
	text-transform: uppercase;
}
.ksc-accordion-icon {
	width: 32px;
	height: 32px;
	border: 1px solid #eaeaea;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: transform 0.3s ease;
}
.ksc-accordion-icon svg {
	width: 16px;
	height: 16px;
}
.ksc-accordion-item.active .ksc-accordion-icon {
	transform: rotate(45deg);
}
.ksc-accordion-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}
.ksc-accordion-item.active .ksc-accordion-content {
	grid-template-rows: 1fr;
}
.ksc-accordion-content-inner {
	overflow: hidden;
	padding: 0 25px;
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.ksc-accordion-item.active .ksc-accordion-content-inner {
	padding: 15px 25px 25px;
}

/* Product Description & Accordion Content Headings */
.woocommerce-product-details__short-description h2,
.elementor-widget-woocommerce-product-content h2,
#tab-description h2,
.woocommerce-Tabs-panel--description h2,
.ksc-accordion-content-inner h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 12px 0 6px 0 !important;
}

.woocommerce-product-details__short-description h3,
.elementor-widget-woocommerce-product-content h3,
#tab-description h3,
.woocommerce-Tabs-panel--description h3,
.ksc-accordion-content-inner h3 {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    margin: 10px 0 5px 0 !important;
}

.woocommerce-product-details__short-description h4,
.elementor-widget-woocommerce-product-content h4,
#tab-description h4,
.woocommerce-Tabs-panel--description h4,
.ksc-accordion-content-inner h4 {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    margin: 8px 0 4px 0 !important;
}

/* Discount Badge */
.ksc-discount-badge {
    display: inline-flex;
    align-items: center;
    background-color: #d10d01;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 50px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

/* Trên trang chi tiết sản phẩm: đưa badge vào cạnh giá */
.woocommerce div.product .summary .price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Badge nằm ngay sau .price — dùng flex ordering */
.woocommerce div.product .summary .ksc-discount-badge {
    order: 10; /* Đứng sau giá gốc và giá sale */
    font-size: 13px;
    padding: 5px 11px;
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 768px) {
    .woocommerce-product-details__short-description h2,
    .elementor-widget-woocommerce-product-content h2,
    #tab-description h2,
    .woocommerce-Tabs-panel--description h2,
    .ksc-accordion-content-inner h2 {
        font-size: 15.5px !important;
    }
    .woocommerce-product-details__short-description h3,
    .elementor-widget-woocommerce-product-content h3,
    #tab-description h3,
    .woocommerce-Tabs-panel--description h3,
    .ksc-accordion-content-inner h3 {
        font-size: 14.5px !important;
    }
    .woocommerce-product-details__short-description h4,
    .elementor-widget-woocommerce-product-content h4,
    #tab-description h4,
    .woocommerce-Tabs-panel--description h4,
    .ksc-accordion-content-inner h4 {
        font-size: 13.5px !important;
    }
}

/* Category Menu Shortcode */
.ksc-category-menu-wrap {
	margin: 20px 0;
	text-align: center;
}
.ksc-category-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: center;
}
.ksc-category-menu-list li {
	margin: 0;
	padding: 0;
}
.ksc-category-menu-list .ksc-cat-link {
	display: inline-block;
	padding: 8px 16px;
	background-color: #f1f1f1;
	color: #333;
	border-radius: 20px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}
.ksc-category-menu-list .ksc-cat-link:hover,
.ksc-category-menu-list .ksc-cat-link.active {
	background-color: #d10d01;
	color: #fff;
}

/* Ẩn các thông báo WooCommerce mặc định trên toàn trang */
.woocommerce-error, 
.woocommerce-info, 
.woocommerce-message { 
	display: none !important; 
}

/* Ẩn đánh giá sao trên trang chi tiết sản phẩm */
.single-product .woocommerce-product-rating {
	display: none !important;
}

/* FAQs */
.ksc-faqs-wrapper {
	margin: 30px 0;
}
.ksc-faqs-heading {
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 20px;
}
.ksc-faq-item {
	margin-bottom: 14px;
	border-radius: 16px;
	overflow: hidden;
	background-color: #fbfbfb;
	transition: all 0.3s ease;
}
.ksc-faq-header {
	background-color: #EEEEEE;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	border-radius: 16px;
	transition: background-color 0.3s ease, border-radius 0.3s ease;
}
.ksc-faq-item.active .ksc-faq-header {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	background-color: #e5e5e5;
}
.ksc-faq-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	color: #111111;
	line-height: 1.4;
}
.ksc-faq-icon {
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #555555;
}
.ksc-faq-item.active .ksc-faq-icon {
	transform: rotate(180deg);
}
.ksc-faq-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	background-color: #fbfbfb;
	border-radius: 0 0 16px 16px;
	overflow: hidden;
}
.ksc-faq-item.active .ksc-faq-content {
	grid-template-rows: 1fr;
}
.ksc-faq-content-inner {
	overflow: hidden;
	padding: 0 20px;
	font-size: 15px;
	line-height: 1.65;
	color: #444444;
	transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.ksc-faq-item.active .ksc-faq-content-inner {
	padding: 16px 20px 20px;
}

/* Sticky Buy Bar */
.ksc-sticky-buy-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	z-index: 9999;
	padding: 10px 0;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	font-family: inherit;
}
.ksc-sticky-buy-bar.show {
	transform: translateY(0);
}
.ksc-sticky-buy-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 15px;
}
.ksc-sticky-left {
	display: flex;
	align-items: center;
	gap: 15px;
}
.ksc-sticky-image {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #eaeaec;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ksc-sticky-title {
	font-weight: 600;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #333;
}
.ksc-sticky-mobile-row1 {
	display: flex;
	align-items: center;
}
.ksc-sticky-mobile-text {
	display: none;
}
.ksc-sticky-right {
	display: flex;
	align-items: center;
	gap: 20px;
}
.ksc-sticky-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.ksc-sticky-price-regular {
	color: #999;
	text-decoration: line-through;
	font-size: 13px;
	line-height: 1.2;
}
.ksc-sticky-price-sale {
	color: #d10024;
	font-weight: bold;
	font-size: 18px;
	line-height: 1.2;
}
.ksc-sticky-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.ksc-sticky-mobile-call {
	display: none;
}
.ksc-sticky-btn {
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 15px;
	transition: all 0.2s;
	border: 1px solid transparent;
}
.ksc-sticky-btn:hover {
	opacity: 0.9;
}
.ksc-sticky-btn-installment {
	background: #fff;
	color: #2b78ff;
	border-color: #2b78ff;
}
.ksc-sticky-btn-buy {
	background: #d10024;
	color: #fff;
	border-color: #d10024;
}
.ksc-sticky-btn-cart {
	background: #d6251b;
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 0 20px;
	height: 44px;
	width: 100%;
	font-size: 15px;
	font-weight: 700;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(214, 37, 27, 0.25);
}
.ksc-sticky-btn-cart svg {
	width: 18px;
	height: 18px;
	fill: #fff;
}

@media (max-width: 768px) {
	.ksc-sticky-buy-bar {
		padding: 10px 0 12px 0;
		box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
	}
	.ksc-sticky-buy-container {
		flex-direction: row;
		padding: 0 15px;
	}
	.ksc-sticky-left {
		display: none;
	}
	.ksc-sticky-right {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.ksc-sticky-mobile-row1 {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}
	.ksc-sticky-mobile-text {
		display: block;
		font-weight: 700;
		font-size: 15px;
		color: #111;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 58%;
	}
	.ksc-sticky-price {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
	}
	.ksc-sticky-price-regular {
		font-size: 13px;
		color: #999;
	}
	.ksc-sticky-price-sale {
		font-size: 18px;
		font-weight: 800;
		color: #d6251b;
	}
	.ksc-sticky-actions {
		display: flex;
		width: 100%;
	}
	.ksc-sticky-btn-cart {
		width: 100%;
		height: 44px;
		font-size: 15px;
		border-radius: 50px;
	}
}
