/* DLH – Trang chi tiết sản phẩm v1.0.0
 * Layout: [ main: gallery | info box ] [ side: best sellers ]
 *         [ main: tabs + related      ]
 * Everything is scoped under .dlhp so the theme's own WooCommerce rules don't reach it. */

.dlhp {
	--dlhp-navy: #0a2740;
	--dlhp-blue: #1d5a96;
	--dlhp-blue-2: #164a7d;
	--dlhp-buy: #e8501f;
	--dlhp-buy-2: #c8400f;
	--dlhp-tx: #1d2a35;
	--dlhp-mu: #5d6d7a;
	--dlhp-line: #dde4ea;
	--dlhp-soft: #f4f7fa;
	--dlhp-toc: #eef6ea;
	--dlhp-toc-line: #d3e5c8;
	--dlhp-star: #f5a623;
	--dlhp-ok: #1e8f52;
	color-scheme: light only;
	color: var(--dlhp-tx);
	background: #fff;
	font-size: 15px;
	line-height: 1.6;
	padding-block: 14px 48px;
}
.dlhp *, .dlhp *::before, .dlhp *::after { box-sizing: border-box; }
.dlhp a { color: inherit; text-decoration: none; }
.dlhp img { max-width: 100%; }
.dlhp .dlhp-i { display: block; flex: none; }
.dlhp .woocommerce-breadcrumb { font-size: 13px; color: var(--dlhp-mu); margin: 0 0 18px; }
.dlhp .woocommerce-breadcrumb a { color: var(--dlhp-blue); }
.dlhp .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 16px; }

/* ---------- Page grid ---------- */
.dlhp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}
.dlhp--noside .dlhp-layout { grid-template-columns: minmax(0, 1fr); }
.dlhp-main { min-width: 0; }
.dlhp-top {
	display: grid;
	grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
	gap: 28px;
	align-items: start;
}

