/**
 * shop-v2.css — Danh mục sản phẩm + Chi tiết sản phẩm (giao diện v2).
 * Tiền tố lớp: .aks-*  ·  Dùng chung token màu (v2-base.css) và CTA/prose (blog-v2.css).
 */

.ankhang-shop-v2 { --aks-gap: 24px; }
.ankhang-shop-v2 .shop-page-title,
.ankhang-shop-v2 .category-page-title { display: none; }
.ankhang-shop-v2 #main { background: #fff; }

/* ---------- Banner danh mục ---------- */
.aks-banner {
	position: relative;
	overflow: hidden;
	padding: 36px 0 40px;
	color: #fff;
	background:
		radial-gradient(900px 380px at 88% -20%, rgba(80, 96, 255, 0.55), transparent 60%),
		radial-gradient(700px 300px at -10% 130%, rgba(192, 24, 47, 0.35), transparent 60%),
		var(--ak-navy, #16206b);
}
.aks-banner .akv2-crumbs ol,
.aks-banner .akv2-crumbs li,
.aks-banner .akv2-crumbs a,
.aks-banner .akv2-crumbs span { color: rgba(255, 255, 255, 0.78); }
.aks-banner .akv2-crumbs a:hover { color: #fff; }
.aks-banner__title {
	margin: 12px 0 10px;
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff !important;
}
.aks-banner__lead {
	max-width: 760px;
	margin: 0;
	font-size: 16.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88) !important;
}
.aks-banner__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.aks-banner__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}
.aks-banner__facts li span { color: #fff; }
.aks-banner__facts svg { width: 18px; height: 18px; color: #ffc9d1; }

/* Thanh chip danh mục */
.aks-chipbar {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--ak-line);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
}
.aks-chips {
	display: flex;
	gap: 8px;
	padding: 12px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.aks-chips::-webkit-scrollbar { display: none; }
.aks-chip {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--ak-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ak-ink) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.aks-chip small {
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--ak-soft);
	color: var(--ak-muted);
	font-size: 12px;
	font-weight: 700;
}
.aks-chip:hover { border-color: rgba(28, 34, 204, 0.4); color: var(--ak-primary) !important; }
.aks-chip.is-active { border-color: var(--ak-navy); background: var(--ak-navy); color: #fff !important; }
.aks-chip.is-active small { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------- Danh sách sản phẩm ---------- */
.aks-archive { padding-top: 26px; padding-bottom: 8px; }
.aks-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.aks-toolbar .woocommerce-result-count { margin: 0; font-size: 14.5px; color: var(--ak-muted); }
.aks-toolbar .woocommerce-ordering { margin: 0; }
.aks-toolbar .woocommerce-ordering select {
	height: 42px;
	margin: 0;
	padding: 0 38px 0 14px;
	border: 1px solid var(--ak-line);
	border-radius: 12px;
	background-color: #fff;
	font-size: 14.5px;
	box-shadow: none;
}
.aks-archive .products.row { margin-left: -10px; margin-right: -10px; }
.aks-archive .products .ankhang-product-card.col { padding: 0 10px 20px; }

/* Phân trang WooCommerce (Flatsome .nav-pagination) */
.aks-archive .woocommerce-pagination { margin-top: 16px; }
.aks-archive .nav-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aks-archive .nav-pagination > li { margin: 0 !important; }
.aks-archive .nav-pagination > li > a,
.aks-archive .nav-pagination > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ak-line) !important;
	border-radius: 12px !important;
	background: #fff;
	color: var(--ak-ink) !important;
	font-weight: 600;
	line-height: 1;
}
.aks-archive .nav-pagination > li > .current {
	background: var(--ak-navy) !important;
	border-color: var(--ak-navy) !important;
	color: #fff !important;
}

/* Khối lợi ích */
.aks-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}
.aks-trust li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
	padding: 18px;
	border: 1px solid var(--ak-line);
	border-radius: var(--ak-radius);
	background: var(--ak-soft);
}
.aks-trust__icon {
	display: inline-flex;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fff;
	color: var(--ak-red);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.aks-trust li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.aks-trust strong { font-size: 15px; color: var(--ak-ink); }
.aks-trust small { font-size: 13.5px; line-height: 1.5; color: var(--ak-muted); }

/* Mô tả danh mục (SEO) */
.aks-catdesc {
	margin-top: 48px;
	padding: 32px 36px;
	border: 1px solid var(--ak-line);
	border-radius: 20px;
	background: #fff;
}
.aks-catdesc__body { max-width: 860px; font-size: 16px; }
.aks-catdesc__body[data-collapsed="true"] {
	max-height: 420px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
	mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.aks-catdesc__body h2 { font-size: 1.35rem; }
.aks-catdesc__more {
	display: inline-flex;
	margin: 14px 0 0;
	padding: 0 18px;
	min-height: 40px;
	border: 1px solid var(--ak-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ak-primary);
	font-size: 14.5px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.aks-catdesc__more:hover { border-color: var(--ak-primary); }

/* ---------- Chi tiết sản phẩm ---------- */
.ankhang-shop-v2.single-product .product-container,
.ankhang-shop-v2 .product-main { padding: 0; }
.aks-product { padding-top: 20px; padding-bottom: 36px; }
.aks-product > .akv2-crumbs { margin-bottom: 18px; }
.aks-product__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* Ảnh */
.aks-gallery { position: sticky; top: 90px; min-width: 0; max-width: none !important; padding: 0 !important; }
.admin-bar .aks-gallery { top: 122px; }
.aks-gallery .woocommerce-product-gallery,
.aks-gallery .product-images {
	overflow: hidden;
	border: 1px solid var(--ak-line);
	border-radius: 20px;
	background: #fff;
}
.aks-gallery .woocommerce-product-gallery__image img,
.aks-gallery .product-gallery-slider img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}
.aks-gallery .image-tools { padding: 14px; }
.aks-gallery .product-thumbnails { margin-top: 12px; }
.aks-gallery .product-thumbnails img { border-radius: 10px; }

/* Thông tin */
.aks-summary { min-width: 0; max-width: none !important; padding: 0 !important; }
.aks-summary__title {
	margin: 12px 0 12px;
	font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
	font-weight: 800 !important;
	line-height: 1.22 !important;
	letter-spacing: -0.02em;
	color: var(--ak-ink) !important;
}
.aks-summary__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 18px;
	font-size: 14.5px;
	color: var(--ak-muted);
}
.aks-summary__meta span { color: inherit; }
.aks-summary__meta strong { color: var(--ak-ink); }
.aks-price-tag {
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(192, 24, 47, 0.08);
	color: var(--ak-red) !important;
	font-weight: 700;
}
.aks-summary__short { margin-bottom: 18px; font-size: 15.5px; line-height: 1.7; color: var(--ak-text); }
.aks-summary__short p { margin: 0 0 10px; }
.aks-summary__short ul { margin: 0; padding: 0; }
.aks-summary__short li { position: relative; margin: 0 0 8px; padding-left: 28px; list-style: none; color: var(--ak-text); }
.aks-summary__short li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(28, 34, 204, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c22cc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.aks-quickspecs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0 0 20px;
	overflow: hidden;
	border: 1px solid var(--ak-line);
	border-radius: 14px;
	background: var(--ak-line);
}
.aks-quickspecs > div { display: block; padding: 12px 14px; background: #fff; }
.aks-quickspecs dt,
.aks-quickspecs dd { display: block; float: none; width: auto; padding: 0; text-transform: none !important; letter-spacing: 0 !important; }
.aks-quickspecs dt { margin: 0 0 3px; font-size: 12.5px; font-weight: 500; color: var(--ak-muted); }
.aks-quickspecs dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ak-ink); }
.aks-quickspecs dd::first-letter { text-transform: uppercase; }

