/* Trang chi tiet san pham (chi nap o trang san pham, xem functions.php). Spec docs/specs/2026-10-20-proton-product-detail-design.md */

/* Banner: dung quy tac chung trong style.css (.breadcrumb-wrapper .page-heading). */

/* Dau trang 2 cot: anh | thong tin. */
.proton-product { padding: 72px 0 40px; }
@media (max-width: 767px) {
	.proton-product { padding: 32px 0 24px; }
}

/* Luoi 3 vung. Mobile: anh > thong tin > thanh phan. Tu 768px: anh + thanh phan cot trai, thong tin cot phai (2 cot cao can nhau, khong trong duoi anh). */
.proton-product-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info" "spec"; row-gap: 28px; }
.proton-product-media { grid-area: media; }
.proton-product-info { grid-area: info; }
.proton-product-spec { grid-area: spec; }
.proton-product-spec .proton-product-block { margin-top: 0; }
@media (min-width: 768px) {
	.proton-product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "media info" "spec info"; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; align-items: start; }
	.proton-product-spec .proton-product-block { margin-top: 32px; }
}
/* Tu 1200px: Thanh phan ve cot phai duoi thong tin, anh ghim theo khi cuon (khong trong cot nao). */
@media (min-width: 1200px) {
	.proton-product-grid { grid-template-areas: "media info" "media spec"; grid-template-rows: auto 1fr; column-gap: 56px; }
	.proton-product-spec .proton-product-block { margin-top: 28px; }
}

.proton-product-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 20px; background-color: #F3F5EF; overflow: hidden; }
/* Anh san pham vuong (co nen rieng) phu kin khung; anh khong vuong nam giua tren nen nhat. */
.proton-product-frame .proton-product-main { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 575px) {
	.proton-product-frame { border-radius: 16px; }
}

.proton-product-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.proton-product-thumb { display: block; width: 76px; height: 76px; padding: 3px; border: 2px solid transparent; border-radius: 12px; background-color: #F3F5EF; transition: border-color .2s ease; }
.proton-product-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.proton-product-thumb:hover { border-color: #D8DDE1; }
.proton-product-thumb[aria-current="true"] { border-color: var(--theme-2); }
.proton-product-thumb:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }

.proton-product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.proton-product-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background-color: var(--bg2); color: var(--theme-2); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; text-transform: uppercase; }
a.proton-product-tag:hover { background-color: var(--theme-2); color: var(--white); }
.proton-product-tag--npk { background-color: var(--theme); color: var(--header); }

.proton-product-title { margin: 16px 0 12px; font-size: 44px; font-weight: 600; line-height: 1.15; color: var(--header); text-wrap: balance; overflow-wrap: anywhere; }
@media (max-width: 991px) {
	.proton-product-title { font-size: 36px; }
}
@media (max-width: 575px) {
	.proton-product-title { font-size: 30px; }
}

.proton-product-short p { margin: 0 0 8px; font-size: 16px; line-height: 1.75; color: var(--text); }
.proton-product-short strong { color: var(--header); }
.proton-product-price { margin: 16px 0 20px; font-size: 16px; color: var(--text); }
.proton-product-price strong { font-family: var(--heading-font); font-size: 20px; font-weight: 600; color: var(--theme-2); }

.proton-product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.proton-product-actions .theme-btn { text-align: center; }
.proton-product-actions .theme-btn i { margin: 0 8px 0 0; }
.proton-product-actions .proton-product-zalo { background-color: transparent; color: var(--theme-2); box-shadow: inset 0 0 0 1.5px var(--theme-2); }
.proton-product-actions .proton-product-zalo:hover { color: var(--white); }
/* Toi 991px cot thong tin hep (2 cot tu 768px): 2 nut chia deu 1 hang. */
@media (max-width: 991px) {
	.proton-product-actions { flex-wrap: nowrap; }
	.proton-product-actions .theme-btn { flex: 1 1 0; min-width: 0; padding: 0 12px; white-space: nowrap; }
}

.proton-product-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid #E6E9E1; }
.proton-product-label { margin: 0 0 10px; font-family: var(--body-font); font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--theme-2); }
.proton-product-block p { margin: 0 0 8px; font-size: 16px; line-height: 1.7; color: var(--text); }
.proton-product-block p:last-child { margin-bottom: 0; }
.proton-product-block a { color: var(--theme-2); text-decoration: underline; }
.proton-product-block .proton-product-ingredients { margin-bottom: 0; }
.proton-product-block .proton-product-ingredients th,
.proton-product-block .proton-product-ingredients td { padding: 9px 14px; font-size: 14px; line-height: 1.5; }
/* Thong tin theo nhan phan bon: bang 2 cot cung kieu Thanh phan, dat duoi bang Thanh phan. */
.proton-product-spec .proton-product-block + .proton-product-legal { margin-top: 28px; }
.proton-product-legal th { width: 42%; font-weight: 600; text-align: left; vertical-align: top; }
.proton-product-legal td { color: var(--header); }

