/* =========================================================================
 * Section trang chủ (inc/home-sections.php + nội dung UX Builder):
 * New Designs · Best Sellers · Choose Your Buckle Style · Bulk Orders ·
 * Rings by Series · FAQ. Nền xen kẽ kem / trắng, chung kiểu tiêu đề.
 * Chú ý: section ngay sau hero nhận padding-top 124px (home-hero.css, ≥1200px)
 * để chừa chỗ cho ảnh hero lấn xuống → selector ở đây giữ độ ưu tiên thấp hơn.
 * ====================================================================== */
body.home .phs-section {
	padding: 72px 0 !important;
}
body.home .phs-section > .section-bg {
	background-color: #fff !important;
}
body.home .phs-sec-cats > .section-bg,
body.home .phs-sec-best > .section-bg,
body.home .phs-sec-faq > .section-bg {
	background-color: var(--cb-cream) !important;
}
body.home .phs-sec-bulk > .section-bg {
	background-color: var(--cb-gold) !important;
}
body.home .phs-section > .section-content {
	max-width: var(--punchy-container, 1280px);
	margin: 0 auto;
	padding: 0 15px;
}
body.home .phs-section > .section-content > .row {
	max-width: none !important;
	margin: 0 !important;
}

/* Tiêu đề chung */
body.home .phs-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 32px;
}
body.home .phs-section .phs-eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cb-brown);
}
body.home .phs-section .phs-title {
	margin: 0;
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: none;
	color: var(--cb-black);
}
body.home .phs-section .phs-desc {
	max-width: 560px;
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--cb-muted);
}
body.home .phs-more {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cb-black);
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--cb-gold);
	white-space: nowrap;
}
body.home .phs-more::after {
	content: " →";
}
body.home .phs-more:hover {
	color: var(--cb-brown);
}

/* Nút chung */
body.home .phs-section .button.phs-style__btn,
body.home .phs-section .button.phs-bulk__btn,
body.home .phs-section .button.phs-bulk__btn2,
body.home .phs-section .button.phs-faq__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0 10px 10px 0 !important;
	padding: 0 26px !important;
	border-radius: 0;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}
/* #content để thắng selector .button:not(...) của buttons.css */
html body.home #content .phs-section .button.is-outline {
	background: transparent !important;
	border: 2px solid var(--cb-black) !important;
	color: var(--cb-black) !important;
}
html body.home #content .phs-section .button.is-outline:hover {
	background: var(--cb-black) !important;
	color: #fff !important;
}

/* -------------------------------------------------------------------------
 * 1. Shop by Category: 4 ô ảnh vuông, tên + số mẫu dưới ảnh
 * ---------------------------------------------------------------------- */
body.home .phs-cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
body.home .phs-cat {
	display: block;
	background: #fff;
	color: var(--cb-black);
	transition: box-shadow .25s ease, transform .25s ease;
}
body.home .phs-cat:hover {
	box-shadow: 0 14px 30px rgba(26, 22, 18, .1);
	transform: translateY(-3px);
}
body.home .phs-cat__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
}
body.home .phs-cat__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	transition: transform .5s ease;
}
body.home .phs-cat:hover .phs-cat__media img {
	transform: scale(1.05);
}
body.home .phs-cat__text {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px 18px;
	border-top: 1px solid var(--cb-line);
}
body.home .phs-cat__name {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
body.home .phs-cat__cta {
	flex: none;
	font-size: 13px;
	color: var(--cb-muted);
}
body.home .phs-cat__cta::after {
	content: " →";
	color: var(--cb-brown);
}

/* -------------------------------------------------------------------------
 * New Designs + Best Sellers: thẻ sản phẩm giống khối tab Jewelry
 * ---------------------------------------------------------------------- */
body.home .phs-products .products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
}
body.home .phs-products .product-small.col {
	width: auto !important;
	max-width: none !important;
	flex: none !important;
	padding: 0 !important;
	border: 0 !important;
}
body.home .phs-products .product-small.col::before,
body.home .phs-products .product-small.col::after {
	display: none !important;
}
body.home .phs-products .product-small.col > .col-inner {
	height: 100%;
	background: #fff;
	border: 1px solid var(--cb-line);
	transition: box-shadow .25s ease, transform .25s ease;
}
body.home .phs-products .product-small.col > .col-inner:hover {
	box-shadow: 0 14px 30px rgba(26, 22, 18, .1);
	transform: translateY(-3px);
}
body.home .phs-products .box-image {
	aspect-ratio: 1 / 1;
	background: #fff;
}
body.home .phs-products .box-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px;
}
body.home .phs-products .box-text {
	padding: 14px 18px 20px !important;
	text-align: left !important;
	border-top: 1px solid var(--cb-line);
}
body.home .phs-products .box-text .product-title,
body.home .phs-products .box-text .name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--cb-black);
}
body.home .phs-products .box-text .price,
body.home .phs-products .box-text .price .amount {
	font-size: 15px;
	font-weight: 400 !important;
	color: var(--cb-muted) !important;
}
body.home .phs-products .product-sku {
	display: none;
}

