/*
Theme Name: Kính Thuốc Tuấn Hà
Theme URI: https://kinhthuoctuanha.com/
Description: Child theme của Flatsome cho Kính Thuốc Tuấn Hà
Author: Jason
Author URI: https://kinhthuoctuanha.com/
Template: flatsome
Version: 1.0.0
Text Domain: kinhthuoctuanha
*/

/*************** ADD CUSTOM CSS HERE.   ***************/




/* Hiệu ứng ánh sáng cho sản phẩm */
.product-small .box-image:hover::before{
   -webkit-animation:shine 1.2s;animation:shine 1.2s
}
@-webkit-keyframes shine{
   100%{left:125%}
}
@keyframes shine{
   100%{left:125%}
}
.product-small .box-image::before{
  position:absolute;
  top:0;
  left:-75%;
  z-index:2;
  display:block;
  content:'';
  width:50%;
  height:100%;
  background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,rgba(255,255,255,.3) 100%);
  background:linear-gradient(to right,rgba(255,255,255,0) 0,rgba(255,255,255,.3) 100%);
  -webkit-transform:skewX(-25deg);transform:skewX(-25deg)
}
/* Hiệu ứng ánh sáng cho sản phẩm */

/* Hiệu ứng ánh sáng cho bài viết */
.post-item .box-image:hover::before{
  -webkit-animation:shine .75s;
  animation:shine .75s
}

@-webkit-keyframes shine{
  100%{left:125%}
}

@keyframes shine{
  100%{left:125%}
}

.post-item .box-image::before{
  position:absolute;
  top:0;
  left:-75%;
  z-index:2;
  display:block;
  content:'';
  width:50%;
  height:100%;
  background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,rgba(255,255,255,.3) 100%);
  background:linear-gradient(to right,rgba(255,255,255,0) 0,rgba(255,255,255,.3) 100%);
  -webkit-transform:skewX(-25deg);transform:skewX(-25deg)
}
/* Hiệu ứng ánh sáng cho bài viết */

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

}
/*************** CHÂN TRANG, theo Footer.tsx của bản Next.js ***************/

#footer,
.footer-wrapper,
#footer .footer-1,
#footer .footer-2,
#footer .absolute-footer {
	background-color: #003459;
}

#footer,
#footer p,
#footer li {
	color: rgba(219, 234, 254, 0.7);
}

#footer ul.th-foot-list,
#footer ul.th-foot-list li {
	list-style: none !important;
	margin-left: 0;
	padding-left: 0;
}

#footer .th-foot-col {
	color: rgba(219, 234, 254, 0.7);
	font-size: 14px;
	line-height: 1.7;
}

#footer .th-foot-col p {
	margin-bottom: 8px;
}

#footer .th-foot-col strong {
	color: #fff;
	font-weight: 600;
}

#footer .th-foot-title {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: inline-block;
	padding-bottom: 16px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

#footer .th-foot-sub {
	color: #93c5fd;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin-bottom: 24px;
}

#footer .th-foot-sub-2 {
	margin-top: 28px;
}

#footer .th-foot-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer .th-foot-list li {
	margin-bottom: 10px;
}

#footer .th-foot-col a {
	color: rgba(219, 234, 254, 0.7);
	transition: color 0.2s ease;
}

#footer .th-foot-col a:hover {
	color: #fff;
}

#footer .th-foot-meta {
	margin-top: 18px;
	font-size: 13px;
}

#footer .absolute-footer {
	background-color: #003459;
	color: #fff;
	border-top: 1px solid rgba(59, 130, 246, 0.3);
}

#footer .absolute-footer a {
	color: #fff;
}

@media (max-width: 849px) {
	#footer .th-foot-col {
		margin-bottom: 28px;
	}
	#footer .th-foot-title {
		font-size: 18px;
	}
}

/*************** KHỐI TRANG CHỦ, theo page.tsx và các component home ***************/

.th-sec { overflow: hidden; }

.th-h2 {
	font-size: 30px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.015em;
	color: #0F172A;
	margin-bottom: 16px;
	line-height: 1.25;
}