/* Thong tin chi tiet + Hoi dap: cot doc hep. */
.proton-product-more { padding: 40px 0 72px; }
.proton-product-reading { max-width: 820px; margin: 0 auto; }
.proton-product-section-title { margin: 0 0 20px; font-size: 32px; font-weight: 600; line-height: 1.25; color: var(--header); text-wrap: balance; }
@media (max-width: 575px) {
	.proton-product-more { padding: 16px 0 48px; }
	.proton-product-section-title { font-size: 26px; }
}
.proton-product-more .proton-post-body p,
.proton-product-more .proton-post-body li { font-size: 16px; line-height: 1.75; color: var(--text); }
/* CSS mau bo dau dau dong: danh sach "Nhan: noi dung" dinh nhau nhu doan van -> cham xanh, cach dong. */
.proton-product-more .proton-post-body ul { margin: 0 0 16px; padding: 0; list-style: none; }
.proton-product-more .proton-post-body ul li { position: relative; margin-bottom: 8px; padding-left: 22px; }
.proton-product-more .proton-post-body ul li:last-child { margin-bottom: 0; }
/* Cham giua dong dau (gian dong 1.75 x 16px = 28px). */
.proton-product-more .proton-post-body ul li::before { content: ""; position: absolute; top: 11px; left: 4px; width: 7px; height: 7px; border-radius: 50%; background-color: var(--theme-2); }
.proton-product-more .proton-post-body li strong { color: var(--header); }

