/*
Theme Name: Web Khoi Nghiep
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.1.3
*/

/* =============================================================================
   STYLE.CSS (child) — CSS riêng của site. Nạp SAU assets/css/tokens.css + components.css
   (inc/design.php đặt phụ thuộc + version filemtime), nên dùng biến --ddg-* thay màu rời rạc.

   Nhóm: 1 Layout Flatsome · 2 Thẻ sản phẩm trong lưới · 3 Nút chia sẻ mạng xã hội
         4 Bài viết (template cũ) · 5 Trang Giới thiệu (343) tương thích class ddg-* · 6 LEGACY template sản phẩm
         7 COMPAT snippet WPCode cũ

   Đã XOÁ khi dọn (luồng DESIGN, 09/2026):
   - Toàn bộ CSS sidebar nổi .ddg-floating-* (UI-U-01: đè nội dung ở 1024–1600px).
   - h1.entry-title{font-size:22px/24px !important} (UI-U-11: H1 nhỏ hơn H2).
   - text-align: justify + word-spacing ở đoạn văn sản phẩm (UI-U-12).
   - Font SFUFutura (không tải file), kk-star-ratings (plugin gỡ ở A28), #mega_main_menu (plugin không còn).
   - Class không còn nơi dùng (đã đếm trong post_content publish, widget, theme mods, file theme):
     .title-header .span-hotline .title-page .title-danh-muc .section-slide .lien-he-price .section-text
     .hotline-single .section-tin-tuc .header-block-block-1 .nrpsctm-block .section-dia-chi
     .ddg-paragraph-container .ddg-section-heading .ddg-intro-* .ddg-feature-* .ddg-image-section .ddg-gallery-*
     .ddg-cta-primary .ddg-content-wrapper.
   - .flex-right ul li a{…!important}, .add_to_cart_button đỏ !important, .box-text-products{max-height:100px!important}
     (cắt tên sản phẩm — UI-U-17), b/strong bold !important.
   ============================================================================= */


/* ===================== 1. LAYOUT FLATSOME ===================== */
.container-width,
.full-width .ubermenu-nav,
.container,
.row {
	max-width: 1200px;
}

.row.row-small {
	max-width: 1170px;
}

.row.row-large {
	max-width: 1200px;
}

/* Submenu "Bảng giá" có tiêu đề dài */
ul.nav-dropdown.nav-dropdown-default {
	width: 350px;
}

input.search-field {
	box-shadow: none;
	border: 1px solid var(--ddg-line-strong);
}

.box-category .box-text .box-text-inner {
	padding: 0 10px;
}

/* Đường kẻ trang trí (dùng trên trang Giới thiệu) */
.ddg-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 40px auto;
	width: 50%;
}

.ddg-divider::before,
.ddg-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--ddg-brand-700);
}

.ddg-divider img {
	margin: 0 16px;
	max-height: 30px;
	background: var(--ddg-surface);
	padding: 0 8px;
}


/* ===================== 2. THẺ SẢN PHẨM TRONG LƯỚI (trang chủ, danh mục, liên quan) ===================== */
.row .product-small .col-inner {
	display: flex;
	flex-direction: column;
}