/* Nút liên hệ (template product-contact-buttons) */
.aks-summary .ankhang-product-contact {
	margin: 0 0 16px;
	padding: 18px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #f4f6fd, #eef1fb);
}
.aks-summary .ankhang-product-contact__heading { font-size: 1.05rem; }
.aks-summary .ankhang-product-contact__btn { min-height: 48px; }

.aks-summary__trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.aks-summary__trust li { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; font-size: 13.5px; line-height: 1.5; color: var(--ak-muted); }
.aks-summary__trust li span { color: var(--ak-muted); }
.aks-summary__trust strong { display: block; font-size: 14px; color: var(--ak-ink); }
.aks-summary__trust svg { flex: 0 0 22px; color: var(--ak-red); }
.aks-summary__share { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ak-line); }
.aks-summary__share > span { font-size: 14px; font-weight: 700; color: var(--ak-ink); }
.aks-summary__share .social-icons { margin: 0; }

/* Thanh điều hướng nội dung */
.aks-subnav {
	position: sticky;
	top: 0;
	z-index: 20;
	border-top: 1px solid var(--ak-line);
	border-bottom: 1px solid var(--ak-line);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
}
.aks-subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.aks-subnav .container::-webkit-scrollbar { display: none; }
.aks-subnav a {
	flex: 0 0 auto;
	padding: 15px 14px 13px;
	border-bottom: 3px solid transparent;
	color: var(--ak-muted);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.aks-subnav a:hover { color: var(--ak-ink); }
.aks-subnav a.is-active { border-bottom-color: var(--ak-red); color: var(--ak-ink); }

.aks-detail { padding-top: 36px; }
.aks-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.aks-detail__main { min-width: 0; max-width: 820px; }
.aks-detail__aside { min-width: 0; align-self: stretch; }
.aks-detail__sticky { position: sticky; top: 76px; }
.admin-bar .aks-detail__sticky { top: 108px; }
.aks-detail__aside .akv2-links li.is-child a { padding-left: 14px; }
.aks-detail__aside .akv2-links li.is-child a span { font-weight: 500; color: var(--ak-text); }

.aks-section { padding: 8px 0 36px; scroll-margin-top: 70px; }
.aks-section + .aks-section { padding-top: 32px; border-top: 1px solid var(--ak-line); }
.aks-section__title {
	position: relative;
	margin: 0 0 20px;
	padding-left: 16px;
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	font-weight: 800;
	line-height: 1.3;
	color: var(--ak-ink);
}
.aks-section__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 5px;
	border-radius: 4px;
	background: var(--ak-red);
}
.aks-section .akv2-prose { font-size: 16.5px; }
.aks-section .akv2-prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.aks-section .akv2-prose h2:first-child { margin-top: 0; }