/* -------------------------------------------------------------------------
 * 4. Choose Your Buckle Style: 3 thẻ
 * ---------------------------------------------------------------------- */
body.home .phs-styles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
body.home .phs-style {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cb-line);
}
body.home .phs-style__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #fff;
}
body.home .phs-style__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	transition: transform .5s ease;
}
body.home .phs-style:hover .phs-style__media img {
	transform: scale(1.05);
}
body.home .phs-style__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 24px;
	border-top: 1px solid var(--cb-line);
}
body.home .phs-section .phs-style__name {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
}
body.home .phs-style__name a {
	color: var(--cb-black);
}
body.home .phs-style__desc {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--cb-muted);
}
body.home .phs-style__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: auto 0 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--cb-brown);
}
body.home .phs-style__meta .amount {
	color: inherit;
	font-weight: inherit;
}
body.home .phs-section .button.phs-style__btn {
	align-self: flex-start;
	margin: 0 !important;
}

/* -------------------------------------------------------------------------
 * 5. Bulk Orders: nền tan, chữ trái + nút, 3 lợi ích phải
 * ---------------------------------------------------------------------- */
body.home .phs-bulk > .col {
	padding: 0 !important;
}
body.home .phs-bulk > .phs-bulk__intro {
	padding-right: 48px !important;
}
body.home .phs-bulk .col-inner {
	text-align: left !important;
}
body.home .phs-sec-bulk .phs-eyebrow {
	color: var(--cb-black);
}
body.home .phs-sec-bulk .phs-desc {
	margin-bottom: 28px;
	color: var(--cb-black);
}
html body.home #content .phs-sec-bulk .button.phs-bulk__btn {
	background: var(--cb-black) !important;
	border: 2px solid var(--cb-black) !important;
	color: #fff !important;
}
html body.home #content .phs-sec-bulk .button.phs-bulk__btn:hover {
	background: transparent !important;
	color: var(--cb-black) !important;
}
body.home .phs-points {
	margin: 0;
	padding: 0;
	list-style: none;
}
body.home .phs-points li {
	position: relative;
	margin: 0;
	padding: 20px 0 20px 44px;
	border-top: 1px solid rgba(26, 22, 18, .18);
	list-style: none;
}
body.home .phs-points li:last-child {
	border-bottom: 1px solid rgba(26, 22, 18, .18);
}
body.home .phs-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 21px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--cb-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2b48c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.home .phs-points strong {
	display: block;
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
	color: var(--cb-black);
}
body.home .phs-points span {
	display: block;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(26, 22, 18, .78);
}

/* -------------------------------------------------------------------------
 * 2. Rings by Series: ảnh tròn
 * ---------------------------------------------------------------------- */
