/* ==========================================================================
   Header & Footer
   ========================================================================== */

html, body {
	overflow-x: clip;
}

.ksc-footer {
	background-color: #da251d; /* Đỏ Kusanco */
	color: #fff;
	padding-top: 50px;
	font-family: inherit;
}

.ksc-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Hide Default Theme Header & Footer */
header.site-header, 
footer.site-footer,
#site-header,
#site-footer,
#masthead,
#colophon {
	display: none !important;
}

/* Header Topbar */
.ksc-topbar {
	width: 100%;
	overflow: hidden;
	background-color: #222;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
}
.ksc-topbar-scroller {
	display: flex;
	width: 100%;
}
.ksc-topbar-item {
	padding: 8px 20px;
	white-space: nowrap;
	text-align: center;
}
.ksc-topbar-red {
	background-color: #da251d;
	color: #fff;
	flex: 1;
}
.ksc-topbar-gray {
	background-color: #333333;
	color: #fff;
	flex: 1;
}
.ksc-marquee-dup {
	display: none;
}

.ksc-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 999;
}

/* Main Header */
.ksc-header-main {
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 15px 0;
}

.ksc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo */
.ksc-logo img {
	height: 40px;
	display: block;
}

/* Navigation */
.ksc-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 25px;
}

.ksc-nav li {
	position: relative;
	list-style: none;
}

.ksc-nav a {
	text-decoration: none;
	color: #333;
	font-weight: 600;
	font-size: 13px;
	/* text-transform: uppercase; */
	transition: all 0.2s;
	display: block;
	padding: 10px 0;
}

.ksc-nav a:hover,
.ksc-nav li.current-menu-item > a,
.ksc-nav li.current-menu-ancestor > a {
	color: #da251d;
}

/* Chevron for items with submenu */
.ksc-nav li.menu-item-has-children > a {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ksc-nav li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 0.2s;
}

.ksc-nav li.menu-item-has-children:hover > a::after {
	transform: rotate(-135deg);
	margin-top: 2px;
}

/* Sub-menu Dropdown */
.ksc-nav ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: 220px;
	background: #fff;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	border-radius: 12px;
	padding: 10px 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s ease;
	z-index: 99;
}

.ksc-nav li:hover > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ksc-nav ul.sub-menu li {
	display: block;
}

.ksc-nav ul.sub-menu a {
	padding: 10px 20px;
	font-size: 14px;
	text-transform: none;
	font-weight: 500;
	color: #475569;
}

.ksc-nav ul.sub-menu a:hover,
.ksc-nav ul.sub-menu li.current-menu-item > a {
	color: #da251d;
	background: #f8fafc;
}

/* Header Icons */
.ksc-header-icons {
	display: flex;
	align-items: center;
	gap: 20px;
}

.ksc-header-icons a {
	color: #333;
	display: flex;
	transition: color 0.2s;
}

.ksc-header-icons a:hover {
	color: #da251d;
}

.ksc-header-icons svg {
	width: 20px;
	height: 20px;
}

/* Top Section */
.ksc-footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

.ksc-footer-contact, .ksc-footer-newsletter {
	flex: 1;
	min-width: 300px;
}

.ksc-contact-item {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.ksc-contact-item svg, .ksc-contact-item .dashicons {
	width: 28px;
	height: 28px;
	font-size: 28px;
}

.ksc-contact-item strong {
	display: block;
	font-size: 16px;
	margin-bottom: 3px;
}

.ksc-contact-item p {
	font-size: 14px;
	opacity: 0.9;
	margin: 0;
}

.ksc-social-links {
	display: flex;
	gap: 10px;
	margin-top: 30px;
}

@media (max-width: 768px) {
	.ksc-social-links {
		border-top: 1px solid rgba(255, 255, 255, 0.8);
		border-bottom: 1px solid rgba(255, 255, 255, 0.8);
		padding: 20px 0;
	}
}

.ksc-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #fff;
	color: #da251d;
	border-radius: 8px;
	text-decoration: none;
	font-weight: bold;
	font-size: 18px;
	transition: opacity 0.2s;
}