/* Muc luc (chi in khi bai co tu 3 muc). Spec docs/specs/2026-10-25-proton-product-toc-design.md */
/* h2 mo dau lap ten san pham: dong phu duoi "Thong tin chi tiet", khong tranh voi tieu de muc. */
.proton-product-more .proton-post-body .proton-product-subtitle { margin: -6px 0 16px; font-size: 20px; font-weight: 500; line-height: 1.45; color: var(--theme-2); text-wrap: balance; }
.proton-product-more .proton-post-body h2,
.proton-product-more .proton-product-section-title { scroll-margin-top: 120px; }
.proton-product-toc ol { margin: 0; padding: 0; list-style: none; }
/* Khoi nen xanh nhat bo goc nhu khung anh / hop thong tin (dong bo giao dien, bao 2026-11-16); bo so 01/02. */
.proton-product-toc { padding: 20px 14px 14px; border-radius: 20px; background-color: #F3F5EF; }
.proton-product-toc .proton-product-label { margin: 0 0 8px; padding: 0 12px; }
.proton-product-toc li + li { margin-top: 2px; }
.proton-product-toc a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 15px; line-height: 1.45; transition: color .2s ease, background-color .2s ease; }
.proton-product-toc a:hover { background-color: rgba(255, 255, 255, .6); color: var(--header); }
.proton-product-toc a[aria-current="location"] { background-color: var(--white); color: var(--theme-2); font-weight: 600; }
.proton-product-toc a:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }
/* Nho hon 992px: hop tren noi dung, khong ghim. */
@media (max-width: 991px) {
	.proton-product-toc { margin-bottom: 32px; border-radius: 16px; }
}
/* Tu 992px: muc luc cot trai (ghim bang ScrollTrigger, proton-product.js), noi dung cot phai. */
@media (min-width: 992px) {
	.proton-product-reading.has-toc { display: grid; grid-template-columns: 248px minmax(0, 760px); column-gap: 56px; align-items: start; justify-content: center; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.proton-product-toc a { transition: none; }
}

/* Hoi dap: <details> goc, nhin nhu accordion trang /hoi-dap/ (o vien, khi mo nen xanh). */
.proton-product-faq { margin-top: 56px; }
.proton-product-faq details { margin-bottom: 16px; border: 1px solid #DBDBDB; border-radius: 10px; background-color: var(--white); transition: background-color .3s ease, border-color .3s ease; }
.proton-product-faq details[open] { border-color: var(--theme-2); background-color: var(--theme-2); }
.proton-product-faq summary { position: relative; padding: 22px 56px 22px 24px; list-style: none; cursor: pointer; font-family: var(--heading-font); font-size: 20px; font-weight: 500; line-height: 1.4; color: var(--header); }
.proton-product-faq summary::-webkit-details-marker { display: none; }
.proton-product-faq summary::after { content: "\f067"; position: absolute; top: 25px; right: 24px; font-family: "Font Awesome 6 Pro"; font-size: 16px; font-weight: 400; line-height: 1; }
.proton-product-faq details[open] summary { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.proton-product-faq details[open] summary::after { content: "\f068"; }
.proton-product-faq summary:focus-visible { outline: 2px solid var(--theme); outline-offset: -4px; border-radius: 10px; }
.proton-product-faq details > :not(summary) { margin: 0; padding: 18px 24px 22px; font-size: 16px; line-height: 1.75; color: #B7B7B7; }
.proton-product-faq details > :not(summary) + :not(summary) { padding-top: 0; }
.proton-product-faq details a { color: var(--theme); text-decoration: underline; }
@media (max-width: 575px) {
	.proton-product-faq summary { padding: 18px 48px 18px 18px; font-size: 18px; }
	.proton-product-faq summary::after { top: 22px; right: 18px; }
	.proton-product-faq details > :not(summary) { padding: 14px 18px 18px; }
}

/* San pham cung danh muc: the sang (anh tren, chu duoi) chi o trang nay; the toi phu anh van giu o catalog. */
.proton-product-related { padding: 0 0 100px; }
.proton-product-related .project-thumb-box-items { height: auto; margin-top: 0; border-radius: 16px; background-color: #F3F5EF; }
.proton-product-related .project-thumb-box-items::before { display: none; }
.proton-product-related .project-thumb-box-items img { border-radius: 16px 16px 0 0; }
.proton-product-related .project-thumb-box-items .hover-content .arrow-icon { display: none; }
.proton-product-related .project-thumb-box-items .hover-content .content { position: static; opacity: 1; visibility: visible; padding: 14px 18px 18px; }
.proton-product-related .project-thumb-box-items .hover-content .content p { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--theme-2); }
.proton-product-related .project-thumb-box-items .hover-content .content .title { margin: 0; font-size: 18px; line-height: 1.35; color: var(--header); }
.proton-product-related .project-thumb-box-items .hover-content .content .title a { color: inherit; }
/* Ca the bam duoc (link ten phu kin the). */
.proton-product-related .project-thumb-box-items .hover-content .content .title a::after { content: ""; position: absolute; inset: 0; z-index: 100; border-radius: 16px; }
.proton-product-related .project-thumb-box-items .hover-content .content .title a:focus-visible { outline: none; }
.proton-product-related .project-thumb-box-items:has(a:focus-visible) { outline: 2px solid var(--theme-2); outline-offset: 2px; }
.proton-product-related .project-thumb-box-items:hover .hover-content .content .title { color: var(--theme-2); }
@media (max-width: 575px) {
	.proton-product-related { padding-bottom: 56px; }
	.proton-product-related .project-thumb-box-items .hover-content .content { padding: 10px 12px 14px; }
	.proton-product-related .project-thumb-box-items .hover-content .content p { font-size: 12px; }
	.proton-product-related .project-thumb-box-items .hover-content .content .title { font-size: 15px; }
}

/* Thanh Goi / Zalo dinh day (in o wp_footer, ngoai #smooth-wrapper). */
.proton-product-bar { display: none; }
@media (max-width: 767px) {
	.proton-product-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 998; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background-color: var(--white); box-shadow: 0 -4px 20px rgba(0, 0, 0, .08); }
	.proton-product-bar a { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 10px; font-family: var(--heading-font); font-size: 15px; font-weight: 600; text-transform: uppercase; }
	.proton-product-bar__call { background-color: var(--theme); color: var(--header); }
	.proton-product-bar__zalo { background-color: var(--theme-2); color: var(--white); }
	.proton-product-bar__zalo:hover { color: var(--white); }
	/* Co JS (is-ready): thanh chi hien khi 2 nut Goi/Zalo trong trang khong nam trong man hinh (proton-product.js). */
	.proton-product-bar { transition: transform .3s ease, visibility .3s; }
	.proton-product-bar.is-ready:not(.is-on) { visibility: hidden; transform: translateY(calc(100% + 12px)); }
	/* Chua cho thanh o cuoi #smooth-content (duoi chan trang): ScrollSmoother tinh chieu cao theo khung nay. */
	body.single-product #smooth-content { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	body.single-product .back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
	/* Menu / tim kiem dang mo (proton-ui.js dat class khoa cuon) thi an thanh. */
	.proton-scroll-locked .proton-product-bar { display: none; }
}