.row .product-small .box {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.product-small .col-inner {
	border: 1px solid var(--ddg-line);
	border-radius: var(--ddg-radius-md);
	background: var(--ddg-surface);
	overflow: hidden;
	transition: box-shadow var(--ddg-dur-2) var(--ddg-ease), border-color var(--ddg-dur-2) var(--ddg-ease);
	margin-bottom: 20px;
}

.product-small .col-inner:hover {
	border-color: #c9d0dc;
	box-shadow: var(--ddg-shadow-2);
}

.product-small .box-image {
	width: 100%;
}

/* Tỷ lệ cố định thay cho height:250px (ảnh không méo theo độ rộng cột) */
.product-small .box-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.product-small .box-text-products {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex-grow: 1;
	margin-top: 10px;
	align-items: center;
	text-align: center;
}

.product-small .category {
	white-space: normal; /* nhãn danh mục không bị cắt — UI-U-17 */
}

/* Tên sản phẩm tối đa 2 dòng, không cắt hai đầu — UI-U-17 */
.product-small .product-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: 2.7em;
	margin: 8px 0;
	color: var(--ddg-ink-900);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.product-small .product-title a {
	color: inherit;
}

.price-wrapper {
	margin-top: auto;
	text-align: center;
}

.price-wrapper .price {
	display: block;
	margin-bottom: 0;
	color: var(--ddg-ink-900);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.product-small .button,
.product-small .add_to_cart_button,
.product-small .view-product {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70%;
	min-height: 40px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 12px;
	border-radius: var(--ddg-radius-pill);
	background-color: var(--ddg-brand-700);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	transition: background-color var(--ddg-dur-1) var(--ddg-ease);
}

.product-small .button:hover,
.product-small .add_to_cart_button:hover,
.product-small .view-product:hover {
	background-color: var(--ddg-brand-600);
	color: #fff;
}

.product-small .badge-container {
	top: 0;
	right: 10px;
	left: auto;
	margin: 0;
}

.product-small .badge .badge-inner.on-sale {
	padding: 6px 10px;
	border-radius: var(--ddg-radius-sm);
	background: var(--ddg-brand-700);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}


/* ===================== 3. NÚT CHIA SẺ MẠNG XÃ HỘI (Flatsome share) — màu nhận diện của từng mạng ===================== */
.social-button,
.social-icons .button.icon:not(.is-outline),
.social-icons .button.icon:hover {
	background-color: currentColor !important;
	border-color: currentColor !important;
}

.button.facebook,
.button.facebook:not(.is-outline),
.button.facebook:hover {
	color: #fff;
	background-color: #446084;
	border-color: #446084;
}

.button.twitter,
.button.twitter:not(.is-outline),
.button.twitter:hover {
	color: #fff !important;
	background: #2478ba !important;
	border-color: #2478ba;
}

.button.email,
.button.email:not(.is-outline),
.button.email:hover {
	color: #fff;
	background-color: var(--ddg-ink-900) !important;
	border-color: var(--ddg-ink-900) !important;
}

.button.pinterest,
.button.pinterest:not(.is-outline),
.button.pinterest:hover {
	color: #fff !important;
	background-color: #cb2320 !important;
	border-color: #cb2320 !important;
}

.button.linkedin,
.button.linkedin:not(.is-outline),
.button.linkedin:hover {
	color: #fff !important;
	background-color: #0072b7 !important;
	border-color: #0072b7 !important;
}


/* ===================== 4. BÀI VIẾT — template cũ (THEME-CORE đang viết lại template-parts/posts/**; xoá nhóm này khi xong) ===================== */
footer.entry-meta {
	border-top: 0;
	border-bottom: 1px dashed var(--ddg-line);
}

.single-date {
	border-bottom: 1px dashed var(--ddg-line);
}

.duong-line {
	height: 12px;
	margin-top: 5px;
	overflow: hidden;
	background: transparent url(images/line.png) repeat scroll 0 0;
}

.related-post h7 {
	float: left;
	margin: -8px 20px 0 0;
	font-size: 18px;
	font-weight: 700;
}


/* ===================== 5. TRANG GIỚI THIỆU (page 343) — nội dung HTML tự viết dùng class ddg-* trùng tên component =====================
   Giữ đúng giao diện đang có: nền hero/CTA tối, nút trắng. */
.page-id-343 :is(.ddg-hero, .ddg-cta2) .ddg-eyebrow {
	color: inherit;
}

.page-id-343 :is(.ddg-hero, .ddg-cta2) .ddg-eyebrow::before {
	content: none;
}

.page-id-343 #main :is(.ddg-hero, .ddg-cta2) .ddg-btn--primary {
	--ddg-btn-bg: #fff;
	--ddg-btn-bg-hover: #fff;
	--ddg-btn-fg: #0b1b2b;
}

.page-id-343 #main :is(.ddg-hero, .ddg-cta2) .ddg-btn--ghost {
	--ddg-btn-bg: transparent;
	--ddg-btn-bg-hover: rgba(255, 255, 255, 0.08);
	--ddg-btn-fg: #fff;
	--ddg-btn-bd: rgba(255, 255, 255, 0.35);
	--ddg-btn-bd-hover: rgba(255, 255, 255, 0.65);
}