.ksc-social-icon:hover {
	opacity: 0.8;
}

.ksc-footer-newsletter strong {
	display: block;
	font-size: 20px;
	color: #fff;
	margin: 0 0 10px 0;
}

.ksc-footer-newsletter p {
	font-size: 13px;
	margin: 0 0 20px 0;
	opacity: 0.9;
	line-height: 1.5;
}

.ksc-newsletter-form {
	display: flex;
	max-width: 400px;
	background: #f1f1f1 !important;
	border-radius: 30px !important;
	padding: 3px !important;
	border: none !important;
	box-shadow: none !important;
}

.ksc-newsletter-form input,
.ksc-newsletter-form input:focus {
	flex: 1;
	background: transparent !important;
	border: none !important;
	padding: 12px 20px !important;
	color: #333 !important;
	outline: none !important;
	font-size: 14px !important;
	box-shadow: none !important;
	min-width: 250px;
	border-radius: 30px !important;
}

.ksc-newsletter-form button {
	background: #da251d !important;
	color: #fff !important;
	border: none !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-weight: bold !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.ksc-newsletter-form button .dashicons {
	color: #fff !important;
	font-size: 20px !important;
	width: 20px !important;
	height: 20px !important;
}

/* Divider */
.ksc-footer-divider {
	border: 0;
	height: 1px;
	background: rgba(255,255,255,0.2);
	margin: 40px 0;
}

/* Links */
.ksc-footer-middle {
	display: flex;
	flex-wrap: wrap;
	/* gap: 40px; */
	margin-top: 40px;
	margin-bottom: 40px;
	border-top: 1px solid rgb(255 255 255);
	padding-top: 40px;
}

.ksc-footer-widget {
	flex: 1;
	min-width: 200px;
}

.ksc-footer-widget h4 {
	color: #fff;
	font-size: 18px;
	margin: 0 0 20px 0;
}

@media (max-width: 768px) {
	.ksc-footer-widget h4 {
		position: relative;
		cursor: pointer;
		padding: 20px 0;
		margin-bottom: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.8);
	}
	.ksc-footer-widget h4::after {
		content: '+';
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		font-size: 24px;
		font-weight: 300;
	}
	.ksc-footer-widget h4.ksc-fw-active::after {
		content: '-';
	}
	.ksc-footer-menu {
		display: none;
		list-style: none;
		padding: 0 0 10px 0;
		margin: 20px 0 0 0 !important;
	}
}

.ksc-footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ksc-footer-menu li {
	margin-bottom: 12px;
}

.ksc-footer-menu a {
	color: #fff;
	text-decoration: none;
	opacity: 0.8;
	font-size: 14px;
	transition: opacity 0.2s;
}

.ksc-footer-menu a:hover {
	opacity: 1;
}

/* Bottom */
.ksc-footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ksc-bct-img {
	width: 150px !important;
	max-width: 150px !important;
	height: auto !important;
	margin-bottom: 10px;
}

.ksc-company-info {
	font-size: 13px;
	opacity: 0.8;
	line-height: 1.6;
	margin-bottom: 40px;
}

/* Copyright */
.ksc-footer-copyright {
	background-color: #000;
	color: #fff;
	text-align: center;
	padding: 15px 0;
	font-size: 13px;
	margin-top: 20px;
}
.ksc-footer-copyright .ksc-container {
	padding: 0;
}

/* ==========================================================================
   Search Overlay
   ========================================================================== */
.ksc-search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgb(0 0 0 / 71%);
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.ksc-search-overlay.ksc-active {
	opacity: 1;
	visibility: visible;
}

.ksc-search-content-wrapper {
	background: #fff;
	width: 100%;
	transform: translateY(-100%);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ksc-search-overlay.ksc-active .ksc-search-content-wrapper {
	transform: translateY(0);
}

.ksc-search-overlay-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 60px 20px 20px;
	position: relative;
	display: block;
}