.th-h2.th-center { text-align: center; margin-bottom: 36px; }
.th-h2.th-blue2 { color: #003366; }
.th-accent { color: #003459; }

.th-badge {
	display: inline-block;
	background: #E0E7FF;
	color: #003459;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.th-lead { color: #4b5563; font-size: 16px; line-height: 1.75; margin-bottom: 20px; }

.th-feature { list-style: none; margin: 0 0 24px; padding: 0; }
.th-feature li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 14px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.6;
}
.th-feature li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #00A8E8;
	box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.15);
}
.th-feature li strong { color: #0F172A; font-weight: 700; }

.th-round img, img.th-round { border-radius: 10px; }

/* Khối 3, bốn cam kết */
.th-sec-usp { border-top: 1px solid rgba(243, 244, 246, 0.8); border-bottom: 1px solid rgba(243, 244, 246, 0.8); }
.th-usp-icon { width: 56px; height: auto; margin: 0 auto 12px; display: block; }
.th-usp-title {
	color: #003459;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin-bottom: 8px;
}
.th-usp-desc { color: #4b5563; font-size: 13px; line-height: 1.6; margin: 0; }

/* Khối 6 và 8, banner xen kẽ */
.th-banner-link { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.th-banner-link img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.th-banner-link:hover img { transform: scale(1.04); }
.th-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 52, 89, 0.72), rgba(0, 52, 89, 0.12) 60%, transparent);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
}
.th-banner-overlay strong { font-size: 19px; font-weight: 700; line-height: 1.3; }
.th-banner-overlay em { font-style: normal; font-size: 13px; opacity: 0.85; margin-top: 4px; }
.th-banner-overlay u { text-decoration: none; font-size: 13px; font-weight: 700; margin-top: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.6); align-self: flex-start; }

/* Khối 12 và 13 */
.th-logo-col img, .th-cert-col img { width: 100%; height: auto; border-radius: 8px; display: block; }
.th-logo-col { margin-bottom: 20px; }
.th-cert-col { margin-bottom: 28px; }

@media (max-width: 849px) {
	.th-h2 { font-size: 22px; }
	.th-banner-overlay strong { font-size: 16px; }
	.th-usp-icon { width: 46px; }
}

/*************** LƯỚI SẢN PHẨM CÓ TAB và ĐẾM NGƯỢC ***************/

.th-sub { color: #4b5563; font-size: 15px; margin-top: -8px; margin-bottom: 22px; }
.th-center { text-align: center; }

.th-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 24px;
}

.th-tab {
	background: #fff;
	border: 1px solid #e5e7eb;
	color: #4b5563;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.2;
}

