/**
 * Henghud — catalog: การ์ดสินค้า, หน้ารวม + ตัวกรอง, หน้าสินค้า, gallery, ราคา, Quick View
 */

/* ---------- Badges ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.5;
	background: var(--hh-bg);
	color: var(--hh-text);
	box-shadow: var(--hh-shadow-1);
	white-space: nowrap;
}

.badge--in_stock { background: var(--hh-accent-soft); color: var(--hh-accent-ink); box-shadow: none; }
.badge--made_to_order { background: #fff4e5; color: #8a4b00; }
.badge--out_of_stock,
.badge--discontinued { background: #fdecec; color: var(--hh-danger); }
.badge--new { background: var(--hh-accent); color: var(--hh-accent-contrast); }
.badge--best { background: #1a1a1a; color: #fff; }
.badge--low_moq { background: #e8f0fe; color: #1a56c4; }
.badge--eco { background: #e6f4ea; color: #1e7b3c; }

[data-theme="dark"] .badge--made_to_order { background: #3a2a10; color: #ffb950; }
[data-theme="dark"] .badge--out_of_stock,
[data-theme="dark"] .badge--discontinued { background: #3a1616; color: #ff8a8a; }
[data-theme="dark"] .badge--best { background: #f2f2f0; color: #111; }

/* ---------- Product card ---------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 28px) clamp(12px, 2vw, 24px);
}

@media (min-width: 768px) {
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
	.archive__layout:not(:has(.filters)) .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	container-type: inline-size;
}

.pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: var(--hh-radius-lg);
	overflow: hidden;
	background: var(--hh-card-media);
}

.pcard__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform var(--hh-dur-slow) var(--hh-ease-out), opacity var(--hh-dur) var(--hh-ease);
}

.pcard__img--hover { opacity: 0; }

@media (hover: hover) {
	.pcard:hover .pcard__img { transform: scale(1.04); }
	.pcard:hover .pcard__img--hover { opacity: 1; }
	.pcard:hover .pcard__img:not(.pcard__img--hover):has(+ .pcard__img--hover) { opacity: 0; }
}

.pcard--unavailable .pcard__img { filter: grayscale(0.6); opacity: 0.7; }

.pcard__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: color-mix(in srgb, var(--hh-text-muted) 40%, transparent);
}

.pcard__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-width: calc(100% - 20px);
}

.pcard__video {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.6);
	color: #fff;
}

.pcard__actions {
	position: absolute;
	top: calc(100cqi - 52px);
	right: 10px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.pcard__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	min-width: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: var(--hh-bg);
	color: var(--hh-text);
	box-shadow: var(--hh-shadow-2);
	font-size: var(--hh-fs-xs);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--hh-dur) var(--hh-ease-out), opacity var(--hh-dur) var(--hh-ease), background-color var(--hh-dur-fast);
}

.pcard__action--line { padding: 0; justify-content: center; background: var(--hh-line-ui); color: #fff; }
.pcard__action:hover { transform: translateY(-2px); color: inherit; }
.pcard__action--line:hover { color: #fff; }

@media (hover: hover) and (min-width: 768px) {
	.pcard__action { opacity: 0; transform: translateY(8px); }
	.pcard:hover .pcard__action,
	.pcard:focus-within .pcard__action { opacity: 1; transform: none; }
}

@container (max-width: 220px) {
	.pcard__action-label { display: none; }
	.pcard__action { padding: 0; justify-content: center; }
}

.pcard__body { padding: 12px 2px 0; display: grid; gap: 4px; }

.pcard__sku {
	margin: 0;
	font-family: var(--hh-font-mono);
	font-size: var(--hh-fs-xs);
	color: var(--hh-text-muted);
	letter-spacing: 0.04em;
}

.pcard__title {
	margin: 0;
	font-family: var(--hh-font-body);
	font-size: var(--hh-fs-base);
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.pcard__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pcard__chips span {
	padding: 1px 8px;
	border: 1px solid var(--hh-border);
	border-radius: 999px;
	font-size: 0.6875rem;
	color: var(--hh-text-muted);
}

.pcard__price { margin: 2px 0 0; font-weight: 700; font-size: var(--hh-fs-sm); }
.pcard__price--ask { color: var(--hh-accent); font-weight: 600; }

/* ---------- Archive ---------- */
.section--tight { padding-top: clamp(16px, 3vw, 32px); }

.breadcrumbs { font-size: var(--hh-fs-xs); color: var(--hh-text-muted); margin-bottom: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: 0.5; }
.breadcrumbs a { text-decoration: none; }

.archive__header { margin-bottom: 20px; }

.subcats {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 24px;
	scrollbar-width: thin;
}

.subcats__item {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border: 1px solid var(--hh-border);
	border-radius: 999px;
	text-decoration: none;
	font-size: var(--hh-fs-sm);
	font-weight: 500;
	transition: border-color var(--hh-dur-fast), transform var(--hh-dur-fast);
}

.subcats__item:not(:has(img)) { padding-left: 16px; }
.subcats__item:hover { border-color: var(--hh-accent); color: var(--hh-accent); transform: translateY(-1px); }
.subcats__img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--hh-card-media); }

.archive__layout { display: grid; gap: 32px; }

