/*
 * KidStore theme styles.
 * Layout values follow the reference design: 1270px content width, 2px borders
 * with 10px radius. Colour tone (2026-11-09, v3 "sky"): sky blue #42B6EA for the
 * menu bar and primary colour, deep blue #2389C8 for banner titles and sale
 * prices, peach #FFAA66 buy buttons with navy #17345C text, orange #E98A40
 * eyebrows, lemon #FFE681 for the active item and sale tags, white page with
 * #F3FBFF panels and #D5EDF8 borders. The variable names keep their original
 * (green / crimson) names so every rule still applies. The AVA child theme
 * pins its own palette in ava.css.
 */

/* Quicksand (variable 300–700, with Vietnamese), self-hosted. Without it browsers fell back to a
   system font and bold Vietnamese letters (ạ, ổ, ế…) rendered with mismatched accents. */
@font-face {
	font-family: 'Quicksand';
	src: url('../fonts/quicksand-var.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--ks-green: #42b6ea;
	--ks-green-dark: #2389c8;
	--ks-crimson: #d9480f; /* logo orange, deepened so white text on it stays readable */
	--ks-accent: #e98a40;
	--ks-gold: #ffe681;
	--ks-gold-text: #17345c;
	--ks-red: #e03131; /* logo red: prices and sale */
	--ks-buy: #ffaa66;
	--ks-buy-dark: #f5964a;
	--ks-buy-text: #17345c;
	--ks-menu-text: #17345c; /* text on the sky-blue bar: white is only 2.4:1 there */
	--ks-sale-bg: #ffe681;
	--ks-sale-text: #17345c;
	--ks-bg: #ffffff;
	--ks-tint: #f7f8fa;
	--ks-tint-border: #e5e8ec;
	--ks-header-h: 110px;
	--ks-text: #17345c;
	--ks-title: #17345c; /* product name: navy, so the deep-blue price stands apart */
	--ks-muted: #607080;
	--ks-border: #e5e8ec;
	--ks-soft: #f7f8fa;
	--ks-radius: 10px;
	--ks-font: 'Quicksand', sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--ks-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ks-text);
	background: var(--ks-bg);
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--ks-crimson); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 10px; left: 10px;
	z-index: 100000;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 15px;
	background: #fff;
	color: var(--ks-green);
	font-weight: 700;
}

.container {
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1300px; } }

.site-main { display: block; }

/* ---------- Buttons ---------- */
.btn-outline {
	display: inline-block;
	padding: 7px 20px;
	border: 1px solid var(--ks-green);
	border-radius: 4px;
	background: #fff;
	color: var(--ks-green);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.5;
	transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--ks-green); color: #fff; }

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--ks-green);
	color: #fff;
	font-size: 20px;
	transition: background .2s;
}
.btn-icon:hover,
.btn-icon.is-active { background: var(--ks-crimson); color: #fff; }

.view-all { margin-top: 30px; text-align: center; }

/* ---------- Header ---------- */
.header { background: #fff; }

.header-top {
	display: flex;
	align-items: center;
	gap: 30px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.header-logo { flex: 0 0 auto; width: 185px; }
.logo { display: inline-flex; flex-direction: column; color: var(--ks-green); line-height: 1; }
.logo img { max-height: 55px; width: auto; }
.logo-text {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.5px;
	text-transform: uppercase;
	color: var(--ks-green);
}
.logo-tagline {
	margin-top: 4px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ks-crimson);
}
.logo:hover { color: var(--ks-green); }

.menu-bar {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--ks-crimson);
	border-radius: 5px;
	background: #fff;
	color: var(--ks-green);
	font-size: 26px;
}

.header-search {
	position: relative;
	display: flex;
	flex: 0 1 403px;
	height: 38px;
	border: 2px solid var(--ks-green);
	border-radius: 5px;
	overflow: hidden;
}
.header-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0 10px;
	border: 0;
	outline: 0;
	color: var(--ks-text);
	background: #fff;
}
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search:focus-within { outline: 2px solid var(--ks-crimson); outline-offset: 2px; }
.header-search button {
	width: 60px;
	border: 0;
	background: var(--ks-green);
	color: #fff;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-contact {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-left: auto;
}
.header-contact li { display: flex; align-items: center; gap: 8px; }
.header-contact .icon { font-size: 30px; color: var(--ks-green); }
.header-contact span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.6; color: #000; }
.header-contact a { font-size: 16px; font-weight: 700; color: var(--ks-green); }
.header-contact a:hover { color: var(--ks-crimson); }

.header-control {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	width: 185px;
	height: 49px;
	border: 2px solid var(--ks-green);
	border-radius: var(--ks-radius);
}
.header-control .icon { font-size: 26px; color: var(--ks-green); }
.header-control a { position: relative; display: flex; align-items: center; }
.header-control .title { display: none; }
.header-control .count,
.mobile-bar .count {
	position: absolute;
	top: -8px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--ks-crimson);
	color: #fff;
	font-size: 10px;
	line-height: 18px;
	text-align: center;
}

/* ---------- Main menu ---------- */
.header-menu .container { position: relative; }
.header-nav {
	background: var(--ks-green);
	border-radius: 5px;
}
.header-nav__mobile-head,
.header-nav__cats { display: none; }

.header-nav .item_big { display: flex; flex-wrap: wrap; }
.header-nav .item_big > li { position: relative; }
.header-nav .item_big > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 17px;
	height: 44px;
	border-radius: 5px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}
.header-nav .item_big > li.active > a,
.header-nav .item_big > li:hover > a { background: var(--ks-crimson); color: #fff; }
.header-nav .item_big > li.menu-item-has-children > a::after {
	content: "";
	border: 5px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
	margin-top: 2px;
}

.header-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 240px;
	padding: 5px 0;
	background: #fff;
	border-radius: 0 0 5px 5px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .2s;
}
.header-nav .sub-menu .sub-menu { top: 0; left: 100%; border-radius: 5px; }
.header-nav li:hover > .sub-menu,
.header-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.header-nav .sub-menu li { position: relative; }
.header-nav .sub-menu a {
	display: block;
	padding: 8px 15px;
	color: var(--ks-text);
	font-size: 14px;
}
.header-nav .sub-menu a:hover { color: var(--ks-crimson); }

.nav-backdrop,
.filter-backdrop {
	position: fixed;
	inset: 0;
	z-index: 998;
	background: rgba(0, 0, 0, .5);
	display: none;
}
body.nav-open .nav-backdrop,
body.filter-open .filter-backdrop { display: block; }
body.nav-open,
body.filter-open { overflow: hidden; }

/* ---------- Section titles ---------- */
.title-module {
	position: relative;
	margin-bottom: 30px;
	text-align: center;
}
.title-module::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 21px;
	height: 1px;
	background: var(--ks-green);
}
.title-module .title-icon { display: block; margin: 0 auto 10px; }
.title-module__text { margin: 0; font-size: inherit; }
.title-module__text a,
.title-module__text span {
	position: relative;
	z-index: 1;
	display: inline-block;
	padding: 5px 20px;
	border-radius: 15px;
	background: var(--ks-green);
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.5;
	text-transform: uppercase;
}
.title-module__text a:hover { color: #fff; background: var(--ks-crimson); }

/* ---------- Category menu ---------- */
.cat-menu {
	height: 100%;
	padding: 5px;
	border: 2px solid var(--ks-green);
	border-radius: var(--ks-radius);
	background: #fff;
}
.cat-menu__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	padding: 5px 10px;
	border-radius: var(--ks-radius);
	background: var(--ks-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
}
.cat-menu__list { padding: 5px 0; }
.cat-menu__item { position: relative; }
.cat-menu__item > a {
	display: block;
	padding: 10px 30px 10px 5px;
	font-size: 16px;
	color: var(--ks-text);
	line-height: 1.5;
}
.cat-menu__item > a:hover { color: var(--ks-crimson); }

/* Category icons: every menu style (home flyout, shop/blog sidebar, mobile drawer). */
.cat-menu__item > a[style] {
	padding-left: 35px;
	background-repeat: no-repeat;
	background-size: 25px;
	background-position: 2px center;
}
.cat-menu--flyout .cat-menu__item > a:not([style]) { padding-left: 5px; }
.cat-menu__caret {
	position: absolute;
	top: 22px;
	right: 8px;
	font-size: 16px;
	color: var(--ks-text);
	transform: translateY(-50%);
	pointer-events: none;
}
.cat-menu--flyout .cat-menu__sub {
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 30;
	min-width: 260px;
	padding: 8px 0;
	border: 2px solid var(--ks-green);
	border-radius: var(--ks-radius);
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: all .2s;
}
.cat-menu--flyout .cat-menu__item:hover > .cat-menu__sub,
.cat-menu--flyout .cat-menu__item:focus-within > .cat-menu__sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.cat-menu__sub a { display: block; padding: 6px 15px; font-size: 14px; color: var(--ks-text); }
.cat-menu__sub a:hover { color: var(--ks-crimson); }

.cat-menu--accordion { height: auto; }
.cat-menu--accordion .cat-menu__item > a { padding: 8px 35px 8px 5px; font-size: 15px; }
.cat-menu--accordion .cat-menu__item > a[style] { padding-left: 35px; }
.cat-menu__toggle {
	position: absolute;
	top: 6px;
	right: 4px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
}
.cat-menu__toggle::before,
.cat-menu__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 1.5px;
	background: #333;
	transform: translate(-50%, -50%);
	transition: transform .2s;
}
.cat-menu__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.cat-menu__item.is-open > .cat-menu__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.cat-menu--accordion .cat-menu__sub { display: none; padding: 0 0 5px 15px; }
.cat-menu--accordion .cat-menu__item.is-open > .cat-menu__sub { display: block; }

/* ---------- Hero ---------- */
.section-hero { margin-top: 20px; }
.hero-grid {
	display: grid;
	grid-template-columns: 295px minmax(0, 1fr);
	gap: 30px;
}
.hero-menu { position: relative; z-index: 20; }
.hero-slider { width: 100%; border-radius: var(--ks-radius); overflow: hidden; background: var(--ks-tint); }
.hero-slider picture { display: block; }
.hero-slider img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hero-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* "Nhận Voucher": coupons under the slider (ticket cards). */
.vouchers { padding: 18px 20px 20px; border: 1px solid var(--ks-border); border-radius: var(--ks-radius); background: #fff; }
.vouchers__title { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: var(--ks-text); }
.vouchers__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 420px)); gap: 15px; }
.voucher {
	position: relative;
	display: flex;
	min-height: 110px;
	border: 1px solid var(--ks-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.voucher__left {
	position: relative;
	flex: 0 0 112px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 26px 8px 10px;
	border-right: 1px dashed var(--ks-border);
	text-align: center;
}
/* Ticket notches on the perforation. */
.voucher::before,
.voucher::after {
	content: '';
	position: absolute;
	left: 112px;
	width: 16px;
	height: 16px;
	border: 1px solid var(--ks-border);
	border-radius: 50%;
	background: #fff;
	transform: translateX(-50%);
	z-index: 1;
}
.voucher::before { top: -9px; }
.voucher::after { bottom: -9px; }
.voucher__badge {
	position: absolute;
	top: 0;
	left: 0;
	padding: 2px 12px 3px;
	border-radius: 0 0 8px 0;
	background: var(--ks-crimson);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}
.voucher__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--ks-tint);
	color: var(--ks-green-dark);
}
.voucher__icon svg { width: 30px; height: 30px; }
.voucher__icon--ship svg { width: 40px; height: 27px; }
.voucher__scope { font-size: 13px; line-height: 1.3; color: var(--ks-text); }
.voucher__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 16px 12px; }
.voucher__body p { margin: 0; }
.voucher__amount { font-size: 18px; font-weight: 700; color: var(--ks-green-dark); }
.voucher__min { font-size: 15px; color: var(--ks-text); }
.voucher__code { font-size: 13px; color: var(--ks-muted); }
.voucher__code strong { color: var(--ks-text); letter-spacing: .5px; }
.voucher__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.voucher__period { font-size: 13px; color: var(--ks-muted); white-space: nowrap; }
.voucher__save {
	flex: 0 0 auto;
	min-width: 96px;
	padding: 7px 24px;
	border: 0;
	border-radius: 20px;
	background: var(--ks-green-dark);
	color: #fff;
	font: 700 15px/1.3 var(--ks-font);
	cursor: pointer;
	transition: background .2s;
}
.voucher__save:hover { background: #159c5e; }
.voucher__save.is-saved { background: var(--ks-tint); color: var(--ks-green-dark); cursor: default; }

/* Pause/play for the autoplaying slider (not on the source site). */
.hero-slider__toggle {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #333;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--ks-text);
	font-size: 14px;
	opacity: .6;
	transition: opacity .2s;
}
.hero-slider__toggle:hover,
.hero-slider__toggle:focus-visible { opacity: 1; }
.hero-slider__toggle .icon-play,
.hero-slider__toggle.is-paused .icon-pause { display: none; }
.hero-slider__toggle.is-paused .icon-play { display: block; }

/* ---------- Swiper navigation ---------- */
.swiper-nav {
	position: absolute;
	top: 50%;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 50px;
	margin-top: -25px;
	padding: 0;
	border: 1px solid #333;
	border-radius: 5px;
	background: #fff;
	color: var(--ks-text);
	font-size: 22px;
	transition: opacity .2s;
}
.swiper-nav:hover { color: var(--ks-crimson); border-color: var(--ks-crimson); }
.swiper-nav--prev { left: 10px; }
.swiper-nav--next { right: 10px; }
.swiper-nav.swiper-button-disabled { opacity: 0; pointer-events: none; }
.swiper-nav.swiper-button-lock { display: none; }

/* ---------- Policies ---------- */
.section-policies { margin: 50px 0; }
.policies {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}
.policy {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 2px solid var(--ks-green);
	border-radius: var(--ks-radius);
	background: var(--ks-tint);
	color: var(--ks-text);
}
.policy img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.policy__text { display: block; font-size: 14px; line-height: 1.5; }
.policy__title { display: block; color: var(--ks-green); font-size: 16px; font-weight: 700; }
.policy:hover { color: var(--ks-text); border-color: var(--ks-crimson); }

.policies--stack { display: flex; flex-direction: column; gap: 15px; }
.policies--stack .policy { align-items: center; }

/* ---------- Home sections ---------- */
.section-carousel,
.section-categories,
.section-banners,
.section-tabs,
.section-blog { margin-bottom: 60px; }

.carousel-grid {
	display: grid;
	grid-template-columns: minmax(0, 403px) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}
.carousel-grid--full { grid-template-columns: minmax(0, 1fr); }
.carousel-banner { display: block; border-radius: var(--ks-radius); overflow: hidden; }
.carousel-banner img { display: block; width: 100%; height: auto; }
.carousel-main { position: relative; min-width: 0; }
.carousel-main > .swiper-nav { top: calc(50% - 34px); }
.carousel-main > .swiper-nav--prev { left: -15px; }
.carousel-main > .swiper-nav--next { right: 10px; }
.carousel-slider .swiper-slide { height: auto; }

/* Featured categories */
.categories-slider { position: relative; }
.category-card { display: block; text-align: center; }
.category-card__image {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
}
.category-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .4s;
}
.category-card:hover img { transform: scale(1.05); }
.category-card__title {
	margin: 15px 0 0;
	overflow: hidden;
	color: var(--ks-green);
	font-size: 20px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Banners */
.banner { display: block; border-radius: var(--ks-radius); overflow: hidden; }
.banner img { display: block; width: 100%; transition: transform .4s; }
.banner:hover img { transform: scale(1.03); }

/* Category tabs */
.tabs-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 295px;
	gap: 30px;
	align-items: start;
}
.tabs-title {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 30px;
}
.tab-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 5px;
	border: 0;
	background: none;
	color: var(--ks-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}
