/*
Theme Name: Đại Phú Vinh
Theme URI: https://daiphuvinh.vn/
Author: Đại Phú Vinh
Description: Theme nhẹ, chuẩn SEO cho website vật liệu xây dựng Đại Phú Vinh. Hỗ trợ WooCommerce, schema JSON-LD, breadcrumb, Open Graph, Customizer. Khuyến nghị dùng cùng child theme dpv-child.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dpv-theme
Tags: e-commerce, blog, custom-logo, custom-menu, featured-images, translation-ready, vietnamese
*/

/* ---------- Reset & biến ---------- */
:root {
	--dpv-primary: #e2231a;
	--dpv-primary-dark: #b81a13;
	--dpv-text: #1f2328;
	--dpv-muted: #6b7280;
	--dpv-line: #e6e8eb;
	--dpv-bg: #ffffff;
	--dpv-soft: #f6f6f7;
	--dpv-radius: 12px;
	--dpv-shadow: 0 6px 22px rgba(20, 24, 31, .08);
	--dpv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--dpv-content: 1280px;
	--dpv-gutter: 20px;
	--dpv-max: calc(var(--dpv-content) + 2 * var(--dpv-gutter));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--dpv-font); font-size: 16px; line-height: 1.65; color: var(--dpv-text); background: var(--dpv-bg); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--dpv-primary-dark); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--dpv-primary-dark) 78%, #000); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--dpv-text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: 100%; max-width: var(--dpv-max); margin: 0 auto; padding: 0 var(--dpv-gutter); }
/* Laptop/máy tính: toàn bộ khu vực nội dung cách hai mép màn hình tối thiểu 2cm (bề rộng nội dung và ảnh không đổi) */
@media (min-width: 1025px) { :root { --dpv-gutter: 2cm; } }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; padding: 10px 16px; z-index: 100000; top: 8px; left: 8px; }
:focus-visible { outline: 3px solid rgba(226, 35, 26, .45); outline-offset: 2px; }
.muted { color: var(--dpv-muted); }