.th-tab:hover { border-color: #00A8E8; color: #003459; }

.th-tab.is-active {
	background: #003459;
	border-color: #003459;
	color: #fff;
}

.th-grid-wrap { position: relative; min-height: 80px; }
.th-grid-wrap.is-loading { opacity: 0.45; pointer-events: none; }
.th-grid-wrap.is-loading::after {
	content: "";
	position: absolute;
	top: 24px;
	left: 50%;
	width: 26px;
	height: 26px;
	margin-left: -13px;
	border: 3px solid #e5e7eb;
	border-top-color: #003459;
	border-radius: 50%;
	animation: th-spin 0.7s linear infinite;
}

@keyframes th-spin { to { transform: rotate(360deg); } }

.th-product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 850px) {
	.th-product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* Thẻ sản phẩm, theo ProductCard.tsx */
.th-product-grid .product-small {
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	width: 100%;
	padding: 0;
	margin: 0;
}

.th-product-grid .product-small:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.th-product-grid .product-small .box-text { padding: 12px 12px 16px; }
.th-product-grid .product-small .name a { color: #0F172A; font-weight: 600; font-size: 14px; }
.th-product-grid .product-small .name a:hover { color: #00A8E8; }
.th-product-grid .price ins, .th-product-grid .price > .amount { color: #003459; font-weight: 700; }
.th-product-grid .price del { color: #a7a7a7; font-weight: 400; }

.th-grid-empty {
	text-align: center;
	color: #6b7280;
	font-size: 14px;
	padding: 28px 0;
}

.th-more { text-align: center; margin-top: 26px; }

/* Đếm ngược flash sale */
.th-sec-flash { background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); }

.th-flash-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 24px;
}

.th-flash-title { margin: 0; color: #003459; }

.th-countdown { display: flex; align-items: center; gap: 6px; }
.th-cd-label { color: #4b5563; font-size: 13px; margin-right: 4px; }
.th-cd-unit { display: flex; flex-direction: column; align-items: center; }
.th-cd-unit b {
	background: #003459;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	padding: 6px 10px;
	border-radius: 6px;
	min-width: 40px;
	text-align: center;
	line-height: 1.2;
}
.th-cd-unit i { font-style: normal; font-size: 10px; color: #6b7280; margin-top: 4px; text-transform: uppercase; }
.th-cd-sep { color: #003459; font-weight: 700; align-self: flex-start; margin-top: 6px; }

/*************** LƯỚI DANH MỤC VÀ THƯƠNG HIỆU ***************/

.th-cat-grid { margin: 24px 0 8px; }

.th-cat-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 550px) { .th-cat-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 850px) { .th-cat-list { grid-template-columns: repeat(var(--th-cols, 6), 1fr); gap: 16px; } }

.th-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 4px;
	padding: 18px 10px;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	transition: all 0.25s ease;
	min-height: 96px;
}

.th-cat-item:hover {
	border-color: #00A8E8;
	box-shadow: 0 10px 15px -3px rgba(0, 52, 89, 0.1);
	transform: translateY(-2px);
}

.th-cat-img img { max-height: 44px; width: auto; margin-bottom: 6px; }
.th-cat-name { color: #003459; font-weight: 700; font-size: 13px; line-height: 1.3; }
.th-cat-count { color: #6b7280; font-size: 11px; }

/*************** DANH BẠ THƯƠNG HIỆU A tới Z ***************/

.th-brand-dir { max-width: 1200px; margin: 0 auto; padding: 8px 0 24px; }

.th-brand-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 36px;
	padding-bottom: 22px;
	border-bottom: 1px solid #f0f0f0;
}

.th-brand-all {
	padding: 7px 15px;
	font-size: 13px;
	font-weight: 700;
	border: 2px solid #003459;
	color: #003459;
	background: #fff;
	border-radius: 6px;
}

.th-brand-all:hover { background: #003459; color: #fff; }

.th-brand-letter {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	border: 1px solid #e0e0e0;
	color: #444;
	background: #fff;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.th-brand-letter:hover { border-color: #003459; color: #003459; }

.th-brand-letter.is-off {
	border-color: #eaeaea;
	color: #ccc;
	background: #f5f5f5;
	cursor: not-allowed;
}

.th-brand-row {
	display: flex;
	margin-bottom: 35px;
	border-bottom: 1px solid #f3f4f6;
	padding-bottom: 25px;
	scroll-margin-top: 90px;
}

.th-brand-letter-col { width: 80px; flex-shrink: 0; }
.th-brand-letter-col h2 { font-size: 32px; font-weight: 800; color: #003459; margin: 0; line-height: 1; }

.th-brand-cards {
	flex-grow: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 15px;
}

.th-brand-card {
	height: 160px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
	transition: all 0.25s ease;
}

.th-brand-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(0, 52, 89, 0.12);
	border-color: #003459;
}

.th-brand-logo {
	width: 100%;
	height: 105px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.th-brand-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }

.th-brand-initial {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f3f4f6;
	color: #9ca3af;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
}

.th-brand-meta {
	text-align: center;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	margin-top: auto;
	padding-top: 5px;
}

.th-brand-meta b { color: #333; font-weight: 600; }
.th-brand-meta i { color: #999; font-style: normal; font-size: 10.5px; margin-left: 2px; }

@media (max-width: 768px) {
	.th-brand-row { flex-direction: column; gap: 15px; margin-bottom: 25px; padding-bottom: 15px; }
	.th-brand-letter-col { width: 100%; }
}

/*************** KHỐI ĐÁNH GIÁ KHÁCH HÀNG ***************/

.th-sec-tt { background-color: #f0f4f8; }

.th-tt-col { margin-bottom: 20px; }

.th-tt-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px 22px;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 52, 89, 0.05);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.th-tt-card:hover {
	box-shadow: 0 12px 20px -6px rgba(0, 52, 89, 0.15);
	transform: translateY(-2px);
}

.th-tt-stars {
	color: #eab308;
	font-size: 16px;
	letter-spacing: 2px;
	margin-bottom: 12px;
	line-height: 1;
}

.th-tt-text {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.75;
	margin: 0 0 18px;
	flex-grow: 1;
}

.th-tt-who {
	border-top: 1px solid #f3f4f6;
	padding-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.th-tt-who b { color: #003459; font-weight: 700; font-size: 14px; }
.th-tt-who span { color: #6b7280; font-size: 12px; }

@media (max-width: 849px) {
	.th-tt-card { padding: 18px 16px; }
}