.tab-link img { width: 32px; height: 32px; object-fit: contain; }
.tab-link:hover { color: var(--ks-crimson); }
.tab-link.is-active { color: var(--ks-green); }
.tab-content { display: none; }
.tab-content.is-active { display: block; animation: ks-fade .3s; }
.tabs-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-banner { display: block; border-radius: var(--ks-radius); overflow: hidden; }
.aside-banner img { display: block; width: 100%; }

@keyframes ks-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Product cards ---------- */
.product-grid {
	display: grid;
	gap: 20px;
	align-items: start;
}
.product-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.product-card {
	position: relative;
	overflow: hidden;
	border: 2px solid var(--ks-border);
	border-radius: var(--ks-radius);
	background: #fff;
	transition: border-color .2s;
}
.product-card:hover { border-color: var(--ks-green); }
.product-card__thumb { position: relative; }
.product-card__thumb > a { display: block; aspect-ratio: 1; overflow: hidden; }
.product-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s;
}
.product-card:hover .product-card__thumb img { transform: scale(1.05); }

.badge-sale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
	padding: 0 10px;
	border-radius: 4px;
	background: var(--ks-green);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 26px;
}
.badge-sale::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 50%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: var(--ks-green);
	border-bottom: 0;
}

.product-card__actions {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateX(10px);
	transition: all .3s;
}
.product-card:hover .product-card__actions,
.product-card__actions:focus-within { opacity: 1; transform: none; }