@media (min-width: 1024px) {
	.archive__layout:has(.filters) { grid-template-columns: 260px minmax(0, 1fr); }
}

.archive__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.archive__count { margin: 0; color: var(--hh-text-muted); font-size: var(--hh-fs-sm); }
.archive__count strong { color: var(--hh-text); }
.archive__tools { display: flex; gap: 8px; align-items: center; }

.sort select {
	height: 38px;
	padding: 0 32px 0 14px;
	border: 1px solid var(--hh-border);
	border-radius: 999px;
	background: var(--hh-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	appearance: none;
	font-size: var(--hh-fs-sm);
	cursor: pointer;
}

.filters-toggle { display: none; }

@media (max-width: 1023px) {
	.filters-toggle { display: inline-flex; }
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }

.active-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--hh-accent-soft);
	color: var(--hh-accent);
	font-size: var(--hh-fs-xs);
	font-weight: 600;
	text-decoration: none;
}

.active-filters__clear { font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }

.load-prev { display: flex; justify-content: center; margin: 0 0 24px; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.load-more__status { margin: 0; font-size: var(--hh-fs-sm); color: var(--hh-text-muted); }
.load-more__bar { appearance: none; width: min(240px, 100%); height: 4px; border: 0; border-radius: 999px; background: var(--hh-border); color: var(--hh-accent); overflow: hidden; }
.load-more__bar::-webkit-progress-bar { background: var(--hh-border); border-radius: 999px; }
.load-more__bar::-webkit-progress-value { background: var(--hh-accent); border-radius: 999px; transition: width var(--hh-dur) var(--hh-ease); }
.load-more__bar::-moz-progress-bar { background: var(--hh-accent); border-radius: 999px; }
.load-more .btn { margin-top: 4px; }
.load-more .is-loading { opacity: 0.6; pointer-events: none; }
.archive__pagination .pagination { margin-top: 20px; }
.archive__pagination .nav-links { font-size: var(--hh-fs-sm); }
/* มี JS แล้วใช้ปุ่ม "ดูสินค้าเพิ่ม" แทน: เลขหน้ายังอยู่ใน HTML สำหรับ Google / คนที่ปิด JS */
.js-ready .archive__pagination { display: none; }

/* ---------- Filters ---------- */
.filters__head { display: none; }
.filters__title { font-size: var(--hh-fs-lg); margin: 0; }

.filter-group { border-bottom: 1px solid var(--hh-border); padding: 12px 0; }
.filter-group:first-child { padding-top: 0; }

.filter-group__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: var(--hh-fs-sm);
	padding: 4px 0;
}

.filter-group__title::-webkit-details-marker { display: none; }
.filter-group__title .hh-icon { transition: transform var(--hh-dur); color: var(--hh-text-muted); }
.filter-group[open] .filter-group__title .hh-icon { transform: rotate(180deg); }

.filter-group__options { display: grid; gap: 2px; padding-top: 8px; max-height: 280px; overflow-y: auto; }

.check {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: var(--hh-radius);
	font-size: var(--hh-fs-sm);
	cursor: pointer;
}

.check:hover { background: var(--hh-surface); }
.check input { width: 16px; height: 16px; accent-color: var(--hh-accent); margin: 0; }
.check__swatch { width: 16px; height: 16px; border-radius: 999px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.check:not(:has(.check__swatch)) { grid-template-columns: auto 1fr auto; }
.check__count { font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.check.is-on .check__label { font-weight: 600; }

.range { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.range input {
	width: 100%;
	min-width: 0;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-radius);
	background: var(--hh-bg);
}

.filters__foot { display: flex; gap: 8px; padding-top: 16px; }
.filters__foot .btn { flex: 1; }
.filters__none { color: var(--hh-text-muted); font-size: var(--hh-fs-sm); }

@media (min-width: 1024px) {
	.filters { position: sticky; top: calc(var(--hh-header-h) + 24px); align-self: start; max-height: calc(100vh - var(--hh-header-h) - 48px); overflow-y: auto; padding-right: 4px; }
	.header-hidden .filters { top: 24px; }
	.filters__foot { display: none; }
}

@media (max-width: 1023px) {
	.filters {
		position: fixed;
		inset: 0;
		z-index: 210;
		background: var(--hh-overlay);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--hh-dur), visibility var(--hh-dur);
	}

	.filters.is-open { opacity: 1; visibility: visible; }

	.filters__head,
	.filters__form {
		background: var(--hh-bg);
		width: min(90vw, 380px);
		margin-left: auto;
		transform: translateX(100%);
		transition: transform var(--hh-dur-slow) var(--hh-ease-out);
	}

	.filters.is-open .filters__head,
	.filters.is-open .filters__form { transform: none; }

	.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--hh-border); height: 64px; }
	.filters__form { height: calc(100% - 64px); display: flex; flex-direction: column; }
	.filters__body { flex: 1; overflow-y: auto; padding: 16px; }
	.filters__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hh-border); }
}

/* ---------- Product page ---------- */
.product__top { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }

@media (min-width: 1024px) {
	.product__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
	.product__gallery { position: sticky; top: calc(var(--hh-header-h) + 24px); }
	.header-hidden .product__gallery { top: 24px; }
}

