/* ==========================================================================
   Pet Lover Child — custom styles
   Ưu tiên chỉnh màu/font/nút trong WoodMart Theme Settings trước;
   file này chỉ dành cho những gì Theme Settings không làm được.
   ========================================================================== */

/* 1. Design tokens
   --pl-* là token của brand. Khối dưới map chúng sang biến của WoodMart để
   header, footer, nút và product card dùng chung một bộ màu/font.
   `html:root` mạnh hơn `:root` trong CSS động của WoodMart, không phụ thuộc thứ tự nạp. */
html:root {
	--pl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--pl-ink: #1d211e;
	--pl-text: #5a5f5a;
	/* Chữ phụ: đạt tương phản 4.5:1 trên nền trắng và nền cát (#8a8f89 cũ chỉ 3.3:1 / 2.9:1). */
	--pl-muted: #666b66;
	/* Chữ ví dụ (placeholder) trong ô nhập: nhạt hơn chữ khách gõ nhưng vẫn 4.5:1 trên nền trắng. */
	--pl-placeholder: #737873;
	--wd-form-placeholder-color: var(--pl-placeholder);
	--pl-forest: #2f4b3c;
	--pl-forest-hover: #233a2e;
	--pl-forest-soft: #e3ebe5;
	--pl-sand: #f4efe7;
	--pl-sand-deep: #e9dfd0;
	--pl-card: #f5f3ef;
	--pl-line: #e7e1d7;
	--pl-star: #e2a42b;
	--pl-white: #fff;

	--pl-radius: 16px;
	--pl-radius-lg: 20px;
	--pl-radius-pill: 999px;
	--pl-section-gap: 96px;

	--wd-text-font: var(--pl-font);
	--wd-title-font: var(--pl-font);
	--wd-entities-title-font: var(--pl-font);
	--wd-header-el-font: var(--pl-font);
	--wd-widget-title-font: var(--pl-font);
	--wd-alternative-font: var(--pl-font);
	--wd-title-font-weight: 600;
	--wd-entities-title-font-weight: 500;
	--wd-header-el-font-weight: 500;

	--wd-primary-color: var(--pl-forest);
	--wd-title-color: var(--pl-ink);
	--wd-text-color: var(--pl-text);
	--wd-entities-title-color: var(--pl-ink);
	--wd-entities-title-color-hover: var(--pl-forest);
	--wd-link-color: var(--pl-ink);
	--wd-link-color-hover: var(--pl-forest);

	--btn-accented-bgcolor: var(--pl-forest);
	--btn-accented-bgcolor-hover: var(--pl-forest-hover);
	--btn-accented-color: #fff;
	--btn-accented-color-hover: #fff;
	--btn-accented-brd-radius: var(--pl-radius-pill);
	--btn-default-brd-radius: var(--pl-radius-pill);
	--btn-transform: none;
}

/* Viền focus khi dùng bàn phím theo màu brand, thay viền chấm mặc định của trình duyệt.
   Khối nền tối (newsletter) tự đặt màu viền riêng. */
html :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--pl-forest);
	outline-offset: 2px;
}

/* Ẩn khỏi màn hình nhưng trình đọc màn hình vẫn đọc (ví dụ tiêu đề H2 của lưới collection trang chủ). */
.pl-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Link lọc / sắp xếp / kiểu xem chưa có href (inc/crawl-safe-links.php; JS gắn lại khi khách dùng):
   trình duyệt không cho <a> thiếu href con trỏ bàn tay. */
a[data-pl-href] {
	cursor: pointer;
}

/* Thanh tiêu đề trang thường (About, FAQs, Size Guide, chính sách…): Theme Settings đặt nền vàng #f8bd18,
   lệch màu brand; đổi sang nền cát. Chỉ đổi màu nền, trang nào đặt ảnh nền riêng vẫn giữ ảnh. */
.wd-page-title.page-title-default {
	background-color: var(--pl-sand);
}

/* Ảnh có bản AVIF được bọc <picture class="pl-picture"> (inc/avif-images.php): thẻ bọc không tạo hộp riêng,
   bố cục và selector "cha img" giữ như khi chỉ có <img>. */
.pl-picture {
	display: contents;
}

/* 2. Header
   Hover theo kiểu Wokiee, cùng nhịp với dropdown menu của WoodMart (expo.out = cubic-bezier(0.19, 1, 0.22, 1)).
   Ô search là phần tử Search của Header Builder ở chế độ "form" (cột phải, trước icon tài khoản). */
.whb-header {
	--pl-ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 2.1 Menu: chữ đổi màu, gạch chân chạy từ trái sang, icon nhấc nhẹ, mũi tên dropdown xoay. */
.whb-header .wd-nav-header > li > a {
	transition: color 0.3s ease;
}

.whb-header .wd-nav-header > li > a .nav-link-text {
	position: relative;
}

.whb-header .wd-nav-header > li > a .nav-link-text::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -4px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.45s var(--pl-ease-out);
}

.whb-header .wd-nav-header > li > a .wd-nav-img,
.whb-header .wd-nav-header > li.menu-item-has-children > a::after {
	display: inline-block;
	transition: transform 0.45s var(--pl-ease-out);
}

.whb-header .wd-nav-header > li:is(.current-menu-item, .current-menu-ancestor) > a {
	color: var(--pl-forest);
}

/* 2.2 Icon tài khoản / wishlist / giỏ: nhấc lên, đổi màu; bong bóng số lượng phóng to. */
.whb-header .wd-tools-element > a .wd-tools-icon,
.whb-header .wd-tools-element .wd-tools-count {
	transition: transform 0.45s var(--pl-ease-out), color 0.3s ease, background-color 0.3s ease;
}

/* Viên thuốc đen của giỏ hàng (design 7) là .wd-tools-inner, không phải thẻ <a> (khung vuông 118x40). */
.whb-header .wd-header-cart.wd-design-7 > a .wd-tools-inner {
	transition: background-color 0.3s ease;
}

/* 2.3 Ô search: nền trắng trên header xám, kính lúp nằm trong ô; hover/focus viền xanh + vòng sáng. */
.whb-header .wd-header-search-form .searchform input[type="text"] {
	height: 40px;
	padding-right: 44px;
	padding-left: 16px;
	border: 1px solid var(--pl-line);
	border-radius: 10px;
	background: #fff;
	color: var(--pl-ink);
	font-size: 14px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.whb-header .wd-header-search-form .searchform input[type="text"]::placeholder {
	color: var(--pl-placeholder);
}

.whb-header .wd-header-search-form .searchform:hover input[type="text"] {
	border-color: #cfc5b5;
}

.whb-header .wd-header-search-form .searchform input[type="text"]:focus {
	border-color: var(--pl-forest);
	box-shadow: 0 0 0 4px rgba(47, 75, 60, 0.12);
	outline: none;
}

.whb-header .wd-header-search-form .searchform .searchsubmit {
	overflow: hidden;
	border-radius: 0 10px 10px 0;
	background: transparent;
	color: var(--pl-ink);
}

/* Cột giữa của hàng header trống từ khi search chuyển sang cột phải, nhưng vẫn chiếm ~56px làm hàng tràn ở
   1025–1100px. Ẩn khi không có phần tử nào (đặt lại gì vào đó trong Header Builder thì tự hiện). */
.whb-general-header .whb-col-center:not(:has(*)) {
	display: none;
}

/* Màn hình máy tính hẹp (header desktop hiện từ 1025px): thu ô search để logo + menu + icon không tràn hàng. */
@media (max-width: 1279px) {
	.whb-header .wd-header-search-form {
		--wd-search-form-width: 200px;
	}
}

/* Gợi ý tìm kiếm: rộng hơn ô nhập (240px) để tên sản phẩm không xuống dòng nhiều, canh theo mép phải. */
.whb-header .wd-header-search-form .wd-search-results.wd-dropdown-results {
	right: 0;
	left: auto;
	width: 420px;
	max-width: calc(100vw - 32px);
	border-radius: 12px;
}

/* Kính lúp "cuộn": icon trượt lên khỏi ô, bản sao màu xanh (text-shadow) trượt lên thay chỗ.
   ::before của nút là vòng xoay khi đang tìm, không dùng. */
.whb-header .wd-header-search-form .searchform .searchsubmit::after {
	display: inline-block;
	text-shadow: 0 34px 0 var(--pl-forest);
	transition: transform 0.5s var(--pl-ease-out), opacity 0.2s ease;
}

.whb-header .wd-header-search-form .searchform:is(:hover, :focus-within) .searchsubmit::after {
	transform: translateY(-34px);
}

@media (hover: hover) {
	.whb-header .wd-nav-header > li:hover > a {
		color: var(--pl-forest);
	}

	.whb-header .wd-nav-header > li:hover > a .nav-link-text::after {
		transform: scaleX(1);
		transform-origin: left center;
	}

	.whb-header .wd-nav-header > li:hover > a .wd-nav-img {
		transform: translateY(-3px) rotate(-8deg);
	}

	.whb-header .wd-nav-header > li.menu-item-has-children:hover > a::after {
		transform: rotate(180deg);
	}

	.whb-header .wd-tools-element:hover > a .wd-tools-icon {
		transform: translateY(-4px);
	}

	.whb-header .wd-tools-element:not(.wd-header-cart):hover > a .wd-tools-icon {
		color: var(--pl-forest);
	}

	.whb-header .wd-tools-element:hover .wd-tools-count {
		transform: scale(1.2);
	}

	.whb-header .wd-header-cart.wd-design-7:hover > a .wd-tools-inner {
		background-color: var(--pl-forest);
	}
}

@media (prefers-reduced-motion: reduce) {
	.whb-header .wd-nav-header > li > a .nav-link-text::after,
	.whb-header .wd-nav-header > li > a .wd-nav-img,
	.whb-header .wd-nav-header > li.menu-item-has-children > a::after,
	.whb-header .wd-tools-element > a .wd-tools-icon,
	.whb-header .wd-tools-element .wd-tools-count,
	.whb-header .wd-header-search-form .searchform .searchsubmit::after {
		transition: none;
	}

	.whb-header .wd-nav-header > li > a .wd-nav-img,
	.whb-header .wd-tools-element > a .wd-tools-icon,
	.whb-header .wd-tools-element .wd-tools-count,
	.whb-header .wd-header-search-form .searchform .searchsubmit::after {
		transform: none !important;
	}
}

/* 3. Trang chủ
   Cấu trúc trang dựng bằng Elementor, mỗi khối gắn class .pl-*.
   Layout nhiều cột dùng CSS grid ở đây thay vì cài đặt cột của Elementor. */

/* 3.1 Khung chung */
.e-con.pl-section {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--row-gap: 32px;
	--gap: 32px;
	margin-bottom: var(--pl-section-gap);
}

.e-con.pl-head {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--row-gap: 12px;
	--gap: 12px;
	align-items: center;
	text-align: center;
	max-width: 640px;
	margin-inline: auto;
}

.pl-eyebrow .elementor-heading-title {
	color: var(--pl-forest);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.pl-h2 .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 40px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.pl-lead .elementor-heading-title,
.pl-lead p {
	color: var(--pl-text);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
}

.pl-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 30px;
	border-radius: var(--pl-radius-pill);
	background-color: var(--pl-forest);
	color: #fff;
	font-family: var(--pl-font);
	font-size: 15px;
	font-weight: 500;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.pl-btn .elementor-button:hover,
.pl-btn .elementor-button:focus-visible {
	background-color: var(--pl-forest-hover);
	color: #fff;
}

.pl-btn--outline .elementor-button {
	background-color: transparent;
	color: var(--pl-ink);
	box-shadow: inset 0 0 0 1px var(--pl-line);
}

.pl-btn--outline .elementor-button:hover,
.pl-btn--outline .elementor-button:focus-visible {
	background-color: var(--pl-forest);
	color: #fff;
	box-shadow: none;
}

/* 3.2 Hero */
.e-con.pl-hero {
	--padding-top: 72px;
	--padding-right: 72px;
	--padding-bottom: 72px;
	--padding-left: 72px;
	--row-gap: 0px;
	--gap: 0px;
	position: relative;
	min-height: 640px;
	justify-content: center;
	border-radius: var(--pl-radius-lg);
	overflow: hidden;
	background-color: var(--pl-sand);
	background-size: cover;
	background-position: center right;
	margin-bottom: 20px;
}

/* Lớp phủ giữ chữ đủ tương phản khi thay ảnh hero khác. */
.e-con.pl-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(244, 239, 231, 0.92) 0%, rgba(244, 239, 231, 0.7) 38%, rgba(244, 239, 231, 0) 64%);
}