.ksc-search-header {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ksc-search-form {
	display: flex;
	align-items: center;
	flex: 1;
	border: 1.5px solid #d1d5db;
	border-radius: 99px;
	padding: 4px 4px 4px 20px;
	background: #fff;
	transition: border-color 0.2s;
}

.ksc-search-form:focus-within {
	border-color: #1e293b;
}

.ksc-search-form input {
	flex: 1;
	border: none !important;
	padding: 10px 0 !important;
	font-size: 15px;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	margin: 0 !important;
	color: #1e293b;
}

.ksc-search-form button {
	background: #1e293b !important;
	border: none !important;
	padding: 0 !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: none !important;
	border-radius: 99px !important;
	margin: 0 !important;
	width: 40px !important;
	height: 40px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0;
}

.ksc-search-form button svg {
	width: 18px;
	height: 18px;
	color: #fff;
}

.ksc-search-close {
	position: static;
	right: auto;
	top: auto;
	background: transparent !important;
	border: none !important;
	color: #64748b !important;
	cursor: pointer;
	padding: 8px !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
	height: auto !important;
	flex-shrink: 0;
}

.ksc-search-close svg {
	width: 22px;
	height: 22px;
	color: #64748b;
}

.ksc-search-results {
	margin-top: 0;
	border-top: 1px solid #f1f5f9;
	padding-top: 24px;
}
.ksc-search-results:empty {
	display: none;
}

/* Live search panel layout */
.ksc-live-search-panel {
	display: flex;
	gap: 32px;
}
.ksc-live-col-title {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #000000;
	margin: 0 0 16px;
}
.ksc-live-products {
	flex: 1;
}
.ksc-live-products-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.ksc-live-product-card {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	border: 1px solid #f1f5f9;
	border-radius: 12px;
	padding: 12px;
	transition: all 0.2s;
	background: #fff;
}
.ksc-live-product-card:hover {
	border-color: #e2e8f0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	transform: translateY(-2px);
}
.ksc-live-product-img {
	width: 70px;
	height: 70px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 8px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ksc-live-product-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.ksc-live-product-info {
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	flex: 1;
}
.ksc-live-product-name {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	text-transform: uppercase;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ksc-live-product-desc {
	margin: 0;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ksc-live-product-price {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #da251d;
}
.ksc-live-product-price del {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 400;
	margin-right: 6px;
}
.ksc-live-product-price ins {
	text-decoration: none;
}

/* Footer: view all link */
.ksc-live-search-footer {
	border-top: 1px solid #f1f5f9;
	margin-top: 24px;
	padding-top: 16px;
}
.ksc-live-view-all {
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	transition: gap 0.2s;
}
.ksc-live-view-all:hover {
	gap: 10px;
	color: #da251d;
}

/* Empty state */
.ksc-live-search-empty {
	text-align: center;
	padding: 32px 0;
	color: #94a3b8;
	font-size: 14px;
}
.ksc-live-search-empty svg {
	margin-bottom: 12px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 768px) {
	.ksc-search-overlay-inner {
		padding: 16px;
	}
	.ksc-search-header {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 8px;
	}
	.ksc-search-close {
		align-self: flex-end;
	}
	.ksc-search-form {
		width: 100%;
		box-sizing: border-box;
	}
	.ksc-live-products-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.ksc-live-product-img {
		width: 60px;
		height: 60px;
	}
	.ksc-live-product-name {
		font-size: 12px;
	}
	.ksc-live-product-price {
		font-size: 13px;
	}
}

/* ==========================================================================
   Cart Offcanvas
   ========================================================================== */
.ksc-cart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.ksc-cart-overlay.ksc-active {
	opacity: 1;
	visibility: visible;
}

.ksc-cart-canvas {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	height: 100%;
	background: #fff;
	z-index: 99999;
	box-shadow: -5px 0 15px rgba(0,0,0,0.1);
	transition: right 0.4s ease;
	display: flex;
	flex-direction: column;
}

.ksc-cart-canvas.ksc-active {
	right: 0;
}

.ksc-cart-header {
	padding: 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ksc-cart-header h3 {
	margin: 0;
	font-size: 18px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ksc-cart-title-count {
	background: #da251d;
	color: #fff;
	font-size: 14px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.ksc-cart-close {
	background: none;
	border: none;
	cursor: pointer;
}

.ksc-cart-close svg {
	width: 24px;
	height: 24px;
}

/* Free Shipping Bar */
.ksc-free-shipping-bar {
	padding: 20px 20px 0;
	text-align: center;
}
.ksc-fs-text {
	font-size: 14px;
	color: #333;
	margin-bottom: 10px;
}
.ksc-fs-text strong {
	font-weight: 700;
	color: #da251d;
}
.ksc-fs-progress {
	background: #eee;
	border-radius: 10px;
	height: 6px;
	width: 100%;
	overflow: hidden;
}
.ksc-fs-progress-bar {
	background: #da251d;
	height: 100%;
	border-radius: 10px;
	transition: width 0.5s ease;
}

.ksc-cart-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ksc-cart-body .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* WooCommerce Custom Mini Cart Styles */
.ksc-cart-body ul.woocommerce-mini-cart {
	list-style: none !important;
	padding: 20px !important;
	margin: 0 !important;
	flex: 1;
	overflow-y: auto;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
	display: flex;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
	position: relative;
	align-items: flex-start;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-img {
	width: 75px;
	flex-shrink: 0;
	margin-right: 15px;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-img img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 12px; /* Screenshot style */
	display: block;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-info {
	flex: 1;
	position: relative;
}

.ksc-mc-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 5px;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove {
	color: #999;
	text-decoration: none;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.3s;
	flex-shrink: 0;
	margin-left: 10px;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove:hover {
	color: #da251d;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-title {
	font-weight: 500;
	font-size: 15px;
	color: #000;
	line-height: 1.3;
	margin: 0 0 5px 0;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-title a {
	color: inherit;
	text-decoration: none;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-meta {
	font-size: 13px;
	color: #666;
	margin-bottom: 15px;
}

.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-meta dl {
	margin: 0;
}
.ksc-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .ksc-mc-meta p {
	margin: 0;
}

.ksc-mc-price, .ksc-mc-price * {
	color: #da251d !important;
}
.ksc-mc-price {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 8px;
}

/* Quantity Selector */
.ksc-mc-qty-selector {
	display: flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 20px; /* Pill shape */
	overflow: hidden;
	background: #fff;
	width: fit-content;
}

.ksc-mc-qty-selector button {
	background: transparent;
	border: none;
	width: 32px;
	height: 32px;
	font-size: 18px;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksc-mc-qty-selector button:hover {
	background: #f5f5f5;
}

.ksc-mc-qty-selector input {
	width: 30px;
	height: 32px;
	border: none !important;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	padding: 0 !important;
	background: transparent;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #000;
}
/* Hide arrows in input number */
.ksc-mc-qty-selector input::-webkit-outer-spin-button,
.ksc-mc-qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ksc-mc-qty-selector input[type=number] {
  -moz-appearance: textfield;
}

.ksc-mc-price {
	font-weight: 700;
	font-size: 15px;
	color: #000;
}
.ksc-mc-price del {
	color: #999;
	font-size: 13px;
	font-weight: 400;
	margin-right: 5px;
}
.ksc-mc-price ins {
	text-decoration: none;
}

/* Subtotal & Buttons */
.ksc-cart-body .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	margin: 0;
	font-size: 18px;
	color: #000;
	font-weight: 700;
	background: #f9f9f9;
	margin-left: -20px;
	margin-right: -20px;
	padding-left: 20px;
	padding-right: 20px;
	border-top: 1px solid #eee;
}

.ksc-cart-body .woocommerce-mini-cart__buttons {
	margin: 0;
	padding: 20px;
	background: #f9f9f9;
	margin-left: -20px;
	margin-right: -20px;
	margin-bottom: -20px;
}

.ksc-cart-body .woocommerce-mini-cart__buttons a.ksc-checkout-btn {
	display: block;
	text-align: center;
	padding: 18px 15px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 30px;
	background: #000;
	color: #fff;
	transition: all 0.3s;
	width: 100%;
	box-sizing: border-box;
}

.ksc-cart-body .woocommerce-mini-cart__buttons a.ksc-checkout-btn:hover {
	background: #333;
}

.ksc-cart-body .woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 40px 0;
	color: #666;
	font-size: 15px;
}

/* Cart Icon Badge */
.ksc-cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	background: #da251d;
	color: #fff;
	font-size: 10px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: bold;
}

/* Empty Cart */
.ksc-empty-cart {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
}

.ksc-empty-cart-icon {
	margin-bottom: 20px;
}

.ksc-empty-title {
	font-size: 18px;
	font-weight: 700;
	color: #000;
	margin: 0 0 10px 0;
}

.ksc-empty-desc {
	font-size: 14px;
	color: #666;
	margin: 0 0 25px 0;
	line-height: 1.5;
}

.ksc-btn-continue {
	display: inline-block;
	background: #da251d; /* Brand Red */
	color: #fff;
	text-decoration: none;
	padding: 12px 30px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14px;
	transition: 0.3s;
}

.ksc-btn-continue:hover {
	background: #b81e18;
	color: #fff;
}

/* Cart Footer */
.ksc-cart-footer {
	border-top: 1px solid #eee;
	padding: 20px;
	background: #fff;
}

.ksc-cart-total-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 5px;
}

.ksc-cart-total-label strong {
	display: block;
	font-size: 18px;
	color: #000;
}

.ksc-cart-total-amount strong, .ksc-cart-total-amount strong * {
	font-size: 20px;
	color: #da251d !important;
}

.ksc-cart-total-note {
	display: block;
	font-size: 14px;
	color: #777;
	margin-bottom: 20px;
	line-height: 1.4;
}

.ksc-cart-total-amount strong {
	font-size: 18px;
	color: #000;
}

.ksc-cart-actions {
	display: flex;
	gap: 15px;
}

.ksc-btn-viewcart,
.ksc-btn-checkout {
	flex: 1;
	text-align: center;
	padding: 12px 0;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ksc-btn-viewcart {
	background: #fff;
	color: #da251d;
	border: 1px solid #da251d;
}

.ksc-btn-viewcart:hover {
	background: #f5f5f5;
	color: #da251d;
}

.ksc-btn-checkout {
	background: #da251d;
	color: #fff;
	border: 1px solid #da251d;
}

.ksc-btn-checkout:hover {
	background: #b81e18;
	color: #fff;
}

@media (max-width: 480px) {
	.ksc-cart-canvas {
		width: 100%;
		right: -100%;
	}
}

/* Mobile Header Layout */
.ksc-mobile-toggle {
	display: none;
	width: 28px;
	height: 28px;
	cursor: pointer;
	color: #1a1a1a;
}
.ksc-mobile-toggle svg {
	width: 24px;
	height: 24px;
}

/* Hide Mobile Drawer on Desktop */
.ksc-mobile-drawer,
.ksc-mobile-nav-top,
.ksc-mobile-nav-bottom {
	display: none !important;
}

@media (max-width: 991px) {
	.ksc-mobile-toggle {
		display: flex;
		flex: 1 1 0%;
		align-items: center;
	}

	.ksc-nav {
		display: none !important;
	}

	.ksc-mobile-drawer {
		display: flex !important;
		flex-direction: column;
		justify-content: space-between;
		position: fixed;
		top: 0;
		left: -400px;
		width: 310px;
		max-width: 85vw;
		height: 100vh;
		height: 100dvh;
		background: #ffffff;
		z-index: 999999 !important;
		box-shadow: 5px 0 25px rgba(0,0,0,0.15);
		transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		padding: 24px 20px 80px 20px !important;
		box-sizing: border-box;
		overflow-y: auto;
	}
	
	body.ksc-mobile-menu-open .ksc-mobile-drawer {
		left: 0;
	}

	.ksc-mobile-nav-top {
		display: block !important;
		margin-bottom: 20px;
	}

	.ksc-mobile-login-btn {
		display: flex;
		align-items: center;
		gap: 12px;
		background-color: #c8232a;
		color: #ffffff !important;
		padding: 14px 20px;
		border-radius: 16px;
		font-weight: 700;
		font-size: 17px;
		text-decoration: none !important;
		box-shadow: 0 4px 12px rgba(200, 35, 42, 0.25);
		transition: background-color 0.2s ease, transform 0.15s ease;
	}
	.ksc-mobile-login-btn:active {
		transform: scale(0.98);
	}
	.ksc-mobile-login-btn svg {
		width: 32px;
		height: 32px;
		flex-shrink: 0;
		fill: #ffffff;
	}

	.ksc-mobile-nav-body {
		flex: 1;
		overflow-y: auto;
		margin-bottom: 15px;
	}

	.ksc-mobile-nav-body ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
	}
	
	.ksc-mobile-nav-body li {
		border-bottom: 1px solid #eeeeee;
		width: 100%;
	}
	
	.ksc-mobile-nav-body li a {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 16px 4px;
		font-size: 16px;
		font-weight: 600;
		color: #111111;
		text-decoration: none;
		transition: color 0.2s ease;
		box-sizing: border-box;
	}

	.ksc-mobile-nav-body li.menu-item-has-children > a::after {
		content: '+';
		font-size: 20px;
		font-weight: 400;
		color: #111111;
		border: none;
		transform: none;
		margin: 0;
		width: auto;
		height: auto;
		transition: transform 0.2s ease;
	}

	.ksc-mobile-nav-body li.menu-item-has-children.ksc-submenu-open > a::after {
		content: '−';
		font-weight: 700;
	}
	
	/* Submenu mobile */
	.ksc-mobile-nav-body ul.sub-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		padding-left: 15px;
		margin-top: 0px;
		border-radius: 0;
		background: #fcfcfc;
		border-top: 1px solid #f0f0f0;
	}
	.ksc-mobile-nav-body ul.sub-menu li {
		border-bottom: 1px solid #f5f5f5;
	}
	.ksc-mobile-nav-body ul.sub-menu li:last-child {
		border-bottom: none;
	}
	.ksc-mobile-nav-body ul.sub-menu li a {
		font-size: 14.5px;
		font-weight: 500;
		color: #444444;
		padding: 12px 5px;
	}
	
	.ksc-mobile-nav-body li.ksc-submenu-open > ul.sub-menu {
		display: block;
	}

	.ksc-mobile-nav-bottom {
		display: flex !important;
		border-top: 1px solid #eeeeee;
		padding-top: 16px;
		justify-content: flex-end;
		margin-top: 15px;
	}

	.ksc-mobile-close-btn {
		background-color: #c8232a;
		color: #ffffff;
		border: none;
		padding: 10px 28px;
		border-radius: 50px;
		font-weight: 700;
		font-size: 15px;
		cursor: pointer;
		box-shadow: 0 4px 10px rgba(200, 35, 42, 0.2);
		transition: background-color 0.2s ease, transform 0.15s ease;
	}
	.ksc-mobile-close-btn:active {
		transform: scale(0.96);
	}
	
	.ksc-menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(0,0,0,0.5);
		z-index: 999998 !important;
		opacity: 0;
		visibility: hidden;
		transition: 0.3s ease;
	}
	
	body.ksc-mobile-menu-open .ksc-menu-overlay {
		opacity: 1;
		visibility: visible;
	}
	
	.ksc-logo {
		flex: 1 1 0%;
		display: flex;
		justify-content: center;
	}
	
	.ksc-header-icons {
		flex: 1 1 0%;
		justify-content: flex-end;
		padding-right: 5px; /* Tránh cho giỏ hàng bị sát viền khi có badge */
		gap: 15px; /* Thu hẹp khoảng cách các icon */
	}
	
	/* Ẩn bớt nút user/dashboard trên mobile để nhường chỗ cho giỏ hàng */
	.ksc-header-icons > a:nth-child(2) {
		display: none;
	}
}

/* Mobile Bottom Navigation */
.ksc-mobile-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
	z-index: 9999;
	justify-content: space-around;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid #eee;
	overflow: visible; /* Cho phép popup con hiện ra ngoài */
}
.ksc-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #777;
	text-decoration: none;
	font-size: 11px;
	font-weight: 500;
	transition: color 0.2s;
}
.ksc-nav-item svg {
	width: 24px;
	height: 24px;
	margin-bottom: 4px;
}
.ksc-nav-item:hover, .ksc-nav-item:active {
	color: #da251d;
}
.ksc-nav-icon-wrap {
	position: relative;
}
.ksc-nav-icon-wrap .ksc-cart-count {
	position: absolute;
	top: -5px;
	right: -10px;
	background: #da251d;
	color: #fff;
	font-size: 10px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

@media (max-width: 768px) {
	.ksc-mobile-bottom-nav {
		display: flex;
	}
	body {
		padding-bottom: 60px; /* Nhường chỗ cho bottom nav */
	}
}

/* Contact Modal - Center Screen */
.ksc-contact-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 99999;
	backdrop-filter: blur(3px);
}
.ksc-contact-modal-overlay.show {
	display: block;
	animation: kscFadeIn 0.2s ease;
}
.ksc-contact-modal {
	display: none;
	position: fixed;
	bottom: 50%;
	left: 50%;
	transform: translate(-50%, 50%) scale(0.9);
	width: 88%;
	max-width: 320px;
	background: #fff;
	border-radius: 20px;
	padding: 28px 20px 20px;
	z-index: 100000;
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
	text-align: center;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
	opacity: 0;
}
.ksc-contact-modal.show {
	display: block;
	animation: kscModalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes kscFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes kscModalIn {
	from { opacity: 0; transform: translate(-50%, 50%) scale(0.85); }
	to   { opacity: 1; transform: translate(-50%, 50%) scale(1); }
}
.ksc-contact-modal-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px;
}
.ksc-contact-modal-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ksc-contact-modal-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	border-radius: 14px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ksc-contact-modal-btn:active {
	transform: scale(0.97);
}
.ksc-contact-btn-zalo {
	background: #e8f0fe;
	color: #0068ff;
}
.ksc-contact-btn-zalo img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 8px;
}
.ksc-contact-btn-phone {
	background: #e8f5e9;
	color: #2e7d32;
}
.ksc-contact-btn-phone svg {
	width: 30px;
	height: 30px;
	color: #2e7d32;
	flex-shrink: 0;
}
.ksc-contact-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #f5f5f5;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.ksc-contact-modal-close svg {
	width: 16px;
	height: 16px;
	color: #555;
}

/* Animations & Mobile specific styles */
@keyframes kscMarquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@media (max-width: 849px) {
    /* Topbar Marquee */
	.ksc-topbar-scroller {
		width: 200%;
		animation: kscMarquee 15s linear infinite;
	}
	.ksc-marquee-dup {
		display: block;
	}
    /* Logo scale down */
	.ksc-logo img {
		height: 28px !important;
	}
    /* Header icons scale up */
	.ksc-header-icons svg {
		width: 24px;
		height: 24px;
	}
	.ksc-header-icons {
		gap: 15px;
	}
	.ksc-mobile-toggle svg {
		width: 28px;
		height: 28px;
	}
}