.summary { display: grid; gap: 16px; }
.summary__badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.summary__lead { display: inline-flex; align-items: center; gap: 4px; font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.summary__title { font-family: var(--hh-font-body); font-size: var(--hh-fs-2xl); line-height: 1.35; margin: 0; }

.summary__sku { display: flex; align-items: center; gap: 8px; margin: -6px 0 0; font-size: var(--hh-fs-sm); color: var(--hh-text-muted); }
.summary__sku code { font-family: var(--hh-font-mono); font-size: var(--hh-fs-base); color: var(--hh-text); letter-spacing: 0.04em; }

.summary__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.summary__chips span { padding: 4px 12px; border-radius: 999px; background: var(--hh-surface); font-size: var(--hh-fs-sm); }
.summary__excerpt { margin: 0; color: var(--hh-text-muted); }

.summary__qty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.summary__qty label { font-weight: 600; font-size: var(--hh-fs-sm); }
.summary__unit { color: var(--hh-text-muted); font-size: var(--hh-fs-sm); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--hh-border); border-radius: 999px; overflow: hidden; }
.stepper__btn { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; }
.stepper__btn:hover { background: var(--hh-surface); }
.stepper input { width: 96px; height: 40px; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary__cta { display: grid; gap: 8px; }
.btn--lg { min-height: 54px; font-size: var(--hh-fs-base); }
.summary__cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary__hint { margin: 0; font-size: var(--hh-fs-xs); color: var(--hh-text-muted); text-align: center; }
.summary__more { font-weight: 600; color: var(--hh-accent); text-decoration: none; }

/* Price box */
.price-box { padding: 16px; border: 1px solid var(--hh-border); border-radius: var(--hh-radius-lg); background: var(--hh-surface); }
.price-box__from { margin: 0 0 12px; font-size: var(--hh-fs-xl); font-weight: 700; }
.price-box__from small { font-size: var(--hh-fs-sm); font-weight: 400; color: var(--hh-text-muted); }
.price-box__ask { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--hh-accent); }
.price-box__meta { margin: 6px 0 0; font-size: var(--hh-fs-sm); color: var(--hh-text-muted); }
.price-box__calc { margin: 10px 0 0; min-height: 1.5em; font-size: var(--hh-fs-sm); font-weight: 600; color: var(--hh-accent); }
.price-box__note { margin: 8px 0 0; font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }

.price-table { width: 100%; border-collapse: collapse; font-size: var(--hh-fs-sm); }
.price-table th { text-align: left; font-weight: 500; color: var(--hh-text-muted); padding: 6px 10px; border-bottom: 1px solid var(--hh-border); }
.price-table td { padding: 8px 10px; border-bottom: 1px solid var(--hh-border); transition: background-color var(--hh-dur); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { text-align: right; font-weight: 600; }
.price-table__ask { color: var(--hh-accent); }
.price-table tr.is-active td { background: var(--hh-accent-soft); }
.price-table tr.is-active td:first-child { box-shadow: inset 3px 0 0 var(--hh-accent); }

/* Sections */
.product__jump {
	position: sticky;
	top: var(--hh-header-h);
	z-index: 20;
	display: flex;
	gap: 4px;
	margin: 40px 0 0;
	padding: 8px 0;
	overflow-x: auto;
	background: color-mix(in srgb, var(--hh-bg) 92%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--hh-border);
}

.header-hidden .product__jump { top: 0; }
.product__jump a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: var(--hh-fs-sm); font-weight: 500; text-decoration: none; }
.product__jump a:hover { background: var(--hh-surface); }

.product__sections { display: grid; gap: 40px; padding-top: 32px; }

@media (min-width: 1024px) {
	.product__sections:has(> :nth-child(2)) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.section-title { font-size: var(--hh-fs-xl); margin-bottom: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.section-head__note { margin: 0; font-size: var(--hh-fs-sm); color: var(--hh-text-muted); }

.spec-table { margin: 0; border: 1px solid var(--hh-border); border-radius: var(--hh-radius-lg); overflow: hidden; }
.spec-table__row { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 10px 16px; font-size: var(--hh-fs-sm); }
.spec-table__row:nth-child(odd) { background: var(--hh-surface); }
.spec-table dt { color: var(--hh-text-muted); }
.spec-table dd { margin: 0; font-weight: 500; }

.product__related { margin-top: 56px; }

.product-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(170px, 1fr);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	scrollbar-width: thin;
}

.product-rail > * { scroll-snap-align: start; }

@media (min-width: 1024px) {
	.product-rail { grid-auto-columns: calc((100% - 60px) / 4); }
}

/* ปุ่มติดต่อลอยหลบเมื่อปุ่มหลักของหน้าสินค้าอยู่บนจอ */
.cta-visible .contact-fab:not(.is-open) .contact-fab__toggle,
.has-sticky-cta .contact-fab:not(.is-open) .contact-fab__toggle {
	transform: scale(0);
	opacity: 0;
	pointer-events: none;
}

.cta-visible .scroll-top { visibility: hidden; opacity: 0; }

/* แถบปุ่มติดล่างจอ (มือถือ/แท็บเล็ต) */
.sticky-cta {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + var(--hh-bottom-nav-h));
	z-index: 85;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 16px;
	border-radius: 999px;
	background: var(--hh-bg);
	box-shadow: var(--hh-shadow-3);
	transform: translateY(calc(100% + 24px));
	opacity: 0;
	transition: transform var(--hh-dur-slow) var(--hh-ease-out), opacity var(--hh-dur) var(--hh-ease);
}

