/* Trang san pham (inc/product-page.php) — phan dung chung catalog + chi tiet (nhan, nut, chip, gallery, bang, hoi dap).
   Nap sau style.css (+ proton-product.css o trang chi tiet). Moi quy tac nam duoi body.pp.
   Luat chu shop: KHONG vien mot ben tren khoi bo goc; nhan bang nen, vien deu 4 phia hoac vach thang tach rieng. */

.pp {
	--pp-line: #E3E6DA;
	--pp-line-strong: #C9D2B8;
	--pp-soft: #F3F5EF;
	--pp-radius: 20px;
	--pp-radius-sm: 14px;
	--pp-ease: cubic-bezier(.2, .7, .2, 1);
	--pp-shadow: 0 18px 40px -24px rgba(15, 84, 30, .35);
}

/* Banner: chu lon vua 1 dong o dien thoai, link breadcrumb ke thua mau trang. */
.pp .pp-banner .breadcrumb-list a { color: inherit; }
.pp .pp-banner .breadcrumb-title { text-wrap: balance; }

/* Nhan vien thuoc: danh muc (nen chanh) + NPK (vien deu). */
.pp .pp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pp .pp-pill {
	display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
	background: var(--theme); color: var(--theme-2);
	font-family: var(--body-font); font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap;
	transition: background-color .25s var(--pp-ease), color .25s var(--pp-ease);
}
.pp a.pp-pill:hover { background: var(--theme-2); color: #fff; }
.pp a.pp-pill:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }
.pp .pp-pill--npk { background: #fff; color: var(--header); box-shadow: inset 0 0 0 1px var(--pp-line-strong); font-variant-numeric: lining-nums; }

.pp .pp-kicker { margin: 0 0 8px; font-family: var(--body-font); font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--theme-3); }
.pp .pp-label { margin: 0 0 12px; font-family: var(--body-font); font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--theme-2); }

/* Cum "chu –" khong tach dong (proton_pp_text). */
.pp .pp-nw { white-space: nowrap; }

/* Icon SVG noi tuyen. */
.pp .pp-icon { flex: 0 0 auto; display: block; width: 20px; height: 20px; }

/* Nut. */
.pp .pp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px;
	border: 0; border-radius: 12px; font-family: var(--heading-font); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
	transition: background-color .25s var(--pp-ease), color .25s var(--pp-ease), box-shadow .25s var(--pp-ease);
}
.pp .pp-btn:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 3px; }
.pp .pp-btn--dark { background: var(--theme-2); color: #fff; }
.pp .pp-btn--dark:hover { background: #0A3F16; color: #fff; }
.pp .pp-btn--lime { background: var(--theme); color: var(--theme-2); }
.pp .pp-btn--lime:hover { background: #B9CF3B; color: var(--theme-2); }
.pp .pp-btn--outline { background: #fff; color: var(--theme-2); box-shadow: inset 0 0 0 1.5px var(--theme-2); }
.pp .pp-btn--outline:hover { background: var(--theme-2); color: #fff; }
.pp .pp-btn--light { background: var(--theme); color: var(--theme-2); }
.pp .pp-btn--light:hover { background: #fff; color: var(--theme-2); }
.pp .pp-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.pp .pp-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* 2 nut Goi / Zalo chia deu 1 hang. */
.pp .pp-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp .pp-cta .pp-btn { width: 100%; padding: 0 14px; }

/* Nut tron mui ten (the + "Xem tat ca"). */
.pp .pp-round {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--theme); color: var(--theme-2);
	transition: background-color .3s var(--pp-ease), color .3s var(--pp-ease), transform .3s var(--pp-ease);
}
.pp .pp-round .pp-icon { width: 18px; height: 18px; }
.pp .pp-more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--heading-font); font-size: 16px; font-weight: 500; color: var(--header); white-space: nowrap; }
.pp .pp-more:hover { color: var(--theme-2); }
.pp .pp-more:hover .pp-round { background: var(--theme-2); color: #fff; transform: translateX(3px); }
.pp .pp-more:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 4px; border-radius: 999px; }

/* Link ten phu kin the: ca the bam duoc, focus ve vien the. */
.pp .pp-stretch { color: inherit; }
.pp .pp-stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pp .pp-stretch:focus-visible { outline: none; }

/* Thanh chip chuyen danh muc: het cho thi xuong hang (khong cuon ngang, khong cat chu o mep). */
.pp .pp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pp .pp-chip {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
	border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--pp-line);
	font-family: var(--heading-font); font-size: 15px; font-weight: 500; line-height: 1; color: var(--header); white-space: nowrap;
	transition: background-color .25s var(--pp-ease), box-shadow .25s var(--pp-ease), color .25s var(--pp-ease);
}
.pp .pp-chip:hover { box-shadow: inset 0 0 0 1px var(--theme-2); color: var(--theme-2); }
.pp .pp-chip:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 2px; }
.pp .pp-chip[aria-current="true"] { background: var(--theme-2); box-shadow: none; color: #fff; }
.pp .pp-chip-n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bg2); color: var(--theme-2); font-family: var(--body-font); font-size: 12px; font-weight: 700; }
.pp .pp-chip[aria-current="true"] .pp-chip-n { background: var(--theme); }
@media (max-width: 991px) {
	.pp .pp-chip { height: 40px; padding: 0 14px; font-size: 14px; }
}