.e-con.pl-hero__content {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--row-gap: 20px;
	--gap: 20px;
	position: relative;
	z-index: 1;
	max-width: 560px;
	align-items: flex-start;
}

.pl-hero__eyebrow .elementor-heading-title {
	color: var(--pl-forest);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pl-hero__title .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 64px;
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.pl-hero__text .elementor-heading-title {
	color: var(--pl-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
	max-width: 460px;
}

.pl-hero .pl-btn {
	margin-top: 8px;
}

/* 3.3 Dải cam kết dưới hero
   Selector kèm .elementor-widget để thắng CSS của widget icon-list (nạp sau). */
.e-con.pl-trust-wrap {
	margin-bottom: 20px;
}

.elementor-widget.pl-trust .elementor-icon-list-items.elementor-inline-items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 40px;
	margin: 0;
	padding: 18px 24px;
	border-radius: var(--pl-radius);
	background: var(--pl-sand);
}

.elementor-widget.pl-trust .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

.elementor-widget.pl-trust .elementor-icon-list-item::after {
	display: none;
}

.pl-trust .elementor-icon-list-icon i {
	color: var(--pl-forest);
	font-size: 16px;
}

.pl-trust .elementor-icon-list-icon svg {
	fill: var(--pl-forest);
	width: 16px;
	height: 16px;
}

.pl-trust .elementor-icon-list-text {
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 500;
	padding-inline-start: 8px;
}

/* 3.4 Lưới collection (mosaic 4 cột x 2 hàng, 1 thẻ cao, 1 thẻ rộng) */
.e-con.pl-mosaic {
	--display: grid;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 300px;
	gap: 16px;
}

.e-con.pl-tile {
	--padding-top: 20px;
	--padding-right: 20px;
	--padding-bottom: 20px;
	--padding-left: 20px;
	position: relative;
	width: auto;
	min-width: 0;
	justify-content: flex-end;
	align-items: center;
	border-radius: var(--pl-radius-lg);
	overflow: hidden;
	background-color: var(--pl-card);
	background-size: cover;
	background-position: center;
	text-decoration: none;
	isolation: isolate;
}

.e-con.pl-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.18) 100%);
	transition: background-color 0.3s ease;
}

.e-con.pl-tile:hover::after {
	background-color: rgba(0, 0, 0, 0.08);
}

.e-con.pl-tile--tall {
	grid-row: span 2;
}

.e-con.pl-tile--wide {
	grid-column: span 2;
}

.pl-tile__label .elementor-heading-title {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--pl-radius-pill);
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: var(--pl-ink);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.e-con.pl-tile:hover .pl-tile__label .elementor-heading-title {
	background: var(--pl-forest);
	color: #fff;
}