.sticky-cta.is-visible { transform: none; opacity: 1; }
.sticky-cta__info { flex: 1; min-width: 0; display: grid; }
.sticky-cta__title { font-size: var(--hh-fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-cta__price { font-size: var(--hh-fs-xs); color: var(--hh-accent); font-weight: 600; }
.has-sticky-cta .scroll-top { bottom: calc(80px + var(--hh-fab-offset)); }

@media (min-width: 1024px) {
	.sticky-cta { display: none; }
}

/* ---------- Gallery ---------- */
.gallery__viewport { position: relative; }

.gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--hh-radius-lg);
	background: var(--hh-card-media);
}

.gallery__track::-webkit-scrollbar { display: none; }

.gallery__slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
	aspect-ratio: 1;
	scroll-snap-align: center;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: contain; }

.gallery__backdrop {
	position: absolute;
	inset: -20px;
	background-size: cover;
	background-position: center;
	filter: blur(24px) saturate(1.2);
	opacity: 0.55;
}

.gallery__video {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
}

.gallery__video img { width: 100%; height: 100%; object-fit: cover; }

.gallery__slide--vertical .gallery__video,
.gallery__slide--vertical .gallery__player { width: auto; height: 100%; aspect-ratio: 9 / 16; background: #000; }

.gallery__player { position: relative; width: 100%; height: 100%; border: 0; background: #000; }

.gallery__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.6);
	color: #fff;
	transform: translate(-50%, -50%);
	transition: transform var(--hh-dur) var(--hh-ease-out), background-color var(--hh-dur);
}

.gallery__video:hover .gallery__play { transform: translate(-50%, -50%) scale(1.08); background: var(--hh-accent); }

.gallery__label {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.7);
	color: #fff;
	font-size: var(--hh-fs-xs);
	font-weight: 600;
}

.gallery__label--tiktok { background: #000; }
.gallery__label--youtube { background: #e00; }

.gallery__watch {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--hh-bg);
	color: var(--hh-text);
	font-size: var(--hh-fs-xs);
	text-decoration: none;
	box-shadow: var(--hh-shadow-2);
	z-index: 1;
}

.gallery__nav {
	position: absolute;
	top: 50%;
	translate: 0 -50%; /* ไม่ใช้ transform: ให้ scale ตอนกดย่อจากกึ่งกลางพอดี */
	background: var(--hh-bg);
	box-shadow: var(--hh-shadow-2);
	opacity: 0;
	transition: opacity var(--hh-dur);
}

.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__viewport:hover .gallery__nav,
.gallery__nav:focus-visible { opacity: 1; }

@media (hover: none) {
	.gallery__nav { display: none; }
}

.gallery__counter {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.55);
	color: #fff;
	font-size: var(--hh-fs-xs);
}

.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }

.gallery__thumb {
	position: relative;
	flex: none;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--hh-radius);
	background: var(--hh-card-media);
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--hh-dur-fast), border-color var(--hh-dur-fast);
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--hh-accent); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }

.gallery__thumb-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	background: rgb(0 0 0 / 0.3);
}

.gallery--empty,
.gallery__placeholder { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--hh-radius-lg); background: var(--hh-card-media); color: var(--hh-text-muted); }

/* Lightbox */
.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(10 10 10 / 0.95);
	display: grid;
	place-items: center;
	overflow: auto;
}

.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: 92vw; max-height: 90vh; object-fit: contain; cursor: zoom-in; transition: transform var(--hh-dur) var(--hh-ease-out); }
.lightbox__img.is-zoomed { transform: scale(1.8); cursor: zoom-out; }
.lightbox__close,
.lightbox__nav { position: fixed; color: #fff; background: rgb(255 255 255 / 0.12); font-size: 1.5rem; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; }
.lightbox__nav--next { right: 16px; top: 50%; }

/* ---------- Inquiry form ---------- */
.inquiry-form { display: grid; gap: 14px; }
.inquiry-form__title { font-size: var(--hh-fs-xl); margin: 0; }
.inquiry-form__grid { display: grid; gap: 12px; }

@media (min-width: 600px) {
	.inquiry-form__grid { grid-template-columns: 1fr 1fr; }
	.field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 4px; }
.field__label { font-size: var(--hh-fs-sm); font-weight: 600; }
.field__req { color: var(--hh-danger); }
.field input,
.field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-radius);
	background: var(--hh-bg);
	transition: border-color var(--hh-dur-fast), box-shadow var(--hh-dur-fast);
}

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--hh-accent); box-shadow: 0 0 0 4px var(--hh-accent-soft); }
.field.has-error input,
.field.has-error textarea { border-color: var(--hh-danger); }
.field__error { min-height: 0; font-size: var(--hh-fs-xs); color: var(--hh-danger); }
.field__error:empty { display: none; }

.inquiry-form__consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--hh-fs-sm); }
.inquiry-form__consent input { margin-top: 4px; accent-color: var(--hh-accent); }
.inquiry-form__consent.has-error { color: var(--hh-danger); }