.page-id-343 .ddg-lead {
	max-width: none;
}

/* UI-U-22: hero 2 cột xếp chồng trên mobile (CSS inline của trang chỉ đổi ở ≤980px nhưng cột ảnh vẫn bị ép) */
@media (max-width: 849px) {
	.page-id-343 .ddg-hero__grid {
		grid-template-columns: 1fr;
	}

	.page-id-343 .ddg-hero__image img {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}
}


/* ===================== 6. LEGACY — template sản phẩm cũ (woocommerce/content-single-product.php bản 2025) =====================
   PRODUCT-LEAD đang viết lại template + assets/css/product.css. XOÁ TOÀN BỘ NHÓM NÀY khi template mới chạy
   (các class .ddg-hero-section, .ddg-product-*, .ddg-album-*, .ddg-lightbox-*, .ddg-cta-section, .ddg-links-section,
   .ddg-suggested-*, .ddg-footer-sidebar-*). Màu đã chuyển sang token, bỏ justify. */

/* 6.1 Bố cục landing */
.ddg-landing-page .product-main #product-sidebar,
.ddg-landing-page .product-container #product-sidebar:not(.ddg-product-sidebar),
.ddg-landing-page .col.product-sidebar:not(.ddg-product-sidebar),
.ddg-landing-page .product-sidebar-small:not(.ddg-product-sidebar) {
	display: none !important;
}

.ddg-landing-page .product-container,
.ddg-landing-page .product-main {
	max-width: 100% !important;
}

.ddg-landing-page .row {
	max-width: 1200px;
	margin: 0 auto;
}

.ddg-landing-page .col {
	width: 100% !important;
	padding: 0 15px;
}

/* 6.2 Hero sản phẩm */
.ddg-hero-section {
	padding: 60px 0 40px;
	margin-bottom: 0;
	background: linear-gradient(135deg, var(--ddg-surface-2) 0%, var(--ddg-surface) 100%);
	text-align: center;
}

.ddg-hero-title {
	margin: 0 0 20px;
	color: var(--ddg-ink-900);
	font-size: var(--ddg-fs-40);
	line-height: var(--ddg-lh-heading);
	text-transform: none;
}

.ddg-hero-price,
.ddg-hero-price .woocommerce-Price-amount {
	color: var(--ddg-ink-900);
}

.ddg-hero-price {
	margin: 20px 0;
	font-size: var(--ddg-fs-30);
	font-weight: 700;
}

.ddg-hero-rating {
	display: block;
	margin: 20px auto;
	text-align: center;
}

/* 6.3 Khối chi tiết 2 cột */
.ddg-product-details-section {
	padding: 60px 0;
	background: var(--ddg-surface);
}

.ddg-product-details-section .container {
	max-width: 960px;
	margin: 0 auto;
}

.ddg-product-details-section .row {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.ddg-product-images-col,
.ddg-product-info-col {
	flex: 0 0 calc(50% - 20px);
	max-width: calc(50% - 20px);
}

.ddg-product-images-wrapper {
	position: sticky;
	top: 100px;
}

.ddg-product-images-wrapper .product-images,
.ddg-product-images-wrapper .woocommerce-product-gallery {
	max-width: 100%;
	margin: 0 0 30px;
}

.ddg-product-images-wrapper .product-images img,
.ddg-product-images-wrapper .woocommerce-product-gallery img {
	width: 100%;
	height: auto;
	border-radius: var(--ddg-radius-md);
}

.ddg-product-album {
	margin-top: 30px;
}

.ddg-album-title,
.ddg-info-title {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ddg-line);
	color: var(--ddg-ink-900);
	font-size: var(--ddg-fs-20);
	font-weight: 700;
}