body.home .phs-series {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 20px;
}
body.home .phs-serie {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
	color: var(--cb-black);
}
body.home .phs-serie__media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid var(--cb-line);
	border-radius: 50%;
	background: #fff;
	transition: border-color .25s ease, box-shadow .25s ease;
}
body.home .phs-serie__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4%;
	transition: transform .5s ease;
}
body.home .phs-serie:hover .phs-serie__media {
	border-color: var(--cb-gold);
	box-shadow: 0 10px 24px rgba(26, 22, 18, .1);
}
body.home .phs-serie:hover .phs-serie__media img {
	transform: scale(1.06);
}
body.home .phs-serie__name {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
body.home .phs-serie:hover .phs-serie__name {
	color: var(--cb-brown);
}

/* -------------------------------------------------------------------------
 * 8. FAQ: giới thiệu trái, accordion phải
 * ---------------------------------------------------------------------- */
body.home .phs-faq > .col {
	padding: 0 !important;
}
body.home .phs-faq > .phs-faq__intro {
	padding-right: 48px !important;
}
body.home .phs-faq .col-inner {
	text-align: left !important;
}
body.home .phs-faq__intro .phs-desc {
	margin-bottom: 24px;
}
body.home .phs-faq .accordion {
	margin: 0;
	border-top: 1px solid var(--cb-line);
}
body.home .phs-faq .accordion-item {
	border-bottom: 1px solid var(--cb-line);
}
body.home .phs-faq .accordion-title {
	position: relative;
	display: block;
	padding: 20px 48px 20px 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--cb-black) !important;
}
body.home .phs-faq .accordion-title:hover {
	color: var(--cb-brown) !important;
}
/* Dấu + / − bên phải thay icon mặc định */
body.home .phs-faq .accordion-title .toggle {
	display: none;
}
body.home .phs-faq .accordion-title::before,
body.home .phs-faq .accordion-title::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 16px;
	height: 2px;
	background: var(--cb-black);
	transition: transform .25s ease;
}
body.home .phs-faq .accordion-title::after {
	transform: rotate(90deg);
}
body.home .phs-faq .accordion-title.active::after {
	transform: rotate(0deg);
}
body.home .phs-faq .accordion-inner {
	padding: 0 48px 22px 0 !important;
	font-size: 15px;
	line-height: 1.65;
	color: var(--cb-muted);
}
body.home .phs-section .phs-faq .accordion-inner p {
	font-size: 15px;
	line-height: 1.65;
	letter-spacing: 0;
}
body.home .phs-faq .accordion-inner p:last-child {
	margin-bottom: 0;
}
body.home .phs-faq .accordion-inner a {
	color: var(--cb-brown);
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 1023px) {
	body.home .phs-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	body.home .phs-products .products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	body.home .phs-products .product-small:nth-child(n+7) {
		display: none !important;
	}
	body.home .phs-styles {
		gap: 16px;
	}
	body.home .phs-style__body {
		padding: 18px;
	}
	/* Series: cuộn ngang */
	body.home .phs-series {
		grid-auto-columns: 150px;
		margin: 0 -15px;
		padding: 0 15px 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 15px;
		scrollbar-width: none;
	}
	body.home .phs-series::-webkit-scrollbar {
		display: none;
	}
	body.home .phs-serie {
		scroll-snap-align: start;
	}
}
@media (max-width: 849px) {
	body.home .phs-section {
		padding: 48px 0 !important;
	}
	body.home .phs-head {
		margin-bottom: 24px;
	}
	body.home .phs-styles {
		grid-template-columns: minmax(0, 1fr);
	}
	body.home .phs-style {
		display: grid;
		grid-template-columns: 40% minmax(0, 1fr);
	}
	body.home .phs-style__media {
		aspect-ratio: auto;
		height: 100%;
	}
	body.home .phs-style__body {
		border-top: 0;
		border-left: 1px solid var(--cb-line);
	}
	body.home .phs-bulk > .phs-bulk__intro,
	body.home .phs-faq > .phs-faq__intro {
		padding-right: 0 !important;
		margin-bottom: 28px;
	}
}
@media (max-width: 549px) {
	body.home .phs-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	body.home .phs-cats,
	body.home .phs-products .products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	body.home .phs-products .product-small:nth-child(n+5) {
		display: none !important;
	}
	body.home .phs-cat__media img {
		padding: 12px;
	}
	body.home .phs-cat__text {
		flex-direction: column;
		gap: 2px;
		padding: 12px 12px 14px;
	}
	body.home .phs-cat__name {
		font-size: 14px;
	}
	body.home .phs-products .box-image img {
		padding: 10px;
	}
	body.home .phs-products .box-text {
		padding: 12px 12px 14px !important;
	}
	body.home .phs-products .box-text .product-title,
	body.home .phs-products .box-text .name,
	body.home .phs-products .box-text .price {
		font-size: 14px;
	}
	/* Buckle style: thẻ vuốt ngang */
	body.home .phs-styles {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 82%;
		gap: 12px;
		margin: 0 -15px;
		padding: 0 15px 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 15px;
		scrollbar-width: none;
	}
	body.home .phs-styles::-webkit-scrollbar {
		display: none;
	}
	body.home .phs-style {
		display: flex;
		scroll-snap-align: start;
	}
	body.home .phs-style__media {
		aspect-ratio: 4 / 3;
		height: auto;
	}
	body.home .phs-style__body {
		border-left: 0;
		border-top: 1px solid var(--cb-line);
	}
	body.home .phs-section .button.phs-style__btn,
	body.home .phs-section .button.phs-bulk__btn,
	body.home .phs-section .button.phs-bulk__btn2 {
		display: flex;
		width: 100%;
		margin-right: 0 !important;
	}
	body.home .phs-series {
		grid-auto-columns: 120px;
		gap: 14px;
	}
	body.home .phs-serie__name {
		font-size: 12px;
	}
	body.home .phs-faq .accordion-title {
		font-size: 16px;
		padding-right: 36px !important;
	}
	body.home .phs-faq .accordion-inner {
		padding-right: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home .phs-cat,
	body.home .phs-cat__media img,
	body.home .phs-products .product-small.col > .col-inner,
	body.home .phs-style__media img,
	body.home .phs-serie__media,
	body.home .phs-serie__media img,
	body.home .phs-faq .accordion-title::after {
		transition: none;
	}
}