/* ---------- Header ---------- */
.site-header { display: contents; }
.header-top { background: #fff; }
.header-top { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto auto; gap: 24px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark { color: var(--dpv-primary); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 20px; font-weight: 800; color: var(--dpv-text); letter-spacing: .01em; }
.brand__tag { font-size: 12px; color: var(--dpv-muted); }
.brand__text { min-width: 0; }
.custom-logo-link { display: inline-flex; flex: none; }
.custom-logo-link img { width: 64px; height: 64px; max-height: none; border-radius: 50%; object-fit: cover; }

.searchform { position: relative; display: flex; align-items: center; background: #fff; border: 2px solid var(--dpv-text); border-radius: 999px; overflow: hidden; }
.searchform__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 20px; font-size: 16px; }
.searchform__input::placeholder { color: #8b919a; }
.searchform__btn { border: 0; background: transparent; padding: 0 18px; height: 100%; display: inline-flex; align-items: center; color: var(--dpv-text); }
.searchform:focus-within { border-color: var(--dpv-primary); }
/* Laptop/máy tính: khung tìm kiếm hẹp lại, nằm giữa phần trống của header */
@media (min-width: 821px) {
	.header-top .searchform { width: 100%; max-width: 300px; justify-self: center; }
	.header-top .searchform .searchform__input { padding: 7px 16px; font-size: 15px; line-height: 1.3; }
	.header-top .searchform .searchform__btn { padding: 0 14px; }
}

.header-contact { display: flex; flex-direction: column; gap: 4px; }
.hc-line { display: inline-flex; align-items: center; gap: 8px; color: var(--dpv-text); font-size: 14.4px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.hc-line svg { color: var(--dpv-text); flex: none; }
.hc-line--mail { font-size: 13.6px; }
.hc-line:hover { color: var(--dpv-primary-dark); }

.header-actions { display: flex; align-items: center; gap: 18px; }
/* Header cao gấp đôi (chỉ màn hình lớn; máy tính bảng/điện thoại giữ gọn) */
@media (min-width: 1181px) {
	.header-top { padding-top: 40px; padding-bottom: 40px; gap: 36px; }
	.brand { gap: 20px; }
	.brand__mark svg { width: 100px; height: 100px; }
	.custom-logo-link img { width: 92px; height: 92px; }
	.brand__name { font-size: 32px; }
	.brand__tag { font-size: 15px; margin-top: 4px; }
	.header-contact { gap: 12px; }
	.hc-line { font-size: 18.4px; gap: 11px; }
	.hc-line--mail { font-size: 16px; }
	.hc-line svg { width: 21px; height: 21px; }
	.cart-link svg { width: 36px; height: 36px; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 10px 26px; font-weight: 500; font-size: 17px; line-height: 1.2; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn--outline { border-color: var(--dpv-primary); color: var(--dpv-primary-dark); background: #fff; }
.btn--outline:hover { background: var(--dpv-primary-dark); border-color: var(--dpv-primary-dark); color: #fff; }
.cart-link { position: relative; color: var(--dpv-text); display: inline-flex; }
.cart-link__n { position: absolute; top: -6px; right: -8px; background: var(--dpv-primary-dark); color: #fff; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; padding: 0 4px; }
.menubtn { display: none; }
.tabbar { display: none; }

/* Thanh đỏ */
.navbar { background: var(--dpv-primary); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(16, 24, 40, .12); }
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }
.navbar__in { display: flex; align-items: stretch; gap: 24px; min-height: 44px; }
.catbtn-wrap { position: relative; flex: none; width: 280px; display: flex; }
.catbtn { display: flex; align-items: center; gap: 14px; background: transparent; border: 0; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; padding: 0 4px; width: 100%; text-align: left; }
.catbtn__bars, .catbtn__bars::before, .catbtn__bars::after { content: ""; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.catbtn__bars::before { position: absolute; top: -7px; left: 0; }
.catbtn__bars::after { position: absolute; top: 7px; left: 0; }
.catbtn { cursor: pointer; }
.is-home .catbtn:not(.can-drop) { cursor: default; }
.catbtn.can-drop::after { content: ""; width: 8px; height: 8px; margin-left: auto; margin-right: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.catbtn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

.primary-nav { flex: 1; }
.primary-nav .menu { display: flex; align-items: stretch; gap: 4px; height: 100%; flex-wrap: wrap; }
.primary-nav .menu > li { position: relative; display: flex; }
.primary-nav .menu > li > a { color: #fff; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; display: flex; align-items: center; padding: 0 14px; border-bottom: 3px solid transparent; }
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current_page_item > a { border-bottom-color: #fff; color: #fff; }
.primary-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 9px; }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: var(--dpv-shadow); border-radius: 0 0 var(--dpv-radius) var(--dpv-radius); padding: 8px 0; display: none; z-index: 60; }
.primary-nav .menu-item:hover > .sub-menu,
.primary-nav .menu-item:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 10px 20px; color: var(--dpv-text); font-weight: 500; text-transform: none; }
.primary-nav .sub-menu a:hover { background: var(--dpv-soft); color: var(--dpv-primary-dark); }

/* Panel danh mục (cột trái / dropdown) */
.cat-panel { background: #fff; border-radius: 0 0 var(--dpv-radius) var(--dpv-radius); box-shadow: var(--dpv-shadow); padding: 6px 0; }
.cat-panel--drop { position: absolute; top: 100%; left: 0; width: 100%; z-index: 70; }
.cat-list li { position: relative; }
.cat-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; color: var(--dpv-text); font-size: 18px; font-weight: 500; line-height: 1.3; }
.cat-list > li.menu-item-has-children > a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #4b5563; border-top: 2px solid #4b5563; transform: rotate(45deg); margin-left: 10px; flex: none; }
.cat-list > li > a:hover { background: var(--dpv-soft); color: var(--dpv-primary-dark); }
.cat-list .sub-menu { position: absolute; left: 100%; top: 0; min-width: 260px; background: #fff; box-shadow: var(--dpv-shadow); border-radius: var(--dpv-radius); padding: 8px 0; display: none; z-index: 80; }
.cat-list li:hover > .sub-menu, .cat-list li:focus-within > .sub-menu { display: block; }
.cat-list .sub-menu a { display: block; padding: 10px 20px; color: var(--dpv-text); }
.cat-list .sub-menu a:hover { background: var(--dpv-soft); color: var(--dpv-primary-dark); }

/* ---------- Trang chủ ---------- */
/* Khối WordPress có sẵn (Tiêu đề, Đoạn văn, Danh sách, Ảnh…) đặt trong trang chủ: căn đúng bề rộng khung */
.home-content > *:not(section):not(.alignfull) { max-width: var(--dpv-max); margin-left: auto; margin-right: auto; padding-left: var(--dpv-gutter); padding-right: var(--dpv-gutter); }
.home-content > .intro { padding-top: 36px; padding-bottom: 12px; }
.home-content > .intro :is(p, ul, ol, h2, h3) { max-width: none; margin-left: 0; margin-right: 0; }
.home-content > .intro h1 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.home-content .has-text-align-center { text-align: center; }
.home-content > h1 { font-size: 30px; font-weight: 800; }
.home-content > h2, .home-content > h3 { margin-top: 1.4em; }
.home-content .wp-block-list { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.home-content > figure img { border-radius: var(--dpv-radius); }
.hero { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 20px; padding-top: 16px; padding-bottom: 8px; align-items: start; }
.hero__cats .cat-panel { border-radius: 0 0 var(--dpv-radius) var(--dpv-radius); margin-top: -16px; padding-top: 10px; }

.slider { position: relative; border-radius: var(--dpv-radius); overflow: hidden; background: #eef0f2; min-height: 520px; }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__img, .slide a, .slide picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide--default { background: radial-gradient(120% 120% at 100% 0%, #fde8e6 0%, #f6f6f7 55%, #eaeef3 100%); display: flex; align-items: center; }
.slide--alt { background: radial-gradient(120% 120% at 0% 0%, #e8f0fb 0%, #f6f6f7 55%, #fdeee3 100%); }
.slide__copy { padding: 36px 44px; max-width: 70%; }
.slide__kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--dpv-primary-dark); font-size: 14px; margin: 0 0 10px; }
.slide__title { font-size: clamp(22px, 2.3vw, 34px); font-weight: 800; line-height: 1.22; margin: 0 0 16px; color: #111827; }
.slide__bullets li { position: relative; padding-left: 20px; margin-bottom: 4px; color: #374151; }
.slide__bullets li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--dpv-primary); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 8px; justify-content: center; }
.slider__dot { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.slider__dot.is-active { background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }

.hero__side .section-title { margin-bottom: 14px; }
.side-list { display: grid; gap: 14px; }
.side-item { display: block; }
.side-item__img { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 6.4; background: var(--dpv-soft); }
.side-item__img img { width: 100%; height: 100%; object-fit: cover; }
.side-item__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 17px; line-height: 1.35; color: var(--dpv-text); }
.side-item__title:hover { color: var(--dpv-primary-dark); }

.block { padding-top: 28px; padding-bottom: 8px; }
/* Tiêu đề khối: thẻ xanh vát chéo + đường kẻ + "Xem thêm ›" */
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--dpv-primary) 22%, #fff); }
.block__head .section-title { position: relative; display: inline-flex; align-items: center; margin: 0 0 -1px; padding: 7px 34px 7px 16px; background: var(--dpv-primary); color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%); border-radius: 3px 0 0 0; }
.more--side { margin-top: 10px; padding-bottom: 0; font-size: 16px; }
.block__head .section-title::before { content: none; }
.more { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 7px; font-weight: 600; font-size: 14px; color: #374151; white-space: nowrap; }
.more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .65; }
.more:hover { color: var(--dpv-primary-dark); }
.section-title { font-size: 28px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 20px; }
.section-title--left { text-align: left; text-transform: none; font-size: 26px; }
.hero__side .section-title--left { font-size: 28px; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.project { position: relative; display: block; border-radius: var(--dpv-radius); overflow: hidden; aspect-ratio: 16 / 7.2; background: #222; color: #fff; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .62)); }
.project:hover img { transform: scale(1.05); }
.project__title { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px 26px; text-transform: uppercase; font-size: 18px; font-weight: 500; line-height: 1.4; }

/* Card */
.card { background: #fff; border: 1px solid var(--dpv-line); border-radius: var(--dpv-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--dpv-shadow); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 4 / 3; background: var(--dpv-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 18px; }
.card__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.card__title a { color: var(--dpv-text); }
.card__title a:hover { color: color-mix(in srgb, var(--dpv-primary-dark) 78%, #000); }
.card__excerpt { color: var(--dpv-muted); font-size: 14.5px; margin: 0; }
.card__price { color: var(--dpv-primary-dark); font-weight: 700; margin: 0; }

/* Giới thiệu */
.intro { padding-top: 36px; padding-bottom: 12px; }
.intro__h1 { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 16px; }
.intro__body { max-width: none; margin: 0; }

/* ---------- Trang trong ---------- */
.page-wrap { padding-top: 22px; padding-bottom: 56px; }
.page-wrap.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.breadcrumb { margin-bottom: 18px; font-size: 14px; color: var(--dpv-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #9aa1ab; }
.breadcrumb a { color: var(--dpv-muted); }
.breadcrumb a:hover { color: color-mix(in srgb, var(--dpv-primary-dark) 78%, #000); }
.archive-head { margin-bottom: 22px; }
.archive-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.entry-title { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.entry-meta { color: var(--dpv-muted); font-size: 14px; margin-bottom: 18px; }
.entry-thumb { margin: 0 0 22px; border-radius: var(--dpv-radius); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content img { border-radius: 8px; margin: 1em auto; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--dpv-line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--dpv-soft); }
.entry-content blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--dpv-primary); background: var(--dpv-soft); }
.entry-tags { margin-top: 24px; font-size: 14px; color: var(--dpv-muted); }
.related { margin-top: 44px; }
.sidebar .widget { margin-bottom: 28px; }
.widget-list li { padding: 8px 0; border-bottom: 1px solid var(--dpv-line); line-height: 1.45; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: var(--dpv-text); }
.widget-list a:hover { color: var(--dpv-primary-dark); }
.widget--cats .children { margin: 6px 0 0 14px; }
.widget-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.pagination { margin-top: 30px; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--dpv-line); border-radius: 8px; color: var(--dpv-text); padding: 0 12px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--dpv-primary-dark); color: #fff; border-color: var(--dpv-primary-dark); }
.notfound .searchform { max-width: 520px; margin: 18px 0 30px; }
.notfound__cats .cat-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.notfound__cats .cat-list a { display: inline-block; padding: 8px 16px; border: 1px solid var(--dpv-line); border-radius: 999px; color: var(--dpv-text); font-size: 15px; }
.comments { margin-top: 44px; }
.comment-list { margin-bottom: 20px; }

/* ---------- WooCommerce nhẹ ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 30px; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; border: 1px solid var(--dpv-line); border-radius: var(--dpv-radius); overflow: hidden; background: #fff; padding-bottom: 14px; text-align: left; }
.woocommerce ul.products li.product img { margin: 0 0 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 14px; font-size: 16px; margin: 0 0 6px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: var(--dpv-text); }
.woocommerce ul.products li.product .price { padding: 0 14px; color: var(--dpv-primary-dark); font-weight: 700; display: block; }
.woocommerce ul.products li.product .button { margin: 10px 14px 0; background: var(--dpv-primary-dark); color: #fff; border-radius: 6px; }
.woocommerce .woocommerce-ordering select, .woocommerce .woocommerce-result-count { margin-bottom: 18px; }
.woocommerce div.product .product_title { font-size: 30px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--dpv-primary-dark); font-weight: 800; }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--dpv-primary-dark); color: #fff; }
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: color-mix(in srgb, var(--dpv-primary-dark) 80%, #000); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: #1b1f24; color: #cbd1d8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.site-footer .widget-title { color: #fff; }
.site-footer a { color: #cbd1d8; }
.site-footer a:hover { color: #fff; }
.footer-links li, .contact-list li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 14px; color: #8c95a0; }
.footer-bottom p { margin: 0; }
.float-contact { position: fixed; right: 14px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-contact__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 56px; padding: 0 16px; border-radius: 28px; color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.float-contact__btn:hover { color: #fff; filter: brightness(1.08); }
.float-contact__btn--zalo { background: #0068ff; }
.float-contact__btn--tel { background: var(--dpv-primary-dark); animation: dpv-pulse 2.4s infinite; }
@keyframes dpv-pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 35, 26, .5); } 70% { box-shadow: 0 0 0 16px rgba(226, 35, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 35, 26, 0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.hero { grid-template-columns: 240px minmax(0, 1fr); }
	.hero__side { grid-column: 1 / -1; }
	.side-list { grid-template-columns: repeat(3, 1fr); }
	.catbtn-wrap { width: 240px; }
	.header-top { grid-template-columns: auto minmax(200px, 1fr) auto; }
	.header-actions { grid-column: 1 / -1; justify-content: flex-end; }
	.hc-line--mail { display: none; }
}
@media (max-width: 960px) {
	.grid--4, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.page-wrap.has-sidebar { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	body { font-size: 15.5px; }
	:root { --dpv-gutter: 16px; }

	/* Header gọn: logo + giỏ hàng, ô tìm kiếm full-width bên dưới */
	.header-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
	.header-top .searchform { grid-column: 1 / -1; order: 3; border-width: 1.5px; }
	.searchform__input { padding: 9px 16px; }
	.searchform__btn { padding: 0 14px; }
	.header-contact, .header-actions .btn { display: none; }
	.header-actions { grid-column: auto; order: 2; gap: 0; }
	.brand { gap: 10px; }
	.brand__mark svg { width: 40px; height: 40px; }
	.custom-logo-link img { width: 44px; height: 44px; }
	.brand__tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
	.brand__name { font-size: 17px; }
	.brand__tag { font-size: 11px; }
	.cart-link { width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--dpv-soft); }
	.cart-link svg { width: 24px; height: 24px; }

	/* Thanh điều hướng dính: [Danh mục] [Menu]; bảng xổ phủ full-width bên dưới */
	.navbar__in { gap: 0; min-height: 48px; justify-content: space-between; }
	.catbtn-wrap { position: static; width: auto; flex: 1; min-width: 0; }
	.catbtn { padding: 0; gap: 10px; font-size: 14px; }
	.catbtn.can-drop::after { margin-left: 8px; margin-right: 0; }
	.is-home .catbtn { cursor: pointer; }
	.menubtn { display: inline-flex; align-items: center; gap: 10px; flex: none; background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 14px; padding: 0 0 0 16px; margin-left: 12px; }
	.menubtn__bars, .menubtn__bars::before, .menubtn__bars::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
	.menubtn__bars::before { position: absolute; top: -6px; left: 0; }
	.menubtn__bars::after { position: absolute; top: 6px; left: 0; }
	.menubtn[aria-expanded="true"] .menubtn__bars { background: transparent; }
	.menubtn[aria-expanded="true"] .menubtn__bars::before { top: 0; transform: rotate(45deg); }
	.menubtn[aria-expanded="true"] .menubtn__bars::after { top: 0; transform: rotate(-45deg); }

	.cat-panel--drop, .primary-nav { position: absolute; top: 100%; left: 0; right: 0; width: auto; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 14px 28px rgba(16, 24, 40, .22); }
	.cat-panel--drop { border-radius: 0; padding: 4px 0; background: #fff; }
	.cat-panel--drop[hidden] { display: none; }
	.cat-list > li > a { padding: 13px 20px; font-size: 16px; border-bottom: 1px solid var(--dpv-line); }
	.cat-list > li:last-child > a { border-bottom: 0; }
	.cat-list .sub-menu { position: static; display: block; box-shadow: none; border-radius: 0; background: var(--dpv-soft); padding: 2px 0; min-width: 0; }
	.cat-list > li.menu-item-has-children > a::after { transform: rotate(135deg); }
	.cat-list .sub-menu a { padding: 10px 20px 10px 34px; font-size: 15px; }

	.primary-nav { display: none; background: #fff; border-radius: 0; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; gap: 0; height: auto; }
	.primary-nav .menu > li { display: block; }
	.primary-nav .menu > li > a { color: var(--dpv-text); font-size: 15px; padding: 14px 20px; border-bottom: 1px solid var(--dpv-line); }
	.primary-nav .menu > li > a:hover, .primary-nav .menu > li.current-menu-item > a, .primary-nav .menu > li.current_page_item > a { background: var(--dpv-soft); color: var(--dpv-primary-dark); border-bottom-color: var(--dpv-line); }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-menu { position: static; display: block; box-shadow: none; background: var(--dpv-soft); border-radius: 0; padding: 0; min-width: 0; }
	.primary-nav .sub-menu a { color: var(--dpv-text); padding: 11px 20px 11px 34px; }

	/* Trang chủ: banner + danh mục nhanh */
	.hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 12px; }
	.hero__cats { display: none; }
	.slider { min-height: 0; aspect-ratio: 16 / 11; border-radius: 10px; }
	.slide--default { align-items: flex-start; }
	.slide__copy { max-width: 100%; padding: 18px 18px 40px; }
	.slide__kicker { font-size: 11.5px; margin-bottom: 6px; }
	.slide__title { font-size: 20px; margin-bottom: 10px; }
	.slide__bullets li { font-size: 14px; padding-left: 16px; margin-bottom: 2px; line-height: 1.45; }
	.slide__bullets li::before { width: 6px; height: 6px; }
	.slider__dots { bottom: 10px; }
	.slider__dot { width: 8px; height: 8px; }

	.hero__side .section-title--left { font-size: 20px; margin-bottom: 10px; }
	.side-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.side-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; background: #fff; border: 1px solid var(--dpv-line); border-radius: 10px; padding: 8px; }
	.side-item__img { aspect-ratio: 4 / 3; border-radius: 6px; }
	.side-item__title { margin-top: 0; font-size: 15px; font-weight: 600; }

	/* Khối nội dung */
	.block { padding-top: 22px; }
	.block__head { margin-bottom: 12px; gap: 10px; }
	.block__head .section-title { font-size: 12.5px; padding: 6px 26px 6px 12px; letter-spacing: .03em; }
	.more { font-size: 13px; padding-bottom: 6px; }
	.section-title { font-size: 20px; }
	.grid { gap: 12px; }
	.grid--3 { grid-template-columns: minmax(0, 1fr); }
	.project { aspect-ratio: 16 / 6.4; }
	.project__title { font-size: 15px; padding: 12px 18px; }
	.card__body { padding: 10px 12px 14px; }
	.card__title { font-size: 15px; line-height: 1.35; }
	.card__excerpt { font-size: 13.5px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14.5px; padding: 0 10px; }
	.woocommerce ul.products li.product .price { padding: 0 10px; font-size: 14px; }
	.woocommerce ul.products li.product .button { margin: 8px 10px 0; padding: 9px 12px; font-size: 13.5px; }

	.intro { padding-top: 26px; }
	.intro__h1, .home-content > h1, .home-content > .intro h1 { font-size: 22px; }
	.home-content > *:not(section):not(.alignfull) { padding-left: 16px; padding-right: 16px; }
	.archive-title, .entry-title { font-size: 24px; }
	.entry-content { font-size: 16px; }
	.entry-content h2 { font-size: 21px; }
	.entry-content h3 { font-size: 18px; }
	.entry-content table { display: block; overflow-x: auto; }
	.page-wrap { padding-top: 16px; padding-bottom: 36px; }
	.woocommerce div.product .product_title { font-size: 24px; }

	/* Footer */
	.site-footer { margin-top: 28px; }
	.footer-grid { padding-top: 30px; padding-bottom: 20px; gap: 24px; }
	.footer-bottom { padding: 14px 0; text-align: center; }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

	/* Nút liên hệ nhanh: gọn, sát mép dưới */
	.float-contact { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
	.float-contact__btn--tel { display: none; }
	.tabbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--dpv-line); box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); padding-bottom: env(safe-area-inset-bottom, 0px); }
	.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 7px 4px 6px; color: #4b5563; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; -webkit-tap-highlight-color: transparent; }
	.tabbar__item:active, .tabbar__item:hover { color: var(--dpv-primary-dark); background: var(--dpv-soft); }
	.tabbar__item svg { width: 26px; height: 26px; }
	.float-contact__btn { min-width: 0; height: 42px; padding: 0 16px; font-size: 14px; border-radius: 21px; }
}
@media (max-width: 520px) {
	.grid--4, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
	.catbtn { font-size: 13px; letter-spacing: 0; }
	.menubtn { font-size: 13px; padding-left: 12px; margin-left: 8px; }
	.side-item { grid-template-columns: 96px minmax(0, 1fr); }
}

/* Form bình luận */
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; max-width: 560px; padding: 10px 12px; border: 1px solid var(--dpv-line); border-radius: 8px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit { background: var(--dpv-primary-dark); color: #fff; border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 700; }