.ddg-album-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.ddg-album-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: var(--ddg-radius-md);
	background: var(--ddg-surface-2);
}

.ddg-album-link {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
	text-decoration: none;
}

.ddg-album-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--ddg-dur-2) var(--ddg-ease);
}

.ddg-album-item:hover img {
	transform: scale(1.04);
}

.ddg-product-info-wrapper {
	width: 100%;
}

.ddg-product-short-description,
.ddg-product-details-info {
	margin: 30px 0 0;
	padding: 20px 0;
	border-top: 1px solid var(--ddg-line);
}

.ddg-short-description-content {
	color: var(--ddg-ink-700);
	font-size: 16px;
	line-height: var(--ddg-lh-body);
}

.ddg-short-description-content p {
	margin-bottom: 15px;
}

.ddg-short-description-content p:last-child {
	margin-bottom: 0;
}

.ddg-product-info-col .product_meta {
	margin: 0;
	padding: 0;
	background: transparent;
}

.ddg-product-info-col .product_meta span {
	display: block;
	margin-bottom: 12px;
	color: var(--ddg-ink-700);
	font-size: 15px;
	line-height: 1.6;
}

.ddg-product-attributes {
	max-width: 900px;
	margin: 30px auto 0;
	padding: 30px;
	border: 1px solid var(--ddg-line);
	border-radius: var(--ddg-radius-md);
	background: var(--ddg-surface);
}

.ddg-product-info-col .ddg-product-attributes {
	margin: 20px 0 0;
	padding: 0;
	border: 0;
}

.ddg-product-attributes table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.ddg-product-attributes table th,
.ddg-product-attributes table td {
	padding: 10px 12px;
	border: 1px solid var(--ddg-line);
	font-size: 15px;
	text-align: left;
}

.ddg-product-attributes table th {
	width: 30%;
	background: var(--ddg-surface-2);
	color: var(--ddg-ink-900);
	font-weight: 600;
}

/* 6.4 Lightbox album */
.ddg-album-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--ddg-dur-2) ease, visibility var(--ddg-dur-2) ease;
}

.ddg-album-lightbox.active {
	opacity: 1;
	visibility: visible;
}

.ddg-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(21, 17, 31, 0.92);
	cursor: pointer;
}

.ddg-lightbox-container {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 90%;
	max-height: 90%;
}

.ddg-lightbox-image-wrapper {
	position: relative;
	max-width: 100%;
	max-height: 90vh;
}

.ddg-lightbox-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--ddg-radius-md);
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.ddg-lightbox-close,
.ddg-lightbox-prev,
.ddg-lightbox-next {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ddg-ink-900);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--ddg-dur-1) ease;
}

.ddg-lightbox-close {
	top: 20px;
	right: 20px;
}

.ddg-lightbox-prev,
.ddg-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}

.ddg-lightbox-prev {
	left: 20px;
}

.ddg-lightbox-next {
	right: 20px;
}

.ddg-lightbox-close:hover,
.ddg-lightbox-prev:hover,
.ddg-lightbox-next:hover {
	background: #fff;
}

.ddg-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	padding: 8px 16px;
	border-radius: var(--ddg-radius-pill);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transform: translateX(-50%);
}

body.ddg-lightbox-open {
	overflow: hidden;
}

/* 6.5 Nội dung mô tả sản phẩm */
.ddg-content-section,
.ddg-product-content-wrapper {
	width: 100%;
	padding: 0;
	background: var(--ddg-surface);
}

.ddg-product-content {
	width: 100%;
}

.ddg-product-content p {
	margin-bottom: 24px;
	color: var(--ddg-ink-700);
	font-size: 17px;
	line-height: var(--ddg-lh-body);
}