.product-card__info { padding: 10px; }
.product-card__name {
	display: -webkit-box;
	margin: 0 0 8px;
	overflow: hidden;
	color: var(--ks-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.product-card__name a:hover { color: var(--ks-crimson); }

.badge-out {
	display: inline-block;
	margin-bottom: 2px;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--ks-green);
	color: #fff;
	font-size: 14px;
}

.price-box {
	position: relative;
	margin-bottom: 5px;
	color: var(--ks-red);
	font-size: 16px;
	font-weight: 700;
}
.price-box .price,
.price-box .price-label,
.woocommerce div.product .price-box .price { color: var(--ks-red); font-size: inherit; }
.price-box .compare-price {
	display: inline-block;
	margin-left: 10px;
	color: var(--ks-muted);
	font-size: 12px;
	font-weight: 400;
	text-decoration: line-through;
}
.price-box del { color: var(--ks-muted); font-size: 12px; font-weight: 400; }
.price-box ins { text-decoration: none; }

.product-card__consult {
	display: inline-block;
	color: var(--ks-red);
	font-size: 14px;
	font-weight: 600;
}
.product-card__consult:hover { color: var(--ks-crimson); }

.product-list-card {
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 10px 0;
	border: 2px solid var(--ks-border);
	border-radius: var(--ks-radius);
	background: #fff;
	transition: border-color .2s;
}
.product-list-card:hover { border-color: var(--ks-green); }
.product-list-card__thumb {
	position: relative;
	flex: 0 0 35%;
	max-width: 35%;
	padding: 0 10px;
}
.product-list-card__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}
.product-list-card__thumb .badge-sale { top: 0; left: auto; right: 10px; }
.product-list-card__info { flex: 0 0 65%; max-width: 65%; padding: 0 10px; }
.product-list-card__name {
	display: -webkit-box;
	min-height: 46px;
	margin: 0 0 8px;
	overflow: hidden;
	color: var(--ks-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.product-list-card .price-box { font-size: 16px; }
.product-list-card__actions { display: flex; gap: 5px; }

/* ---------- Blog cards ---------- */
.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 10px;
	border: 2px solid var(--ks-border);
	border-radius: var(--ks-radius);
	overflow: hidden;
	background: #fff;
}
.post-card__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	padding-bottom: 66.6666%;
}
.post-card__thumb img,
.post-card__noimg {
	position: absolute;
	inset: 0;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	transition: transform .5s;
}
.post-card__noimg { width: 100%; height: 100%; background: var(--ks-soft); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__date,
.post-card__comments {
	position: absolute;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	background: var(--ks-green);
	color: #fff;
	clip-path: polygon(100% 0%, 73% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
}
.post-card__date {
	top: 0;
	padding: 5px 30px 5px 5px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
}
.post-card__date > span { display: block; margin-left: 5px; font-size: 14px; font-weight: 400; }
.post-card__comments {
	top: 60px;
	gap: 5px;
	padding: 3px 25px 3px 5px;
	font-size: 14px;
}
.post-card__comments .icon { font-size: 18px; }
.post-card__title {
	margin: 20px 20px 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ks-text);
}
.post-card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.post-card__excerpt {
	display: -webkit-box;
	margin: 0 20px 15px;
	overflow: hidden;
	color: #555;
	font-size: 14px;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.post-card__more {
	align-self: flex-start;
	margin: auto 20px 20px;
	padding: 2px 20px;
	border: 1px solid var(--ks-green);
	border-radius: var(--ks-radius);
	color: var(--ks-green);
	font-size: 16px;
}
.post-card__more:hover { background: var(--ks-green); color: #fff; }
.blog-slider .swiper-slide { height: auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 30px 0;
	padding: 15px 10px;
	border-radius: var(--ks-radius);
	background: var(--ks-soft);
	color: #000;
	font-size: 14px;
}
.breadcrumb > span:last-child,
.breadcrumb > a:last-child { color: var(--ks-green); }
.breadcrumb__sep { font-size: 14px; color: #000; }

/* ---------- Shop ---------- */
.shop .section-hero { margin-bottom: 0; }
.shop-header { margin-bottom: 40px; text-align: center; }
.shop-header .title-icon { display: block; margin: 0 auto 10px; }
.shop-title {
	margin: 0 0 30px;
	color: var(--ks-green);
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
}
.subcat-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.subcat-pills a {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--ks-green);
	border-radius: 5px;
	color: var(--ks-green);
	font-size: 16px;
	font-weight: 700;
}
.subcat-pills a:hover { background: var(--ks-green); color: #fff; }
.term-description { margin-top: 20px; }

/* Hub pages: age ranges and gift occasions (inc/hubs.php) */
.hub-guide-link {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid var(--ks-green);
	border-radius: 6px;
	background: #fdf3f3;
	font-size: 15px;
	line-height: 1.5;
}
.hub-guide-link span { color: #555; }
.hub-guide-link a { color: var(--ks-green); font-weight: 700; text-decoration: underline; }
.section-ages { margin-bottom: 60px; }
.hub-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 20px;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}
.section-ages .hub-cards { margin-bottom: 0; }
.hub-cards--age { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hub-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 18px 10px 14px;
	border: 1px solid var(--ks-border);
	border-radius: var(--ks-radius);
	background: #fff;
	color: var(--ks-text);
	text-align: center;
	transition: border-color .2s, box-shadow .2s;
}
.hub-card:hover { border-color: var(--ks-green); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); color: var(--ks-text); }
.hub-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ks-tint);
}
.hub-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hub-card:hover .hub-card__image img { transform: scale(1.06); }
.hub-card__name { margin-top: 12px; color: var(--ks-green); font-size: 18px; font-weight: 700; line-height: 1.3; }
.hub-card__title { margin-top: 4px; color: #666; font-size: 13px; line-height: 1.4; }
.hub-card__count { margin-top: auto; padding-top: 8px; color: #999; font-size: 12px; }
.subcat-pills a.is-current { background: var(--ks-green); color: #fff; }
.hub-content {
	max-width: 900px;
	margin: 50px auto 0;
	padding: 30px 35px;
	border: 1px solid var(--ks-border);
	border-radius: var(--ks-radius);
	background: #fff;
}
.hub-content h2 { margin: 1.3em 0 .5em; color: var(--ks-green); font-size: 22px; }
.hub-content > h2:first-child { margin-top: 0; }
.hub-content h3 { margin: 1em 0 .3em; font-size: 16px; }
.hub-content ul li { margin-bottom: .35em; }
.vouchers-embed { margin: 1.5em 0; }
.vouchers-embed .vouchers { padding: 0; border: 0; }
.vouchers-embed .vouchers__title { display: none; }
.rte .hub-cards a { text-decoration: none; }
.rte ul.hub-cards { list-style: none; padding-left: 0; }
.rte ul.hub-cards li { margin: 0; }
/* Trademark note at the end of the "kiểu LEGO" hub and building-set categories. */
.brand-note { margin-top: 1.5em; padding-top: .8em; border-top: 1px dashed rgba(23,52,92,.15); color: #6b7280; font-size: 13px; }
.rte .woocommerce { margin: 1em 0 .5em; }
.rte .woocommerce a { text-decoration: none; }
.hotline-link { font-weight: 700; white-space: nowrap; }

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 15px;
}
.btn-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: var(--ks-green);
	color: #fff;
	font-size: 22px;
}
.btn-filter:hover { background: var(--ks-crimson); }
.sort-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.sort-pills__label { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.sort-pills__label .icon { font-size: 20px; }
.sort-pill {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--ks-crimson);
	border-radius: 5px;
	color: var(--ks-text);
	font-size: 14px;
}
.sort-pill:hover,
.sort-pill.is-active { background: var(--ks-crimson); color: #fff; }

.woocommerce-pagination,
.navigation.pagination { margin: 30px 0; text-align: center; }
.woocommerce nav.woocommerce-pagination ul,
.nav-links { display: inline-flex; flex-wrap: wrap; gap: 5px; border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.nav-links .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 6px !important;
	border: 1px solid var(--ks-border) !important;
	border-radius: 3px;
	color: var(--ks-text);
	font-size: 14px;
	line-height: 1 !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.nav-links .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.nav-links a.page-numbers:hover { background: var(--ks-green) !important; border-color: var(--ks-green) !important; color: #fff !important; }

.shop-filter {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 999;
	width: 300px;
	max-width: 85vw;
	padding: 15px;
	overflow-y: auto;
	background: #fff;
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .3s, visibility 0s .3s;
}
body.filter-open .shop-filter { transform: none; visibility: visible; transition: transform .3s; }
body.admin-bar .shop-filter { top: var(--wp-admin--admin-bar--height, 0px); }
.shop-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
	color: var(--ks-green);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}
.shop-filter__head button,
.header-nav__mobile-head button {
	display: flex;
	padding: 5px;
	border: 0;
	background: none;
	color: var(--ks-text);
	font-size: 22px;
}
.shop-filter .widget { margin-bottom: 20px; }
.widget-title {
	margin-bottom: 10px;
	padding: 8px 10px;
	border-radius: var(--ks-radius);
	background: var(--ks-green);
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
}

/* ---------- Single product ---------- */
.product-title {
	margin: 0 0 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--ks-border);
	color: var(--ks-title);
	font-size: 30px;
	font-weight: 700;
}
.product-top {
	display: grid;
	grid-template-columns: 400px minmax(0, 1fr) 260px;
	gap: 30px;
	align-items: start;
	margin-bottom: 20px;
}
.product-gallery { position: relative; min-width: 0; }
.product-gallery .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}
.product-gallery .onsale { display: none; }
.product-gallery .woocommerce-product-gallery__image img { border-radius: 5px; }
.product-gallery .woocommerce-product-gallery__trigger { display: none; }
.product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px !important; }
.product-gallery .flex-control-thumbs li { width: 85px !important; float: none !important; margin: 0 !important; }
.product-gallery .flex-control-thumbs img {
	border: 2px solid var(--ks-border);
	border-radius: 5px;
	opacity: 1 !important;
}
.product-gallery .flex-control-thumbs img.flex-active,
.product-gallery .flex-control-thumbs img:hover { border-color: var(--ks-green); }
.gallery-wishlist {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 9;
	width: 40px;
	height: 38px;
	font-size: 22px;
}

.single-product-layout .summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}
.single-meta { display: grid; gap: 6px; margin-bottom: 15px; padding: 12px 14px; border: 1px solid var(--ks-tint-border); border-radius: 10px; background: var(--ks-tint); font-size: 15px; }
.single-meta__item { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; align-items: baseline; line-height: 1.5; }
.single-meta__label { color: var(--ks-muted); }
.single-meta__value,
.single-meta__value a { color: var(--ks-text); font-weight: 600; }
.single-meta__value a:hover { color: var(--ks-crimson); text-decoration: underline; }
.single-meta__stock { display: inline-block; padding: 0 10px; border-radius: 999px; background: #e3f6ea; color: #1d7a45; font-size: 13px; font-weight: 700; line-height: 24px; }
.single-meta__stock.is-out { background: #fdeaea; color: #b42318; }

.single-product-layout .summary .price-box { font-size: 30px; margin-bottom: 5px; }
.single-product-layout .summary .price-box .compare-price,
.single-product-layout .summary .price-box .woocommerce-price-suffix { font-size: 16px; }
.single-saving { margin-bottom: 10px; font-size: 14px; }
.single-saving span { color: var(--ks-red); }

.single-excerpt { margin-bottom: 30px; }
.single-excerpt__title {
	display: inline-block;
	margin: 0 0 15px;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--ks-green);
	color: var(--ks-green);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}
.single-excerpt__body { font-size: 14px; }
.single-excerpt__body.is-clamped { max-height: 110px; overflow: hidden; }
.single-excerpt__body p { margin-bottom: 8px; }
.single-excerpt__more { padding: 0; border: 0; background: none; color: var(--ks-text); font-size: 14px; font-weight: 700; cursor: pointer; }

.single-product-layout form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 30px !important;
}
.single-product-layout form.cart::before,
.single-product-layout form.cart::after { display: none !important; }
.single-product-layout form.cart .quantity { float: none !important; margin: 0 !important; }
.single-product-layout form.cart .qty {
	width: 70px;
	height: 44px;
	border: 2px solid var(--ks-border);
	border-radius: 5px;
	text-align: center;
}
.single-product-layout form.cart .single_add_to_cart_button {
	float: none !important;
	min-width: 200px;
	height: 44px;
	padding: 0 25px !important;
	border-radius: 5px !important;
	background: var(--ks-buy) !important;
	color: var(--ks-buy-text) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
}
.single-product-layout form.cart .single_add_to_cart_button:hover { background: var(--ks-buy-dark) !important; }
.single-product-layout .stock { color: var(--ks-green) !important; }
.single-product-layout .stock.out-of-stock { color: var(--ks-red) !important; }
.single-product-layout form.variations_form,
.single-product-layout form.grouped_form { display: block; }
.single-product-layout table.variations,
.single-product-layout table.group_table { width: 100%; margin-bottom: 15px !important; }
.single-product-layout table.variations th.label { width: 1%; padding-right: 15px !important; white-space: nowrap; }
.single-product-layout table.variations select {
	min-width: 220px;
	height: 40px;
	padding: 0 10px;
	border: 2px solid var(--ks-border);
	border-radius: 5px;
	background: #fff;
}
.single-product-layout table.group_table td { padding: 6px 10px 6px 0; vertical-align: middle; }
.single-product-layout .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce .single-product-layout .woocommerce-variation-price .price,
.single-product-layout .group_table .amount { color: var(--ks-red); font-weight: 700; }
.woocommerce .single-product-layout .woocommerce-variation-price .price { font-size: 22px; }

.promo-box {
	position: relative;
	margin-top: 25px;
	padding: 30px 20px 10px 15px;
	border: 2px solid var(--ks-green);
	border-radius: var(--ks-radius);
}
.promo-box__title {
	position: absolute;
	top: -22px;
	left: 15px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 15px;
	border: 2px solid var(--ks-green);
	border-radius: 20px;
	background: #fff;
	color: var(--ks-green);
	font-size: 14px;
	font-weight: 700;
}
.promo-box__title .icon { font-size: 24px; color: var(--ks-crimson); }
.promo-box li {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 14px;
	color: var(--ks-text);
}
.promo-box li .icon { margin-top: 3px; font-size: 16px; color: #16a34a; }

.aside-title {
	margin-bottom: 15px;
	padding: 12px 10px;
	border-radius: var(--ks-radius);
	background: var(--ks-green);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.product-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 295px;
	gap: 30px;
	align-items: start;
	margin-bottom: 50px;
}
.product-tabs__nav {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin-bottom: 20px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.product-tabs__nav::-webkit-scrollbar { display: none; }
.product-tabs__link {
	flex: 1 0 auto;
	white-space: nowrap;
	padding: 10px 14px;
	border: 1px solid var(--ks-border);
	border-radius: 5px 5px 0 0;
	background: var(--ks-soft);
	color: var(--ks-text);
	font-size: 14px;
	text-transform: uppercase;
}
.product-tabs__link:hover { color: var(--ks-green); }
.product-tabs__link.is-active {
	border-color: var(--ks-green);
	background: var(--ks-green);
	color: #fff;
	font-weight: 600;
}
.product-tabs__panel { display: none; }
.product-tabs__panel.is-active { display: block; animation: ks-fade .3s; }
.product-tabs__panel table.shop_attributes { margin-bottom: 0; }

/* Quick facts under the short description (age, material, pieces, power). */
.product-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-facts__item { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--ks-tint-border); border-radius: 10px; background: var(--ks-tint); min-width: 0; }
.product-facts__label { font-size: 12px; color: #6b7a6b; text-transform: uppercase; letter-spacing: .02em; }
.product-facts__value { font-size: 15px; color: var(--ks-green-dark, #1f5a1f); font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 992px) { .product-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* "Thong so" tab */
.product-specs { width: 100%; max-width: 760px; border-collapse: collapse; margin: 0 0 12px; font-size: 15px; }
.product-specs th,
.product-specs td { padding: 10px 14px; border: 1px solid #e6e6e6; text-align: left; vertical-align: top; }
.product-specs th { width: 34%; font-weight: 600; color: var(--ks-text); background: #f7f7f7; }
.product-specs tbody tr:nth-child(even) td { background: #fcfcfc; }
.product-specs__note { font-size: 13px; color: #777; margin: 0; }
@media (max-width: 575px) {
	.product-specs th { width: 42%; }
	.product-specs th,
	.product-specs td { padding: 8px 10px; font-size: 14px; }
}
.product-tabs__panel #reviews #comments h2,
.product-tabs__panel #reviews #reply-title { font-size: 18px; }
.product-bottom__main .up-sells { margin-top: 40px; }
.product-bottom__main .up-sells > h2 {
	margin: 0 0 20px;
	color: var(--ks-green);
	font-size: 20px;
	text-align: center;
	text-transform: uppercase;
}
.product-bottom__aside { display: flex; flex-direction: column; gap: 15px; }
.product-bottom__aside .aside-title { margin-bottom: 0; }
.same-products { display: flex; flex-direction: column; gap: 15px; }
.same-products .product-list-card__name { min-height: 0; }

/* ---------- Content ---------- */
.rte { font-size: 14px; line-height: 1.7; overflow-wrap: break-word; }
.rte img { height: auto; border-radius: 5px; }
.rte h2 { font-size: 22px; }
.rte h3 { font-size: 18px; }
.rte ul,
.rte ol { margin: 0 0 1em; padding-left: 20px; }
.rte ul { list-style: disc; }
.rte a { color: var(--ks-green); text-decoration: underline; }
.rte table { width: 100%; margin-bottom: 1em; border-collapse: collapse; }
.rte td,
.rte th { padding: 6px 8px; border: 1px solid var(--ks-border); }
.rte iframe { max-width: 100%; }
.rte .aligncenter { display: block; margin: 0 auto 1em; }
.rte .alignleft { float: left; margin: 0 15px 10px 0; }
.rte .alignright { float: right; margin: 0 0 10px 15px; }
.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption img { display: block; }
.wp-caption-text,
.gallery-caption { margin-top: 5px; color: var(--ks-muted); font-size: 13px; text-align: center; }
.sticky .post-card__title a { color: var(--ks-crimson); }
.bypostauthor > .comment-body { border-color: var(--ks-green); }
/* Category cards from the "Show categories" shop display. */
.product-card--category > a { display: block; padding-bottom: 10px; color: var(--ks-text); text-align: center; }
.product-card--category img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.product-card--category .woocommerce-loop-category__title { margin: 10px 10px 0; font-size: 15px; font-weight: 700; }
.product-card--category .woocommerce-loop-category__title .count { background: none; color: #777; font-weight: 400; }
.page-links { clear: both; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; font-weight: 700; }

.page-default { padding-bottom: 50px; }
.page-heading {
	margin: 0 0 20px;
	color: var(--ks-green);
	font-size: 24px;
	font-weight: 700;
}
.not-found { padding: 60px 15px; text-align: center; }
.not-found .title-icon { display: block; margin: 0 auto 15px; }

/* ---------- Blog ---------- */
.blog-page { padding-bottom: 50px; }
.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 295px;
	gap: 30px;
	align-items: start;
}
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.blog-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-box {
	padding: 5px;
	border: 2px solid var(--ks-green);
	border-radius: var(--ks-radius);
}
.aside-box .aside-title { margin-bottom: 10px; }
.aside-posts li {
	display: flex;
	gap: 10px;
	padding: 8px 5px;
	border-bottom: 1px solid var(--ks-border);
}
.aside-posts li:last-child { border-bottom: 0; }
.aside-posts__thumb { flex: 0 0 90px; }
.aside-posts__thumb img { display: block; width: 90px; height: 90px; object-fit: cover; border-radius: 5px; }
.aside-posts__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ks-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.article__title { margin-bottom: 8px; color: var(--ks-text); font-size: 26px; font-weight: 700; }
.article__meta { margin-bottom: 20px; color: #777; font-size: 13px; }
.article__meta a { color: var(--ks-green); }

.comments-area { margin-top: 40px; }
.comments-title,
.comment-reply-title { margin-bottom: 15px; font-size: 20px; font-weight: 700; }
.comment-list { margin: 0 0 30px; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: 30px; list-style: none; }
.comment-body { margin-bottom: 15px; padding: 15px; border: 1px solid var(--ks-border); border-radius: 5px; }
.comment-meta { margin-bottom: 8px; font-size: 13px; color: #777; }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--ks-text); }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata a { color: #777; }
.comment-content { font-size: 14px; line-height: 1.7; }
.comment-respond p { margin-bottom: 12px; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--ks-border);
	border-radius: 5px;
}
.comment-respond .submit {
	padding: 8px 20px;
	border: 0;
	border-radius: 5px;
	background: var(--ks-green);
	color: #fff;
	font-weight: 700;
}

/* ---------- WooCommerce pages ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
	border-radius: 5px !important;
	background: var(--ks-green) !important;
	color: #fff !important;
	font-weight: 700;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--ks-crimson) !important; }
.woocommerce-message,
.woocommerce-info { border-top-color: var(--ks-green) !important; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--ks-green) !important; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	padding: 8px 10px;
	border: 1px solid var(--ks-border);
	border-radius: 5px;
}
.woocommerce .woocommerce-Price-amount { white-space: nowrap; }
.wc-block-components-product-name { color: var(--ks-text) !important; font-weight: 600; }
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button { min-height: 48px; }

/* ---------- Footer ---------- */
.footer {
	margin-top: 40px;
	border-top: 1px solid var(--ks-green);
	background: url(../img/footer-bg.png) center top / contain no-repeat;
}
.mid-footer { padding: 50px 0 30px; color: #000; }
.footer-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 30px;
}
.footer .logo img { max-height: 50px; }
.ft-description { margin-top: 15px; font-size: 14px; line-height: 1.5; }
.title-menu {
	position: relative;
	margin: 0 0 25px;
	padding-bottom: 20px;
	font-size: 16px;
	font-weight: 700;
	color: #000;
}
.title-menu::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	max-width: 275px;
	height: 14px;
	background: url(../img/footer-title-brush.png) left bottom / cover no-repeat;
}
.title-menu2::after { background-color: #e93a3a; } /* red of the "Z" in the logo */
.title-menu3::after { background-color: #009b50; }
.title-menu4::after { background-color: #fce485; }
.title-menu5::after { background-color: #4c7296; }
.down_icon { display: none; }
.footer .list-menu li { margin-bottom: 12px; }
.footer .list-menu a { font-size: 14px; color: #000; }
.footer .list-menu a:hover { color: var(--ks-crimson); }
.contact-list li { margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.contact-list b { font-weight: 700; }
.fanpage { max-width: 100%; border: 0; }

.footer-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin-top: 30px;
	text-align: center;
}
.footer-links__title { margin-bottom: 15px; font-size: 16px; font-weight: 700; }
.social,
.thanhtoan { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social img { width: 32px; height: 32px; object-fit: contain; }
.thanhtoan img { width: 54px; height: 33px; object-fit: contain; }

.footer-legal {
	border-top: 1px solid rgba(0, 0, 0, .08);
	background: #fff;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ks-text);
}
.footer-legal .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.footer-legal__text b { display: block; font-weight: 700; color: #000; }
.footer-bct {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--ks-green);
	border-radius: 6px;
	color: var(--ks-green);
	font-size: 12px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.footer-bct svg { width: 26px; height: 26px; flex: none; }
.footer-bct b { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.footer-bct:hover { background: var(--ks-green); color: #fff; }

#copyright {
	padding: 10px 0;
	background: var(--ks-green);
	color: #fff;
	font-size: 14px;
	text-align: center;
}
#copyright b { font-weight: 700; }

/* ---------- Floating widgets ---------- */
.backtop {
	position: fixed;
	right: 15px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 5px;
	background: var(--ks-green);
	color: #fff;
	font-size: 22px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .3s;
}
.backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { background: var(--ks-crimson); color: #fff; }

.float-contact {
	position: fixed;
	left: 15px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.float-contact__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 15px 5px 5px;
	border-radius: 25px;
	background: var(--ks-green);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.float-contact__btn--zalo { background: #0068ff; }
.float-contact__btn:hover { color: #fff; filter: brightness(1.1); }
.float-contact__btn img { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 3px; }

.wholesale-btn {
	position: fixed;
	right: 15px;
	bottom: 75px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 20px;
	background: var(--ks-crimson);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.wholesale-btn:hover { color: #fff; filter: brightness(1.1); }
.wholesale-btn .icon { font-size: 18px; }

.mobile-bar { display: none; }

.kidstore-toast {
	position: fixed;
	left: 50%;
	bottom: 30px;
	z-index: 10000;
	padding: 10px 20px;
	border-radius: 5px;
	background: var(--ks-green);
	color: #fff;
	font-size: 14px;
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: all .3s;
	pointer-events: none;
}
.kidstore-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.wishlist-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ks-muted); }

/* ================= Responsive ================= */

@media (max-width: 1199px) {
	.header-top { gap: 20px; }
	.header-contact { gap: 15px; }
	.header-email { display: none !important; }
	.header-nav .item_big > li > a { padding: 0 12px; font-size: 15px; }
	.hero-grid { grid-template-columns: 260px minmax(0, 1fr); }
	.policies { gap: 15px; }
	.product-grid--6,
	.product-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.product-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.product-top { grid-template-columns: 340px minmax(0, 1fr); }
	.product-policies { grid-column: 1 / -1; }
	.product-policies .policies--stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product-list-card__thumb .badge-sale { padding: 0 5px; font-size: 10px; line-height: 20px; }
	.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-info { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
	.hub-cards--age { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body { padding-bottom: 60px; }

	.header-top {
		flex-wrap: wrap;
		gap: 10px;
		padding-top: 15px;
		padding-bottom: 10px;
	}
	.header-logo { flex: 0 0 100%; width: auto; text-align: center; }
	.header-logo .logo { align-items: center; }
	.header-logo .logo img { max-height: 70px; }
	.menu-bar { display: inline-flex; }
	.header-search { flex: 1 1 0; }
	.header-contact,
	.header-control { display: none; }

	.header-menu .container { padding: 0; }
	.header-nav {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 999;
		width: 300px;
		max-width: 85vw;
		padding: 10px 15px 20px;
		overflow-y: auto;
		background: #fff;
		border-radius: 0;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .3s, visibility 0s .3s;
	}
	body.nav-open .header-nav { transform: none; visibility: visible; transition: transform .3s; }
	body.admin-bar .header-nav { top: var(--wp-admin--admin-bar--height, 0px); }
	.header-nav__mobile-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 10px;
	}
	.header-nav__mobile-head .logo img { max-height: 40px; }
	.header-nav__mobile-head .logo-text { font-size: 22px; }
	.header-nav .item_big { display: block; margin-bottom: 15px; }
	.header-nav .item_big > li > a {
		height: auto;
		padding: 10px;
		border-bottom: 1px solid var(--ks-border);
		border-radius: 0;
		color: var(--ks-text);
		font-size: 15px;
	}
	.header-nav .item_big > li.active > a,
	.header-nav .item_big > li:hover > a { background: none; color: var(--ks-crimson); }
	.header-nav .item_big > li.menu-item-has-children > a::after { display: none; }
	.header-nav .sub-menu,
	.header-nav .sub-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 15px;
		box-shadow: none;
		opacity: 1;
		/* Inherit, so links stay hidden (and out of the Tab order) while the drawer is closed. */
		visibility: inherit;
		transform: none;
	}
	.header-nav__cats { display: block; }

	.section-hero { margin-top: 0; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-menu { display: none; }
	.hero-slider .swiper-nav { width: 26px; height: 40px; margin-top: -20px; }
	.hero-main { gap: 15px; }
	.vouchers { padding: 14px 15px 15px; }
	.vouchers__title { font-size: 18px; }
	.vouchers__list { grid-template-columns: minmax(0, 1fr); }
	.voucher__left { flex-basis: 96px; padding-top: 24px; }
	.voucher::before, .voucher::after { left: 96px; }
	.voucher__body { padding: 12px 12px 10px; }
	.voucher__period { font-size: 12px; }
	.voucher__save { min-width: 0; padding: 6px 16px; font-size: 14px; }

	.section-policies { margin: 20px 0 30px; }
	.policies {
		display: flex;
		gap: 10px;
		margin-right: -15px;
		padding-right: 15px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.policies::-webkit-scrollbar { display: none; }
	.policies .policy { flex: 0 0 300px; scroll-snap-align: start; }
	.policies--stack { display: grid; margin: 0; padding: 0; overflow: visible; }
	.policies--stack .policy { flex: none; }

	.carousel-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.carousel-main > .swiper-nav--prev { left: 0; }
	.carousel-main > .swiper-nav--next { right: 0; }
	.tabs-grid,
	.product-bottom,
	.blog-layout { grid-template-columns: minmax(0, 1fr); }
	.tabs-title {
		display: flex;
		margin-bottom: 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.tabs-title::-webkit-scrollbar { display: none; }
	.tab-link { flex: 0 0 120px; }
	.product-grid--6,
	.product-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.product-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.product-card__actions { display: none; }
	/* On the wishlist page the heart is the only way to remove an item. */
	.js-wishlist-page .product-card__actions { display: flex; opacity: 1; transform: none; }

	.product-top { grid-template-columns: minmax(0, 1fr); }
	.product-title { font-size: 24px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.footer { margin-bottom: 0; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.backtop { bottom: 75px; }
	.wholesale-btn { bottom: 125px; }
	.float-contact { bottom: 75px; }
	.float-contact__btn { padding: 5px; }
	.float-contact__btn span { display: none; }

	.mobile-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 95;
		display: flex;
		height: 60px;
		background: #fff;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .12);
	}
	.mobile-bar a {
		position: relative;
		display: flex;
		flex: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		color: var(--ks-green);
		font-size: 14px;
		font-weight: 700;
	}
	.mobile-bar .icon { font-size: 26px; }
	.mobile-bar .count { top: 4px; right: calc(50% - 24px); }
	.mobile-bar a.mobile-bar__buy {
		flex: 1.4;
		background: var(--ks-crimson);
		color: #fff;
		font-size: 13px;
	}
	.product-buy-anchor { display: block; scroll-margin-top: 80px; }
}

@media (max-width: 767px) {
	.hub-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
	.hub-cards--age { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.hub-cards--age .hub-card__image { width: 60px; height: 60px; }
	.hub-cards--age .hub-card__name { font-size: 13px; }
	.hub-cards--age .hub-card__count { font-size: 11px; }
	.hub-card { padding: 12px 6px 10px; }
	.hub-card__image { width: 84px; height: 84px; }
	.hub-card__name { font-size: 15px; }
	.hub-card__title { display: none; }
	.hub-content { margin-top: 30px; padding: 20px 16px; }
	.hub-content h2 { font-size: 19px; }
	.section-ages { margin-bottom: 40px; }
	.hero-slider .has-mobile img { height: auto; aspect-ratio: auto; }
	.title-module__text a,
	.title-module__text span { font-size: 20px; }
	.title-module::after { bottom: 20px; }
	.section-carousel,
	.section-categories,
	.section-banners,
	.section-tabs,
	.section-blog { margin-bottom: 40px; }
	.category-card__title { font-size: 18px; }
	.product-grid--6,
	.product-grid--5,
	.product-grid--4,
	.product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
	.product-card__name { font-size: 14px; }
	.product-tabs__link { flex: 0 0 auto; padding: 10px 12px; font-size: 13px; }
	.single-product-layout .summary .price-box { font-size: 24px; }
	.product-policies .policies--stack { grid-template-columns: minmax(0, 1fr); }
	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.breadcrumb { margin: 15px 0; }

	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
	.footer-click .title-menu {
		display: flex;
		justify-content: space-between;
		margin-bottom: 10px;
		padding-bottom: 0;
		cursor: pointer;
	}
	.footer-grid .title-menu::after { display: none; }
	.footer-click .down_icon { position: relative; display: block; width: 14px; height: 14px; }
	.footer-click .down_icon::before,
	.footer-click .down_icon::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 0;
		width: 14px;
		height: 1.5px;
		background: #333;
	}
	.footer-click .down_icon::after { transform: rotate(90deg); transition: transform .2s; }
	.footer-click.is-open .down_icon::after { transform: rotate(0); }
	.footer-click .list-menu { display: none; }
	.footer-click.is-open .list-menu { display: block; }
	.footer-links { grid-template-columns: minmax(0, 1fr); gap: 15px; text-align: left; }
	.footer-links .social,
	.footer-links .thanhtoan { justify-content: flex-start; }
}

@media (max-width: 500px) {
	.price-box { min-height: 44px; font-size: 12px; }
	.price-box .compare-price { display: block; margin-left: 0; font-size: 10px; }
	.product-list-card .price-box { min-height: 0; font-size: 16px; }
	.product-list-card .price-box .compare-price { display: inline-block; margin-left: 5px; font-size: 12px; }
	.product-card__consult { font-size: 13px; }
	.policies .policy { flex-basis: 85%; }
	.post-card__title { margin: 15px 10px 10px; font-size: 16px; }
	.post-card__excerpt { margin: 0 10px 10px; }
	.post-card__more { margin: auto 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}

/* ---------- Blog post: table of contents, product cards, FAQ ---------- */
.post-toc {
	margin: 20px 0 28px;
	padding: 16px 20px;
	background: var(--ks-tint);
	border: 1px solid var(--ks-tint-border);
	border-radius: var(--ks-radius);
}
.post-toc__title {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	color: var(--ks-green);
}
.post-toc ol {
	margin: 0;
	padding-left: 22px;
	columns: 2;
	column-gap: 24px;
}
.post-toc li {
	margin: 4px 0;
	break-inside: avoid;
	font-size: 14px;
}
.post-toc a {
	color: var(--ks-text);
	text-decoration: none;
}
.post-toc a:hover {
	color: var(--ks-crimson);
}
.rte h2[id] {
	scroll-margin-top: 90px;
}
.post-product {
	display: flex;
	gap: 18px;
	margin: 18px 0;
	padding: 14px;
	border: 1px solid var(--ks-border);
	border-radius: var(--ks-radius);
	background: #fff;
}
.post-product__image {
	flex: 0 0 160px;
	width: 160px;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: var(--ks-soft);
}
.post-product__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}
.post-product__body {
	flex: 1;
	min-width: 0;
}
.rte .post-product h3 {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.35;
}
.post-product h3 a {
	color: var(--ks-green);
	text-decoration: none;
}
.post-product h3 a:hover {
	color: var(--ks-crimson);
}
.rte .post-product p {
	margin: 0 0 8px;
	font-size: 14px;
}
.post-product__price strong {
	color: var(--ks-crimson);
	font-size: 15px;
}
/* ".rte a" (red, underlined) would otherwise win and paint the label the button's own colour. */
.post-product__btn,
.rte .post-product__btn {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 20px;
	background: var(--ks-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.post-product__btn:hover,
.rte .post-product__btn:hover {
	background: var(--ks-green-dark);
	color: #fff;
}
/* Extra real photos and the shop's product video, full width under the card. */
.post-product {
	flex-wrap: wrap;
}
.post-product__gallery {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.rte .post-product__gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0;
	border-radius: 8px;
	background: var(--ks-soft);
}
.rte .post-product__video {
	flex: 0 0 100%;
	margin: 0;
}
.post-product__video video {
	display: block;
	width: 100%;
	max-height: 420px;
	border-radius: 8px;
	background: #000;
}
.rte .post-product__video figcaption {
	margin-top: 4px;
	font-size: 13px;
	color: var(--ks-muted, #666);
}
/* Illustrations in blog posts (scripts/make_post_illustrations.py). */
.rte .post-figure {
	margin: 24px 0;
}
.rte .post-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.rte .post-figure figcaption {
	margin-top: 6px;
	font-size: 13px;
	color: var(--ks-muted, #666);
	text-align: center;
}
.post-faq {
	margin-top: 32px;
	padding: 20px 22px;
	background: var(--ks-soft);
	border-radius: var(--ks-radius);
}
.rte .post-faq h2 {
	margin-top: 0;
}
.rte .post-faq h3 {
	margin: 16px 0 6px;
	font-size: 16px;
}
.rte .post-faq p {
	margin: 0;
	font-size: 14px;
}
@media (max-width: 767px) {
	.post-toc ol {
		columns: 1;
	}
	.post-product {
		gap: 12px;
		padding: 10px;
	}
	.post-product__image {
		flex-basis: 96px;
		width: 96px;
	}
	.rte .post-product h3 {
		font-size: 15px;
	}
	.rte .post-product p {
		font-size: 13px;
	}
}

/* ---------- Quote form (Mua sỉ, Trường mầm non) ---------- */
.quote-form {
	margin: 24px 0;
	padding: 24px;
	border: 2px solid var(--ks-green);
	border-radius: var(--ks-radius);
	background: #fff;
}
.quote-form__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 20px;
}
.quote-form__field { margin: 0 0 12px; }
.quote-form__field--quote_need,
.quote-form__actions,
.quote-form__notice { grid-column: 1 / -1; }
.quote-form__field label { display: block; margin-bottom: 4px; font-weight: 700; color: var(--ks-green); }
.quote-form__req { color: var(--ks-crimson); }
.quote-form__field input,
.quote-form__field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ks-border);
	border-radius: 5px;
	background: #fff;
	line-height: 1.4;
}
.quote-form__field input:focus,
.quote-form__field textarea:focus { outline: none; border-color: var(--ks-green); box-shadow: 0 0 0 3px rgba(66, 182, 234, .2); }
.quote-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
.quote-form__submit,
.quote-form__zalo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border: 2px solid var(--ks-green);
	border-radius: 5px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	transition: background .2s, color .2s, border-color .2s;
}
.quote-form__submit { background: var(--ks-green); color: #fff; }
.quote-form__submit:hover { background: var(--ks-crimson); border-color: var(--ks-crimson); }
.quote-form__zalo { background: #fff; color: var(--ks-green); }
.quote-form__zalo:hover { background: var(--ks-green); color: #fff; }
.quote-form__notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 5px;
	font-weight: 600;
}
.quote-form__notice--ok { background: #eef5e6; color: var(--ks-green); border: 1px solid #c5dba8; }
.quote-form__notice--error { background: #fdeaf1; color: var(--ks-crimson); border: 1px solid #f3b9cf; }
@media (max-width: 767px) {
	.quote-form { padding: 16px; }
	.quote-form__form { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.quote-form__submit,
	.quote-form__zalo { flex: 1 1 100%; }
}

/* ---------- Reviews: Shopee block + star widgets ---------- */
.stars { position: relative; display: inline-block; line-height: 1; font-size: 14px; color: #e5e7eb; white-space: nowrap; vertical-align: middle; }
.stars::before,
.stars__fill::before { content: "★★★★★"; letter-spacing: 0; }
.stars__fill { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; color: #f59e0b; white-space: nowrap; }
.stars--lg { font-size: 22px; }
.stars--sm { font-size: 12px; }
.card-rating { display: block; margin-top: 4px; font-size: 12px; color: #6b7280; }
.card-rating__star { color: #f59e0b; }
.card-rating__src { display: inline-block; padding: 0 5px; border-radius: 3px; background: #fff1ec; color: #ee4d2d; font-size: 10px; font-weight: 600; line-height: 16px; }
.rating-summary { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; color: #6b7280; text-decoration: none; }
.rating-summary b { color: #111827; }
.rating-summary:hover span { text-decoration: underline; }
.shopee-reviews { margin-bottom: 28px; }
.shopee-reviews__head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 20px; border: 1px solid #fde1d8; border-radius: 10px; background: #fff8f5; }
.shopee-reviews__score b { font-size: 40px; line-height: 1; color: #ee4d2d; }
.shopee-reviews__score b + span { font-size: 18px; color: #9ca3af; }
.shopee-reviews__score .stars { display: table; margin: 8px 0 6px; }
.shopee-reviews__score p { margin: 0; font-size: 13px; color: #6b7280; }
.shopee-reviews__bars { list-style: none; margin: 0; padding: 0; max-width: 360px; }
.shopee-reviews__bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12px; color: #6b7280; line-height: 20px; }
.shopee-reviews__bars i { display: block; height: 8px; border-radius: 4px; background: #f3e4de; overflow: hidden; }
.shopee-reviews__bars b { display: block; height: 100%; background: #f59e0b; }
.shopee-reviews__bars em { font-style: normal; text-align: right; }
.shopee-reviews__note { margin: 12px 0 18px; font-size: 13px; color: #6b7280; }
.shopee-reviews__note a { color: #ee4d2d; font-weight: 600; }
.shopee-reviews__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #f1f1f1; }
.shopee-review { padding: 16px 0; border-bottom: 1px solid #f1f1f1; }
.shopee-review.is-hidden { display: none; }
.shopee-review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: #9ca3af; }
.shopee-review__author { color: #111827; font-size: 14px; }
.shopee-review__text { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #374151; white-space: pre-line; }
.shopee-review__images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.shopee-review__images img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.shopee-review__reply { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #f6f7f9; font-size: 13px; color: #4b5563; }
.shopee-reviews__more { margin-top: 14px; }
.site-reviews { margin-top: 8px; }
@media (max-width: 767px) {
	.shopee-reviews__head { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
	.shopee-reviews__score b { font-size: 32px; }
}

/* ---------- Topic clusters: related posts, product-page guides ---------- */
.post-related {
	margin: 28px 0;
	padding: 16px 20px;
	border-left: 4px solid var(--ks-green);
	background: var(--ks-tint);
	border-radius: 0 var(--ks-radius) var(--ks-radius) 0;
}
.rte .post-related h2 {
	margin: 0 0 8px;
	font-size: 18px;
}
.rte .post-related ul {
	margin: 0;
	padding-left: 20px;
}
.rte .post-related li {
	margin: 4px 0;
}
.post-related small {
	color: var(--ks-muted);
}
.product-video {
	margin: 0 0 24px;
}
.product-video__title {
	margin: 0 0 10px;
	font-size: 18px;
}
.product-video video {
	display: block;
	width: 100%;
	max-width: 720px;
	max-height: 480px;
	border-radius: var(--ks-radius);
	background: #000;
}
/* ---------- Product description tab (inc/product-description.php) ---------- */
.pdesc { --pdesc-sky: #e8f6fd; --pdesc-peach: #fff3e8; --pdesc-mint: #eaf8f1; --pdesc-lilac: #f3effd; color: var(--ks-text); line-height: 1.7; }
.pdesc p { margin: 0 0 .75em; }
.pdesc ul { margin: 0; padding: 0; list-style: none; }
.pdesc ul li { margin: 0; }
.pdesc .icon { width: 1em; height: 1em; flex: none; }
.pdesc-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: 1.15rem; font-weight: 700; color: var(--ks-title); }
.pdesc-title::before { content: ""; width: 6px; height: 1.15em; border-radius: 3px; background: linear-gradient(var(--ks-green), var(--ks-accent)); flex: none; }
.pdesc-title .icon { color: var(--ks-green-dark); width: 1.2em; height: 1.2em; }
.pdesc-box .pdesc-title::before,
.pdesc-faq .pdesc-title::before { display: none; }

.pdesc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pdesc-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; background: var(--pdesc-sky); color: var(--ks-green-dark); }
.pdesc-chip--gift { background: var(--pdesc-peach); color: var(--ks-crimson); }
.pdesc-chip--cart { background: var(--pdesc-mint); color: #1f7a4d; }
.pdesc-chip--star { background: #fff8db; color: #8a5a00; }
.pdesc-chip--star .icon { color: #f5b301; }

.pdesc-sec { margin: 0 0 1.75rem; }
.pdesc-list { margin: 0 0 .75em; padding: 0; list-style: none; }
.pdesc-list li { position: relative; padding: .2rem 0 .2rem 1.4rem; }
.pdesc-list li::before { content: ""; position: absolute; left: .3rem; top: .8em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ks-green); }
.pdesc-list--spec { border: 1px solid var(--ks-border); border-radius: var(--ks-radius); overflow: hidden; }
.pdesc-list--spec li { padding: .55rem .9rem; }
.pdesc-list--spec li:nth-child(odd) { background: var(--ks-tint); }
.pdesc-list--spec li::before { display: none; }
.pdesc-list--spec strong { color: var(--ks-title); }

.pdesc-media { display: grid; gap: 1.25rem; align-items: center; }
.pdesc-media__fig { margin: 0; border-radius: 16px; overflow: hidden; background: var(--ks-tint); box-shadow: 0 6px 20px rgba(23, 52, 92, .08); }
.pdesc-media__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pdesc-media--lead { position: relative; padding: 1.5rem; border: 1px solid #d6ecf8; border-radius: 20px; background: linear-gradient(135deg, var(--pdesc-sky), #fff 65%); align-items: stretch; overflow: hidden; }
.pdesc-media--lead::before { content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: linear-gradient(var(--ks-green), var(--ks-crimson)); }
.pdesc-media--lead .pdesc-media__text { display: flex; flex-direction: column; justify-content: center; }
.pdesc-media--lead .pdesc-media__text > p:nth-child(2) { font-size: 1.05rem; font-weight: 500; line-height: 1.75; color: var(--ks-title); }
.pdesc-eyebrow { display: inline-flex; align-self: flex-start; margin: 0 0 .75rem; padding: .25rem .7rem; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(23, 52, 92, .08); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ks-green-dark); }
.pdesc-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.pdesc-fact { display: flex; flex-direction: column; justify-content: center; min-height: 4.4rem; padding: .7rem .85rem; border: 1px solid #e3eef6; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(23, 52, 92, .05); }
.pdesc-fact__value { font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--ks-crimson); }
.pdesc-fact--long .pdesc-fact__value { font-size: .98rem; }
.pdesc-fact__label { margin-top: .2rem; font-size: .8rem; line-height: 1.35; color: var(--ks-muted); }
.pdesc-code { margin: .9rem 0 0; font-size: .82rem; color: var(--ks-muted); }
.pdesc-code span { font-weight: 700; color: var(--ks-title); }
.pdesc-lead .pdesc-eyebrow { font-size: .75rem; }
.pdesc-lead .pdesc-facts { margin-top: .9rem; }
@media (min-width: 600px) {
	.pdesc-facts--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
	.pdesc-media.pdesc-media--lead { grid-template-columns: 1.5fr 1fr; padding: 1.75rem 1.75rem 1.75rem 2rem; }
	.pdesc-media--lead .pdesc-media__fig { align-self: center; }
}
@media (min-width: 768px) {
	.pdesc-media { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
	.pdesc-media--flip { grid-template-columns: 1fr 1.4fr; }
	.pdesc-media--flip .pdesc-media__fig { order: -1; }
}

.pdesc-lead { padding: 1rem 1.25rem; border-radius: 16px; background: linear-gradient(135deg, var(--pdesc-sky), #fff 75%); font-size: 1.05rem; font-weight: 600; color: var(--ks-title); }
.pdesc-lead p:last-child { margin-bottom: 0; }
.pdesc-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 1.75rem; }
.pdesc-strip__fig { margin: 0; border-radius: 14px; overflow: hidden; background: var(--ks-tint); }
.pdesc-strip__fig:only-child { grid-column: span 2; }
.pdesc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.pdesc-card { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border-radius: 14px; background: var(--ks-tint); border: 1px solid var(--ks-border); transition: transform .2s, box-shadow .2s; }
.pdesc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23, 52, 92, .08); }
.pdesc .pdesc-card__icon { width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 50%; background: #fff; color: var(--ks-green-dark); box-shadow: 0 2px 6px rgba(23, 52, 92, .08); }
.pdesc-card:nth-child(4n+2) .pdesc-card__icon { color: var(--ks-crimson); }
.pdesc-card:nth-child(4n+3) .pdesc-card__icon { color: #1f9d63; }
.pdesc-card:nth-child(4n+4) .pdesc-card__icon { color: #7b5cd6; }
.pdesc-card__text { padding-top: .35rem; }

.pdesc-benefits { margin: 0 0 1.75rem; }
.pdesc-benefits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .pdesc-benefits__grid { grid-template-columns: repeat(4, 1fr); } }
.pdesc-benefit { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.1rem .9rem; border-radius: 16px; text-align: center; background: var(--pdesc-sky); }
.pdesc-benefit:nth-child(4n+2) { background: var(--pdesc-peach); }
.pdesc-benefit:nth-child(4n+3) { background: var(--pdesc-mint); }
.pdesc-benefit:nth-child(4n+4) { background: var(--pdesc-lilac); }
.pdesc .pdesc-benefit__icon { width: 3rem; height: 3rem; padding: .7rem; border-radius: 50%; background: #fff; color: var(--ks-green-dark); }
.pdesc-benefit:nth-child(4n+2) .pdesc-benefit__icon { color: var(--ks-crimson); }
.pdesc-benefit:nth-child(4n+3) .pdesc-benefit__icon { color: #1f9d63; }
.pdesc-benefit:nth-child(4n+4) .pdesc-benefit__icon { color: #7b5cd6; }
.pdesc-benefit__title { font-size: 1rem; color: var(--ks-title); }
.pdesc-benefit__text { font-size: .9rem; line-height: 1.5; color: var(--ks-muted); }

.pdesc-warn { display: flex; gap: .85rem; margin: 0 0 1.75rem; padding: 1rem 1.15rem; border-radius: 14px; border-left: 5px solid #f5b301; background: #fff8db; }
.pdesc .pdesc-warn__icon { width: 1.6rem; height: 1.6rem; color: #e08e00; margin-top: .15rem; }
.pdesc .pdesc-warn__title { margin: 0 0 .25rem; font-weight: 700; color: #8a5a00; }
.pdesc-warn p:last-child,
.pdesc-warn ul:last-child { margin-bottom: 0; }

.pdesc-body.is-collapsible { position: relative; max-height: 900px; overflow: hidden; }
.pdesc-body.is-collapsible::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.pdesc-body.is-collapsible.is-open { max-height: none; }
.pdesc-body.is-collapsible.is-open::after { display: none; }
.pdesc-more { display: flex; align-items: center; gap: .4rem; margin: .25rem auto 2rem; padding: .6rem 1.4rem; border: 1px solid var(--ks-green); border-radius: 999px; background: #fff; color: var(--ks-green-dark); font: inherit; font-weight: 700; cursor: pointer; }
.pdesc-more:hover { background: var(--ks-green); color: #fff; }
.pdesc-more__close,
.pdesc-more[aria-expanded="true"] .pdesc-more__open { display: none; }
.pdesc-more[aria-expanded="true"] .pdesc-more__close { display: inline; }
.pdesc-more[aria-expanded="true"] .icon { transform: rotate(180deg); }

.pdesc-box { margin: 0 0 1.75rem; padding: 1.25rem; border-radius: 16px; border: 2px dashed var(--ks-green); background: #fbfdff; }
.pdesc-checks { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .pdesc-checks { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.pdesc-checks li { display: flex; gap: .6rem; align-items: flex-start; }
.pdesc .pdesc-checks .icon { width: 1.35rem; height: 1.35rem; margin-top: .2rem; padding: .25rem; border-radius: 50%; background: #1f9d63; color: #fff; }

.pdesc-faq { margin: 0 0 1.75rem; }
.pdesc-faq__item { margin: 0 0 .6rem; border: 1px solid var(--ks-border); border-radius: 12px; background: #fff; overflow: hidden; }
.pdesc-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; font-weight: 700; color: var(--ks-title); cursor: pointer; list-style: none; }
.pdesc-faq__item summary::-webkit-details-marker { display: none; }
.pdesc-faq__item summary .icon { color: var(--ks-green-dark); transition: transform .2s; }
.pdesc-faq__item[open] summary { background: var(--pdesc-sky); }
.pdesc-faq__item[open] summary .icon { transform: rotate(180deg); }
.pdesc .pdesc-faq__item p { margin: 0; padding: .85rem 1rem 1rem; }

.pdesc-cta { padding: 1.25rem; border-radius: 18px; background: linear-gradient(135deg, var(--pdesc-peach), var(--pdesc-sky)); }
.pdesc .pdesc-cta__title { margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 700; color: var(--ks-title); }
.pdesc .pdesc-cta__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; margin: 0 0 1.25rem; padding: 0 0 1.25rem; border-bottom: 1px dashed rgba(23, 52, 92, .15); list-style: none; font-weight: 600; }
@media (min-width: 768px) { .pdesc .pdesc-cta__list { grid-template-columns: repeat(4, auto); justify-content: start; } }
.pdesc-cta__list li { display: flex; align-items: center; gap: .4rem; color: var(--ks-title); }
.pdesc-cta__list .icon { color: var(--ks-crimson); }
.pdesc-cta__btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.pdesc a.pdesc-cta__btn { text-decoration: none; }
.pdesc-cta__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.pdesc a.pdesc-cta__btn--buy { background: var(--ks-crimson); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.pdesc a.pdesc-cta__btn--buy:hover { filter: brightness(.92); color: #fff; }
.pdesc a.pdesc-cta__btn--zalo { background: #0068ff; color: #fff; box-shadow: 0 4px 12px rgba(0, 104, 255, .2); }
.pdesc a.pdesc-cta__btn--zalo:hover { background: #0053cc; color: #fff; }
@media (max-width: 575px) { .pdesc-cta__btn { flex: 1 1 100%; } }

.product-guides {
	margin: 0;
	padding: 0 0 12px;
	border: 1px solid var(--ks-border);
	border-radius: var(--ks-radius);
	background: #fff;
	overflow: hidden;
}
.product-guides .product-guides__title { margin: 0 0 4px; border-radius: 0; }
.product-guides ul { list-style: none; margin: 0; padding: 0 12px; }
.product-guides li + li { border-top: 1px dashed var(--ks-border); }
.product-guides a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	color: var(--ks-text);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}
.product-guides a:hover { color: var(--ks-crimson); }
.product-guides img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
}

/* ==========================================================================
   Sticky red header, promo strip and sticky category sidebars (v1.5.0)
   ========================================================================== */

html { scroll-padding-top: calc(var(--ks-header-h) + 10px); }

/* Promo strip above the header */
.topbar { background: var(--ks-bg); border-bottom: 1px solid var(--ks-tint-border); color: #444; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 34px; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar__list a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar__list img { width: 18px; height: 18px; object-fit: contain; }
.topbar__hotline { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.topbar__hotline .icon { font-size: 16px; color: var(--ks-green); }
.topbar__hotline b { color: var(--ks-green); }

/* Sticky block: red bar + menu row */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	box-shadow: 0 2px 10px rgba(35, 137, 200, .12);
}
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.header { background: var(--ks-bg); color: var(--ks-text); }
.header-top { gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.header-logo { width: auto; }
.logo,
.logo:hover { color: var(--ks-green); }
.header .logo-text { font-size: 26px; color: var(--ks-green); }
.header .logo-tagline { color: var(--ks-muted); }
.header .logo img { max-height: 60px; }

.header-search {
	flex: 1 1 auto;
	max-width: 640px;
	height: 40px;
	border: 2px solid var(--ks-green);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.header-search input[type="search"] { padding: 0 14px; font-size: 14px; }
.header-search:focus-within { outline: 2px solid var(--ks-gold); outline-offset: 1px; }
.header-search button { width: 52px; background: var(--ks-green); color: #fff; font-size: 22px; }
.header-search button:hover { background: var(--ks-green-dark); }

/* The hotline already sits in the promo strip; the bar keeps logo, search and the account box. */
.header-contact { display: none; }

.header-control {
	flex: 0 0 auto;
	gap: 6px;
	width: auto;
	height: auto;
	margin-left: auto;
	border: 0;
	border-radius: 0;
}
.header-control li { position: relative; }
.header-control a {
	flex-direction: column;
	gap: 2px;
	min-width: 68px;
	padding: 4px 6px;
	border-radius: 8px;
	color: var(--ks-text);
	font-size: 12px;
	font-weight: 600;
	transition: background .2s, color .2s;
}
.header-control a:hover { background: var(--ks-tint); color: var(--ks-green); }
/* The links carry class "icon" too; undo the 1em box so the label fits under the symbol. */
.header-control a.icon { width: auto; height: auto; font-size: 12px; color: var(--ks-text); }
.header-control a.icon:hover { color: var(--ks-green); }
.header-control a .icon { font-size: 24px; color: var(--ks-green); }
.header-control .title { display: block; white-space: nowrap; }
.header-control .count { top: 0; right: 12px; background: var(--ks-gold); color: var(--ks-gold-text); font-weight: 700; }

/* Menu row under the red bar */
.header-menu { background: var(--ks-green); }
.header-nav { background: transparent; border-radius: 0; }
.header-nav .item_big > li > a { height: 40px; padding: 0 16px; border-radius: 0; font-size: 15px; }
.header-nav .item_big > li.active > a,
.header-nav .item_big > li:hover > a { background: var(--ks-gold); color: var(--ks-gold-text); }
@media (min-width: 992px) {
	.header-nav .item_big > li > a { color: var(--ks-menu-text); font-weight: 700; }
}
/* Dropdown items: tinted row, sky bar on the left and deep-blue bold text on hover (9400). */
@media (min-width: 992px) {
	body:not(.theme-ava) .header-nav .sub-menu { padding: 6px 0; border-top: 3px solid var(--ks-gold); }
	body:not(.theme-ava) .header-nav .sub-menu a { position: relative; transition: background-color .15s, color .15s, padding-left .15s; }
	body:not(.theme-ava) .header-nav .sub-menu a::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ks-green); opacity: 0; transition: opacity .15s; }
	body:not(.theme-ava) .header-nav .sub-menu li:hover > a,
	body:not(.theme-ava) .header-nav .sub-menu a:focus-visible { padding-left: 22px; background: rgba(66, 182, 234, .16); color: var(--ks-crimson); font-weight: 700; }
	body:not(.theme-ava) .header-nav .sub-menu li:hover > a::before,
	body:not(.theme-ava) .header-nav .sub-menu a:focus-visible::before { opacity: 1; }
}
.cat-menu__title,
.subcat-pills a.is-current { color: var(--ks-menu-text); }

/* ---------- Home: sticky category sidebar + content ---------- */
.home-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin-top: 16px;
}
.home-aside,
.shop-aside {
	position: sticky;
	top: calc(var(--ks-header-h) + 12px);
	z-index: 20;
}
.home-aside .cat-menu,
.shop-aside .cat-menu { height: auto; border-width: 1px; border-color: var(--ks-tint-border); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.home-aside .cat-menu__item > a,
.shop-aside .cat-menu__item > a { padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.home-aside .cat-menu--flyout .cat-menu__item > a,
.shop-aside .cat-menu__item > a[style] { background-size: 22px; padding-left: 32px; }
.home-aside .cat-menu__caret { top: 19px; font-size: 14px; }
.home-aside .cat-menu--flyout .cat-menu__sub { top: -2px; left: calc(100% + 6px); min-width: 240px; border-width: 1px; border-color: var(--ks-tint-border); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.home-aside .cat-menu--flyout .cat-menu__sub::before { content: ""; position: absolute; top: 0; bottom: 0; left: -8px; width: 8px; }
.home-content { min-width: 0; }
.home-content .container { max-width: none; padding: 0; }
.home-content .section-hero { margin-top: 0; }
.hero-grid--full { grid-template-columns: minmax(0, 1fr); }
.home-content .section-policies { margin: 24px 0 36px; }
.home-content .policies { gap: 16px; }
.home-content .policy { padding: 8px 10px; border-width: 1px; }
.home-content .policy__title { font-size: 15px; }
.home-content .policy__text { font-size: 13px; }
.home-layout .tabs-grid { grid-template-columns: minmax(0, 1fr); }
.home-layout .tabs-aside { display: none; }
.home-layout .product-grid--6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-layout .tab-content .product-grid--4,
.home-layout .section-tabs--plain .product-grid--4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-layout .section-carousel,
.home-layout .section-categories,
.home-layout .section-banners,
.home-layout .section-tabs,
.home-layout .section-blog { margin-bottom: 44px; }

/* ---------- Shop: sticky accordion sidebar ---------- */
.shop-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.shop-content { min-width: 0; }
.shop-layout .btn-filter { display: none; }

/* The Zalo/phone buttons move to the right so they no longer cover the sticky sidebar. */
@media (min-width: 992px) {
	.float-contact { left: auto; right: 15px; bottom: 130px; align-items: flex-end; }
}

/* Short screens: a sidebar taller than the viewport scrolls with the page instead. */
@media (max-height: 720px) {
	.home-aside,
	.shop-aside { position: static; }
}

@media (max-width: 1199px) {
	.header-top { gap: 16px; }
	.home-layout,
	.shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
	.home-layout .product-grid--6,
	.home-layout .tab-content .product-grid--4,
	.home-layout .section-tabs--plain .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
	.topbar { display: none; }
	.header-top { gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
	.menu-bar { order: 0; width: 38px; height: 38px; border: 0; border-radius: 8px; background: var(--ks-green); color: #fff; font-size: 24px; }
	.header-logo { order: 1; flex: 1 1 0; text-align: left; }
	.header-logo .logo { align-items: flex-start; }
	.header-logo .logo img { max-height: 40px; }
	.header .logo-text { font-size: 20px; }
	.header-control { order: 2; display: flex; gap: 0; margin-left: 0; }
	.header-control li.header-account,
	.header-control li.header-wishlist { display: none; }
	.header-control a { min-width: 44px; padding: 2px 4px; }
	.header-control .title { display: none; }
	.header-control .count { right: 2px; }
	.header-search { order: 3; flex: 0 0 100%; max-width: none; height: 38px; }
	.header-menu { background: transparent; }
	.header-nav { background: #fff; }
	.header-nav .item_big > li.active > a,
	.header-nav .item_big > li:hover > a { background: none; color: var(--ks-green); }

	.home-layout { display: block; margin-top: 0; }
	.home-aside { display: none; }
	.home-content .container { padding: 0; }
	.home-layout .product-grid--6,
	.home-layout .tab-content .product-grid--4,
	.home-layout .section-tabs--plain .product-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.shop-layout { display: block; }
	.shop-aside { display: none; }
	.shop-layout .btn-filter { display: inline-flex; }
}

@media (max-width: 767px) {
	.home-layout .product-grid--6,
	.home-layout .tab-content .product-grid--4,
	.home-layout .section-tabs--plain .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Blog post: direct answer box, author box ---------- */
.post-summary {
	margin: 0 0 20px;
	padding: 14px 18px;
	background: #fff8e6;
	border: 1px solid #f3dfa6;
	border-radius: var(--ks-radius);
	font-size: 15px;
	line-height: 1.6;
}
.post-summary strong {
	color: var(--ks-crimson);
}
.author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 32px 0 0;
	padding: 16px 20px;
	border: 1px solid var(--ks-border);
	border-radius: var(--ks-radius);
	background: #fff;
}
.author-box__logo {
	flex: 0 0 72px;
}
.author-box__logo img {
	width: 72px;
	height: auto;
}
.author-box__body strong {
	display: block;
	margin-bottom: 6px;
	color: var(--ks-green);
}
.author-box__body p {
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--ks-muted);
}
.author-box__links a {
	color: var(--ks-crimson);
	font-weight: 700;
}
@media (max-width: 767px) {
	.author-box {
		flex-direction: column;
		gap: 10px;
	}
}

/* ---------- Buy buttons (--ks-buy) and sale tags (--ks-sale-bg), separate from the menu colour ---------- */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.post-product__btn,
.rte .post-product__btn,
.quote-form__submit { background: var(--ks-buy) !important; border-color: var(--ks-buy) !important; color: var(--ks-buy-text) !important; }
.badge-sale { background: var(--ks-sale-bg) !important; border-color: var(--ks-sale-bg) !important; color: var(--ks-sale-text) !important; }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.post-product__btn:hover,
.rte .post-product__btn:hover,
.quote-form__submit:hover { background: var(--ks-buy-dark) !important; border-color: var(--ks-buy-dark) !important; color: var(--ks-buy-text) !important; }
.badge-sale::after { border-top-color: var(--ks-sale-bg) !important; }

/* ---------- Age filter on the boy / girl categories (inc/hubs.php) ---------- */
.age-pills { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 14px; }
.age-pills__label { color: var(--ks-muted); font-size: 14px; font-weight: 700; }
.age-pills .subcat-pills a { padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.age-pills .subcat-pills small { opacity: .75; font-size: 12px; font-weight: 600; }
.cat-menu__group { padding: 8px 15px 4px; color: var(--ks-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cat-menu__sub .cat-menu__group:first-child { padding-top: 4px; }

/* ---------- Sidebar category menus: same hover as the header dropdown (9400) ----------
 * background-color only: the category icon is the link's inline background-image. */
body:not(.theme-ava) .cat-menu__item > a,
body:not(.theme-ava) .cat-menu__sub a { transition: background-color .15s, color .15s, box-shadow .15s; }
body:not(.theme-ava) .cat-menu__item:hover > a,
body:not(.theme-ava) .cat-menu__item > a:focus-visible,
body:not(.theme-ava) .cat-menu__sub li:hover > a,
body:not(.theme-ava) .cat-menu__sub a:focus-visible {
	background-color: rgba(66, 182, 234, .16);
	box-shadow: inset 4px 0 0 var(--ks-green);
	color: var(--ks-crimson);
	font-weight: 700;
}

/* ---------- Blog cards (9400): 2:1 frame matching the post images, date tag on the
 * top-right corner of the image (post titles sit on the left), no "0 comments" tag. */
body:not(.theme-ava) .post-card__thumb { padding-bottom: 50%; border-radius: 8px; }
body:not(.theme-ava) .post-card__thumb img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
body:not(.theme-ava) .post-card__date {
	top: 8px;
	right: 8px;
	left: auto;
	flex-direction: column;
	gap: 0;
	min-width: 48px;
	padding: 5px 8px;
	border-radius: 8px;
	background: var(--ks-green);
	box-shadow: 0 2px 6px rgba(23, 52, 92, .2);
	clip-path: none;
	font-size: 18px;
	line-height: 1.1;
	text-align: center;
}
body:not(.theme-ava) .post-card__date > span { margin: 2px 0 0; font-size: 11px; }
body:not(.theme-ava) .post-card__comments { top: auto; bottom: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; clip-path: none; font-size: 13px; }
body:not(.theme-ava) .post-card__comments.is-empty { display: none; }

/* ---------- Product page: two independent columns (markup: .product-layout).
 * Left: gallery + summary, then the description tabs. Right: policies, category menu,
 * same products. Neither column waits for the other, so no white gaps either side. */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 30px; align-items: start; margin-bottom: 50px; }
.product-layout__main { min-width: 0; }
.product-layout__side { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.product-top--2col { grid-template-columns: 400px minmax(0, 1fr); }
@media (max-width: 1199px) {
	/* Single column: gallery/summary, policies, description, then categories. */
	.product-layout { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
	.product-layout .product-bottom__main { min-width: 0; }
	.product-layout__main, .product-layout__side { display: contents; }
	.product-layout .product-top { order: 1; margin-bottom: 0; }
	.product-layout .product-policies { order: 2; }
	.product-layout .product-bottom__main { order: 3; }
	.product-layout .product-guides { order: 4; }
	.product-layout .product-layout__aside { order: 5; }
	.product-top--2col { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 991px) {
	.product-top--2col { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------
 * Less blue (9400 only). Sky blue stays the brand colour for the
 * header, menu bar and main buttons; headings go navy, boxes get a
 * neutral border, and active/sale states use the logo's orange/red.
 * ------------------------------------------------------------- */
body:not(.theme-ava) .shop-title,
body:not(.theme-ava) .page-heading,
body:not(.theme-ava) .hub-content h2,
body:not(.theme-ava) .single-excerpt__title,
body:not(.theme-ava) .product-bottom__main .up-sells > h2,
body:not(.theme-ava) .post-toc__title,
body:not(.theme-ava) .category-card__title,
body:not(.theme-ava) .hub-card__name,
body:not(.theme-ava) .policy__title,
body:not(.theme-ava) .shop-filter__head,
body:not(.theme-ava) .author-box__body strong,
body:not(.theme-ava) .promo-box__title { color: var(--ks-text); }
body:not(.theme-ava) .single-excerpt__title { border-bottom-color: var(--ks-accent); }

body:not(.theme-ava) .cat-menu,
body:not(.theme-ava) .cat-menu--flyout .cat-menu__sub,
body:not(.theme-ava) .policy,
body:not(.theme-ava) .aside-box,
body:not(.theme-ava) .promo-box,
body:not(.theme-ava) .promo-box__title,
body:not(.theme-ava) .quote-form { border-color: var(--ks-border); }
body:not(.theme-ava) .policy:hover,
body:not(.theme-ava) .product-card:hover,
body:not(.theme-ava) .product-list-card:hover,
body:not(.theme-ava) .hub-card:hover { border-color: var(--ks-accent); }
body:not(.theme-ava) .hub-guide-link,
body:not(.theme-ava) .post-related { border-left-color: var(--ks-accent); }

/* Pills: neutral at rest, orange when active. */
body:not(.theme-ava) .subcat-pills a { border-color: var(--ks-border); color: var(--ks-text); background: #fff; }
body:not(.theme-ava) .subcat-pills a:hover { border-color: var(--ks-crimson); background: #fff; color: var(--ks-crimson); }
body:not(.theme-ava) .subcat-pills a.is-current { border-color: var(--ks-crimson); background: var(--ks-crimson); color: #fff; }
body:not(.theme-ava) .sort-pill { border-color: var(--ks-border); color: var(--ks-text); }

/* Sale and blog badges in the logo's warm colours. */
body:not(.theme-ava) .badge-sale { background: var(--ks-red); }
body:not(.theme-ava) .badge-sale::after { border-top-color: var(--ks-red); }
body:not(.theme-ava) .post-card__date { background: var(--ks-crimson); }

/* ---------------------------------------------------------------
 * Product page selling aids (inc/shop-boost.php, assets/js/shop-boost.js)
 * ------------------------------------------------------------- */

/* Variation picture cards */
.ks-boost .single-product-layout form.has-var-cards table.variations tr.has-var-cards { display: none; }
.ks-boost .single-product-layout form.has-var-cards table.variations { margin-bottom: 0 !important; }
.ks-boost .single-product-layout .reset_variations { display: inline-block; margin: 0 0 10px; font-size: 13px; }
.var-cards { margin-bottom: 14px; }
.var-cards__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-bottom: 10px; font-size: 14px; }
.var-cards__label { color: var(--ks-muted); }
.var-cards__current { color: var(--ks-text); }
.var-cards__count { margin-left: auto; color: var(--ks-muted); font-size: 13px; }
.var-cards__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 104px)); gap: 8px; }
.var-cards--text .var-cards__list { display: flex; flex-wrap: wrap; }
.var-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 4px 4px 6px;
	border: 1.5px solid var(--ks-border);
	border-radius: 8px;
	background: #fff;
	color: var(--ks-text);
	font: inherit;
	font-size: 13px;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.var-cards--text .var-card { padding: 7px 14px; }
.var-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.var-card__name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.var-card:hover { border-color: var(--ks-green-dark); }
.var-card.is-active { border-color: var(--ks-green-dark); box-shadow: 0 0 0 1px var(--ks-green-dark); color: var(--ks-green-dark); font-weight: 700; }
.var-card.is-active::after {
	content: "";
	position: absolute;
	top: -1px;
	right: -1px;
	width: 20px;
	height: 20px;
	border-radius: 0 7px 0 8px;
	background: var(--ks-green-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.var-card:disabled { opacity: .4; cursor: not-allowed; }
.var-card:focus-visible { outline: 2px solid var(--ks-crimson); outline-offset: 2px; }

/* Add to cart + Mua ngay */
.ks-boost .single-product-layout form.cart .single_add_to_cart_button,
.ks-boost .single-product-layout form.cart .buy-now-btn {
	flex: 1 1 170px;
	height: 48px;
	border-radius: 999px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-transform: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.ks-boost .single-product-layout form.cart .single_add_to_cart_button {
	min-width: 0;
	border: 2px solid var(--ks-green-dark) !important;
	background: #fff !important;
	color: var(--ks-green-dark) !important;
}
.ks-boost .single-product-layout form.cart .single_add_to_cart_button:hover {
	background: var(--ks-green-dark) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(23, 52, 92, .22);
}
/* No variation picked yet: stay fully visible (WooCommerce asks for a choice on click). */
.ks-boost .single-product-layout form.cart .single_add_to_cart_button.disabled { opacity: 1; }
.ks-boost .single-product-layout form.cart .single_add_to_cart_button:active,
.ks-boost .single-product-layout form.cart .buy-now-btn:active { transform: translateY(0); box-shadow: none; }
.buy-now-btn {
	padding: 0 25px;
	border: 2px solid #f5a524;
	background: #f5a524;
	color: var(--ks-text);
}
.buy-now-btn:hover { background: #ea8a00; border-color: #ea8a00; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(234, 138, 0, .35); }
.ks-boost .single-product-layout form.cart .qty { height: 48px; border-radius: 999px; }

/* Mua kèm giá sốc */
.deal-box { margin: 0 0 25px; padding: 14px; border: 1.5px solid #f2b8a8; border-radius: 12px; background: #fffaf7; }
.deal-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.deal-box__title { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ks-crimson); font-size: 17px; font-weight: 700; }
.deal-box__title .icon { color: #f5a524; font-size: 18px; }
.deal-box__note { color: var(--ks-muted); font-size: 13px; }
.deal-box__list { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 10px; margin: 0; padding: 0 0 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; list-style: none; scrollbar-width: thin; }
.deal-card { scroll-snap-align: start; }
.deal-card { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 6px 6px 8px; border: 1px solid var(--ks-border); border-radius: 8px; background: #fff; }
.deal-card__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.deal-card__name { display: -webkit-box; overflow: hidden; min-height: 2.6em; color: var(--ks-text); font-size: 13px; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deal-card__name:hover { color: var(--ks-crimson); }
.deal-card__price { color: var(--ks-red); font-size: 14px; font-weight: 700; line-height: 1.2; }
.deal-card__price del { color: var(--ks-muted); font-size: 12px; font-weight: 400; }
.deal-card__off { align-self: flex-start; padding: 1px 6px; border-radius: 4px; background: var(--ks-red); color: #fff; font-size: 12px; font-weight: 700; }
.deal-card__add {
	margin-top: auto;
	padding: 6px 4px;
	border: 1.5px solid var(--ks-green-dark);
	border-radius: 999px;
	color: var(--ks-green-dark);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}
.deal-card__add:hover { background: var(--ks-green-dark); color: #fff; }
.deal-card__add.loading { opacity: .6; pointer-events: none; }
.deal-card__add.added::after { content: " ✓"; }
.deal-card .added_to_cart { font-size: 12px; text-align: center; color: var(--ks-crimson); }

/* Purchase popup */
.buy-pop {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 95;
	display: flex;
	align-items: flex-start;
	width: min(390px, calc(100vw - 30px));
	padding: 10px 30px 10px 10px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(23, 52, 92, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity .3s, transform .3s, visibility .3s;
}
.buy-pop.is-visible { opacity: 1; visibility: visible; transform: none; }
.buy-pop__link { display: flex; gap: 12px; align-items: center; color: var(--ks-text); }
.buy-pop__img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.buy-pop__name { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.buy-pop__meta { display: block; margin-top: 4px; color: var(--ks-muted); font-size: 12.5px; }
.buy-pop__close { position: absolute; top: 4px; right: 6px; padding: 2px 6px; border: 0; background: none; color: var(--ks-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.buy-pop__close:hover { color: var(--ks-text); }
@media (max-width: 991px) {
	.buy-pop { left: 10px; bottom: 72px; }
	.buy-pop__img { flex-basis: 48px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.buy-pop { transition: none; }
}

/* ---------------------------------------------------------------
 * Zalo / call: round buttons with a soft pulsing halo (9400 only)
 * ------------------------------------------------------------- */
body:not(.theme-ava) .float-contact { gap: 22px; align-items: center; }
body:not(.theme-ava) .float-contact__btn {
	position: relative;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 8px var(--halo), 0 4px 12px rgba(0, 0, 0, .18);
}
body:not(.theme-ava) .float-contact__btn--zalo { --halo: rgba(33, 150, 243, .28); background: #2196f3; }
body:not(.theme-ava) .float-contact__btn--call { --halo: rgba(255, 23, 84, .28); background: #ff1754; }
body:not(.theme-ava) .float-contact__btn::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	background: var(--halo);
	animation: ks-halo 1.8s ease-out infinite;
	pointer-events: none;
}
body:not(.theme-ava) .float-contact__btn--call::before { animation-delay: .9s; }
body:not(.theme-ava) .float-contact__btn img { position: relative; width: 34px; height: 34px; padding: 0; background: none; border-radius: 0; }
body:not(.theme-ava) .float-contact__btn--zalo img { border-radius: 8px; }
body:not(.theme-ava) .float-contact__btn--call img { width: 26px; height: 26px; filter: brightness(0) invert(1); animation: ks-ring 1.8s ease-in-out infinite; }
/* The number stays for screen readers only. */
body:not(.theme-ava) .float-contact__btn span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
body:not(.theme-ava) .float-contact__btn:hover { filter: brightness(1.08); }
body:not(.theme-ava) .float-contact__btn:focus-visible { outline: 3px solid var(--ks-text); outline-offset: 10px; }
@keyframes ks-halo {
	0% { transform: scale(.85); opacity: 1; }
	100% { transform: scale(1.45); opacity: 0; }
}
@keyframes ks-ring {
	0%, 50%, 100% { transform: rotate(0); }
	10%, 30% { transform: rotate(-14deg); }
	20%, 40% { transform: rotate(14deg); }
}
@media (max-width: 991px) {
	body:not(.theme-ava) .float-contact { left: 18px; gap: 20px; }
	body:not(.theme-ava) .float-contact__btn { width: 48px; height: 48px; padding: 0; box-shadow: 0 0 0 6px var(--halo), 0 3px 10px rgba(0, 0, 0, .18); }
	body:not(.theme-ava) .float-contact__btn::before { inset: -6px; }
	body:not(.theme-ava) .float-contact__btn img { width: 30px; height: 30px; }
	body:not(.theme-ava) .float-contact__btn--call img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	body:not(.theme-ava) .float-contact__btn::before,
	body:not(.theme-ava) .float-contact__btn--call img { animation: none; }
}

/* ---------------------------------------------------------------
 * Quick filters: age + price chips above the product grid
 * ------------------------------------------------------------- */
.quick-filters { display: grid; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--ks-border); border-radius: var(--ks-radius); background: var(--ks-soft); }
.quick-filters__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quick-filters__label { flex: 0 0 72px; color: var(--ks-text); font-size: 14px; font-weight: 700; }
.quick-filters__list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.quick-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 5px 12px;
	border: 1px solid var(--ks-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ks-text);
	font-size: 13.5px;
	line-height: 1.3;
	white-space: nowrap;
	transition: border-color .15s, color .15s, background-color .15s;
}
.quick-filters__chip small { color: var(--ks-muted); font-size: 12px; }
.quick-filters__chip:hover { border-color: var(--ks-crimson); color: var(--ks-crimson); }
.quick-filters__chip.is-active { border-color: var(--ks-crimson); background: var(--ks-crimson); color: #fff; font-weight: 700; }
.quick-filters__chip.is-active small { color: rgba(255, 255, 255, .85); }
@media (max-width: 767px) {
	.quick-filters { margin-inline: -4px; padding: 10px; }
	.quick-filters__row { align-items: flex-start; flex-direction: column; gap: 6px; }
	.quick-filters__label { flex: none; font-size: 13px; }
	/* One swipeable line per row on phones. */
	.quick-filters__list { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
	.quick-filters__list::-webkit-scrollbar { display: none; }
}

/* Policy strip: as many equal columns as there are items (3 on 9400). */
body:not(.theme-ava) .policies:not(.policies--stack) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------
 * Sản phẩm tương tự (inc/shop-boost.php): swipeable row under the tabs
 * ------------------------------------------------------------- */
.similar-box { margin-top: 32px; }
.similar-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.similar-box__title { margin: 0; color: var(--ks-text); font-size: 20px; font-weight: 700; text-transform: uppercase; }
.similar-box__nav { display: flex; gap: 8px; }
.similar-box__btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0 0 3px;
	border: 1px solid var(--ks-border);
	border-radius: 50%;
	background: #fff;
	color: var(--ks-text);
	font-size: 24px;
	line-height: 1;
	transition: border-color .15s, color .15s, opacity .15s;
}
.similar-box__btn:hover:not(:disabled) { border-color: var(--ks-crimson); color: var(--ks-crimson); }
.similar-box__btn:disabled { opacity: .35; cursor: default; }
.similar-box__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 15px) / 4);
	gap: 15px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.similar-box__list::-webkit-scrollbar { display: none; }
.similar-box__list > .product-card { min-width: 0; scroll-snap-align: start; }
@media (max-width: 991px) {
	.similar-box__list { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; }
}
@media (max-width: 575px) {
	.similar-box__title { font-size: 17px; }
	.similar-box__nav { display: none; }
	/* Two cards and a peek of the third, so the row reads as swipeable. */
	.similar-box__list { grid-auto-columns: 44%; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.similar-box__list { scroll-behavior: auto; }
}

/* Product page (9400, wide screens): the category menu follows the scroll.
 * The right column stretches to the left one's height so the menu has room to stick;
 * a menu taller than the screen scrolls inside itself. */
@media (min-width: 1200px) {
	body:not(.theme-ava) .product-layout { align-items: stretch; }
	body:not(.theme-ava) .product-layout__main { align-self: start; }
	body:not(.theme-ava) .product-layout__aside {
		position: sticky;
		top: calc(var(--ks-header-h) + 12px);
		max-height: calc(100vh - var(--ks-header-h) - 24px);
		overflow-y: auto;
		overscroll-behavior: contain;
		/* Still scrolls with the wheel or touch when the screen is short, without a visible bar. */
		scrollbar-width: none;
	}
	body:not(.theme-ava) .product-layout__aside::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------------
 * Home "Tất cả sản phẩm" tabs as pills (9400): centred, outlined,
 * the active tab filled orange. One swipeable line on phones.
 * ------------------------------------------------------------- */
body:not(.theme-ava) .section-tabs .tabs-title {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
}
body:not(.theme-ava) .section-tabs .tab-link {
	flex: 0 0 auto;
	flex-direction: row;
	gap: 8px;
	padding: 7px 18px 7px 10px;
	border: 1px solid var(--ks-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ks-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	transition: border-color .15s, color .15s, background-color .15s, box-shadow .15s;
}
body:not(.theme-ava) .section-tabs .tab-link img { width: 26px; height: 26px; }
body:not(.theme-ava) .section-tabs .tab-link:hover { border-color: var(--ks-crimson); color: var(--ks-crimson); }
body:not(.theme-ava) .section-tabs .tab-link.is-active {
	border-color: var(--ks-crimson);
	background: var(--ks-crimson);
	color: #fff;
	box-shadow: 0 3px 10px rgba(217, 72, 15, .25);
}
/* The icon keeps its colours on the orange pill. */
body:not(.theme-ava) .section-tabs .tab-link.is-active img { padding: 2px; border-radius: 50%; background: #fff; }
body:not(.theme-ava) .section-tabs .tab-link:focus-visible { outline: 2px solid var(--ks-crimson); outline-offset: 2px; }
@media (max-width: 991px) {
	body:not(.theme-ava) .section-tabs .tabs-title {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
		margin-inline: -15px;
		padding: 2px 15px 6px;
		overflow-x: auto;
	}
	body:not(.theme-ava) .section-tabs .tab-link { padding: 6px 14px 6px 8px; font-size: 13.5px; }
	body:not(.theme-ava) .section-tabs .tab-link img { width: 22px; height: 22px; }
}

/* ---------------------------------------------------------------
 * Home cover cards: featured categories + age ranges (9400).
 * Photos are lifestyle shots (demo-data/home-covers.php), so they
 * fill the frame; each card gets its own soft tint.
 * ------------------------------------------------------------- */
body:not(.theme-ava) .category-card {
	--cover-tint: #fff1e6;
	padding: 8px 8px 12px;
	border-radius: 18px;
	background: var(--cover-tint);
	transition: transform .2s, box-shadow .2s;
}
body:not(.theme-ava) .swiper-slide:nth-child(6n+2) .category-card { --cover-tint: #ffe9f0; }
body:not(.theme-ava) .swiper-slide:nth-child(6n+3) .category-card { --cover-tint: #e8f6ec; }
body:not(.theme-ava) .swiper-slide:nth-child(6n+4) .category-card { --cover-tint: #e7f1fd; }
body:not(.theme-ava) .swiper-slide:nth-child(6n+5) .category-card { --cover-tint: #fff6d9; }
body:not(.theme-ava) .swiper-slide:nth-child(6n+6) .category-card { --cover-tint: #f1eafd; }
body:not(.theme-ava) .category-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
body:not(.theme-ava) .category-card__image { border-radius: 12px; background: #fff; }
body:not(.theme-ava) .category-card__image img { object-fit: cover; }
body:not(.theme-ava) .category-card__title {
	display: -webkit-box;
	min-height: 2.5em;
	margin: 10px 0 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	white-space: normal;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	align-content: center;
}

body:not(.theme-ava) .section-ages .hub-card {
	padding: 8px 8px 12px;
	border-radius: 18px;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
body:not(.theme-ava) .section-ages .hub-card:hover { transform: translateY(-3px); border-color: var(--ks-crimson); }
body:not(.theme-ava) .section-ages .hub-card__image {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: 12px;
}
body:not(.theme-ava) .section-ages .hub-card__name {
	margin-top: -16px;
	position: relative;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--ks-crimson);
	color: #fff;
	font-size: 15px;
	box-shadow: 0 3px 8px rgba(236, 33, 84, .25);
}
body:not(.theme-ava) .section-ages .hub-card__title { display: none; }
body:not(.theme-ava) .section-ages .hub-card__count { padding-top: 8px; }
@media (max-width: 991px) {
	body:not(.theme-ava) .section-ages .hub-cards--age {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 34%;
		gap: 12px;
		overflow-x: auto;
		margin-inline: -15px;
		padding: 2px 15px 6px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	body:not(.theme-ava) .section-ages .hub-cards--age::-webkit-scrollbar { display: none; }
	body:not(.theme-ava) .section-ages .hub-cards--age > li { scroll-snap-align: start; }
}
@media (max-width: 575px) {
	body:not(.theme-ava) .section-ages .hub-cards--age { grid-auto-columns: 42%; }
	body:not(.theme-ava) .category-card__title { font-size: 14px; }
}

/* ---------- Gift guides in every sidebar (9400) ----------
 * The home and shop sidebars stick under the header; main.js sets --aside-top so a
 * sidebar taller than the screen (menu + guides) sticks by its bottom instead. */
.home-aside,
.shop-aside { top: var(--aside-top, calc(var(--ks-header-h) + 12px)); }
.home-aside .product-guides,
.shop-aside .product-guides { margin-top: 16px; }
.blog-aside .product-guides { margin: 0; }
.home-aside .product-guides a,
.shop-aside .product-guides a { font-size: 13px; }
.home-aside .product-guides img,
.shop-aside .product-guides img { flex-basis: 56px; width: 56px; height: 56px; }