/* honeypot: ซ่อนจากคน แต่บอทยังกรอก */
.inquiry-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.inquiry-form__submit.is-loading { opacity: 0.6; }
.inquiry-form__result { margin: 0; padding: 12px 16px; border-radius: var(--hh-radius); font-size: var(--hh-fs-sm); }
.inquiry-form__result.is-ok { background: var(--hh-accent-soft); color: var(--hh-accent); font-weight: 600; }
.inquiry-form__result.is-error { background: #fdecec; color: var(--hh-danger); }

.inquiry-dialog {
	width: min(640px, 94vw);
	max-height: 90vh;
	padding: 0;
	border: 0;
	border-radius: var(--hh-radius-lg);
	background: var(--hh-bg);
	color: var(--hh-text);
	box-shadow: var(--hh-shadow-3);
}

.inquiry-dialog[open] { animation: hh-modal-in var(--hh-dur) var(--hh-ease-out); }
.inquiry-dialog::backdrop { background: var(--hh-overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.inquiry-dialog__box { position: relative; padding: clamp(20px, 4vw, 32px); max-height: 90vh; overflow-y: auto; }
.inquiry-dialog__close { position: absolute; top: 10px; right: 10px; }
.inquiry-dialog__title { font-size: var(--hh-fs-xl); margin: 0 40px 4px 0; }
.inquiry-dialog__items { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--hh-text-muted); font-size: var(--hh-fs-sm); }
.inquiry-dialog__items:empty { display: none; }
.inquiry-dialog__items li { padding-left: 14px; position: relative; }
.inquiry-dialog__items li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 5px; height: 5px; border-radius: 999px; background: var(--hh-accent); }

/* ---------- Quick View ---------- */
.quickview {
	width: min(1040px, 94vw);
	max-width: none;
	max-height: 90vh;
	padding: 0;
	border: 0;
	border-radius: var(--hh-radius-lg);
	background: var(--hh-bg);
	color: var(--hh-text);
	box-shadow: var(--hh-shadow-3);
	overflow: hidden;
}

.quickview[open] { animation: hh-modal-in var(--hh-dur) var(--hh-ease-out); }

.quickview::backdrop {
	background: var(--hh-overlay);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.quickview__panel { position: relative; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; }
.quickview__close { position: absolute; top: 10px; right: 10px; z-index: 5; background: var(--hh-bg); box-shadow: var(--hh-shadow-1); }
.quickview__grip { display: none; }
.quickview__body { padding: clamp(16px, 3vw, 32px); }

.quickview__loading {
	height: 420px;
	border-radius: var(--hh-radius-lg);
	background: linear-gradient(90deg, var(--hh-surface) 25%, var(--hh-surface-2) 50%, var(--hh-surface) 75%);
	background-size: 200% 100%;
	animation: hh-shimmer 1.2s linear infinite;
}

.quick { display: grid; gap: clamp(20px, 3vw, 36px); }

@media (min-width: 768px) {
	.quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.quick .summary__title { font-size: var(--hh-fs-xl); padding-right: 40px; }
.quick__specs { border-top: 1px solid var(--hh-border); padding-top: 12px; }
.quick__specs summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--hh-fs-sm); }
.quick__specs summary::-webkit-details-marker { display: none; }
.quick__specs .spec-table { margin-top: 10px; }
.quick__compat { margin-top: 16px; }
.quick__compat-title { margin: 0 0 8px; font-weight: 600; font-size: var(--hh-fs-sm); }
.quick__compat-list { display: flex; gap: 8px; flex-wrap: wrap; }
.quick__compat-item { display: grid; gap: 4px; justify-items: center; width: 72px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 0.6875rem; font-family: var(--hh-font-mono); color: var(--hh-text-muted); }
.quick__compat-item img,
.quick__compat-ph { width: 72px; height: 72px; border-radius: var(--hh-radius); background: var(--hh-card-media); object-fit: contain; }
.quick__compat-item:hover img { outline: 2px solid var(--hh-accent); }

@media (max-width: 767px) {
	.quickview {
		width: 100vw;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: var(--hh-radius-lg) var(--hh-radius-lg) 0 0;
	}

	.quickview[open] { animation: hh-sheet-in var(--hh-dur-slow) var(--hh-ease-out); }
	.quickview__panel { max-height: 92vh; transition: transform var(--hh-dur) var(--hh-ease-out); }
	.quickview__grip { display: block; width: 44px; height: 5px; margin: 8px auto 0; border-radius: 999px; background: var(--hh-border); cursor: grab; touch-action: none; }
	.quickview__body { padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
}

@keyframes hh-sheet-in {
	from { transform: translateY(100%); }
}

/* =========================================================
   Phase 3: รายการที่สนใจ / Mix & Match / วิดีโอ
   ========================================================= */

/* ---------- Badge จำนวนในรายการ (header + bottom nav) ---------- */
.list-toggle { position: relative; }
.list-badge {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--hh-accent);
	color: var(--hh-accent-contrast);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	pointer-events: none;
}
.list-badge[hidden] { display: none; }
.list-badge.is-bump { animation: hh-bump var(--hh-dur-slow) var(--hh-ease-out); }
@keyframes hh-bump { 40% { transform: scale(1.35); } }
.bottom-nav__icon { position: relative; display: inline-grid; }
.bottom-nav__icon .list-badge { top: -6px; right: -12px; }

/* ปุ่ม ♡ บนการ์ดและหน้าสินค้า */
.pcard__action--list { padding: 0; justify-content: center; }
.pcard__action--list.is-on,
.btn--list.is-on { color: var(--hh-danger); }
.pcard__action--list.is-on .hh-icon,
.btn--list.is-on .hh-icon { fill: currentColor; }
@media (hover: hover) and (min-width: 768px) {
	/* เก็บไว้แล้วให้เห็นตลอด ไม่ต้อง hover */
	.pcard__action--list.is-on { opacity: 1; transform: none; }
}

/* ---------- Drawer รายการที่สนใจ ---------- */
.list-drawer { position: fixed; inset: 0; z-index: 210; }
.list-drawer[hidden] { display: none; }
.list-drawer__backdrop { position: absolute; inset: 0; background: var(--hh-overlay); opacity: 0; transition: opacity var(--hh-dur) var(--hh-ease); }
.list-drawer__panel {
	position: absolute;
	inset: 0 0 0 auto;
	width: min(94vw, 440px);
	display: flex;
	flex-direction: column;
	background: var(--hh-bg);
	box-shadow: var(--hh-shadow-3);
	transform: translateX(100%);
	transition: transform var(--hh-dur-slow) var(--hh-ease-out);
	padding-bottom: env(safe-area-inset-bottom);
}
.list-drawer.is-open .list-drawer__backdrop { opacity: 1; }
.list-drawer.is-open .list-drawer__panel { transform: none; }
.list-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--hh-gutter); border-bottom: 1px solid var(--hh-border); }
.list-drawer__title { margin: 0; font-size: var(--hh-fs-lg); }
.list-drawer__count { color: var(--hh-text-muted); font-weight: 500; }
.list-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--hh-gutter); }
.list-drawer__foot { display: grid; gap: 8px; padding: 12px var(--hh-gutter) 16px; border-top: 1px solid var(--hh-border); }
.list-drawer__foot[hidden] { display: none; }
.list-drawer__total { margin: 0; font-weight: 600; font-size: var(--hh-fs-sm); }
.list-drawer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.list-drawer__row--minor .btn { color: var(--hh-text-muted); }