.ddg-product-content p:first-child {
	margin-bottom: 28px;
	color: var(--ddg-ink-900);
	font-size: 19px;
}

.ddg-product-content p:last-child {
	margin-bottom: 0;
}

.ddg-product-content h2 {
	margin: 40px 0 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ddg-line);
	font-size: var(--ddg-fs-30);
}

.ddg-product-content h3 {
	margin: 30px 0 15px;
	font-size: var(--ddg-fs-24);
}

.ddg-product-content h4 {
	margin: 25px 0 12px;
	font-size: 18px;
}

.ddg-product-content li {
	margin-bottom: 12px;
	color: var(--ddg-ink-700);
	font-size: 17px;
	line-height: var(--ddg-lh-body);
}

.ddg-product-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 30px auto;
	border-radius: var(--ddg-radius-md);
	box-shadow: var(--ddg-shadow-1);
}

.ddg-product-content blockquote {
	margin: 30px 0;
	padding: 20px 25px;
	border-left: 3px solid var(--ddg-brand-600);
	background: var(--ddg-surface-2);
	color: var(--ddg-ink-700);
	font-size: 18px;
	font-style: italic;
}

.ddg-paragraph-content > div.full-width,
.ddg-paragraph-content > section.full-width {
	box-sizing: border-box;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	padding-left: 40px !important;
	padding-right: 40px !important;
}

/* 6.6 CTA cũ (add to cart) */
.ddg-cta-section {
	padding: 50px 0;
	background: var(--ddg-surface);
}

.ddg-cta-secondary {
	background: var(--ddg-surface-2);
}

.ddg-cta-secondary .ddg-cta-wrapper {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.ddg-cta-secondary .single_add_to_cart_button,
.ddg-cta-secondary .button,
.ddg-cta-secondary button[type="submit"] {
	display: inline-block;
	min-width: 220px;
	padding: 14px 36px;
	border: 1px solid var(--ddg-brand-600);
	border-radius: var(--ddg-radius-pill);
	background: var(--ddg-brand-600);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-transform: none;
}

.ddg-cta-secondary .single_add_to_cart_button:hover,
.ddg-cta-secondary .button:hover,
.ddg-cta-secondary button[type="submit"]:hover {
	border-color: var(--ddg-brand-700);
	background: var(--ddg-brand-700);
}

.ddg-cta-wrapper .cart {
	margin: 0;
}

.ddg-cta-wrapper .quantity {
	margin-bottom: 20px;
}

/* 6.7 Liên kết nội bộ + bài gợi ý */
.ddg-links-section {
	padding: 60px 0;
	background: var(--ddg-surface-2);
}

.ddg-links-section .upsells,
.ddg-links-section .related {
	max-width: 1200px;
	margin: 0 auto;
}

.ddg-links-section-wrapper {
	width: 100%;
}

.ddg-links-section h2,
.ddg-links-section .ddg-section-heading-full {
	width: 100%;
	max-width: 100%;
	margin: 0 auto 40px;
	padding-bottom: 15px;
	color: var(--ddg-ink-900);
	font-size: var(--ddg-fs-30);
	text-align: center;
}

.ddg-links-section .ddg-section-heading-full {
	padding-top: 40px;
}

.ddg-suggested-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.ddg-suggested-post-item {
	overflow: hidden;
	border: 1px solid var(--ddg-line);
	border-radius: var(--ddg-radius-lg);
	background: var(--ddg-surface);
	box-shadow: var(--ddg-shadow-1);
	transition: box-shadow var(--ddg-dur-2) var(--ddg-ease);
}

.ddg-suggested-post-item:hover {
	box-shadow: var(--ddg-shadow-2);
}

.ddg-suggested-post-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ddg-suggested-post-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: var(--ddg-surface-2);
}

.ddg-suggested-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ddg-suggested-post-content {
	padding: 20px;
}