.aks-spec-table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--ak-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	font-size: 15px;
}
.aks-spec-table th,
.aks-spec-table td { padding: 13px 16px !important; border: 0; border-top: 1px solid var(--ak-line); vertical-align: top; text-align: left; line-height: 1.55; }
.aks-spec-table tr:first-child th,
.aks-spec-table tr:first-child td { border-top: 0; }
.aks-spec-table th {
	width: 38%;
	background: var(--ak-soft);
	color: var(--ak-ink);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}
.aks-spec-table td { color: var(--ak-text); }
.aks-note { margin: 12px 0 0; font-size: 14px; color: var(--ak-muted); }

.aks-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.aks-steps li {
	position: relative;
	margin: 0 !important;
	padding: 20px 20px 18px 74px;
	border: 1px solid var(--ak-line);
	border-radius: 16px;
	background: #fff;
}
.aks-steps__num {
	position: absolute;
	left: 20px;
	top: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--ak-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}
.aks-steps strong { display: block; margin-bottom: 4px; font-size: 15.5px; color: var(--ak-ink); }
.aks-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ak-muted); }

.aks-reviews__box {
	border: 1px solid var(--ak-line);
	border-radius: 16px;
	background: #fff;
}
.aks-reviews__box > summary {
	padding: 16px 20px;
	color: var(--ak-ink);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.aks-reviews__box > summary::-webkit-details-marker { display: none; }
.aks-reviews__box > summary::after { content: "＋"; float: right; color: var(--ak-primary); }
.aks-reviews__box[open] > summary::after { content: "－"; }
.aks-reviews__box > summary + * { padding: 0 20px 20px; }
.aks-reviews #reviews { padding: 0 20px 20px; }
.aks-reviews #reviews .woocommerce-Reviews-title,
.aks-reviews #reviews h3 { font-size: 1.05rem; }
.aks-reviews #review_form_wrapper { margin: 0; }
.aks-reviews #review_form .comment-respond { margin: 0; padding: 0; border: 0; }
.aks-reviews textarea,
.aks-reviews input[type="text"],
.aks-reviews input[type="email"] { border: 1px solid var(--ak-line); border-radius: 12px; box-shadow: none; }
.aks-reviews .form-submit input[type="submit"],
.aks-reviews .form-submit .submit { border-radius: 999px; background: var(--ak-navy); padding: 0 26px; }

.aks-related { margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--ak-line); }
.aks-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.aks-related__grid .ankhang-product-card.col { width: auto; max-width: none; flex-basis: auto; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.aks-detail__grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
}

@media (max-width: 960px) {
	.aks-product__grid { grid-template-columns: 1fr; gap: 24px; }
	.aks-gallery { position: static; }
	.aks-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aks-detail__grid { grid-template-columns: 1fr; gap: 8px; }
	.aks-detail__main { max-width: none; }
	.aks-detail__sticky { position: static; }
	.aks-detail__aside .akv2-cta--aside { display: none; }
	.aks-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 640px) {
	.aks-banner { padding: 24px 0 28px; }
	.aks-banner__lead { font-size: 15px; }
	.aks-banner__facts li { padding: 6px 12px; font-size: 13px; }
	.aks-archive { padding-top: 18px; }
	.aks-toolbar { gap: 8px; }
	.aks-toolbar__sort, .aks-toolbar .woocommerce-ordering, .aks-toolbar .woocommerce-ordering select { width: 100%; }
	.aks-archive .products.row { margin-left: -6px; margin-right: -6px; }
	.aks-archive .products .ankhang-product-card.col { padding: 0 6px 12px; }
	.aks-trust { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
	.aks-catdesc { margin-top: 32px; padding: 22px 18px; border-radius: 16px; }
	.aks-product { padding-top: 14px; }
	.aks-summary__title { font-size: 1.55rem !important; }
	.aks-quickspecs { grid-template-columns: 1fr 1fr; }
	.aks-summary__trust { grid-template-columns: 1fr; }
	.aks-steps { grid-template-columns: 1fr; }
	.aks-spec-table th { width: 42%; }
	.aks-spec-table th, .aks-spec-table td { padding: 11px 12px !important; font-size: 14px; }
	.aks-related__grid { gap: 10px; }
}
