/* ============================================================
   DenLED — Design System
   Palette: xanh dương solar + charcoal + bạc thép, nền sáng (accent mặt trời)
   Font: Be Vietnam Pro | Mobile-first | Không jQuery
   ============================================================ */

:root {
	/* Brand */
	--dl-brand: #0a6ebd;
	--dl-brand-dark: #075288;
	--dl-brand-soft: #e9f4fc;
	--dl-ink: #16181d;
	--dl-ink-2: #3d434d;
	--dl-steel: #8a9099;
	--dl-line: #e6e8ec;
	--dl-bg: #ffffff;
	--dl-bg-alt: #f6f7f9;

	--dl-zalo: #0065f7;

	--dl-radius: 10px;
	--dl-radius-lg: 16px;
	--dl-shadow: 0 1px 3px rgb(16 24 40 / .07), 0 8px 24px rgb(16 24 40 / .06);
	--dl-shadow-hover: 0 4px 12px rgb(16 24 40 / .12), 0 16px 40px rgb(16 24 40 / .1);

	--dl-container: 1200px;
	--dl-header-h: 76px;

	--dl-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset nhẹ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--dl-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--dl-ink-2);
	background: var(--dl-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dl-brand); text-decoration: none; }
a:hover { color: var(--dl-brand-dark); }
h1, h2, h3, h4, h5, h6 {
	color: var(--dl-ink);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 700;
	overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--dl-line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--dl-line); padding: .55em .8em; text-align: left; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 10000;
	width: auto; height: auto; clip: auto;
	background: var(--dl-ink); color: #fff; padding: 8px 16px; border-radius: 8px;
}

/* ---------- Layout ---------- */
.dl-container { max-width: var(--dl-container); margin-inline: auto; padding-inline: 16px; }
.dl-main { min-height: 40vh; }

.dl-section { padding: 40px 0; }
.dl-section.dl-has-bg { background-size: cover; background-position: center; }
.dl-section .dl-row + .dl-row { margin-top: 16px; }