.ddg-suggested-post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin: 0 0 12px;
	color: var(--ddg-ink-900);
	font-size: 18px;
	line-height: 1.4;
}

.ddg-suggested-post-item:hover .ddg-suggested-post-title {
	color: var(--ddg-brand-600);
}

.ddg-suggested-post-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin-bottom: 12px;
	color: var(--ddg-ink-700);
	font-size: 14px;
	line-height: 1.6;
}

.ddg-suggested-post-date {
	display: block;
	color: var(--ddg-ink-500); /* 6.5:1 thay #999 2.85:1 — UI-U-13 */
	font-size: 13px;
}

/* 6.8 Sản phẩm liên quan + widget cuối trang (thay sidebar nổi) */
.ddg-footer-sidebar-section {
	padding: 60px 0;
	border-top: 1px solid var(--ddg-line);
	background: var(--ddg-surface);
}

.ddg-footer-sidebar-wrapper {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	max-width: 1400px;
	margin: 0 auto;
}

.ddg-footer-related {
	flex: 1;
	width: 100%;
	min-width: 0;
}

.ddg-footer-sidebar {
	position: relative;
	flex: 0 0 350px;
	max-width: 350px;
}

.ddg-footer-sidebar .sidebar-inner {
	padding: 30px;
	border: 1px solid var(--ddg-line);
	border-radius: var(--ddg-radius-md);
	background: var(--ddg-surface-2);
}

.ddg-footer-sidebar .widget {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--ddg-line);
}

.ddg-footer-sidebar .widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.ddg-footer-sidebar .widget-title {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ddg-line);
	color: var(--ddg-ink-900);
	font-size: 20px;
	font-weight: 700;
}

.ddg-footer-sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ddg-footer-sidebar .widget ul li {
	position: relative;
	margin-bottom: 12px;
	padding-left: 20px;
}

.ddg-footer-sidebar .widget ul li::before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--ddg-brand-600);
	font-weight: 700;
}

/* 6.9 Responsive */
@media only screen and (max-width: 768px) {
	.ddg-hero-section {
		padding: 40px 0 30px;
	}

	.ddg-product-details-section .row,
	.ddg-footer-sidebar-wrapper {
		flex-direction: column;
		gap: 30px;
	}

	.ddg-product-images-col,
	.ddg-product-info-col,
	.ddg-footer-sidebar {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.ddg-product-images-wrapper {
		position: static;
	}

	.ddg-album-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ddg-content-section,
	.ddg-cta-section,
	.ddg-links-section {
		padding: 40px 0;
	}

	.ddg-product-content p,
	.ddg-product-content li {
		font-size: 16px;
	}

	.ddg-product-content p:first-child {
		font-size: 18px;
	}

	.ddg-cta-secondary .single_add_to_cart_button,
	.ddg-cta-secondary .button,
	.ddg-cta-secondary button[type="submit"] {
		width: 100%;
		min-width: 0;
		font-size: 16px;
	}

	.ddg-product-attributes {
		padding: 20px 15px;
	}

	.ddg-product-attributes table th,
	.ddg-product-attributes table td {
		padding: 8px;
		font-size: 14px;
	}

	.ddg-product-attributes table th {
		width: 40%;
	}

	.ddg-suggested-posts {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ddg-lightbox-prev,
	.ddg-lightbox-next,
	.ddg-lightbox-close {
		width: 44px;
		height: 44px;
		font-size: 26px;
	}

	.ddg-lightbox-close {
		top: 10px;
		right: 10px;
	}

	.ddg-lightbox-image {
		max-height: 85vh;
	}
}


/* ===================== 7. COMPAT snippet WPCode cũ (`a:hover{color:#c20000 !important}`) — xoá khi A21 gỡ khối <style> ===================== */
body .product-small :is(.button, .add_to_cart_button, .view-product):hover,
body .ddg-cta-secondary :is(.button, .single_add_to_cart_button):hover {
	color: #fff !important;
}