/* ---------- Gallery ---------- */
.dlhp-gal { min-width: 0; }
.dlhp .dlhp-stage {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 100%;
	background: #fff;
	border: 1px solid var(--dlhp-line);
	border-radius: 8px;
	overflow: hidden;
	cursor: zoom-in;
	touch-action: pan-y;
	outline: none;
}
.dlhp .dlhp-stage:focus-visible { box-shadow: 0 0 0 3px rgba(29, 90, 150, .35); }
.dlhp .dlhp-stage-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	padding: 16px;
	transition: transform .25s ease, opacity .18s ease;
	transform-origin: 50% 50%;
	user-select: none;
	-webkit-user-drag: none;
}
.dlhp .dlhp-stage.is-zoom .dlhp-stage-img { transform: scale(2); transition: opacity .18s ease; }
.dlhp .dlhp-stage.is-zoom .dlhp-nav,
.dlhp .dlhp-stage.is-zoom .dlhp-count,
.dlhp .dlhp-stage.is-zoom .dlhp-expand { opacity: 0; }
.dlhp .dlhp-stage-img.is-fading { opacity: .25; }
.dlhp-badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	background: var(--dlhp-buy); color: #fff; font-weight: 700; font-size: 13px;
	padding: 3px 10px; border-radius: 3px;
}
.dlhp .dlhp-nav {
	position: absolute; top: 50%; z-index: 2;
	width: 42px; height: 42px; margin: -21px 0 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .94); color: var(--dlhp-navy);
	box-shadow: 0 2px 12px rgba(10, 39, 64, .18);
	cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
}
.dlhp .dlhp-nav:hover { background: #fff; color: var(--dlhp-buy); }
.dlhp .dlhp-stage:hover .dlhp-nav, .dlhp .dlhp-nav:focus-visible { opacity: 1; }
.dlhp .dlhp-prev { left: 10px; }
.dlhp .dlhp-next { right: 10px; }
.dlhp-count {
	position: absolute; left: 12px; bottom: 12px; z-index: 2;
	background: rgba(10, 39, 64, .72); color: #fff;
	font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 20px;
	font-variant-numeric: tabular-nums; transition: opacity .2s;
}
.dlhp-expand {
	position: absolute; right: 12px; bottom: 12px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .94); color: var(--dlhp-navy);
	box-shadow: 0 1px 6px rgba(10, 39, 64, .15); transition: opacity .2s;
}
.dlhp-thumbs {
	display: flex; gap: 8px; margin-top: 10px;
	overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
	padding-bottom: 4px; scrollbar-width: thin;
}
.dlhp .dlhp-thumb {
	flex: 0 0 calc((100% - 32px) / 5);
	aspect-ratio: 1 / 1;
	padding: 4px; margin: 0;
	background: #fff;
	border: 2px solid var(--dlhp-line); border-radius: 6px;
	cursor: pointer; scroll-snap-align: start;
	opacity: .72; transition: opacity .15s, border-color .15s;
}
.dlhp .dlhp-thumb:hover { opacity: 1; }
.dlhp .dlhp-thumb.is-active { border-color: var(--dlhp-buy); opacity: 1; }
.dlhp .dlhp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Summary ---------- */
.dlhp-sum { min-width: 0; }
.dlhp :is(h1, h2, h3, h4) { font-family: inherit; }
.dlhp .dlhp-title {
	margin: 0 0 16px;
	font-size: 25px; line-height: 1.3; font-weight: 700;
	text-transform: uppercase; letter-spacing: .01em;
	color: #3b4651; text-wrap: balance;
}
.dlhp-box { border: 1px solid var(--dlhp-line); border-radius: 4px; margin: 0 0 20px; background: #fff; }
.dlhp-box-head {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
	padding: 11px 18px; background: var(--dlhp-soft);
	border-bottom: 1px solid var(--dlhp-line);
	font-size: 14px; font-weight: 600;
}
.dlhp-rate { display: inline-flex; align-items: center; gap: 10px; }
.dlhp-rate:hover span:last-child { color: var(--dlhp-blue); text-decoration: underline; }
.dlhp-sep { color: #b7c2cb; }
.dlhp-stars {
	position: relative; display: inline-block;
	font-size: 19px; line-height: 1; letter-spacing: 3px; color: #d3dae0;
}
.dlhp-stars::before { content: "★★★★★"; }
.dlhp-stars > span {
	position: absolute; top: 0; left: 0; bottom: 0;
	overflow: hidden; white-space: nowrap; color: var(--dlhp-star);
}
.dlhp-stars > span::before { content: "★★★★★"; }
.dlhp .dlhp-rows { list-style: none; margin: 0; padding: 14px 18px; display: grid; gap: 9px; }
.dlhp .dlhp-rows li { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; }
.dlhp-l { color: var(--dlhp-tx); }
.dlhp .dlhp-rows .dlhp-hot, .dlhp .dlhp-rows .dlhp-mail { flex-wrap: nowrap; gap: 10px; align-items: flex-start; }
.dlhp-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.dlhp-hot .dlhp-ic { background: #fde8e1; color: var(--dlhp-buy); }
.dlhp-mail .dlhp-ic { background: #e6eef6; color: var(--dlhp-blue); }
.dlhp-ic .dlhp-i { width: 15px; height: 15px; }
.dlhp-hot { font-weight: 700; }
.dlhp-hot b { font-weight: 800; margin-right: 4px; }
.dlhp-hot a:hover, .dlhp-mail a:hover { color: var(--dlhp-buy); }
.dlhp-dash { margin: 0 6px; }

.dlhp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 4px; }
.dlhp-price-l { font-weight: 700; color: var(--dlhp-buy); font-size: 16px; }
.dlhp-price-v { font-size: 26px; font-weight: 800; color: var(--dlhp-buy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.dlhp-price-v del { font-size: 16px; font-weight: 400; color: var(--dlhp-mu); margin-right: 10px; opacity: 1; }
.dlhp-price-v ins { text-decoration: none; background: none; }
.dlhp .dlhp-stock { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.dlhp .dlhp-stock.is-in { color: var(--dlhp-ok); }
.dlhp .dlhp-stock.is-out { color: var(--dlhp-buy-2); }

.dlhp .dlhp-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 18px 0 6px; padding: 0; border: 0; }
.dlhp .dlhp-qty {
	display: inline-flex; height: 44px; flex: none;
	border: 1px solid #c5d0d9; border-radius: 4px; overflow: hidden; background: #fff;
}
.dlhp .dlhp-qty-b {
	width: 40px; height: 100%; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: #fff; color: var(--dlhp-tx);
	font-size: 20px; line-height: 1; font-weight: 400; cursor: pointer; box-shadow: none;
}
.dlhp .dlhp-qty-b:hover { background: var(--dlhp-soft); color: var(--dlhp-tx); }
.dlhp .dlhp-qty-in {
	width: 56px; height: 100%; margin: 0; padding: 0;
	border: 0; border-left: 1px solid #c5d0d9; border-right: 1px solid #c5d0d9; border-radius: 0;
	background: #fff; color: var(--dlhp-tx); box-shadow: none;
	text-align: center; font-size: 15px; font-weight: 700;
	-moz-appearance: textfield; appearance: textfield;
}
.dlhp .dlhp-qty-in::-webkit-outer-spin-button, .dlhp .dlhp-qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dlhp .dlhp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; margin: 0; padding: 0 22px;
	border: 1px solid transparent; border-radius: 4px; box-shadow: none;
	font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	line-height: 1; white-space: nowrap; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.dlhp .dlhp-btn-buy { background: var(--dlhp-buy); color: #fff; border-color: var(--dlhp-buy); }
.dlhp .dlhp-btn-buy:hover { background: var(--dlhp-buy-2); border-color: var(--dlhp-buy-2); color: #fff; }
.dlhp .dlhp-btn-cart { background: #fff; color: var(--dlhp-buy); border-color: var(--dlhp-buy); width: 44px; padding: 0; }
.dlhp .dlhp-btn-cart .dlhp-i { width: 20px; height: 20px; }
.dlhp .dlhp-btn-cart:hover { background: #fff3ee; color: var(--dlhp-buy-2); }
.dlhp .dlhp-btn-consult { background: var(--dlhp-blue); color: #fff; border-color: var(--dlhp-blue); text-transform: none; font-size: 15px; }
.dlhp .dlhp-btn-consult:hover { background: var(--dlhp-blue-2); border-color: var(--dlhp-blue-2); color: #fff; }
.dlhp .dlhp-btn:focus-visible, .dlhp .dlhp-qty-b:focus-visible, .dlhp .dlhp-tab:focus-visible, .dlhp .dlhp-thumb:focus-visible { outline: 3px solid rgba(29, 90, 150, .4); outline-offset: 2px; }
.dlhp .dlhp-btn[disabled] { opacity: .55; cursor: wait; }
.dlhp-buy-wc { margin: 18px 0 6px; }

.dlhp-short {
	margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--dlhp-line);
	font-size: 14.5px; color: #34434f;
}
.dlhp-short > :first-child { margin-top: 0; }
.dlhp-short > :last-child { margin-bottom: 0; }
.dlhp-short ul { margin: 0; padding-left: 1.2em; }

/* ---------- Tabs ---------- */
.dlhp-tabs { margin-top: 40px; }
.dlhp-tablist { display: flex; border-bottom: 1px solid var(--dlhp-line); overflow-x: auto; scrollbar-width: none; }
.dlhp-tablist::-webkit-scrollbar { display: none; }
.dlhp .dlhp-tab {
	flex: 0 1 260px; min-width: max-content;
	margin: 0 0 -1px; padding: 14px 22px;
	background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none;
	font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	color: var(--dlhp-mu); cursor: pointer;
}
.dlhp .dlhp-tab:hover { color: var(--dlhp-blue); background: none; }
.dlhp .dlhp-tab[aria-selected="true"] { color: var(--dlhp-blue); border-bottom-color: var(--dlhp-blue); }
.dlhp-panel { padding-top: 22px; }
.dlhp-shorttx { display: none; }
.dlhp-panel[hidden] { display: none !important; }

.dlhp-toc {
	background: var(--dlhp-toc); border: 1px solid var(--dlhp-toc-line); border-radius: 4px;
	padding: 0; margin: 0 0 22px; font-size: 14.5px;
}
.dlhp-toc > summary {
	list-style: none; cursor: pointer; padding: 10px 16px;
	display: flex; justify-content: space-between; align-items: center;
	font-weight: 600; color: #2f3b32;
}
.dlhp-toc > summary::-webkit-details-marker { display: none; }
.dlhp-toc > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.dlhp-toc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.dlhp .dlhp-toc ol { list-style: none; margin: 0; padding: 0 16px 12px 22px; }
.dlhp .dlhp-toc ol ol { padding: 0 0 0 22px; }
.dlhp .dlhp-toc li { margin: 3px 0; }
.dlhp-toc a { color: #2b3a30; }
.dlhp-toc a:hover { color: var(--dlhp-blue); text-decoration: underline; }
.dlhp-toc .n { display: inline-block; min-width: 2.2em; font-variant-numeric: tabular-nums; }

.dlhp-content { font-size: 15.5px; line-height: 1.75; color: #24323e; overflow-wrap: anywhere; }
.dlhp-content > :first-child { margin-top: 0; }
.dlhp .dlhp-content h2 { font-size: 23px; line-height: 1.3; color: var(--dlhp-blue); font-weight: 700; margin: 1.6em 0 .6em; text-transform: none; }
.dlhp .dlhp-content h3 { font-size: 18.5px; line-height: 1.35; color: #111c25; font-weight: 700; margin: 1.4em 0 .5em; text-transform: none; }
.dlhp .dlhp-content h4 { font-size: 16px; font-weight: 700; margin: 1.2em 0 .4em; }
.dlhp-content :is(h2, h3, h4) { scroll-margin-top: 100px; }
.dlhp-content p { margin: 0 0 1em; }
.dlhp-content ul, .dlhp-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.dlhp-content li { margin-bottom: .3em; }
.dlhp-content a { color: var(--dlhp-blue); text-decoration: underline; text-underline-offset: 2px; }
.dlhp-content img { height: auto; border-radius: 4px; }
.dlhp-content figure { margin: 1.2em 0; max-width: 100%; }
.dlhp-content figcaption { font-size: 13px; color: var(--dlhp-mu); text-align: center; margin-top: 6px; }
.dlhp-tablewrap { overflow-x: auto; margin: 0 0 1.2em; }
.dlhp-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; font-variant-numeric: tabular-nums; }
.dlhp-content th, .dlhp-content td { border: 1px solid var(--dlhp-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.dlhp-content th, .dlhp-content thead td { background: var(--dlhp-soft); font-weight: 700; }
.dlhp-content tr:nth-child(even) td { background: #fafcfd; }
.dlhp-empty { color: var(--dlhp-mu); font-style: italic; }

/* Reviews (WooCommerce markup) */
.dlhp-reviews .woocommerce-Reviews-title { font-size: 18px; margin: 0 0 14px; }
.dlhp-reviews ol.commentlist { list-style: none; margin: 0 0 24px; padding: 0; }
.dlhp-reviews ol.commentlist li { border-bottom: 1px solid var(--dlhp-line); padding: 14px 0; margin: 0; }
.dlhp-reviews .comment_container { display: flex; gap: 14px; }
.dlhp-reviews .comment_container img.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.dlhp-reviews .comment-text { flex: 1; min-width: 0; }
.dlhp-reviews .star-rating { color: var(--dlhp-star); }
.dlhp-reviews .comment-reply-title { font-size: 17px; font-weight: 700; display: block; margin: 0 0 8px; }
.dlhp-reviews textarea, .dlhp-reviews input[type="text"], .dlhp-reviews input[type="email"] {
	width: 100%; max-width: 640px; border: 1px solid #c5d0d9; border-radius: 4px; padding: 9px 12px; font: inherit; background: #fff; color: var(--dlhp-tx);
}
.dlhp-reviews p.stars a { color: var(--dlhp-star); }
.dlhp-reviews .form-submit input[type="submit"], .dlhp-reviews #submit {
	background: var(--dlhp-blue); color: #fff; border: 0; border-radius: 4px; padding: 11px 22px; font-weight: 700; cursor: pointer;
}

/* ---------- Related ---------- */
.dlhp-related { margin-top: 44px; }
.dlhp .dlhp-h {
	font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
	color: var(--dlhp-navy); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--dlhp-line);
	position: relative;
}
.dlhp .dlhp-h::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--dlhp-buy); }
.dlhp .dlhp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dlhp .dlhp-card { margin: 0; padding: 0; min-width: 0; }
.dlhp-card a {
	display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--dlhp-line); border-radius: 6px; padding: 10px; background: #fff;
	transition: box-shadow .2s, border-color .2s;
}
.dlhp-card a:hover { border-color: #c3d1dc; box-shadow: 0 6px 18px rgba(10, 39, 64, .09); }
.dlhp-card-img { display: block; aspect-ratio: 1 / 1; margin-bottom: 10px; }
.dlhp .dlhp-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; }
.dlhp-card-nm { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.dlhp-card a:hover .dlhp-card-nm { color: var(--dlhp-blue); }
.dlhp-card-pr { margin-top: auto; padding-top: 6px; color: var(--dlhp-buy); font-weight: 700; font-size: 14.5px; }
.dlhp-card-pr del, .dlhp-best-pr del { color: var(--dlhp-mu); font-weight: 400; font-size: 12.5px; margin-right: 4px; }
.dlhp-card-pr ins, .dlhp-best-pr ins { text-decoration: none; background: none; }

/* ---------- Side: best sellers ---------- */
.dlhp-side { min-width: 0; border: 1px solid var(--dlhp-line); border-radius: 6px; overflow: hidden; background: #fff; }
.dlhp .dlhp-side-h {
	margin: 0; padding: 12px 16px;
	background: var(--dlhp-blue); color: #fff;
	font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.3;
}
.dlhp .dlhp-best { list-style: none; margin: 0; padding: 0 12px; }
.dlhp .dlhp-best li { margin: 0; padding: 0; border-bottom: 1px solid var(--dlhp-line); }
.dlhp .dlhp-best li:last-child { border-bottom: 0; }
.dlhp-best a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; align-items: center; }
.dlhp-best-img { display: block; width: 84px; height: 84px; }
.dlhp .dlhp-best-img img { width: 100%; height: 100%; object-fit: contain; margin: 0; display: block; }
.dlhp-best-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dlhp-best-nm { font-size: 14px; line-height: 1.4; color: #44515c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dlhp-best a:hover .dlhp-best-nm { color: var(--dlhp-blue); }
.dlhp-best-pr { color: var(--dlhp-buy); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.dlhp-best-sold { font-size: 12px; color: var(--dlhp-mu); }

/* ---------- Lightbox ---------- */
.dlhp-lb {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; flex-direction: column;
	background: rgba(6, 18, 28, .94); color: #fff;
	padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
	color-scheme: dark;
}
.dlhp-lb[hidden] { display: none !important; }
.dlhp-lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.dlhp-lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px; touch-action: pan-y; }
.dlhp-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .18s; }
.dlhp-lb button {
	display: flex; align-items: center; justify-content: center;
	margin: 0; padding: 0; border: 0; cursor: pointer; box-shadow: none;
	background: rgba(255, 255, 255, .12); color: #fff; border-radius: 50%;
}
.dlhp-lb button:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.dlhp-lb .dlhp-lb-close { width: 40px; height: 40px; font-size: 26px; line-height: 1; }
.dlhp-lb .dlhp-lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.dlhp-lb .dlhp-lb-nav .dlhp-i { width: 24px; height: 24px; }
.dlhp-lb .dlhp-lb-prev { left: 10px; }
.dlhp-lb .dlhp-lb-next { right: 10px; }
.dlhp-lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 12px 16px 16px; overflow-x: auto; }
.dlhp-lb .dlhp-lb-thumb { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 6px; padding: 3px; background: #fff; opacity: .5; border: 2px solid transparent; }
.dlhp-lb .dlhp-lb-thumb.is-active { opacity: 1; border-color: var(--dlhp-buy, #e8501f); }
.dlhp-lb .dlhp-lb-thumb img { width: 100%; height: 100%; object-fit: contain; }
body.dlhp-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.dlhp-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
	.dlhp .dlhp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dlhp-best a { grid-template-columns: 68px minmax(0, 1fr); }
	.dlhp-best-img { width: 68px; height: 68px; }
}
@media (max-width: 960px) {
	.dlhp-layout { grid-template-columns: minmax(0, 1fr); }
	.dlhp .dlhp-best { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
	.dlhp .dlhp-best li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (max-width: 760px) {
	.dlhp { font-size: 14.5px; padding-block: 8px 36px; }
	.dlhp-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.dlhp :is(h1, h2, h3, h4) { font-family: inherit; }
.dlhp .dlhp-title { font-size: 20px; margin-bottom: 12px; }
	.dlhp .dlhp-nav { opacity: 1; width: 34px; height: 34px; margin-top: -17px; }
	.dlhp .dlhp-thumb { flex-basis: calc((100% - 32px) / 5.5); }
	.dlhp-box-head, .dlhp .dlhp-rows { padding-left: 14px; padding-right: 14px; }
	.dlhp-price-v { font-size: 23px; }
	.dlhp .dlhp-buy .dlhp-btn-buy { flex: 1 1 140px; }
	.dlhp .dlhp-buy .dlhp-btn-consult { flex: 1 1 100%; }
	.dlhp-stars { font-size: 16px; letter-spacing: 1px; }
	.dlhp-long { display: none; }
	.dlhp-shorttx { display: inline; }
	.dlhp .dlhp-tab { flex: 1 0 auto; padding: 12px 14px; font-size: 13.5px; }
	.dlhp-tabs { margin-top: 30px; }
	.dlhp .dlhp-content h2 { font-size: 20px; }
	.dlhp .dlhp-content h3 { font-size: 17px; }
	.dlhp .dlhp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dlhp .dlhp-best { grid-template-columns: minmax(0, 1fr); }
	.dlhp .dlhp-best li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--dlhp-line); }
	.dlhp-lb-stage { padding: 0 8px; }
	.dlhp-lb .dlhp-lb-nav { background: rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) {
	.dlhp *, .dlhp-lb * { transition: none !important; scroll-behavior: auto !important; }
}