/* ---------- Buttons ---------- */
.dl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: var(--dl-radius);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}
.dl-btn:active { transform: translateY(1px); }
.dl-btn-primary { background: var(--dl-brand); color: #fff; box-shadow: 0 2px 8px rgb(10 110 189 / .3); }
.dl-btn-primary:hover { background: var(--dl-brand-dark); color: #fff; box-shadow: 0 4px 14px rgb(10 110 189 / .35); }
.dl-btn-ghost { border-color: var(--dl-line); color: var(--dl-ink); background: #fff; }
.dl-btn-ghost:hover { border-color: var(--dl-brand); color: var(--dl-brand); }
.dl-btn-zalo { background: var(--dl-zalo); color: #fff; }
.dl-btn-zalo:hover { color: #fff; filter: brightness(1.08); }
.dl-btn-lg { padding: 14px 28px; font-size: 16px; }
.dl-btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Header ---------- */
.dl-topbar {
	background: var(--dl-ink);
	color: #cfd3da;
	font-size: 13px;
}
.dl-topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.dl-topbar-phone { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.dl-topbar-phone:hover { color: #9ec9ec; }

.dl-header-main {
	background: #fff;
	border-bottom: 1px solid var(--dl-line);
	position: sticky;
	top: 0;
	z-index: 900;
	box-shadow: 0 1px 2px rgb(16 24 40 / .04);
}
.dl-header-in {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--dl-header-h);
}
.dl-brand { flex: 0 0 auto; }
.dl-brand-link { display: inline-flex; align-items: center; }
.dl-brand-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 19px;
	line-height: 1.15;
	color: var(--dl-ink);
	letter-spacing: .01em;
	text-transform: uppercase;
}
.dl-brand-sun {
	display: inline-grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ffd34d 0%, #f7a823 60%, #f08c00 100%);
	color: #fff;
	font-size: 22px;
	box-shadow: 0 2px 10px rgb(247 168 35 / .45);
	flex: 0 0 auto;
}
.dl-logo, .custom-logo { height: 56px !important; width: auto !important; max-width: 220px; object-fit: contain; }

@media (max-width: 767px) {
	.dl-brand-text { font-size: 15px; max-width: 200px; white-space: normal; line-height: 1.2; }
	.dl-brand-sun { width: 30px; height: 30px; font-size: 17px; }
}

.dl-nav { margin-left: auto; }
.dl-nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.dl-nav-list > li { position: relative; }
.dl-nav-list a {
	display: block;
	padding: 10px 14px;
	color: var(--dl-ink);
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
}
.dl-nav-list a:hover, .dl-nav-list .current-menu-item > a,
.dl-nav-list .current-menu-parent > a, .dl-nav-list .current-menu-ancestor > a {
	color: var(--dl-brand);
	background: var(--dl-brand-soft);
}
/* Submenu */
.dl-nav-list ul {
	position: absolute;
	top: 100%; left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: 10px;
	box-shadow: var(--dl-shadow);
	padding: 6px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s ease;
	z-index: 950;
}
.dl-nav-list li:hover > ul, .dl-nav-list li:focus-within > ul {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.dl-nav-list ul ul { top: -6px; left: 100%; }
.dl-nav-list ul a { padding: 9px 12px; font-weight: 500; font-size: 14px; }

.dl-header-cta { display: flex; gap: 8px; flex: 0 0 auto; }

.dl-burger {
	display: none;
	background: none;
	border: 0;
	width: 40px; height: 40px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	padding: 0;
}
.dl-burger span { width: 22px; height: 2px; background: var(--dl-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.dl-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dl-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dl-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
	.dl-burger { display: flex; }
	.dl-header-cta .dl-btn-zalo { display: none; }
	.dl-nav {
		position: fixed;
		inset: 0;
		top: 0; left: 0;
		background: #fff;
		padding: 90px 20px 30px;
		transform: translateX(-100%);
		transition: transform .25s ease;
		overflow-y: auto;
		z-index: 990;
		margin: 0;
	}
	.dl-nav.is-open { transform: translateX(0); box-shadow: 0 0 60px rgb(0 0 0 / .25); }
	.dl-nav-list { flex-direction: column; gap: 2px; }
	.dl-nav-list a { font-size: 16px; padding: 13px 12px; border-bottom: 1px solid var(--dl-line); border-radius: 0; }
	.dl-nav-list ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.dl-topbar-note { display: none; }
	.dl-topbar-in { justify-content: center; }
}

/* ---------- Hero ---------- */
.dl-hero {
	background:
		radial-gradient(1100px 420px at 85% -60px, rgb(10 110 189 / .08), transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--dl-bg-alt) 100%);
	background-size: cover;
	background-position: center;
	padding: 64px 0 56px;
	border-bottom: 1px solid var(--dl-line);
}
.dl-hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.dl-hero-kicker {
	display: inline-block;
	background: var(--dl-brand-soft);
	color: var(--dl-brand);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.dl-hero-title { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; margin-bottom: 14px; }
.dl-hero-sub { font-size: 17px; color: var(--dl-ink-2); max-width: 560px; margin-bottom: 22px; }
.dl-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dl-hero-usp { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.dl-hero-usp li { font-size: 14px; font-weight: 600; color: var(--dl-ink-2); }
.dl-hero-usp li::before { content: "✓"; color: var(--dl-brand); font-weight: 800; margin-right: 6px; }
.dl-hero-visual { display: flex; justify-content: center; align-items: center; }
.dl-hero-sun {
	font-size: clamp(96px, 12vw, 180px);
	line-height: 1;
	filter: drop-shadow(0 24px 48px rgb(247 168 35 / .35));
	user-select: none;
}

@media (max-width: 767px) {
	.dl-hero { padding: 40px 0; }
	.dl-hero-in { grid-template-columns: 1fr; gap: 24px; }
	.dl-hero-visual { order: -1; }
	.dl-hero-sun { font-size: 96px; }
}

/* ---------- Sections home ---------- */
.dl-home-section { padding: 56px 0; }
.dl-home-alt { background: var(--dl-bg-alt); }
.dl-home-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 28px; text-align: center; }
.dl-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dl-home-head .dl-home-title { margin-bottom: 0; }
.dl-home-more { font-weight: 600; }
.dl-home-content { border-top: 1px solid var(--dl-line); }

/* ---------- Danh mục sản phẩm ---------- */
.dl-product-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}
.dl-cats-lg { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.dl-product-cat {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	padding: 18px 14px;
	text-align: center;
	font-weight: 600;
	color: var(--dl-ink);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.dl-product-cat:hover { box-shadow: var(--dl-shadow-hover); transform: translateY(-3px); border-color: var(--dl-brand); color: var(--dl-brand); }
.dl-product-cat img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; }
.dl-cat-placeholder { width: 96px; height: 96px; display: grid; place-items: center; font-size: 40px; background: var(--dl-bg-alt); border-radius: 12px; }

/* ---------- Grid sản phẩm ---------- */
.dl-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}
.dl-product-card {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.dl-product-card:hover { box-shadow: var(--dl-shadow-hover); transform: translateY(-3px); }
.dl-product-thumb { display: block; aspect-ratio: 1; background: var(--dl-bg-alt); }
.dl-product-thumb img, .dl-product-img { width: 100%; height: 100%; object-fit: contain; }
.dl-product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dl-product-title { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-product-title a { color: var(--dl-ink); }
.dl-product-title a:hover { color: var(--dl-brand); }
.dl-product-price { font-weight: 700; color: var(--dl-brand); min-height: 1.4em; }
.dl-product-price .dl-price-contact, .dl-price-contact { color: var(--dl-steel); font-weight: 600; font-size: 14px; }
.dl-product-price del { color: var(--dl-steel); font-weight: 500; margin-right: 6px; }
.dl-product-price ins { text-decoration: none; }
.dl-product-cta { display: flex; gap: 8px; margin-top: auto; }
.dl-product-cta .dl-btn { flex: 1; }

/* ---------- Why us ---------- */
.dl-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.dl-why-item {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	padding: 26px 22px;
	text-align: center;
}
.dl-why-ic { font-size: 34px; display: block; margin-bottom: 12px; }
.dl-why-item h3 { font-size: 17px; margin-bottom: 8px; }
.dl-why-item p { margin: 0; font-size: 14px; }

/* ---------- Bài viết / dự án ---------- */
.dl-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.dl-post-card {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.dl-post-card:hover { box-shadow: var(--dl-shadow-hover); transform: translateY(-3px); }
.dl-post-card a { display: block; color: inherit; }
.dl-post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.dl-post-card h2, .dl-post-card h3 { font-size: 16px; margin: 14px 16px 6px; line-height: 1.45; }
.dl-post-card time { display: block; margin: 0 16px 16px; font-size: 13px; color: var(--dl-steel); }
.dl-post-excerpt { margin: 0 16px 16px; font-size: 14px; }
.dl-post-card-title { margin: 14px 16px 6px; }

/* ---------- Prose (nội dung dài) ---------- */
.dl-prose { max-width: 860px; }
.dl-prose h2 { margin-top: 1.8em; }
.dl-prose img { border-radius: var(--dl-radius); }
.dl-single { padding: 40px 0 64px; }
.dl-single-meta { color: var(--dl-steel); font-size: 14px; }
.dl-single-thumb { margin: 0 0 24px; }
.dl-single-thumb img { border-radius: var(--dl-radius-lg); }

/* ---------- Trang tiêu đề ---------- */
.dl-page-head { padding: 36px 0 8px; }
.dl-page-title { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: .3em; }
.dl-page-desc { color: var(--dl-steel); }

/* ---------- Phân trang ---------- */
.dl-posts + .pagination, .pagination { margin: 32px 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--dl-line); border-radius: 8px;
	color: var(--dl-ink); font-weight: 600; background: #fff;
}
.pagination .page-numbers.current { background: var(--dl-brand); border-color: var(--dl-brand); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--dl-brand); color: var(--dl-brand); }

/* ============================================================
   FLATSOME COMPAT STYLES
   ============================================================ */

.dl-row { display: flex; flex-wrap: wrap; gap: 20px; }
.dl-row > .dl-col { flex: 1 1 0; min-width: 0; }
.dl-col { width: 100%; }

/* span 1..12 → basis % */
.dl-col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.dl-col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.dl-col-3 { flex: 0 0 25%; max-width: 25%; }
.dl-col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.dl-col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.dl-col-6 { flex: 0 0 50%; max-width: 50%; }
.dl-col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.dl-col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.dl-col-9 { flex: 0 0 75%; max-width: 75%; }
.dl-col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.dl-col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.dl-col-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 767px) {
	.dl-row { flex-direction: column; gap: 14px; }
	.dl-row > .dl-col { max-width: 100%; }
	[class*="dl-col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
}

.dl-text-center { text-align: center; }
.dl-text-left { text-align: left; }
.dl-text-right { text-align: right; }

.dl-gap { width: 100%; }

.dl-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--dl-radius-lg);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	color: #fff;
	text-align: center;
	padding: 30px;
	position: relative;
}
.dl-banner::before { content: ""; position: absolute; inset: 0; background: rgb(10 12 16 / .25); }
.dl-banner > .dl-banner-inner { position: relative; z-index: 1; max-width: 640px; }
.dl-banner a.dl-banner { display: flex; }
.dl-banner h2, .dl-banner h3 { color: #fff; }
.dl-banner-hover { transition: transform .25s ease, box-shadow .25s ease; }
.dl-banner-hover:hover { transform: scale(1.01); box-shadow: var(--dl-shadow-hover); }

.dl-textbox { width: 100%; }
.dl-title { position: relative; }
.dl-divider { margin-inline: auto; width: 80px; border-top-width: 3px; border-top-color: var(--dl-brand); }

.dl-message {
	background: var(--dl-brand-soft);
	border: 1px solid rgb(10 110 189 / .18);
	border-radius: var(--dl-radius);
	padding: 16px 20px;
}

.dl-image { text-align: center; }
.dl-imagebox {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	overflow: hidden;
	height: 100%;
}
.dl-imagebox img { width: 100%; object-fit: cover; }
.dl-imagebox-body { padding: 18px; }

.dl-banner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 767px) { .dl-banner-grid { grid-template-columns: 1fr; } }

/* Slider scroll-snap */
.dl-slider { position: relative; }
.dl-slider-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: var(--dl-radius-lg);
	scrollbar-width: none;
	gap: 0;
}
.dl-slider-track::-webkit-scrollbar { display: none; }
.dl-slider-track > * { flex: 0 0 100%; scroll-snap-align: center; }
.dl-slider-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 4px; }
.dl-slider-dots button {
	width: 10px; height: 10px; border-radius: 50%;
	border: 0; background: var(--dl-line); cursor: pointer; padding: 0;
}
.dl-slider-dots button.is-active { background: var(--dl-brand); }

.dl-video { position: relative; padding-top: 56.25%; border-radius: var(--dl-radius-lg); overflow: hidden; }
.dl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dl-btn-video { background: var(--dl-ink); color: #fff; }
.dl-btn-video:hover { background: #000; color: #fff; }

.dl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.dl-gallery img { border-radius: var(--dl-radius); width: 100%; height: 160px; object-fit: cover; }

.dl-feature {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius);
	padding: 16px;
	height: 100%;
}
.dl-feature-icon img { width: 44px; height: 44px; object-fit: contain; }
.dl-feature-body { flex: 1; min-width: 0; }

.dl-price-table {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	padding: 28px 24px;
	text-align: center;
	height: 100%;
	box-shadow: var(--dl-shadow);
}

.dl-testimonial {
	margin: 0;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	padding: 24px;
	height: 100%;
}
.dl-testimonial img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.dl-testimonial blockquote { margin: 0 0 12px; font-style: italic; }
.dl-testimonial figcaption { font-weight: 700; color: var(--dl-ink); }

.dl-member { text-align: center; background: #fff; border: 1px solid var(--dl-line); border-radius: var(--dl-radius-lg); padding: 20px; height: 100%; }
.dl-member img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.dl-member-role { display: block; color: var(--dl-steel); font-size: 13px; margin-bottom: 8px; }

/* Accordion (details/summary native) */
.dl-accordion-item {
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius);
	margin-bottom: 10px;
	background: #fff;
	overflow: hidden;
}
.dl-accordion-item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--dl-ink);
	padding: 14px 18px;
	list-style: none;
	position: relative;
	padding-right: 40px;
}
.dl-accordion-item summary::-webkit-details-marker { display: none; }
.dl-accordion-item summary::after {
	content: "+";
	position: absolute; right: 18px; top: 50%;
	transform: translateY(-50%);
	font-size: 20px; color: var(--dl-brand);
}
.dl-accordion-item[open] summary::after { content: "–"; }
.dl-accordion-body { padding: 0 18px 16px; }

.dl-accordion-title { margin: 0; padding: 12px 18px; font-size: 16px; }

/* Tabs → xếp chồng */
.dl-tab { border: 1px solid var(--dl-line); border-radius: var(--dl-radius); margin-bottom: 12px; background: #fff; }
.dl-tab-title { margin: 0; padding: 13px 18px; background: var(--dl-bg-alt); font-size: 15px; }
.dl-tab-body { padding: 16px 18px; }

.dl-bullets { list-style: none; padding: 0; margin: 0 0 1em; }
.dl-bullet { position: relative; padding-left: 26px; margin-bottom: 8px; }
.dl-bullet::before {
	content: "▸";
	position: absolute; left: 4px;
	color: var(--dl-brand);
	font-weight: 800;
}

.dl-menu { list-style: none; padding: 0; margin: 0; }
.dl-menu-divider { border-top: 1px solid var(--dl-line); margin: 8px 0; }

.dl-flipbox { display: grid; gap: 14px; }
.dl-flipbox > * { background: #fff; border: 1px solid var(--dl-line); border-radius: var(--dl-radius); padding: 18px; }

.dl-follow { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-uxhtml, .dl-lightbox, .dl-uxtext, .dl-hotspot { width: 100%; }
.dl-payment-icons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.dl-woo-wrap { padding-bottom: 64px; }
/* Woo tự in h1 "Shop" — đã có dl-page-title phía trên, ẩn bản trùng */
.dl-woo-wrap > .page-title { display: none; }
.dl-woo-wrap h1.page-title { display: none; }

ul.products, .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
ul.products::before, ul.products::after, .woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
ul.products li.product, .woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
	position: relative;
}
ul.products li.product:hover { box-shadow: var(--dl-shadow-hover); transform: translateY(-3px); }
ul.products li.product a img { width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0; }
ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px !important;
	padding: 0 16px !important;
	color: var(--dl-ink);
	font-weight: 600;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
ul.products li.product .price { padding: 0 16px; color: var(--dl-brand); font-weight: 700; }
ul.products li.product .price .dl-price-contact { color: var(--dl-steel); font-weight: 600; font-size: 14px; }
ul.products li.product .button { display: none; }

/* Single product */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
	gap: 40px;
	margin: 32px 0;
}
@media (max-width: 767px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 20px; }
}
.single-product .woocommerce-product-gallery { background: #fff; border: 1px solid var(--dl-line); border-radius: var(--dl-radius-lg); padding: 12px; }
.single-product .product_title { font-size: clamp(22px, 3vw, 30px); }
.single-product .price { font-size: 24px; font-weight: 800; color: var(--dl-brand); }
.single-product .price .dl-price-contact { font-size: 17px; }
.single-product div.product form.cart { display: none; }

/* Woo 11 legacy: giá màu #958e09 + float 48% phá grid theme → đè bằng độ ưu tiên tương đương */
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price,
.single-product div.product p.price,
.single-product div.product span.price,
ul.products li.product .price,
.woocommerce ul.products li.product .price {
	color: var(--dl-brand);
}
.single-product div.product div.images,
.single-product div.product div.summary {
	float: none !important;
	width: 100% !important;
}
.single-product div.product div.summary { min-width: 0; }
.single-product .woocommerce-product-details__short-description { margin: 16px 0; }
.single-product .related.products, .single-product .up-sells { grid-column: 1 / -1; }
.single-product .related.products > h2 { font-size: 22px; margin: 40px 0 20px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: var(--dl-radius);
	background: var(--dl-bg-alt);
	border-top: 0;
	border-left: 3px solid var(--dl-brand);
	padding: 12px 16px;
	list-style: none;
}

/* Result count + ordering */
.woocommerce-result-count { color: var(--dl-steel); font-size: 14px; }
.woocommerce-ordering { margin-bottom: 16px; }
.woocommerce-ordering select { border: 1px solid var(--dl-line); border-radius: 8px; padding: 8px 12px; background: #fff; font-family: inherit; }

/* Pagination Woo */
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; list-style: none; margin: 0; padding: 0; border: 0; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span {
	display: inline-grid; place-items: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--dl-line); border-radius: 8px;
	color: var(--dl-ink); font-weight: 600; background: #fff;
}
.woocommerce-pagination .current { background: var(--dl-brand); border-color: var(--dl-brand); color: #fff; }

/* Tabs đơn sản phẩm → dùng lại dl-tabs style */
.woocommerce div.product .woocommerce-tabs {
	grid-column: 1 / -1;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	background: #fff;
	overflow: hidden;
}
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 10px 10px 0; border-bottom: 1px solid var(--dl-line); background: var(--dl-bg-alt); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 8px 8px 0 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 18px; font-weight: 600; color: var(--dl-ink-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border: 1px solid var(--dl-line); border-bottom-color: #fff; margin-bottom: -1px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--dl-brand); }
.woocommerce div.product .woocommerce-Tabs-panel { padding: 24px; }
/* Woo in lại heading trùng với tiêu đề tab — ẩn heading đầu mỗi panel */
.woocommerce div.product .woocommerce-Tabs-panel > h2:first-child { display: none; }

/* ---------- Footer ---------- */
.dl-footer { background: var(--dl-ink); color: #a9aeb8; margin-top: 56px; font-size: 14px; }
.dl-footer a { color: #d4d8de; }
.dl-footer a:hover { color: #fff; }
.dl-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 32px;
	padding: 48px 16px 32px;
}
@media (max-width: 991px) { .dl-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .dl-footer-grid { grid-template-columns: 1fr; } }
.dl-footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.dl-footer-desc { max-width: 300px; }
.dl-footer-title { color: #fff; font-size: 15px; margin-bottom: 14px; }
.dl-footer ul { list-style: none; padding: 0; margin: 0; }
.dl-footer li { padding: 4px 0; }
.dl-footer-hotline { font-size: 16px; }
.dl-footer-hotline a { font-weight: 800; font-size: 20px; color: #fff; }
.dl-footer-contact li { padding: 3px 0; }
.dl-footer-bottom { border-top: 1px solid rgb(255 255 255 / .08); padding: 16px 0; text-align: center; font-size: 13px; }
.dl-footer-bottom p { margin: 0; }

/* ---------- Misc ---------- */
.dl-404 { text-align: center; padding: 80px 0; }
.dl-404-code { font-size: 96px; color: var(--dl-brand); margin-bottom: 8px; }
.dl-empty { padding: 40px 0; color: var(--dl-steel); }
.dl-searchform { display: flex; gap: 8px; max-width: 480px; padding-bottom: 40px; }
.dl-searchform input {
	flex: 1;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius);
	padding: 10px 14px;
	font-family: inherit;
	font-size: 15px;
}

/* ---------- Breadcrumb ---------- */
.dl-has-bc { padding-top: 20px; }
.dl-breadcrumb { margin-bottom: 10px; font-size: 13px; }
.dl-breadcrumb-list { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; color: var(--dl-steel); }
.dl-breadcrumb-list li { display: flex; align-items: center; }
.dl-breadcrumb-list li + li::before { content: "/"; margin: 0 7px; color: var(--dl-line); }
.dl-breadcrumb-list a { color: var(--dl-steel); }
.dl-breadcrumb-list a:hover { color: var(--dl-brand); }
.dl-breadcrumb-list [aria-current="page"] { color: var(--dl-ink); font-weight: 600; }

/* ---------- Sidebar shop ---------- */
.dl-shop-layout {
	display: grid;
	grid-template-columns: 262px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding-bottom: 56px;
}
@media (max-width: 991px) {
	.dl-shop-layout { grid-template-columns: 1fr; }
	.dl-shop-sidebar { order: 2; }
	.dl-shop-main { order: 1; }
}
.dl-shop-sidebar { position: sticky; top: calc(var(--dl-header-h) + 16px); }
@media (max-width: 991px) { .dl-shop-sidebar { position: static; } }

.dl-side-box {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	padding: 18px;
	margin-bottom: 20px;
}
.dl-side-title, .dl-side-cta h3 { font-size: 16px; margin-bottom: 12px; }

.dl-cat-tree, .dl-cat-sub { list-style: none; margin: 0; padding: 0; }
.dl-cat-tree > li > a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--dl-ink);
	font-weight: 600;
	font-size: 14.5px;
}
.dl-cat-tree > li > a:hover { background: var(--dl-bg-alt); color: var(--dl-brand); }
.dl-cat-tree li.is-current > a { background: var(--dl-brand-soft); color: var(--dl-brand); }
.dl-cat-sub { margin: 2px 0 8px 10px; border-left: 2px solid var(--dl-line); padding-left: 10px; }
.dl-cat-sub a {
	display: block;
	padding: 6px 8px;
	font-size: 13.5px;
	color: var(--dl-ink-2);
	border-radius: 6px;
}
.dl-cat-sub a:hover { color: var(--dl-brand); }
.dl-cat-sub li.is-current > a { color: var(--dl-brand); font-weight: 700; }

.dl-side-cta { background: linear-gradient(160deg, var(--dl-ink) 0%, #2a2e36 100%); border: 0; color: #cfd3da; }
.dl-side-cta h3 { color: #fff; }
.dl-side-cta p { font-size: 13.5px; }
.dl-side-cta .dl-btn { width: 100%; margin-bottom: 8px; }
.dl-btn-block { display: flex; }

.dl-subcat-tiles { margin: 8px 0 24px; }
.dl-product-cat.is-current { border-color: var(--dl-brand); color: var(--dl-brand); background: var(--dl-brand-soft); }

/* ---------- Trust badges + PDP CTA ---------- */
.dl-trust {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 14px;
	list-style: none;
	margin: 18px 0;
	padding: 14px 16px;
	background: var(--dl-bg-alt);
	border-radius: var(--dl-radius);
}
.dl-trust li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--dl-ink); }
.dl-trust-ic { font-size: 16px; }

.dl-pdp-cta {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	padding: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.dl-pdp-cta .dl-btn { flex: 1 1 auto; }
.dl-pdp-cta-note { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--dl-steel); text-align: center; }

/* ---------- Sticky CTA mobile (single product) ---------- */
.dl-sticky-cta { display: none; }
@media (max-width: 767px) {
	.dl-sticky-cta {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		display: flex;
		gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -4px 20px rgb(16 24 40 / .12);
		z-index: 800;
	}
	.dl-sticky-cta .dl-btn { flex: 1; }
	/* Chừa chỗ cho thanh CTA để không che nội dung/footer */
	body.dl-catalog .dl-footer { padding-bottom: 76px; }
}

/* ---------- Category chips (news) ---------- */
.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.dl-chip {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid var(--dl-line);
	background: #fff;
	color: var(--dl-ink);
	font-size: 13.5px;
	font-weight: 600;
	transition: all .15s ease;
}
.dl-chip:hover { border-color: var(--dl-brand); color: var(--dl-brand); }
.dl-chip.is-active { background: var(--dl-brand); border-color: var(--dl-brand); color: #fff; }
.dl-chip-mini { padding: 3px 10px; font-size: 12px; background: var(--dl-brand-soft); border: 0; color: var(--dl-brand); }

/* ---------- Featured hero + news grid ---------- */
.dl-news-wrap { padding-bottom: 40px; }
.dl-featured {
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius-lg);
	overflow: hidden;
	margin-bottom: 28px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.dl-featured:hover { box-shadow: var(--dl-shadow-hover); transform: translateY(-2px); }
.dl-featured-link { display: grid; grid-template-columns: 1.15fr 1fr; color: inherit; }
.dl-featured-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--dl-bg-alt); }
.dl-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-featured-thumb .dl-cat-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; }
.dl-featured-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start; }
.dl-featured-title { font-size: clamp(20px, 2.6vw, 26px); margin: 0; }
.dl-featured-excerpt { margin: 0; color: var(--dl-ink-2); }
.dl-featured-date { color: var(--dl-steel); font-size: 13px; }
@media (max-width: 767px) {
	.dl-featured-link { grid-template-columns: 1fr; }
	.dl-featured-body { padding: 18px; }
}
.dl-news-grid { margin-bottom: 0; }

/* ---------- Single post: share + nav + related ---------- */
.dl-single-head { margin-bottom: 20px; }
.dl-single-meta { display: flex; align-items: center; gap: 8px; color: var(--dl-steel); font-size: 14px; }
.dl-meta-sep { color: var(--dl-line); }

.dl-share {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 28px 0;
	padding: 14px 0;
	border-top: 1px solid var(--dl-line);
	border-bottom: 1px solid var(--dl-line);
}
.dl-share-label { font-size: 14px; color: var(--dl-steel); margin-right: 4px; }
.dl-share-btn {
	border: 1px solid var(--dl-line);
	background: #fff;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--dl-ink);
	cursor: pointer;
	font-family: inherit;
	transition: all .15s ease;
}
.dl-share-btn:hover { color: #fff; }
.dl-share-fb:hover { background: #1877f2; border-color: #1877f2; }
.dl-share-zalo:hover { background: var(--dl-zalo); border-color: var(--dl-zalo); }
.dl-share-copy:hover { background: var(--dl-ink); border-color: var(--dl-ink); }

.dl-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 28px 0;
}
@media (max-width: 575px) { .dl-post-nav { grid-template-columns: 1fr; } }
.dl-post-nav-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--dl-line);
	border-radius: var(--dl-radius);
	background: #fff;
	color: var(--dl-ink);
	transition: border-color .15s ease;
}
.dl-post-nav-item:hover { border-color: var(--dl-brand); color: var(--dl-ink); }
.dl-post-nav-item span { font-size: 12.5px; color: var(--dl-steel); }
.dl-post-nav-item strong { font-size: 14.5px; line-height: 1.4; }
.dl-post-nav-next { text-align: right; }

.dl-related h2 { font-size: 20px; margin-bottom: 16px; }
.dl-related { margin-top: 36px; }

/* Wishlist YITH tương thích */
.yith-wcwl-add-button a { background: var(--dl-brand); color: #fff; border-radius: 8px; padding: 8px 14px; }

/* Chuẩn hóa textdomain-free heading của Woo khi catalog */
.woocommerce-products-header__title { display: none; }