.list-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; text-align: center; color: var(--hh-text-muted); }
.list-empty[hidden] { display: none; }
.list-empty p { margin: 0; max-width: 32ch; }

/* ---------- แถวรายการ ---------- */
.list-items { display: grid; transition: opacity var(--hh-dur) var(--hh-ease); }
.list-items.is-loading { opacity: 0.7; }
.list-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	grid-template-areas: "thumb info remove" "thumb qty qty";
	gap: 6px 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--hh-border);
}
.list-item__thumb { grid-area: thumb; display: block; width: 64px; height: 64px; border-radius: var(--hh-radius); background: var(--hh-card-media); overflow: hidden; }
.list-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.list-item__info { grid-area: info; min-width: 0; display: grid; gap: 2px; }
.list-item__sku { margin: 0; font-family: var(--hh-font-mono); font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.list-item__title { font-weight: 600; font-size: var(--hh-fs-sm); line-height: 1.4; text-decoration: none; color: var(--hh-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item__note { margin: 0; font-size: var(--hh-fs-xs); color: var(--hh-accent); }
.list-item__note[hidden] { display: none; }
.list-item__price { margin: 0; font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.list-item__qty { grid-area: qty; display: flex; align-items: center; gap: 8px; }
.list-item__unit { font-size: var(--hh-fs-sm); color: var(--hh-text-muted); }
.list-item__remove { grid-area: remove; align-self: start; color: var(--hh-text-muted); }
.list-item__remove:hover { color: var(--hh-danger); }
.list-item.is-readonly .stepper__btn,
.list-item.is-readonly .list-item__remove { display: none; }
.list-item.is-readonly .stepper { border-color: transparent; }

.stepper--sm .stepper__btn { width: 34px; height: 34px; font-size: 1.1rem; }
.stepper--sm input { width: 72px; height: 34px; }

/* ---------- หน้า /list/ ---------- */
.list-items--page .list-item { grid-template-columns: 88px minmax(0, 1fr) auto auto; grid-template-areas: "thumb info qty remove"; align-items: center; }
.list-items--page .list-item__thumb { width: 88px; height: 88px; }
@media (max-width: 599px) {
	.list-items--page .list-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty qty"; }
	.list-items--page .list-item__thumb { width: 64px; height: 64px; }
}
.list-actions { display: grid; gap: 10px; margin-top: 24px; max-width: 520px; }
.list-actions[hidden] { display: none; }
.list-actions__row { display: flex; flex-wrap: wrap; gap: 8px; }
.list-actions__row .btn { flex: 1 1 auto; }

/* ---------- Chip (ตัวเลือกแบบเม็ดยา) ---------- */
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 4px 14px;
	border: 1px solid var(--hh-border);
	border-radius: 999px;
	background: var(--hh-bg);
	color: var(--hh-text);
	font-size: var(--hh-fs-sm);
	cursor: pointer;
	transition: background-color var(--hh-dur-fast), border-color var(--hh-dur-fast), color var(--hh-dur-fast);
}
.chip:hover { border-color: var(--hh-accent); }
.chip.is-on { background: var(--hh-accent); border-color: var(--hh-accent); color: var(--hh-accent-contrast); }

/* ---------- Mix & Match ---------- */
.mix__preview {
	display: grid;
	gap: 20px;
	padding: clamp(16px, 3vw, 28px);
	margin-bottom: 32px;
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-radius-lg);
	background: var(--hh-surface);
	scroll-margin-top: calc(var(--hh-header-h) + 12px);
}
.mix__preview[hidden] { display: none; }
@media (min-width: 900px) {
	.mix__preview { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
}
.mix__set { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mix__plus { font-size: 2rem; font-weight: 300; color: var(--hh-text-muted); }
.mix__part { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.mix__part img,
.mix__part-ph { display: block; width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: contain; border-radius: var(--hh-radius); background: var(--hh-card-media); }
.mix__part.is-empty { aspect-ratio: 1; place-content: center; border: 2px dashed var(--hh-border); border-radius: var(--hh-radius); color: var(--hh-text-muted); }
.mix__part figcaption { display: grid; gap: 2px; font-size: var(--hh-fs-sm); }
.mix__part-sku { font-family: var(--hh-font-mono); font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.mix__part-title { font-weight: 600; color: var(--hh-text); text-decoration: none; line-height: 1.4; }
.mix__part-price { color: var(--hh-accent); font-weight: 600; }
.mix__hint { padding: 12px; font-size: var(--hh-fs-sm); }
.mix__summary { display: grid; gap: 14px; }
.mix__names { margin: 0; font-weight: 700; font-size: var(--hh-fs-lg); line-height: 1.4; }
.mix__price { margin: 0; min-height: 1.5em; font-weight: 600; color: var(--hh-accent); }
.mix__actions { display: grid; gap: 8px; }
.mix__actions .btn[disabled] { opacity: 0.5; pointer-events: none; }
.mix__step { margin-bottom: 40px; scroll-margin-top: calc(var(--hh-header-h) + 12px); }
.mix__step[hidden] { display: none; }
.mix__step .section-head { flex-wrap: wrap; align-items: center; }
.mix__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mix__search { min-height: 40px; padding: 6px 16px; border: 1px solid var(--hh-border); border-radius: 999px; background: var(--hh-bg); color: var(--hh-text); font: inherit; font-size: var(--hh-fs-sm); width: min(260px, 100%); }
.mix__types { display: flex; flex-wrap: wrap; gap: 6px; }
.mix__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.mix__grid[aria-busy="true"] { opacity: 0.6; }
.mix__empty { grid-column: 1 / -1; margin: 0; padding: 24px; border-radius: var(--hh-radius); background: var(--hh-surface); color: var(--hh-text-muted); text-align: center; }

.mix-item { position: relative; animation: hh-item-in var(--hh-dur) var(--hh-ease-out); }
.mix-item__pick {
	display: grid;
	gap: 8px;
	width: 100%;
	padding: 8px 8px 12px;
	border: 2px solid transparent;
	border-radius: var(--hh-radius-lg);
	background: var(--hh-bg);
	color: var(--hh-text);
	text-align: left;
	font: inherit;
	cursor: pointer;
	transition: border-color var(--hh-dur-fast), box-shadow var(--hh-dur), transform var(--hh-dur-fast);
}
.mix-item__pick:hover { box-shadow: var(--hh-shadow-2); transform: translateY(-2px); }
.mix-item.is-selected .mix-item__pick { border-color: var(--hh-accent); box-shadow: 0 0 0 4px var(--hh-accent-soft); }
.mix-item__media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--hh-radius); background: var(--hh-card-media); overflow: hidden; }
.mix-item__media img { width: 100%; height: 100%; object-fit: contain; }
.mix-item__media .badge { position: absolute; left: 6px; top: 6px; }
.mix-item__body { display: grid; gap: 2px; padding: 0 4px; }
.mix-item__sku { font-family: var(--hh-font-mono); font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.mix-item__title { font-weight: 600; font-size: var(--hh-fs-sm); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mix-item__meta { font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.mix-item__price { font-size: var(--hh-fs-sm); font-weight: 600; color: var(--hh-accent); }
.mix-item__price--ask { color: var(--hh-text-muted); font-weight: 500; }
.mix-item__more { position: absolute; top: 14px; right: 14px; background: var(--hh-bg); box-shadow: var(--hh-shadow-1); }

/* ---------- หน้า /videos/ ---------- */
.video-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; align-items: start; }
.video-feed[aria-busy="true"] { cursor: progress; }
.video-feed__empty { text-align: center; color: var(--hh-text-muted); padding: 48px 0; }
.video-feed__empty[hidden] { display: none; }
.vcard { display: grid; gap: 12px; animation: hh-item-in var(--hh-dur) var(--hh-ease-out); }
.vcard__frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--hh-radius-lg); background: #000; overflow: hidden; }
.vcard--landscape .vcard__frame { aspect-ratio: 16 / 9; }
.vcard__facade { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #111; cursor: pointer; }
.vcard__facade img { width: 100%; height: 100%; object-fit: cover; }
.vcard__facade:hover .gallery__play { transform: translate(-50%, -50%) scale(1.08); background: var(--hh-accent); }
.vcard__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vcard__info { display: grid; gap: 8px; }
.vcard__title { margin: 0; font-weight: 600; line-height: 1.4; }
.vcard__watch { justify-self: start; font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.vcard__watch[hidden] { display: none; }
.vcard__products { display: grid; gap: 8px; }
.vprod { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px; border-radius: var(--hh-radius); background: var(--hh-surface); }
.vprod__media { display: block; width: 48px; height: 48px; border-radius: var(--hh-radius-sm); background: var(--hh-card-media); overflow: hidden; }
.vprod__media img { width: 100%; height: 100%; object-fit: contain; }
.vprod__body { min-width: 0; display: grid; }
.vprod__sku { font-family: var(--hh-font-mono); font-size: 0.6875rem; color: var(--hh-text-muted); }
.vprod__title { font-size: var(--hh-fs-xs); font-weight: 600; color: var(--hh-text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vprod__price { font-size: 0.6875rem; color: var(--hh-accent); }
.vprod__line { min-height: 32px; padding: 4px 10px; font-size: var(--hh-fs-xs); }

/* มือถือ: เลื่อนทีละคลิปแบบ Reels */
@media (max-width: 767px) {
	:root:has(.page-hh-videos) { scroll-snap-type: y proximity; }
	.video-feed { grid-template-columns: 1fr; gap: 28px; }
	.vcard { scroll-snap-align: start; scroll-margin-top: calc(var(--hh-header-h) + 8px); }
	.vcard--vertical .vcard__frame { height: calc(100svh - var(--hh-header-h) - var(--hh-bottom-nav-h, 0px) - 140px); width: auto; max-width: 100%; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.mix-item,
	.vcard,
	.list-badge.is-bump { animation: none; }
}

/* บทความ SEO ท้ายหน้าหมวด (README ข้อ 18) */
.archive__seo { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hh-border); }
.seo-text summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-weight: 700; font-size: var(--hh-fs-lg); }
.seo-text summary::-webkit-details-marker { display: none; }
.seo-text[open] summary .hh-icon { transform: rotate(180deg); }
.seo-text .prose { margin-top: 16px; max-width: var(--hh-container-narrow); font-size: var(--hh-fs-base); color: var(--hh-text-muted); }

/* ---------- ลองใส่โลโก้ของคุณ (README ข้อ 22.3) ---------- */
.btn--mockup .hh-icon { color: var(--hh-accent); }
.badge--mockup { background: #f1ecff; color: #5b3cc4; }
.mockup { width: min(1100px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--hh-radius-lg); background: var(--hh-bg); color: var(--hh-text); box-shadow: var(--hh-shadow-3); }
.mockup[open] { animation: hh-modal-in var(--hh-dur) var(--hh-ease-out); }
.mockup::backdrop { background: var(--hh-overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mockup__panel { display: flex; flex-direction: column; max-height: 94vh; }
.mockup__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--hh-border); }
.mockup__title { margin: 0; font-size: var(--hh-fs-lg); }
.mockup__body { display: grid; gap: 18px; padding: 18px; overflow: auto; }
@media (min-width: 900px) { .mockup__body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.mockup__stage { display: grid; gap: 8px; align-content: start; }
.mockup__canvas { width: 100%; height: auto; border-radius: var(--hh-radius); background: var(--hh-card-media); touch-action: none; cursor: grab; }
.mockup__canvas:active { cursor: grabbing; }
.mockup__hint, .mockup__small { margin: 0; font-size: var(--hh-fs-xs); color: var(--hh-text-muted); }
.mockup__privacy { color: var(--hh-accent); }
.mockup__controls { display: grid; gap: 12px; align-content: start; }
.mockup__upload { justify-self: start; cursor: pointer; }
.mockup__row { display: flex; gap: 8px; }
.mockup__text { flex: 1; min-width: 0; min-height: 40px; padding: 6px 12px; border: 1px solid var(--hh-border); border-radius: var(--hh-radius); background: var(--hh-bg); color: var(--hh-text); font: inherit; }
.mockup__select { min-height: 40px; padding: 4px 8px; border: 1px solid var(--hh-border); border-radius: var(--hh-radius); background: var(--hh-bg); color: var(--hh-text); font: inherit; }
.mockup__range { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: var(--hh-fs-sm); }
.mockup__range input { accent-color: var(--hh-accent); }
.mockup__group { display: grid; gap: 6px; }
.mockup__group-label { font-size: var(--hh-fs-sm); font-weight: 600; }
.mockup__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mockup__chips .chip { min-height: 32px; padding: 2px 12px; font-size: var(--hh-fs-xs); }
.mockup__tint { width: 36px; height: 32px; padding: 0; border: 1px solid var(--hh-border); border-radius: var(--hh-radius-sm); background: none; }
.mockup__tint[hidden] { display: none; }
.mockup__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 767px) {
	.mockup { width: 100vw; max-height: 100svh; height: 100svh; margin: 0; border-radius: 0; }
	.mockup__panel { max-height: 100svh; height: 100%; }
}