/* Anh chi tiet: khung vuong nen nhat + anh nho. */
.pp .pp-gallery-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--pp-radius); background: var(--pp-soft); overflow: hidden; }
.pp .pp-gallery-main { display: block; width: 100%; height: 100%; object-fit: contain; }
.pp .pp-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.pp .pp-thumb { display: block; width: 76px; height: 76px; padding: 3px; border-radius: var(--pp-radius-sm); background: var(--pp-soft); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s var(--pp-ease); }
.pp .pp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.pp .pp-thumb:hover { box-shadow: inset 0 0 0 1.5px var(--pp-line-strong); }
.pp .pp-thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--theme-2); }
.pp .pp-thumb:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 2px; }

/* Danh sach Cong dung dang dau tich (moi doan / muc la 1 dong). */
.pp .pp-checks > :is(p, li) { position: relative; margin: 0 0 10px; padding-left: 32px; font-size: 16px; line-height: 1.6; color: var(--header); }
.pp .pp-checks > :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.pp .pp-checks > :is(ul, ol) > li { position: relative; margin: 0 0 10px; padding-left: 32px; font-size: 16px; line-height: 1.6; color: var(--header); }
.pp .pp-checks :is(p, li):last-child { margin-bottom: 0; }
.pp .pp-checks > :is(p, li)::before,
.pp .pp-checks > :is(ul, ol) > li::before {
	content: ""; position: absolute; top: 1px; left: 0; width: 22px; height: 22px; border-radius: 50%;
	background: var(--theme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F541E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Bang thanh phan (HTML admin nhap): vien deu, dong ke thang. */
.pp .pp-spec table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); overflow: hidden; }
.pp .pp-spec :is(th, td) { padding: 12px 16px; border: 0; font-size: 15px; line-height: 1.45; text-align: left; vertical-align: top; color: var(--header); }
.pp .pp-spec thead th { background: var(--pp-soft); font-family: var(--body-font); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--theme-2); }
.pp .pp-spec tbody tr + tr :is(th, td),
.pp .pp-spec thead + tbody tr:first-child :is(th, td) { box-shadow: inset 0 1px 0 var(--pp-line); }
.pp .pp-spec td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pp .pp-spec thead th:last-child { text-align: right; }
.pp .pp-spec .pf-spec-note { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--text); }
.pp .pp-spec--legal { margin-top: 16px; }
.pp .pp-spec--legal th { width: 44%; font-weight: 600; color: var(--text); }
.pp .pp-spec--legal td { font-weight: 500; text-align: left; white-space: normal; }

/* Hoi dap: giu kieu accordion /hoi-dap/ (proton-product.css), bo goc theo bo the moi. */
.pp .pp-faq.proton-product-faq { margin-top: 0; }
.pp .pp-faq details { border-color: var(--pp-line); border-radius: var(--pp-radius-sm); }
.pp .pp-faq summary:focus-visible { border-radius: var(--pp-radius-sm); }
.pp .pp-faq details:last-child { margin-bottom: 0; }

/* Trang thai trong. */
.pp .pp-empty { display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: 24px auto 0; padding: 56px 32px; border-radius: 28px; background: var(--bg2); text-align: center; }
.pp .pp-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 22px; border-radius: 50%; background: var(--theme); color: var(--theme-2); }
.pp .pp-empty-icon .pp-icon { width: 30px; height: 30px; }
.pp .pp-empty-title { margin: 0 0 10px; font-family: var(--heading-font); font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--header); }
.pp .pp-empty-text { margin: 0 0 26px; font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: balance; }
.pp .pp-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Neo cuon: chua cho header dinh. */
.pp [id] { scroll-margin-top: 120px; }

@media (max-width: 575px) {
	.pp .pp-btn { height: 48px; font-size: 15px; }
	.pp .pp-cta { gap: 10px; }
	.pp .pp-spec :is(th, td) { padding: 11px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.pp *, .pp *::before, .pp *::after { transition-duration: 0s !important; }
}