/* 3.5 How it works */
.e-con.pl-steps__grid {
	--display: grid;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

/* Sản phẩm thiết kế sẵn: 3 bước (không có bước proof), giữ 3 cột tới điện thoại. */
.e-con.pl-steps__grid.pl-steps__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.e-con.pl-step {
	--padding-top: 32px;
	--padding-right: 28px;
	--padding-bottom: 32px;
	--padding-left: 28px;
	--row-gap: 10px;
	--gap: 10px;
	width: auto;
	min-width: 0;
	border-radius: var(--pl-radius-lg);
	background: var(--pl-sand);
}

.pl-step__num .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--pl-forest);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.pl-step__title .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.pl-step__text p {
	color: var(--pl-text);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

/* 3.6 Khối sản phẩm (Most-loved / New in)
   Theme Settings đang giới hạn tên sản phẩm 1 dòng; trang chủ cho 2 dòng. */
.pl-products {
	--wd-line-count: 2;
}

.pl-products .wd-product .product-element-top {
	border-radius: var(--pl-radius);
	background: var(--pl-card);
	overflow: hidden;
}

/* Ảnh luôn vuông: ảnh dọc/ngang được cắt giữa, kể cả ảnh hover thứ hai. */
.pl-products .wd-product .wd-product-img-link {
	display: block;
	aspect-ratio: 1 / 1;
}

.pl-products .wd-product .wd-product-img-link img,
.pl-products .wd-product .wd-product-img-hover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pl-products .wd-product .product-element-bottom {
	text-align: start;
}

/* Sản phẩm gắn nhiều danh mục nên danh sách rất dài; card chỉ giữ tên + giá. */
.pl-products .wd-product .wd-product-cats {
	display: none;
}

.pl-products .wd-product .wd-entities-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	white-space: normal;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.pl-products .wd-product .price {
	justify-content: flex-start;
}

.pl-products .wd-product .price {
	color: var(--pl-forest);
	font-size: 16px;
	font-weight: 600;
}

.pl-products .wd-product .price del {
	color: var(--pl-muted);
	font-weight: 400;
}

.pl-products .wd-product .onsale,
.pl-products .wd-product .product-label {
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
}

/* Chip "Made from your photo" (inc/photo-products.php) ở mọi lưới sản phẩm và ảnh trang sản phẩm. */
.product-labels .product-label.pl-label-photo {
	min-width: 0;
	min-height: 0;
	padding: 5px 10px;
	border-radius: var(--pl-radius-pill);
	background: var(--pl-forest);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.product-label.pl-label-photo .pl-label-photo__short {
	display: none;
}

@media (max-width: 767px) {
	.product-labels .product-label.pl-label-photo {
		padding: 4px 8px;
		font-size: 11px;
	}

	.product-label.pl-label-photo .pl-label-photo__short {
		display: inline;
	}

	/* Ẩn khỏi màn hình nhưng vẫn để trình đọc màn hình đọc. */
	.product-label.pl-label-photo .pl-label-photo__full {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* Hai dải trang chủ lấy 8 sản phẩm: 4 x 2 trên máy tính; tablet (3 cột) và điện thoại (2 cột) giữ 6 cho đủ hàng. */
@media (max-width: 1024px) {
	.pl-products .wd-products > .wd-product:nth-child(n + 7) {
		display: none;
	}
}

/* 3.7 Banner collection 3 cột */
.e-con.pl-promos {
	--display: grid;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.e-con.pl-promo {
	--padding-top: 12px;
	--padding-right: 12px;
	--padding-bottom: 12px;
	--padding-left: 12px;
	position: relative;
	width: auto;
	min-width: 0;
	min-height: 380px;
	justify-content: flex-end;
	border-radius: var(--pl-radius-lg);
	overflow: hidden;
	background-color: var(--pl-card);
	background-size: cover;
	background-position: center;
	text-decoration: none;
}

.e-con.pl-promo__bar {
	--padding-top: 18px;
	--padding-right: 20px;
	--padding-bottom: 18px;
	--padding-left: 20px;
	--row-gap: 4px;
	--gap: 4px;
	align-items: center;
	text-align: center;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: background-color 0.25s ease;
}

.e-con.pl-promo:hover .pl-promo__bar {
	background: rgba(255, 255, 255, 0.92);
}

.pl-promo__title .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

/* Chữ phụ nằm trên lớp kính mờ trên ảnh, nền thay đổi theo ảnh: dùng màu đậm để luôn đạt 4.5:1. */
.pl-promo__sub .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 400;
}

/* 3.8 Dải chữ chạy */
.pl-marquee {
	overflow: hidden;
	border-radius: var(--pl-radius);
	background: var(--pl-forest);
	color: var(--pl-sand);
}

.pl-marquee__track {
	display: flex;
	width: max-content;
	animation: pl-marquee 38s linear infinite;
}

.pl-marquee__group {
	display: flex;
	align-items: center;
	gap: 36px;
	padding: 20px 18px;
	white-space: nowrap;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.pl-marquee__dot {
	color: var(--pl-star);
	font-size: 16px;
}

.pl-marquee:hover .pl-marquee__track {
	animation-play-state: paused;
}

@keyframes pl-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pl-marquee__track {
		animation: none;
	}
}

/* 3.9 Review khách */
.e-con.pl-reviews__grid {
	--display: grid;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.e-con.pl-review {
	--padding-top: 24px;
	--padding-right: 24px;
	--padding-bottom: 24px;
	--padding-left: 24px;
	--row-gap: 12px;
	--gap: 12px;
	width: auto;
	min-width: 0;
	border-radius: var(--pl-radius-lg);
	background: var(--pl-white);
	box-shadow: inset 0 0 0 1px var(--pl-line);
}

.elementor-widget.pl-review__photo {
	text-align: start;
}

.pl-review__photo img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 12px;
}

.pl-review__stars .elementor-heading-title {
	color: var(--pl-star);
	font-size: 18px;
	letter-spacing: 2px;
	line-height: 1;
}

.pl-review__title .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.pl-review__text p {
	color: var(--pl-text);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.pl-review__name .elementor-heading-title {
	margin-top: auto;
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 600;
}

/* 3.10 Ảnh khách (UGC) */
.e-con.pl-ugc__grid {
	--display: grid;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.pl-ugc__img {
	width: auto;
	min-width: 0;
}

.pl-ugc__img img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--pl-radius);
}

.e-con.pl-ugc {
	align-items: center;
}

/* 3.11 Newsletter */
.e-con.pl-newsletter {
	--display: grid;
	--padding-top: 56px;
	--padding-right: 56px;
	--padding-bottom: 56px;
	--padding-left: 56px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
	align-items: center;
	gap: 40px;
	border-radius: var(--pl-radius-lg);
	background: var(--pl-forest);
}

.e-con.pl-newsletter__text {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--row-gap: 12px;
	--gap: 12px;
	width: auto;
	min-width: 0;
}

.pl-newsletter .pl-eyebrow .elementor-heading-title {
	color: var(--pl-sand-deep);
}

.pl-newsletter .pl-h2 .elementor-heading-title {
	color: #fff;
}

.pl-newsletter .pl-lead .elementor-heading-title {
	color: rgba(255, 255, 255, 0.78);
}

/* Form tự dựng [petlover_newsletter] (inc/newsletter-form.php) nằm thẳng trên nền xanh, thay iframe Brevo. */
.pl-newsletter__form {
	width: auto;
	min-width: 0;
}

.pl-newsletter .pl-nl {
	position: relative;
	margin: 0;
}

.pl-newsletter .pl-nl__label {
	display: block;
	margin: 0 0 10px;
	color: var(--pl-sand-deep);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.pl-newsletter .pl-nl__row {
	display: flex;
	gap: 10px;
}

.pl-newsletter .pl-nl .pl-nl__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--pl-radius-pill);
	background: #fff;
	box-shadow: none;
	color: var(--pl-ink);
	font-size: 16px;
}

.pl-newsletter .pl-nl .pl-nl__input::placeholder {
	color: var(--pl-placeholder);
	opacity: 1;
}

.pl-newsletter .pl-nl .pl-nl__input:focus-visible,
.pl-newsletter .pl-nl .pl-nl__btn:focus-visible {
	outline: 2px solid var(--pl-sand);
	outline-offset: 3px;
}

.pl-newsletter .pl-nl .pl-nl__input[aria-invalid="true"] {
	box-shadow: inset 0 0 0 2px #c4553a;
}

.pl-newsletter .pl-nl .pl-nl__btn {
	flex: 0 0 auto;
	height: 52px;
	min-height: 0;
	padding: 0 28px;
	border: 0;
	border-radius: var(--pl-radius-pill);
	background: var(--pl-sand);
	box-shadow: none;
	color: var(--pl-forest);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pl-newsletter .pl-nl .pl-nl__btn:hover {
	background: #fff;
	color: var(--pl-forest-hover);
}

.pl-newsletter .pl-nl .pl-nl__btn:disabled {
	opacity: 0.75;
	cursor: progress;
}

/* Ô bẫy bot của Brevo: có trong form nhưng người thật không thấy. */
.pl-newsletter .pl-nl .pl-nl__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Turnstile chỉ hiện ô xác minh khi Cloudflare cần khách bấm. */
.pl-newsletter .pl-nl__captcha iframe {
	margin-top: 12px;
}

.pl-newsletter .pl-nl__status {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 14px;
	line-height: 1.5;
}

.pl-newsletter .pl-nl__status:empty {
	display: none;
}

.pl-newsletter .pl-nl.is-error .pl-nl__status {
	color: #ffd9cf;
}

/* Đăng ký xong: ẩn ô nhập, chỉ còn lời cảm ơn. */
.pl-newsletter .pl-nl.is-done :is(.pl-nl__label, .pl-nl__row) {
	display: none;
}

.pl-newsletter .pl-nl.is-done .pl-nl__status {
	margin: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}

/* 3.12 Popup newsletter (inc/newsletter-popup.php, JS initNewsletterPopup)
   Máy tính: hộp giữa màn hình có ảnh bên trái. Điện thoại (class pl-nlpop--sheet): dải trượt từ dưới lên, không che hết
   màn hình, không có nền mờ. Form bên trong là [petlover_newsletter], style riêng ở đây vì style của mục 3.11 chỉ áp cho
   khối .pl-newsletter nền xanh. */
.pl-nlpop {
	width: min(760px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--pl-radius-lg);
	background: #fff;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
	color: var(--pl-ink);
	overflow: hidden;
}

.pl-nlpop[open] {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	animation: pl-nlpop-in 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.pl-nlpop::backdrop {
	background: rgba(29, 33, 30, 0.55);
}

.pl-nlpop__media {
	background: var(--pl-sand);
}

.pl-nlpop__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pl-nlpop__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 40px 36px;
	overflow-y: auto;
}

.pl-nlpop__eyebrow {
	margin: 0 0 8px;
	color: var(--pl-forest);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pl-nlpop__title {
	margin: 0 0 10px;
	color: var(--pl-ink);
	font-size: 30px;
	line-height: 1.15;
}

.pl-nlpop__title:focus {
	outline: none;
}

.pl-nlpop__text {
	margin: 0 0 20px;
	color: var(--pl-muted);
	font-size: 15px;
	line-height: 1.55;
}

.pl-nlpop .pl-nl {
	position: relative;
	margin: 0;
}

.pl-nlpop .pl-nl__label {
	display: block;
	margin: 0 0 8px;
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 600;
}

.pl-nlpop .pl-nl__row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pl-nlpop .pl-nl .pl-nl__input {
	height: 50px;
	padding: 0 18px;
	border: 1px solid var(--pl-line, #d9d4ca);
	border-radius: var(--pl-radius-pill);
	background: #fff;
	box-shadow: none;
	color: var(--pl-ink);
	font-size: 16px;
}

.pl-nlpop .pl-nl .pl-nl__input[aria-invalid="true"] {
	border-color: #c4553a;
}

.pl-nlpop :is(.pl-nl__btn, .pl-nlpop__shop) {
	width: 100%;
	height: 50px;
	min-height: 0;
	padding: 0 24px;
	border: 0;
	border-radius: var(--pl-radius-pill);
	background: var(--pl-forest);
	box-shadow: none;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pl-nlpop :is(.pl-nl__btn, .pl-nlpop__shop):hover {
	background: var(--pl-forest-hover);
	color: #fff;
}

.pl-nlpop .pl-nl__btn:disabled {
	opacity: 0.75;
	cursor: progress;
}

.pl-nlpop .pl-nl .pl-nl__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pl-nlpop .pl-nl__captcha iframe {
	margin-top: 10px;
}

.pl-nlpop .pl-nl__status {
	margin: 10px 0 0;
	color: var(--pl-muted);
	font-size: 14px;
	line-height: 1.5;
}

.pl-nlpop .pl-nl__status:empty {
	display: none;
}

.pl-nlpop .pl-nl.is-error .pl-nl__status {
	color: #b3412a;
}

.pl-nlpop__dismiss {
	display: block;
	min-height: 0;
	margin: 14px auto 0;
	padding: 4px 8px;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--pl-muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

.pl-nlpop__dismiss:hover {
	background: none;
	color: var(--pl-ink);
}

.pl-nlpop__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	color: var(--pl-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.pl-nlpop__close:hover {
	background: #fff;
	color: var(--pl-forest);
}

.pl-nlpop :is(.pl-nl__input, .pl-nl__btn, .pl-nlpop__close, .pl-nlpop__dismiss, .pl-nlpop__shop):focus-visible {
	outline: 2px solid var(--pl-forest);
	outline-offset: 3px;
}

/* Điện thoại: dải trượt ở đáy màn hình, nằm trên thanh công cụ dưới cùng của WoodMart và thanh Add to cart dính. */
.pl-nlpop.pl-nlpop--sheet[open] {
	position: fixed;
	inset: auto 0 0;
	z-index: 100000;
	width: 100%;
	max-height: 75vh;
	max-height: 75dvh;
	margin: 0;
	grid-template-columns: minmax(0, 1fr);
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
	animation-name: pl-nlpop-sheet-in;
}

.pl-nlpop--sheet .pl-nlpop__media {
	display: none;
}

.pl-nlpop--sheet .pl-nlpop__body {
	padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
}

.pl-nlpop--sheet .pl-nlpop__title {
	padding-right: 40px;
	font-size: 24px;
}

.pl-nlpop--sheet .pl-nlpop__text {
	margin-bottom: 16px;
}

@keyframes pl-nlpop-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.pl-nlpop[open] {
		animation: none;
	}
}

/* 4. Danh mục / lưới sản phẩm
   Trang /shop dựng bằng WoodMart Layout (loại Shop archive), khối gắn class .pl-shop-*.
   Card sản phẩm dùng chung style .pl-products ở mục 3.6. */

/* 4.1 Breadcrumb + banner tiêu đề */
.e-con.pl-shop-crumbs {
	--padding-top: 0px;
	--padding-bottom: 16px;
	--padding-left: 0px;
	--padding-right: 0px;
}

.pl-shop-crumbs .wd-breadcrumbs,
.pl-shop-crumbs .woocommerce-breadcrumb {
	color: var(--pl-muted);
	font-size: 13px;
}

.e-con.pl-shop-hero {
	--padding-top: 48px;
	--padding-right: 24px;
	--padding-bottom: 48px;
	--padding-left: 24px;
	--row-gap: 14px;
	--gap: 14px;
	position: relative;
	min-height: 420px;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: var(--pl-forest);
	background-size: cover;
	background-position: center 45%;
	isolation: isolate;
	margin-bottom: 56px;
}

.e-con.pl-shop-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(20, 28, 23, 0.45);
}

.pl-shop-hero__title .wd-woo-page-title,
.pl-shop-hero__title .title,
.pl-shop-hero__title h1 {
	margin: 0;
	color: #fff;
	font-size: 56px;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

/* Mô tả dưới tiêu đề: mô tả danh mục, hoặc nội dung trang Shop ở /shop. */
.pl-shop-hero__text :is(.term-description, .page-description) {
	max-width: 640px;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.88);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
}

.pl-shop-hero__text :is(.term-description, .page-description) :is(p, a) {
	margin: 0;
	color: inherit;
}

/* 4.2 Thanh công cụ: số sản phẩm | đổi số cột | sắp xếp */
.e-con.pl-shop-toolbar {
	--display: grid;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 20px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--pl-line);
}

.pl-shop-toolbar .elementor-widget {
	width: auto;
	margin: 0;
}

.pl-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 600;
}

.elementor-widget.pl-shop-toolbar__view {
	justify-self: center;
}

.elementor-widget.pl-shop-toolbar__sort {
	justify-self: end;
}

.pl-shop-toolbar .woocommerce-ordering select {
	min-width: 200px;
	height: 44px;
	padding-inline: 16px 36px;
	border: 0;
	border-radius: 10px;
	background-color: var(--pl-card);
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 500;
}

.elementor-widget.pl-shop-filters-btn {
	display: none;
}

/* 4.3 Sidebar bộ lọc + lưới */
.e-con.pl-shop-body {
	--display: grid;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: start;
	gap: 40px;
	margin-bottom: var(--pl-section-gap);
}

/* Khi thành panel trượt (.wd-side-hidden), WoodMart tự đặt độ rộng; không ghi đè. */
.e-con.pl-shop-sidebar:not(.wd-side-hidden),
.e-con.pl-shop-main {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	width: auto;
	min-width: 0;
}

.e-con.pl-shop-sidebar {
	--row-gap: 0px;
	--gap: 0px;
}

.pl-shop-sidebar .widget {
	margin: 0;
	padding: 20px 0;
	border-top: 1px solid var(--pl-line);
}

/* Trong panel trượt, WoodMart chèn .wd-heading (nút Close) lên đầu. */
.pl-shop-sidebar .widget:first-child,
.pl-shop-sidebar .wd-heading + .widget {
	border-top: 0;
	padding-top: 0;
}

.pl-shop-sidebar .widget-title,
.pl-shop-sidebar h5 {
	margin-bottom: 14px;
	color: var(--pl-ink);
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
}

.pl-shop-sidebar .product-categories li {
	font-size: 14px;
}

.pl-shop-sidebar .product-categories a {
	color: var(--pl-text);
}

.pl-shop-sidebar .product-categories a:hover {
	color: var(--pl-forest);
}

/* Thanh trượt giá: widget chạy trong Elementor nên CSS mặc định của WoodMart không được nạp. */
.pl-shop-sidebar .price_slider {
	position: relative;
	height: 4px;
	margin: 12px 8px 24px;
	border-radius: 4px;
	background: var(--pl-line);
}

.pl-shop-sidebar .price_slider .ui-slider-range {
	position: absolute;
	top: 0;
	height: 100%;
	border-radius: 4px;
	background: var(--pl-forest);
}

.pl-shop-sidebar .price_slider .ui-slider-handle {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 18px;
	height: 18px;
	margin-left: -9px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 2px var(--pl-forest);
	transform: translateY(-50%);
	cursor: grab;
	touch-action: none;
}

.pl-shop-sidebar .price_slider_amount {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.pl-shop-sidebar .price_slider_amount .button {
	min-height: 36px;
	padding: 0 18px;
	border-radius: var(--pl-radius-pill);
	background-color: var(--pl-forest);
	color: #fff;
	font-size: 13px;
}

.pl-shop-sidebar .price_slider_amount .clear {
	display: none;
}

/* Lọc Availability (inc/filter-availability.php). Trạng thái không có sản phẩm thì làm mờ, không bấm được. */
.pl-filter-availability .petlover-availability__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-filter-availability .petlover-availability__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 6px 0;
	font-size: 14px;
}

.pl-filter-availability .petlover-availability__item > a {
	color: var(--pl-text);
}

.pl-filter-availability .petlover-availability__item > a:hover,
.pl-filter-availability .petlover-availability__item.wd-active > a {
	color: var(--pl-ink);
}

.pl-filter-availability .petlover-availability__item.is-empty {
	color: var(--pl-muted);
	opacity: 0.6;
}

.pl-filter-availability .petlover-availability__item.is-empty::before {
	content: "";
	display: inline-block;
	width: 1.4em;
	height: 1.4em;
	margin-inline-end: 8px;
	border: 2px solid var(--pl-line);
}

.pl-filter-availability .petlover-availability__item.is-empty .wd-filter-lable {
	flex: 1 1 auto;
}

.pl-filter-availability .count {
	min-width: 30px;
	height: 20px;
	padding-inline: 5px;
	border: 1px solid var(--pl-line);
	border-radius: 35px;
	color: var(--pl-muted);
	font-size: 12px;
	line-height: 18px;
	text-align: center;
}

/* Lọc Size: lưới nút. Dữ liệu từ form tuỳ chọn, xem inc/filter-attributes.php.
   Tự style thẻ link vì term cũ (từ demo) render dạng swatch, term mới render dạng danh sách. */
.pl-filter-size .wd-swatches-filter {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	max-height: none;
}

.pl-filter-size .wc-layered-nav-term {
	margin: 0;
	padding: 0;
}

.pl-filter-size .wc-layered-nav-term > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border: 1px solid var(--pl-line);
	border-radius: 10px;
	background: #fff;
	color: var(--pl-ink);
	font-size: 13px;
	font-weight: 500;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pl-filter-size .wc-layered-nav-term > a:hover {
	border-color: var(--pl-forest);
}

.pl-filter-size .wd-swatch,
.pl-filter-size .count {
	display: none;
}

.pl-filter-size .wd-filter-lable {
	display: inline;
}

.pl-filter-size .wc-layered-nav-term.chosen > a,
.pl-filter-size .wc-layered-nav-term.wd-active > a {
	border-color: var(--pl-forest);
	background: var(--pl-forest);
	color: #fff;
}

/* Lọc Color: chấm tròn, tên màu hiện ở tooltip. */
.pl-filter-color .wd-swatches-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 3px;
}

.pl-filter-color .wc-layered-nav-term {
	margin: 0;
	padding: 0;
}

.pl-filter-color .count {
	display: none;
}

.pl-filter-color .wd-swatch {
	position: relative;
	display: block;
	width: 28px;
	height: 28px;
	margin: 0;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
	transition: box-shadow 0.2s ease;
}

.pl-filter-color .wd-swatch-bg {
	position: absolute;
	inset: 0;
	border-radius: 50%;
}

.pl-filter-color .wd-swatch-text,
.pl-filter-color .wd-swatch-wrap .wd-filter-lable {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.pl-filter-color .wc-layered-nav-term > a:hover .wd-swatch,
.pl-filter-color .wc-layered-nav-term.chosen .wd-swatch,
.pl-filter-color .wc-layered-nav-term.wd-active .wd-swatch {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pl-forest);
}

/* Màu chưa có mã hex (trước khi chạy đồng bộ) thì hiện tên dạng thẻ nhỏ. */
.pl-filter-color .wc-layered-nav-term:not(.wd-swatch-wrap) > a {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius-pill);
	color: var(--pl-text);
	font-size: 12px;
}

.pl-shop-main .woocommerce-info {
	border-radius: var(--pl-radius);
	background-color: var(--pl-sand);
	color: var(--pl-ink);
}

.pl-shop-main .wd-load-more {
	min-width: 280px;
	min-height: 48px;
	border: 1px solid var(--pl-forest);
	border-radius: var(--pl-radius-pill);
	background: transparent;
	color: var(--pl-forest);
	font-weight: 500;
}

.pl-shop-main .wd-load-more:hover {
	background: var(--pl-forest);
	color: #fff;
}

/* 4.4 Extra description của danh mục (nội dung SEO dài), dưới nút "Load more".
   Widget vẫn có mặt ở /shop nhưng không có nội dung, nên ẩn hẳn để không để lại khoảng trống. */
.elementor-widget.pl-shop-extra-desc:not(:has(.wd-term-desc)) {
	display: none;
}

.pl-shop-extra-desc .wd-term-desc {
	max-width: 780px;
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--pl-line);
	color: var(--pl-text);
	font-size: 15px;
	line-height: 1.7;
}

.pl-shop-extra-desc .wd-term-desc :is(h2, h3, h4) {
	margin: 32px 0 12px;
	color: var(--pl-ink);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.pl-shop-extra-desc .wd-term-desc h2 {
	font-size: 22px;
}

.pl-shop-extra-desc .wd-term-desc :is(h3, h4) {
	font-size: 18px;
}

.pl-shop-extra-desc .wd-term-desc > :first-child {
	margin-top: 0;
}

.pl-shop-extra-desc .wd-term-desc :is(p, ul, ol) {
	margin: 0 0 14px;
}

.pl-shop-extra-desc .wd-term-desc :is(ul, ol) {
	padding-inline-start: 20px;
}

.pl-shop-extra-desc .wd-term-desc a {
	color: var(--pl-forest);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pl-shop-extra-desc .wd-term-desc a:hover {
	color: var(--pl-forest-hover);
}

/* 4.5 Dải link collection cuối trang */
.pl-shop-collections .wd-nav-product-cat {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.pl-shop-collections .wd-nav-product-cat > li {
	margin: 0;
}

.pl-shop-collections .wd-nav-product-cat > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 100%;
	padding: 20px;
	border-radius: var(--pl-radius);
	background: var(--pl-sand);
	color: var(--pl-ink);
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Mũi tên bên phải như mẫu Wokiee. */
.pl-shop-collections .wd-nav-product-cat > li > a::after {
	content: "\2192";
	flex-shrink: 0;
	font-size: 18px;
	line-height: 1;
}

.pl-shop-collections .wd-nav-product-cat > li > a:hover {
	background: var(--pl-forest);
	color: #fff;
}

.pl-shop-collections .nav-link-summary {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pl-shop-collections .nav-link-text {
	color: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.pl-shop-collections .nav-link-count {
	color: inherit;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.7;
	text-transform: none;
}

/* 4.6 Trang /collections/: silo hub mọi danh mục (inc/collections-hub.php), theo Wokiee "collection list type 2". */
.pl-hub {
	--pl-ease-out: cubic-bezier(0.19, 1, 0.22, 1);
	padding: 20px 0 var(--pl-section-gap);
}

.pl-hub__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--pl-muted);
	font-size: 13px;
}

.pl-hub__crumbs a {
	color: var(--pl-text);
}

.pl-hub__crumbs a:hover {
	color: var(--pl-forest);
}

.pl-hub__intro {
	max-width: 760px;
	margin: 48px auto 64px;
	text-align: center;
}

.pl-hub__title {
	margin: 0;
	color: var(--pl-ink);
	font-size: 48px;
	font-weight: 600;
	line-height: 1.1;
}

.pl-hub__lead {
	margin: 16px 0 0;
	color: var(--pl-text);
	font-size: 17px;
	line-height: 1.65;
}

.pl-hub__group + .pl-hub__group {
	margin-top: 72px;
}

/* Link tới mốc nhóm (/collections/#gifts-for-pet-lovers): chừa chỗ cho header dính. */
.pl-hub__group {
	scroll-margin-top: 110px;
}

.pl-hub__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.pl-hub__group-title {
	margin: 0;
	color: var(--pl-ink);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
}

.pl-hub__group-lead {
	margin: 6px 0 0;
	color: var(--pl-text);
	font-size: 15px;
}

.pl-hub__all {
	color: var(--pl-forest);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
}

.pl-hub__all:hover {
	color: var(--pl-forest-hover);
}

.pl-hub__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-hub__grid > li {
	margin: 0;
}

.pl-hub-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--pl-radius-lg);
	background: var(--pl-card);
	isolation: isolate;
}

.pl-hub-card:focus-visible {
	outline: 2px solid var(--pl-forest);
	outline-offset: 3px;
}

.pl-hub-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--pl-ease-out);
}

/* Thanh kính mờ ở đáy thẻ: tên danh mục, số sản phẩm, mũi tên. */
.pl-hub-card__bar {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: saturate(1.8) blur(20px);
	backdrop-filter: saturate(1.8) blur(20px);
}

.pl-hub-card__name {
	margin: 0;
	color: var(--pl-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
}

.pl-hub-card__count {
	display: block;
	margin-top: 4px;
	color: var(--pl-text);
	font-size: 13px;
}

.pl-hub-card__arrow {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--pl-ink);
	color: #fff;
	transition: transform 0.45s var(--pl-ease-out), background-color 0.3s ease;
}

@media (hover: hover) {
	.pl-hub-card:hover .pl-hub-card__img {
		transform: scale(1.05);
	}

	.pl-hub-card:hover .pl-hub-card__arrow {
		background: var(--pl-forest);
		transform: translateX(3px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pl-hub-card__img,
	.pl-hub-card__arrow {
		transition: none;
	}
}

@media (max-width: 1024px) {
	.pl-hub__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pl-hub__title {
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.pl-hub__intro {
		margin: 28px auto 40px;
	}

	.pl-hub__title {
		font-size: 32px;
	}

	.pl-hub__lead {
		font-size: 15px;
	}

	.pl-hub__group + .pl-hub__group {
		margin-top: 48px;
	}

	.pl-hub__group-title {
		font-size: 24px;
	}

	.pl-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.pl-hub-card {
		border-radius: var(--pl-radius);
	}

	.pl-hub-card__bar {
		right: 6px;
		bottom: 6px;
		left: 6px;
		gap: 8px;
		padding: 10px 12px;
		border-radius: 10px;
	}

	.pl-hub-card__name {
		font-size: 14px;
	}

	.pl-hub-card__count {
		font-size: 12px;
	}

	.pl-hub-card__arrow {
		width: 26px;
		height: 26px;
	}
}

/* 5. Trang sản phẩm
   WoodMart Layout "Single product — Pet Lover", khối gắn class .pl-sp-*.
   Form tuỳ chọn (seo-woo-custom-pro / WCPA) nằm trong .pl-sp-cart; WCPA ghi kích thước inline
   nên một số rule cần !important. */

/* 5.1 Breadcrumb + nút sản phẩm trước/sau */
.e-con.pl-sp-top {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	font-size: 13px;
}

.pl-sp-top .elementor-widget {
	width: auto;
	margin: 0;
}

/* 5.2 Hai cột: gallery | thông tin + form */
.e-con.pl-sp-main {
	--display: grid;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	align-items: start;
	gap: 48px;
	margin-bottom: var(--pl-section-gap);
}

.e-con.pl-sp-gallery,
.e-con.pl-sp-summary {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	width: auto;
	min-width: 0;
}

/* Gallery neo khi cuộn trên máy tính, chỉ khi cả ảnh chính lẫn dãy ảnh nhỏ vừa màn hình: class do custom.js gắn
   (initStickyGallery). Màn hình thấp thì cuộn bình thường để dãy ảnh nhỏ không bị khuất. */
.e-con.pl-sp-gallery {
	--pl-gallery-top: 24px;
}

.admin-bar .e-con.pl-sp-gallery {
	--pl-gallery-top: 56px;
}

.e-con.pl-sp-gallery.pl-sp-gallery--sticky {
	position: sticky;
	top: var(--pl-gallery-top);
}

/* Ảnh chính luôn trong khung vuông; ảnh ngang/dọc giữ nguyên tỉ lệ, phần thừa là nền be nhạt. */
.pl-sp-gallery .wd-gallery-images .wd-carousel-item {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--pl-radius-lg);
	background: var(--pl-card);
}

.pl-sp-gallery .wd-gallery-images .wd-carousel-item :is(figure, a, .woocommerce-product-gallery__image) {
	display: block;
	height: 100%;
	margin: 0;
}

.pl-sp-gallery .wd-gallery-images .wd-carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pl-sp-gallery .wd-gallery-thumb .wd-carousel-item img {
	border-radius: 12px;
	opacity: 0.7;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.pl-sp-gallery .wd-gallery-thumb .wd-carousel-item.wd-thumb-active img,
.pl-sp-gallery .wd-gallery-thumb .wd-carousel-item:hover img {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--pl-forest);
}

.e-con.pl-sp-summary {
	--row-gap: 20px;
	--gap: 20px;
}

.pl-sp-summary > .elementor-widget {
	margin: 0;
}

/* Nút chuyển ảnh trong gallery (theo Etsy): tròn nền trắng có bóng, mũi tên đậm màu chữ, luôn hiện, nằm trong mép ảnh;
   rê chuột thì nền xanh rừng + mũi tên trắng + phóng to nhẹ. Ảnh chính: 48px, cách mép 16px (≤1024px: 40px, 12px). Dãy ảnh
   nhỏ (wd-thumb-nav): 36px, cách mép 8px (≤1024px: 32px). WoodMart mặc định ẩn nút ảnh chính đến khi rê chuột
   (wd-hover-1), không nền, mũi tên mảnh. Ảnh đầu / cuối thì nút không bấm được (wd-disabled) được ẩn. Selector có
   .wd-pos-sep.wd-custom-style để cao hơn quy tắc của WoodMart (cùng mức thì WoodMart thắng vì tải sau custom.css). */
.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style {
	--wd-arrow-size: 48px;
	--wd-arrow-offset-h: -64px;
	--wd-arrow-color: var(--pl-ink);
	--wd-arrow-color-hover: var(--pl-white);
	--wd-arrow-bg: var(--pl-white);
	--wd-arrow-bg-hover: var(--pl-forest);
	--wd-arrow-radius: 50%;
	--wd-arrow-shadow: 0 2px 10px rgba(29, 33, 30, 0.18);
	--pl-chevron: 11px;
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style.wd-thumb-nav {
	--wd-arrow-size: 36px;
	--wd-arrow-offset-h: -44px;
	--pl-chevron: 8px;
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-btn-arrow {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-btn-arrow.wd-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Rê chuột: cả nền đổi sang xanh rừng, mũi tên trắng, nút phóng to nhẹ; bấm thì lún xuống. */
.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-arrow-inner {
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-arrow-inner:hover {
	box-shadow: 0 6px 18px rgba(47, 75, 60, 0.35);
	transform: scale(1.08);
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-arrow-inner:active {
	transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
	.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-arrow-inner:is(:hover, :active) {
		transform: none;
	}
}

/* Mũi tên vẽ bằng viền thay icon font mảnh của WoodMart. */
.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-arrow-inner::after {
	content: "";
	width: var(--pl-chevron);
	height: var(--pl-chevron);
	font-family: inherit;
	border: solid currentColor;
	border-width: 0 2.5px 2.5px 0;
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style.wd-thumb-nav .wd-arrow-inner::after {
	border-width: 0 2px 2px 0;
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-next .wd-arrow-inner::after {
	margin-left: calc(var(--pl-chevron) / -3);
	transform: rotate(-45deg);
}

.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style .wd-prev .wd-arrow-inner::after {
	margin-right: calc(var(--pl-chevron) / -3);
	transform: rotate(135deg);
}

@media (max-width: 1024px) {
	.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style {
		--wd-arrow-size: 40px;
		--wd-arrow-offset-h: -52px;
		--pl-chevron: 9px;
	}

	.pl-sp-gallery .wd-nav-arrows.wd-pos-sep.wd-custom-style.wd-thumb-nav {
		--wd-arrow-size: 32px;
		--wd-arrow-offset-h: -38px;
		--pl-chevron: 7px;
	}
}

/* 5.3 Tiêu đề, giá, mô tả ngắn */
.pl-sp-meta .wd-single-meta,
.pl-sp-meta .product_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	color: var(--pl-muted);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pl-sp-meta .product_meta > span {
	margin: 0;
}

.pl-sp-meta a {
	color: var(--pl-text);
}

.pl-sp-title .product_title,
.pl-sp-title h1 {
	margin: 0;
	color: var(--pl-ink);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.pl-sp-price .price {
	color: var(--pl-forest);
	font-size: 30px;
	font-weight: 700;
}

.pl-sp-excerpt .woocommerce-product-details__short-description,
.pl-sp-excerpt p {
	margin: 0;
	color: var(--pl-text);
	font-size: 16px;
	line-height: 1.7;
}

.e-con.pl-sp-tools {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--gap: 12px;
	--row-gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.pl-sp-tools .elementor-widget {
	width: auto;
	margin: 0;
}

.pl-sp-tools :is(.wd-sizeguide-btn, .wd-wishlist-btn) > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius-pill);
	color: var(--pl-ink);
	font-size: 15px;
	font-weight: 500;
	transition: border-color 0.2s ease;
}

.pl-sp-tools :is(.wd-sizeguide-btn, .wd-wishlist-btn) > a:hover {
	border-color: var(--pl-forest);
}

/* 5.4 Form tuỳ chọn WCPA
   CSS của plugin dùng selector dài kèm !important (viền cam khi chọn...), nên các rule dưới
   thêm tiền tố .wcpa_form_outer .wcpa_form_item để đủ mạnh. */
.pl-sp-cart .wcpa_form_outer {
	margin-bottom: 20px;
}

/* Khoảng cách đặt trên từng field (không trên .wcpa_row) để field đang ẩn theo điều kiện không để lại khoảng trống. */
.pl-sp-cart .wcpa_form_outer .wcpa_row {
	margin: 0;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item {
	margin-bottom: 20px;
	padding-inline: 0;
}

/* WCPA kéo nhóm radio sang trái (-24px); đưa về thẳng hàng với các field khác. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .radio-group {
	margin-inline: 0 !important;
}

/* WCPA đặt lỗi position:absolute nên chữ đè lên nhãn của trường kế tiếp. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_error_msg {
	position: static !important;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_error_msg p {
	margin: 6px 0 0;
	color: #c4553a;
	font-size: 13px;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item > label {
	display: block;
	margin-bottom: 12px;
	padding: 0;
	color: var(--pl-ink);
	font-size: 16px;
	font-weight: 600;
}

.pl-sp-cart .required_ast {
	color: #c4553a;
}

.pl-sp-cart .wcpa_form_outer .wcpa_helptext {
	display: block;
	margin: -4px 0 12px;
	color: var(--pl-muted);
	font-size: 14px;
	line-height: 1.55;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item :is(.color-group, .radio-group) {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item :is(.wcpa_color, .wcpa_radio) {
	margin: 0;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item :is(.wcpa_color, .wcpa_radio) label {
	margin: 0;
	padding: 0;
}

/* Giá riêng của lựa chọn (vd. Sweatshirt $53.85): chữ nhỏ ngay dưới lựa chọn, căn trái. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_priceouter,
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_priceouter * {
	float: none !important;
	justify-content: flex-start !important;
	text-align: start !important;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_priceouter {
	display: block;
	margin-top: 8px;
	color: var(--pl-muted);
	font-size: 14px;
}

/* Lựa chọn dạng chữ (loại áo, size): nút bo góc giống bộ lọc size ở trang shop. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .color-group .wcpa_color label span.label_inside.disp_squircle {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 46px !important;
	min-width: 60px !important;
	margin: 0;
	padding: 0 18px !important;
	border: 1px solid var(--pl-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--pl-ink) !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1 !important;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .color-group .wcpa_color label:hover span.label_inside.disp_squircle {
	border-color: var(--pl-forest) !important;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .color-group .wcpa_color input:checked + label span.label_inside.disp_squircle {
	border: 1px solid var(--pl-forest) !important;
	background: var(--pl-forest) !important;
	color: #fff !important;
}

/* Lựa chọn màu: chấm tròn, vòng viền khi chọn. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .color-group .wcpa_color label span.disp_circle {
	width: 36px !important;
	height: 36px !important;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14) !important;
	transition: box-shadow 0.2s ease;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .color-group .wcpa_color input:checked + label span.disp_circle {
	border: 0 !important;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pl-forest) !important;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_color .disp_circle ~ label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* Radio (số thú cưng, kiểu chữ): dạng nút như trên, chấm radio nằm trong nút. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_radio {
	position: relative;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_radio input + label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 18px 0 16px;
	border: 1px solid var(--pl-line);
	border-radius: 10px;
	color: var(--pl-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_radio input + label:hover {
	border-color: var(--pl-forest);
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_radio input:checked + label {
	border-color: var(--pl-forest);
	background: var(--pl-forest-soft);
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_radio .wcpa_check {
	flex-shrink: 0;
	margin: 0;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item :is(input[type="text"], input[type="email"], input[type="number"], textarea, select) {
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	border: 1px solid var(--pl-line);
	border-radius: 10px;
	background: #fff;
	color: var(--pl-ink);
	font-size: 16px;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item textarea {
	padding: 12px 14px;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item :is(input[type="text"], textarea, select):focus {
	border-color: var(--pl-forest);
	outline: none;
}

/* Ô upload ảnh (kéo thả của WCPA): thu gọn thành một hàng như ô nhập, chữ bên trái, nút "Select Photo"
   bên phải (chữ đổi ở inc/wcpa-photo-upload.php). Đã có ảnh thì thumbnail nhỏ bên trái, nút vẫn bên phải.
   CSS của plugin có selector tới 7 class, nên các rule dưới dài tương ứng. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	height: auto;
	min-height: 64px;
	padding: 9px 9px 9px 16px;
	border: 1.5px dashed #d3c8b6;
	border-radius: 10px;
	background: var(--pl-sand);
	text-align: left;
	overflow: visible;
	transition: border-color 0.2s ease;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area:hover {
	border-color: var(--pl-forest);
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: auto;
	margin: 0;
	top: auto;
	transform: none;
	color: var(--pl-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title::before {
	content: none;
	display: none;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title .wcpa_drop_text {
	color: var(--pl-forest);
	font-size: 15px;
	font-weight: 600;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title .upload-area-subtitle {
	flex-shrink: 0;
	margin: 0;
	font-size: 0;
}

/* Nút "Select Photo": cả khi ô trống lẫn khi đã có ảnh (thêm ảnh). */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop :is(.upload-area-subtitle, .upload-area-title-thumb-inner) span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--pl-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop :is(.upload-area-subtitle, .upload-area-title-thumb-inner) span:hover {
	border: 0;
	background: var(--pl-forest);
	text-decoration: none;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop :is(.upload-area-subtitle, .upload-area-title-thumb-inner) span::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7'/%3E%3Cpath d='M16 5h6M19 2v6'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7'/%3E%3Cpath d='M16 5h6M19 2v6'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title-thumb-style {
	position: static;
	float: none;
	top: auto;
	left: auto;
	width: auto;
	height: auto;
	margin: 0 0 0 auto;
	border: 0;
	filter: none;
	overflow: visible;
	transform: none;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title-thumb-style .upload-area-title-thumb-inner {
	position: static;
	top: auto;
	width: auto;
	margin: 0;
	transform: none;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title-thumb-style .upload-area-title-thumb-inner::before {
	display: none;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .thumbnail {
	position: relative;
	float: none;
	top: auto;
	left: auto;
	width: 56px;
	height: 56px;
	margin: 0;
	border: 1px solid var(--pl-line);
	border-radius: 8px;
	box-shadow: none;
	transform: none;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .thumbnail .wcpa_file_details_content_title,
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .thumbnail .wcpa_file_upload_progress .wcpa_wcpa_file_upload_progress_text {
	display: none;
}

/* File plugin không xem trước được (WEBP, HEIC...): hiện đuôi file, chữ nhỏ cho vừa ô. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .thumbnail .wcpa_img_place_holder {
	background: var(--pl-card);
	color: var(--pl-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .thumbnail .wcpa_file_upload_progress {
	padding: 6px;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .thumbnail .wcpa_wcpa_file_upload_progress_bar .wcpa_wcpa_file_upload_progress_active {
	background: var(--pl-forest);
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-message {
	margin-top: 6px;
	color: #c4553a;
	font-size: 13px;
}

/* Link "View Photo Guide" ở góc phải, ngang nhãn của field ảnh (chèn bằng assets/js/custom.js). */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item.pl-has-photo-guide {
	position: relative;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item.pl-has-photo-guide > label {
	padding-right: 150px;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .pl-photo-guide-link {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0;
	/* WoodMart bỏ gạch chân của mọi nút bằng !important. */
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .pl-photo-guide-link:hover {
	color: var(--pl-forest);
}

.pl-sp-cart .wcpa_form_outer .wcpa_form_item .pl-photo-guide-link::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Popup Photo Guide (inc/wcpa-photo-upload.php): ảnh vuông, luôn nằm gọn trong màn hình. */
.pl-photo-guide {
	width: min(640px, calc(100vw - 32px), calc(100vh - 32px));
	width: min(640px, calc(100vw - 32px), calc(100dvh - 32px));
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: var(--pl-radius);
	background: #fcfbf4;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.pl-photo-guide::backdrop {
	background: rgba(29, 33, 30, 0.6);
}

.pl-photo-guide__img {
	display: block;
	width: 100%;
	height: auto;
}

.pl-photo-guide__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	color: var(--pl-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.pl-photo-guide__close:hover {
	background: #fff;
	color: var(--pl-forest);
}

/* Link "See thread colors & fonts" (inc/wcpa-order-help.php): chữ dài hơn nên nằm dưới nhãn, trên ô nhập. */
.pl-sp-cart .wcpa_form_outer .wcpa_form_item.pl-has-chart-guide > .pl-photo-guide-link {
	position: static;
	margin: -4px 0 12px;
}

/* Popup bảng màu chỉ + bảng font: hai ảnh vuông xếp dọc, cuộn trong popup. */
.pl-chart-guide {
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
}

.pl-chart-guide__scroll {
	max-height: inherit;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.pl-chart-guide__scroll .pl-photo-guide__img + .pl-photo-guide__img {
	border-top: 1px solid var(--pl-line);
}

/* Dòng cảnh báo dưới field size: không đổi size với hàng cá nhân hoá + nút mở Size guide. */
.pl-sp-cart .wcpa_form_outer .pl-size-note {
	margin: 12px 0 0;
	color: var(--pl-text);
	font-size: 14px;
	line-height: 1.55;
}

.pl-sp-cart .wcpa_form_outer .pl-size-note__guide {
	display: inline;
	height: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--pl-ink);
	font: inherit;
	font-weight: 600;
	letter-spacing: 0;
	/* WoodMart bỏ gạch chân của mọi nút bằng !important. */
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}

.pl-sp-cart .wcpa_form_outer .pl-size-note__guide:hover {
	color: var(--pl-forest);
}

.pl-sp-cart .wcpa_form_outer .pl-size-note__fit {
	display: block;
	margin-top: 4px;
}

/* Số lượng + Add to cart + Buy now: một hàng, Buy now xuống dòng rộng hết cỡ.
   WCPA ép form.cart về display:block !important trên sản phẩm có form, nên cần !important ở đây. */
.single-product div.product .elementor-widget.pl-sp-cart form.cart {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.elementor-widget.pl-sp-cart form.cart > :is(.wcpa_form_outer, .wcpa_price_summary) {
	flex: 1 1 100%;
	width: 100%;
}

.pl-sp-cart .quantity {
	height: 56px;
	margin: 0;
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius-pill);
	overflow: hidden;
}

.pl-sp-cart .quantity :is(input, .minus, .plus) {
	height: 54px;
	font-size: 16px;
	border: 0;
	background: transparent;
}

.pl-sp-cart .single_add_to_cart_button {
	flex: 1 1 180px;
	min-height: 56px;
	border-radius: var(--pl-radius-pill);
	background: var(--pl-forest);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.pl-sp-cart .single_add_to_cart_button:hover {
	background: var(--pl-forest-hover);
}

/* Buy now dạng viền; selector dài để thắng .btn-accent của WoodMart. */
.single-product div.product .elementor-widget.pl-sp-cart .wd-buy-now-btn.btn {
	flex: 1 1 100%;
	min-height: 56px;
	border: 2px solid var(--pl-ink);
	border-radius: var(--pl-radius-pill);
	background: transparent;
	color: var(--pl-ink);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.single-product div.product .elementor-widget.pl-sp-cart .wd-buy-now-btn.btn:hover {
	background: var(--pl-ink);
	color: #fff;
}

/* 5.5 Thanh toán, cam kết, accordion, link trợ giúp */
/* Ngày giao dự kiến (shortcode [petlover_estimated_delivery]). */
.pl-delivery {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--pl-sand);
}

.pl-delivery__icon {
	flex: 0 0 auto;
	color: var(--pl-forest);
}

.pl-delivery__icon .pl-icon {
	display: block;
	width: 22px;
	height: 22px;
	margin-top: 1px;
}

.pl-delivery__dates {
	color: var(--pl-ink);
	font-size: 16px;
}

.pl-delivery__dates strong {
	font-weight: 700;
}

.pl-delivery__note {
	margin-top: 2px;
	color: var(--pl-text);
	font-size: 14px;
	line-height: 1.5;
}

.pl-sp-payments__title {
	margin-bottom: 10px;
	color: var(--pl-ink);
	font-size: 15px;
	font-weight: 600;
}

.pl-sp-payments__icons > div {
	flex-wrap: wrap;
}

.e-con.pl-sp-badges {
	--display: grid;
	--padding-top: 16px;
	--padding-right: 0px;
	--padding-bottom: 16px;
	--padding-left: 0px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	border-block: 1px solid var(--pl-line);
}

.e-con.pl-sp-badge {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--row-gap: 8px;
	--gap: 8px;
	width: auto;
	min-width: 0;
	align-items: center;
	text-align: center;
}

/* Icon SVG (inc/icons.php) trong vòng tròn xanh nhạt, thay emoji. */
.pl-sp-badge__icon .pl-icon {
	display: block;
	width: 48px;
	height: 48px;
	padding: 12px;
	border-radius: 50%;
	background: var(--pl-forest-soft);
	color: var(--pl-forest);
}

.pl-sp-badge__label .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.pl-sp-tabs .wd-accordion-item {
	border-bottom: 1px solid var(--pl-line);
}

.pl-sp-tabs .wd-accordion-title {
	padding-block: 18px;
}

.pl-sp-tabs .wd-accordion-title-text {
	color: var(--pl-ink);
	font-size: 17px;
	font-weight: 600;
	text-transform: none;
}

.pl-sp-tabs .wd-accordion-content {
	color: var(--pl-text);
	font-size: 16px;
	line-height: 1.75;
}

.pl-sp-tabs .wd-accordion-content :is(h2, h3) {
	margin: 24px 0 10px;
	color: var(--pl-ink);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.pl-sp-tabs .wd-accordion-content > :first-child,
.pl-sp-tabs .wd-accordion-content > div > :first-child {
	margin-top: 0;
}

.pl-sp-help .elementor-icon-list-item {
	font-size: 15px;
}

.pl-sp-help .elementor-icon-list-item a {
	color: var(--pl-text);
}

.pl-sp-help .elementor-icon-list-item a:hover {
	color: var(--pl-forest);
}

.pl-sp-help .elementor-icon-list-icon :is(i, svg) {
	color: var(--pl-forest);
	fill: var(--pl-forest);
	width: 14px;
	font-size: 14px;
}

/* 5.6 What Makes Us Different */
.e-con.pl-diff {
	--display: grid;
	--padding-top: 48px;
	--padding-right: 48px;
	--padding-bottom: 48px;
	--padding-left: 48px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	border-radius: var(--pl-radius-lg);
	background: var(--pl-sand);
}

.e-con.pl-diff__media,
.e-con.pl-diff__body {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	width: auto;
	min-width: 0;
}

.pl-diff__img img {
	display: block;
	width: 100%;
	aspect-ratio: 426 / 402;
	object-fit: cover;
	border-radius: var(--pl-radius-lg);
}

.e-con.pl-diff__body {
	--row-gap: 24px;
	--gap: 24px;
}

.pl-diff__title .elementor-heading-title {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.1;
}

.pl-diff__accent {
	color: var(--pl-forest);
}

.e-con.pl-diff__list {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--row-gap: 14px;
	--gap: 14px;
}

.e-con.pl-diff__item {
	--padding-top: 20px;
	--padding-right: 22px;
	--padding-bottom: 20px;
	--padding-left: 22px;
	--gap: 16px;
	--column-gap: 16px;
	/* Elementor tự bật wrap cho container hàng ngang trên mobile, làm dấu ✓ rớt xuống dòng riêng. */
	--flex-wrap: nowrap;
	--flex-wrap-mobile: nowrap;
	flex-wrap: nowrap;
	align-items: flex-start;
	border-radius: var(--pl-radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(29, 33, 30, 0.06);
}

.pl-diff__check {
	flex-shrink: 0;
	width: auto;
}

/* Dấu tích SVG (inc/icons.php) trong vòng tròn xanh, thay ký tự ✓. */
.pl-diff__check .pl-icon {
	display: block;
	width: 44px;
	height: 44px;
	padding: 11px;
	border-radius: 50%;
	background: var(--pl-forest);
	color: #fff;
	stroke-width: 2.25;
}

.e-con.pl-diff__text {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--row-gap: 6px;
	--gap: 6px;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.pl-diff__item-title .elementor-heading-title {
	color: var(--pl-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.pl-diff__item-body .elementor-heading-title {
	color: var(--pl-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

/* 5.7 Thanh "Add to cart" dính cuối màn hình (inc/sticky-add-to-cart.php) */
.pl-sticky-atc {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 390;
	padding: 10px 0;
	border-top: 1px solid var(--pl-line);
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 -6px 20px rgba(29, 33, 30, 0.08);
	visibility: hidden;
	transform: translateY(110%);
	transition: transform 0.3s ease, visibility 0.3s ease;
}

.pl-sticky-atc.is-visible {
	visibility: visible;
	transform: none;
}

.pl-sticky-atc__inner {
	display: flex;
	align-items: center;
	gap: 14px;
}

.pl-sticky-atc__thumb img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 10px;
}

.pl-sticky-atc__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.pl-sticky-atc__title {
	overflow: hidden;
	color: var(--pl-ink);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pl-sticky-atc__price,
.pl-sticky-atc__price .amount {
	color: var(--pl-forest);
	font-size: 16px;
	font-weight: 700;
}

.pl-sticky-atc__btn {
	flex-shrink: 0;
	min-height: 48px;
	padding: 0 32px;
	border: 0;
	border-radius: var(--pl-radius-pill);
	background: var(--pl-forest);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.pl-sticky-atc__btn:hover {
	background: var(--pl-forest-hover);
}

/* Nút "lên đầu trang" của WoodMart nhích lên khi thanh đang hiện. */
body.pl-sticky-atc-on .scrollToTop {
	bottom: 96px;
}

/* 6. Giỏ hàng / thanh toán
   Tỉ lệ hai cột Billing details | Your order (50/50 trên desktop) nằm trong WoodMart Layout 1647, không ở đây. */

/* Your order: ảnh sản phẩm và nút xoá canh trên cùng, ngang tên sản phẩm, thay vì giữa chiều cao khối tuỳ chọn. */
.woocommerce-checkout-review-order-table td.wd-checkout-prod {
	align-items: flex-start;
}

/* 7. Footer */

/* 8. Tablet + mobile */
@media (max-width: 1024px) {
	html:root {
		--pl-section-gap: 72px;
	}

	.e-con.pl-hero {
		--padding-top: 56px;
		--padding-right: 48px;
		--padding-bottom: 56px;
		--padding-left: 48px;
		min-height: 520px;
	}

	.pl-hero__title .elementor-heading-title {
		font-size: 52px;
	}

	.e-con.pl-mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 260px;
	}

	.e-con.pl-steps__grid,
	.e-con.pl-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.e-con.pl-promo {
		min-height: 300px;
	}

	.pl-promo__title .elementor-heading-title {
		font-size: 22px;
	}

	.e-con.pl-ugc__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.e-con.pl-newsletter {
		grid-template-columns: minmax(0, 1fr);
	}

	.e-con.pl-shop-hero {
		min-height: 320px;
		margin-bottom: 40px;
	}

	.pl-shop-hero__title .wd-woo-page-title,
	.pl-shop-hero__title .title,
	.pl-shop-hero__title h1 {
		font-size: 44px;
	}

	/* Sidebar thành panel trượt (WoodMart off-canvas), mở bằng nút Filters. */
	.e-con.pl-shop-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.e-con.pl-shop-sidebar.wd-side-hidden {
		--padding-top: 0px;
		--padding-right: 20px;
		--padding-bottom: 20px;
		--padding-left: 20px;
	}

	.e-con.pl-shop-toolbar {
		--display: flex;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
	}

	.elementor-widget.pl-shop-filters-btn {
		display: block;
		flex-shrink: 0;
	}

	.elementor-widget.pl-shop-toolbar__count {
		flex: 1 1 auto;
	}

	.pl-shop-filters-btn .wd-off-canvas-btn {
		--wd-action-color: #fff;
		--wd-action-color-hover: #fff;
	}

	.pl-shop-filters-btn .wd-off-canvas-btn a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 18px;
		border-radius: var(--pl-radius-pill);
		background: var(--pl-forest);
		font-weight: 500;
	}

	.pl-shop-collections .wd-nav-product-cat {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Trang sản phẩm: một cột, gallery không còn đứng yên. */
	.e-con.pl-sp-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.e-con.pl-diff {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	/* Thanh công cụ dưới cùng của WoodMart hiện từ 1024px trở xuống: thanh sticky nằm ngay trên nó. */
	body.sticky-toolbar-on .pl-sticky-atc {
		bottom: var(--wd-toolbar-h, 55px);
	}

	body.sticky-toolbar-on.pl-sticky-atc-on .scrollToTop {
		bottom: 150px;
	}
}

@media (max-width: 767px) {
	html:root {
		--pl-section-gap: 56px;
	}

	.pl-h2 .elementor-heading-title {
		font-size: 28px;
	}

	.e-con.pl-hero {
		--padding-top: 32px;
		--padding-right: 24px;
		--padding-bottom: 32px;
		--padding-left: 24px;
		min-height: 560px;
		justify-content: flex-end;
		background-position: 70% center;
	}

	.e-con.pl-hero::after {
		background: linear-gradient(180deg, rgba(244, 239, 231, 0) 20%, rgba(244, 239, 231, 0.88) 58%, rgba(244, 239, 231, 0.96) 100%);
	}

	.pl-hero__title .elementor-heading-title {
		font-size: 38px;
	}

	/* Mô tả nằm trên phần ảnh chỉ phủ mờ một phần: chữ đậm hơn để đạt 4.5:1. */
	.pl-hero__text .elementor-heading-title {
		color: var(--pl-ink);
		font-size: 16px;
	}

	.elementor-widget.pl-trust .elementor-icon-list-items.elementor-inline-items {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
		padding: 16px;
	}

	.pl-trust .elementor-icon-list-text {
		font-size: 13px;
	}

	.e-con.pl-mosaic {
		grid-auto-rows: 200px;
		gap: 12px;
	}

	.e-con.pl-tile {
		--padding-top: 10px;
		--padding-right: 10px;
		--padding-bottom: 10px;
		--padding-left: 10px;
	}

	.pl-tile__label {
		text-align: center;
	}

	.pl-tile__label .elementor-heading-title {
		padding: 8px 14px;
		border-radius: 12px;
		font-size: 14px;
	}

	.e-con.pl-steps__grid,
	.e-con.pl-steps__grid.pl-steps__grid--3 {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.e-con.pl-step {
		--padding-top: 20px;
		--padding-right: 20px;
		--padding-bottom: 20px;
		--padding-left: 20px;
		--row-gap: 6px;
		--gap: 6px;
	}

	.pl-step__num .elementor-heading-title {
		width: 36px;
		height: 36px;
		margin-bottom: 4px;
		font-size: 14px;
	}

	.e-con.pl-promos {
		grid-template-columns: minmax(0, 1fr);
	}

	.e-con.pl-promo {
		min-height: 260px;
	}

	.pl-marquee__group {
		gap: 24px;
		padding: 14px 12px;
		font-size: 17px;
	}

	/* Review: vuốt ngang trên điện thoại. */
	.e-con.pl-reviews__grid {
		--display: flex;
		--flex-direction: row;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 12px;
		padding-bottom: 8px;
	}

	.e-con.pl-review {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}

	.e-con.pl-newsletter {
		--padding-top: 32px;
		--padding-right: 20px;
		--padding-bottom: 32px;
		--padding-left: 20px;
		gap: 24px;
	}

	/* Điện thoại: nút Subscribe xuống dòng, rộng hết cỡ cho dễ bấm. */
	.pl-newsletter .pl-nl__row {
		flex-direction: column;
	}

	.e-con.pl-shop-hero {
		--padding-top: 32px;
		--padding-right: 16px;
		--padding-bottom: 32px;
		--padding-left: 16px;
		min-height: 240px;
		margin-bottom: 28px;
	}

	.pl-shop-hero__title .wd-woo-page-title,
	.pl-shop-hero__title .title,
	.pl-shop-hero__title h1 {
		font-size: 34px;
	}

	/* Mô tả danh mục dài ~50 từ: trên điện thoại chỉ hiện 3 dòng để sản phẩm lên sớm hơn. */
	.pl-shop-hero__text :is(.term-description, .page-description) {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
		font-size: 15px;
	}

	.e-con.pl-shop-toolbar {
		gap: 10px;
	}

	.elementor-widget.pl-shop-toolbar__view {
		display: none;
	}

	/* Điện thoại: chỉ giữ nút Filters + ô sắp xếp trên một hàng. */
	.elementor-widget.pl-shop-toolbar__count {
		display: none;
	}

	.elementor-widget.pl-shop-toolbar__sort {
		margin-inline-start: auto;
	}

	.pl-shop-toolbar .woocommerce-ordering select {
		min-width: 0;
		width: auto;
		max-width: 190px;
	}

	.pl-shop-collections .wd-nav-product-cat {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.e-con.pl-sp-top {
		margin-bottom: 16px;
	}

	.elementor-widget.pl-sp-nav {
		display: none;
	}

	.e-con.pl-sp-main {
		gap: 24px;
	}

	.pl-sp-title .product_title,
	.pl-sp-title h1 {
		font-size: 27px;
	}

	.pl-sp-price .price {
		font-size: 26px;
	}

	.pl-sp-badge__icon .pl-icon {
		width: 44px;
		height: 44px;
		padding: 11px;
	}

	.pl-sp-badge__label .elementor-heading-title {
		font-size: 13px;
	}

	.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop .wcpa-upload-area .upload-area-title {
		font-size: 14px;
	}

	.pl-sp-cart .wcpa_form_outer .wcpa_form_item .wcpa_drag_drop :is(.upload-area-subtitle, .upload-area-title-thumb-inner) span {
		height: 42px;
		padding: 0 14px;
		font-size: 14px;
	}

	.e-con.pl-diff {
		--padding-top: 28px;
		--padding-right: 18px;
		--padding-bottom: 28px;
		--padding-left: 18px;
	}

	.pl-diff__title .elementor-heading-title {
		font-size: 32px;
	}

	.e-con.pl-diff__item {
		--padding-top: 16px;
		--padding-right: 16px;
		--padding-bottom: 16px;
		--padding-left: 16px;
		--gap: 12px;
		--column-gap: 12px;
	}

	.pl-diff__check .pl-icon {
		width: 36px;
		height: 36px;
		padding: 9px;
	}

	.pl-diff__item-title .elementor-heading-title {
		font-size: 16px;
	}

	.pl-diff__item-body .elementor-heading-title {
		font-size: 15px;
	}

	/* Điện thoại: bỏ tên sản phẩm trên thanh sticky. */
	.pl-sticky-atc__title {
		display: none;
	}

	.pl-sticky-atc__btn {
		padding: 0 22px;
		font-size: 14px;
	}

	body.pl-sticky-atc-on .scrollToTop {
		bottom: 150px;
	}
}

/* 9. Chuyển động (inc/motion.php + assets/js/motion.js)
   Trong lúc chờ script (tối đa 3 giây), tạm ẩn H1 và các phần cùng khối với nó để hiệu ứng mở đầu không bị nháy. */
html.pl-motion-pending .wd-page-content h1,
html.pl-motion-pending .wd-page-content :is(.e-con, .e-con-inner):has(> .elementor-widget h1) > .elementor-element {
	opacity: 0;
}

/* Khung che từng từ của H1: nới thêm trên/dưới để không cắt dấu và phần đuôi chữ (g, y, p). */
.pl-word-mask {
	padding-block: 0.1em;
	margin-block: -0.1em;
}

/* 10. Bài blog (single-post.php, inc/blog-post.php, inc/blog-post-cta.php), theo bài blog của hipips.com:
   cột nội dung ~780px + sidebar phải (hộp Shop + mục lục dính). Từ 1024px trở xuống sidebar thành bảng trượt và mục lục
   thu gọn hiện ở đầu bài. */

/* 10.1 Đầu bài */
.pl-post-main > * {
	max-width: 780px;
}

.pl-post-head {
	margin-bottom: 32px;
}

.pl-post-breadcrumbs {
	margin-bottom: 20px;
	font-size: 13px;
}

.pl-post-title {
	margin: 0 0 16px;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--pl-ink);
}

.pl-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 28px;
	font-size: 14px;
	color: var(--pl-muted);
}

.pl-post-meta__group {
	font-weight: 600;
	color: var(--pl-forest);
}

.pl-post-meta__item {
	display: inline-flex;
	gap: 8px;
}

/* Breadcrumb Rank Math (inc/blog-guides.php): Home / Pet Portrait Guides / tiêu đề. */
.pl-post-breadcrumbs .rank-math-breadcrumb p {
	margin: 0;
}

.pl-post-breadcrumbs .separator {
	color: var(--pl-muted);
}

.pl-post-breadcrumbs .last {
	color: var(--pl-ink);
	font-weight: 600;
}

.pl-post-image {
	margin: 0;
}

.pl-post-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--pl-radius);
}

/* 10.2 Nội dung */
.pl-post-content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--pl-text);
}

.pl-post-content :is(h2, h3) {
	scroll-margin-top: 110px;
	color: var(--pl-ink);
}

.pl-post-content h2 {
	margin: 48px 0 16px;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.25;
}

.pl-post-content h3 {
	margin: 32px 0 12px;
	font-size: 21px;
	line-height: 1.35;
}

.pl-post-content > p a,
.pl-post-content > :is(ul, ol) li a,
.pl-post-content table a {
	font-weight: 500;
	color: var(--pl-forest);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pl-post-content > :is(ul, ol) li {
	margin-bottom: 8px;
}

.pl-post-content img {
	border-radius: 12px;
}

.pl-post-content .wp-block-table,
.pl-table-scroll {
	overflow-x: auto;
}

.pl-table-scroll {
	margin: 28px 0;
	-webkit-overflow-scrolling: touch;
}

.pl-table-scroll table {
	margin: 0;
}

.pl-post-content figure {
	margin: 28px 0;
}

/* Ảnh và biểu đồ SVG trong figure luôn đủ bề rộng cột; giữ tỉ lệ theo width/height của thẻ img (không nhảy bố cục). */
.pl-post-content img {
	max-width: 100%;
	height: auto;
}

.pl-post-content figure img {
	display: block;
	width: 100%;
}

.pl-post-content figcaption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	color: var(--pl-muted);
}

.pl-post-content code {
	padding: 2px 6px;
	font-size: 0.9em;
	background: var(--pl-sand);
	border-radius: 6px;
}

.pl-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.pl-post-content :is(th, td) {
	padding: 10px 14px;
	border: 1px solid var(--pl-line);
	text-align: left;
	vertical-align: top;
}

.pl-post-content th {
	background: var(--pl-sand);
	color: var(--pl-ink);
}

.pl-post-content blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--pl-forest);
	color: var(--pl-ink);
}

/* 10.3 Mục lục: hộp có đầu xanh rừng, danh sách đánh số; mục đang đọc tô đậm (initPostToc). */
.pl-toc {
	overflow: hidden;
	background: var(--pl-white);
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius);
}

.pl-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--pl-forest);
	color: var(--pl-white);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pl-toc__list {
	margin: 0;
	padding: 12px 16px 14px 36px;
	list-style: decimal;
	font-size: 14px;
	line-height: 1.45;
}

.pl-toc__list li {
	margin: 8px 0;
}

.pl-toc__list li::marker {
	color: var(--pl-muted);
}

.pl-toc__list a {
	color: var(--pl-text);
}

.pl-toc__list a:hover,
.pl-toc__list a[aria-current="true"] {
	color: var(--pl-forest);
}

.pl-toc__list a[aria-current="true"] {
	font-weight: 600;
}

/* Bản thu gọn đầu bài (tablet / điện thoại). */
.pl-toc--inline {
	margin: 0 0 32px;
}

.pl-toc--inline summary {
	cursor: pointer;
	list-style: none;
}

.pl-toc--inline summary::-webkit-details-marker {
	display: none;
}

.pl-toc--inline summary::after,
.pl-toc__toggle::before {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.pl-toc--inline[open] summary::after {
	transform: translateY(2px) rotate(-135deg);
}

/* Nút thu / mở mục lục ở sidebar. */
.pl-toc__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-height: 0;
	padding: 0;
	color: var(--pl-white);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 6px;
}

.pl-toc__toggle[aria-expanded="true"]::before {
	transform: translateY(2px) rotate(-135deg);
}

.pl-toc--side.is-collapsed #pl-toc-side-list {
	display: none;
}

@media (min-width: 1025px) {
	.pl-toc--inline {
		display: none;
	}
}

/* 10.4 Sidebar: hộp Shop + mục lục, dính khi cuộn. Khung .widget-area (bọc như sidebar.php của WoodMart) phải cao bằng
   cả cột, nếu không khối dính chỉ dính trong chiều cao của chính nó. */
.pl-post-aside .widget-area {
	height: 100%;
}

.pl-post-aside__sticky {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 20px;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.pl-shop-box {
	padding: 18px 18px 14px;
	background: var(--pl-sand);
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius);
}

.pl-shop-box__title {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pl-ink);
}

.pl-shop-box__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-shop-box__list li + li {
	border-top: 1px solid var(--pl-sand-deep);
}

.pl-shop-box__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 14px;
	color: var(--pl-ink);
}

.pl-shop-box__list a span {
	transition: transform 0.2s ease;
}

.pl-shop-box__list a:hover {
	color: var(--pl-forest);
}

.pl-shop-box__list a:hover span {
	transform: translateX(3px);
}

.pl-shop-box__help {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pl-forest);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Bộ điều hướng Pet Portrait Guides (inc/blog-guides.php): mỗi nhóm một <details>, nhóm của bài đang xem mở sẵn. */
.pl-guide-nav {
	padding: 16px 18px 10px;
	background: var(--pl-sand);
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius);
}

.pl-guide-nav__title {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pl-ink);
}

.pl-guide-nav__group + .pl-guide-nav__group {
	border-top: 1px solid var(--pl-sand-deep);
}

.pl-guide-nav__group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--pl-ink);
	cursor: pointer;
	list-style: none;
}

.pl-guide-nav__group summary::-webkit-details-marker {
	display: none;
}

.pl-guide-nav__group summary::after {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.pl-guide-nav__group[open] summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.pl-guide-nav__group ul {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.pl-guide-nav__group li a {
	display: block;
	padding: 6px 0 6px 12px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--pl-text);
	border-left: 2px solid var(--pl-sand-deep);
}

.pl-guide-nav__group li a:hover {
	color: var(--pl-forest);
}

.pl-guide-nav__group li a[aria-current="page"] {
	font-weight: 600;
	color: var(--pl-forest);
	border-left-color: var(--pl-forest);
}

.pl-guide-links {
	display: grid;
	gap: 8px;
}

.pl-guide-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pl-forest);
	background: var(--pl-white);
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius-pill);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pl-guide-links a:hover {
	color: var(--pl-white);
	background: var(--pl-forest);
}

/* Từ 1024px trở xuống sidebar nằm dưới nội dung (inc/blog-guides.php tắt bảng trượt): bỏ dính; mục lục sidebar ẩn vì đã có
   mục lục thu gọn đầu bài + thanh "Contents". */
@media (max-width: 1024px) {
	.wd-content-layout > .pl-post-main,
	.wd-content-layout > .pl-post-aside {
		--wd-col-md: 12 !important;
		--wd-col-sm: 12 !important;
	}

	.pl-post-aside {
		margin-top: 32px;
	}

	.pl-post-aside__sticky {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.pl-post-aside .widget-area {
		height: auto;
	}

	.pl-post-aside .pl-toc--side {
		display: none;
	}
}

/* 10.5 Khối kêu gọi mua trong bài (inc/blog-post-cta.php): dải mỏng, 3 thẻ sản phẩm, banner cuối. */
.pl-cta {
	margin: 40px 0;
	border-radius: var(--pl-radius);
}

.pl-cta p {
	margin: 0;
}

.pl-cta .pl-cta__eyebrow {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pl-forest);
}

.pl-cta__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pl-ink);
}

.pl-cta .pl-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--pl-white);
	text-decoration: none;
	background: var(--pl-forest);
	border: 1px solid transparent;
	border-radius: var(--pl-radius-pill);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pl-cta .pl-cta__btn:hover {
	color: var(--pl-white);
	background: var(--pl-forest-hover);
}

.pl-cta--strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 24px;
	background: var(--pl-sand);
	border: 1px solid var(--pl-sand-deep);
}

.pl-cta--products {
	padding: 20px;
	background: var(--pl-card);
	border: 1px solid var(--pl-line);
}

.pl-cta__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.pl-cta .pl-cta__more {
	flex: none;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: var(--pl-forest);
	text-decoration: none;
}

.pl-cta__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-cta__card {
	margin: 0;
}

.pl-cta__card a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 10px;
	text-decoration: none;
	background: var(--pl-white);
	border: 1px solid var(--pl-line);
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pl-cta__card a:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(29, 33, 30, 0.08);
}

.pl-cta .pl-cta__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
}

.pl-cta__name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pl-ink);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.pl-cta__price {
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
	color: var(--pl-forest);
}

.pl-cta__price del {
	font-weight: 400;
	color: var(--pl-muted);
}

.pl-cta--end {
	padding: 36px 32px;
	color: var(--pl-white);
	background: linear-gradient(135deg, var(--pl-forest) 0%, var(--pl-forest-hover) 100%);
}

.pl-cta--end .pl-cta__eyebrow {
	color: #cfe0d4;
}

.pl-cta--end .pl-cta__title {
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.2;
	color: var(--pl-white);
}

.pl-cta--end .pl-cta__meta {
	margin: 10px 0 22px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.82);
}

.pl-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pl-cta--end .pl-cta__btn {
	color: var(--pl-forest);
	background: var(--pl-white);
}

.pl-cta--end .pl-cta__btn:hover {
	color: var(--pl-forest);
	background: var(--pl-sand);
}

.pl-cta--end .pl-cta__btn--ghost,
.pl-cta--end .pl-cta__btn--ghost:hover {
	color: var(--pl-white);
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
}

.pl-cta--end .pl-cta__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* 10.6 Hộp tác giả */
.pl-author-box {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 40px 0 24px;
	padding: 22px 24px;
	background: var(--pl-card);
	border: 1px solid var(--pl-line);
	border-radius: var(--pl-radius);
}

.pl-author-box__avatar {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.pl-author-box p {
	margin: 0 0 6px;
}

.pl-author-box .pl-author-box__name {
	font-size: 17px;
	font-weight: 700;
	color: var(--pl-ink);
}

.pl-author-box__bio {
	font-size: 15px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.pl-post-content {
		font-size: 16px;
	}

	.pl-cta--strip {
		flex-direction: column;
		align-items: flex-start;
	}

	.pl-cta--end {
		padding: 28px 22px;
	}

	/* Điện thoại: thẻ sản phẩm cuộn ngang, mỗi thẻ ~62% bề rộng. */
	.pl-cta__cards {
		grid-auto-columns: 62%;
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.pl-cta__card {
		scroll-snap-align: start;
	}

	.pl-author-box {
		padding: 18px;
	}

	.pl-author-box__avatar {
		width: 56px;
		height: 56px;
	}
}

/* 10.7 Thanh "Contents" + bảng mục lục trượt từ dưới lên trên tablet / điện thoại (inc/blog-post.php, initPostToc).
   Thanh nổi ngay trên thanh công cụ dưới của WoodMart; nút "lên đầu trang" nhích lên khi thanh hiện. */
.pl-toc-dock {
	display: none;
}

@media (max-width: 1024px) {
	.pl-toc-dock {
		position: fixed;
		right: 12px;
		bottom: 12px;
		left: 12px;
		z-index: 380;
		display: block;
		visibility: hidden;
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
		pointer-events: none;
	}

	.pl-toc-dock.is-visible {
		visibility: visible;
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	body.sticky-toolbar-on .pl-toc-dock {
		bottom: calc(var(--wd-toolbar-h, 55px) + 10px);
	}

	body.pl-toc-dock-on .scrollToTop {
		bottom: calc(var(--wd-toolbar-h, 55px) + 80px);
	}
}

.pl-toc-dock .pl-toc-dock__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 560px;
	min-height: 52px;
	margin: 0 auto;
	padding: 8px 10px 8px 18px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	color: var(--pl-white);
	background: var(--pl-forest);
	border: 0;
	border-radius: var(--pl-radius-pill);
	box-shadow: 0 8px 24px rgba(29, 33, 30, 0.25);
}

.pl-toc-dock__icon {
	flex: none;
	width: 18px;
	height: 14px;
	background:
		linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
		linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
		linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}

.pl-toc-dock__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.pl-toc-dock__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

.pl-toc-dock__current {
	overflow: hidden;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pl-toc-dock__count {
	flex: none;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.15);
	border-radius: var(--pl-radius-pill);
}

.pl-toc-sheet {
	position: fixed;
	inset: auto 0 0;
	width: 100%;
	max-width: none;
	max-height: 75dvh;
	margin: 0;
	padding: 0 0 env(safe-area-inset-bottom);
	overflow-y: auto;
	color: var(--pl-text);
	background: var(--pl-white);
	border: 0;
	border-radius: 20px 20px 0 0;
}

.pl-toc-sheet::backdrop {
	background: rgba(29, 33, 30, 0.45);
}

.pl-toc-sheet[open] {
	animation: pl-toc-sheet-up 0.28s ease;
}

@keyframes pl-toc-sheet-up {
	from {
		transform: translateY(100%);
	}
}

.pl-toc-sheet__head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 14px 20px;
	color: var(--pl-white);
	background: var(--pl-forest);
}

.pl-toc-sheet__head p {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pl-toc-sheet .pl-toc-sheet__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--pl-white);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
}

.pl-toc-sheet .pl-toc__list {
	padding: 10px 20px 24px 44px;
	font-size: 16px;
}

.pl-toc-sheet .pl-toc__list li {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--pl-line);
}

.pl-toc-sheet .pl-toc__list a {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.pl-toc-dock {
		transition: none;
	}

	.pl-toc-sheet[open] {
		animation: none;
	}
}

/* 10.8 Bài liên quan cuối bài (inc/blog-guides.php): tối đa 3 bài, ảnh + tiêu đề. */
.pl-related {
	margin: 40px 0;
}

.pl-related__title {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.3;
	color: var(--pl-ink);
}

.pl-related__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-related__item a {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	color: var(--pl-ink);
}

.pl-related__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.pl-related__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.pl-related__item a:hover .pl-related__name {
	color: var(--pl-forest);
}

@media (max-width: 767px) {
	.pl-related__list {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Bảng nhiều cột cuộn ngang trong khung thay vì bóp chữ: mỗi cột tối thiểu 140px (--pl-cols do PHP gắn). */
	.pl-table-scroll table {
		min-width: calc(var(--pl-cols, 2) * 140px);
	}
}
