/* Trang chi tiet san pham bo cuc "Ke hang": anh | hop mua hang + the san pham cung danh muc (card-shelf.php). Phan chung: proton-product-page.css. */

/* ---------- The san pham ---------- */
.pp .pp-shelf-card {
	position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 10px;
	border-radius: var(--pp-radius); background: #fff; box-shadow: inset 0 0 0 1px var(--pp-line);
	transition: box-shadow .35s var(--pp-ease);
}
.pp .pp-shelf-card:hover { box-shadow: inset 0 0 0 1px var(--pp-line-strong), var(--pp-shadow); }
.pp .pp-shelf-card:has(.pp-stretch:focus-visible) { outline: 2px solid var(--theme-2); outline-offset: 3px; }
.pp .pp-shelf-media { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--pp-radius-sm); background: var(--pp-soft); isolation: isolate; }
.pp .pp-shelf-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--pp-ease); }
.pp .pp-shelf-card:hover .pp-shelf-media img { transform: scale(1.04); }
.pp .pp-shelf-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 10px 6px; }
.pp .pp-shelf-name { margin: 2px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--header); text-wrap: balance; overflow-wrap: anywhere; }
.pp .pp-shelf-card:hover .pp-shelf-name { color: var(--theme-2); }
.pp .pp-shelf-slogan { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
/* Gia + nut day xuong day: cac the cung hang thang dong du ten/khau hieu dai ngan. */
.pp .pp-shelf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.pp .pp-shelf-price { font-size: 14px; color: var(--text); }
.pp .pp-shelf-price strong { font-family: var(--heading-font); font-size: 16px; font-weight: 600; color: var(--theme-2); }
.pp .pp-shelf-card:hover .pp-round { background: var(--theme-2); color: #fff; }

@media (max-width: 767px) {
	.pp .pp-shelf-card { padding: 6px; border-radius: 16px; }
	.pp .pp-shelf-media { border-radius: 12px; }
	.pp .pp-shelf-body { gap: 8px; padding: 12px 6px 4px; }
	.pp .pp-shelf-name { font-size: 16px; line-height: 1.3; }
	.pp .pp-shelf-slogan { font-size: 13px; line-height: 1.5; }
	.pp .pp-pill { height: 22px; padding: 0 8px; font-size: 11px; }
	/* 1 dong nhan: co NPK thi chi hien NPK (cung danh muc nen khong can nhac) -> ten cac the cung hang thang nhau. */
	.pp .pp-shelf-card .pp-pills { flex-wrap: nowrap; overflow: hidden; }
	.pp .pp-shelf-card .pp-pills:has(.pp-pill--npk) .pp-pill:not(.pp-pill--npk) { display: none; }
	.pp .pp-shelf-price { font-size: 12.5px; }
	.pp .pp-shelf-price strong { font-size: 14px; }
	.pp .pp-shelf-card .pp-round { width: 32px; height: 32px; }
	.pp .pp-shelf-card .pp-round .pp-icon { width: 15px; height: 15px; }
}

/* ---------- Chi tiet: anh | hop mua hang ---------- */
.pp .pp-a-top { padding: 56px 0 48px; }
.pp .pp-a-buy { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pp .pp-a-box { padding: 36px; border-radius: var(--pp-radius); background: #fff; box-shadow: inset 0 0 0 1px var(--pp-line); }
.pp .pp-a-name { margin: 16px 0 14px; font-size: 42px; font-weight: 600; line-height: 1.12; color: var(--header); text-wrap: balance; overflow-wrap: anywhere; }
.pp .pp-a-slogan { margin: 0 0 8px; font-family: var(--heading-font); font-size: 19px; font-weight: 500; line-height: 1.45; color: var(--theme-2); text-wrap: pretty; }
.pp .pp-a-rest { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.pp .pp-a-price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 16px; margin: 24px 0 16px; padding: 18px 20px; border-radius: var(--pp-radius-sm); background: var(--bg2); }
.pp .pp-a-price-label { font-size: 14px; font-weight: 600; color: var(--text); }
.pp .pp-a-price-value { font-family: var(--heading-font); font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--theme-2); text-align: right; }
.pp .pp-a-price-note { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.pp .pp-a-uses { margin-top: 28px; padding-top: 26px; position: relative; }
/* Vach thang tach rieng (khong phai vien cua khoi bo goc). */
.pp .pp-a-uses::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--pp-line); }

/* Thanh muc neo. */
.pp .pp-a-tabs { position: relative; }
.pp .pp-a-tabs ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.pp .pp-a-tabs ul::-webkit-scrollbar { display: none; }
.pp .pp-a-tabs a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--pp-soft); font-family: var(--heading-font); font-size: 15px; font-weight: 500; color: var(--header); white-space: nowrap; transition: background-color .25s var(--pp-ease), color .25s var(--pp-ease); }
.pp .pp-a-tabs a:hover, .pp .pp-a-tabs a[aria-current="true"] { background: var(--theme-2); color: #fff; }
.pp .pp-a-tabs a:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 2px; }

/* Noi dung 2 cot. */
.pp .pp-a-body.proton-product-more { padding: 32px 0 80px; }
.pp .pp-a-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.pp .pp-a-cols.has-side { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.pp .pp-a-main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.pp .pp-a-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pp .pp-a-h2 { margin: 0 0 18px; font-size: 28px; font-weight: 600; line-height: 1.25; color: var(--header); text-wrap: balance; }
.pp .pp-a-card { padding: 28px; border-radius: var(--pp-radius); background: #fff; box-shadow: inset 0 0 0 1px var(--pp-line); }
.pp .pp-a-usage { background: var(--bg2); box-shadow: none; }
.pp .pp-a-card .proton-post-body > :last-child { margin-bottom: 0; }
.pp .pp-a-advice { padding: 28px; border-radius: var(--pp-radius); color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(199, 220, 73, .22) 0%, rgba(199, 220, 73, 0) 55%), var(--theme-2); }
.pp .pp-a-advice-title { margin: 0 0 6px; font-family: var(--heading-font); font-size: 21px; font-weight: 600; line-height: 1.3; color: #fff; text-wrap: balance; }
.pp .pp-a-advice-text { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.pp .pp-a-advice .pp-cta { grid-template-columns: minmax(0, 1fr); }

/* San pham cung danh muc. */
.pp .pp-a-related { padding: 0 0 110px; }
.pp .pp-a-related-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pp .pp-a-related-head .pp-a-h2 { margin: 0; }
.pp .pp-a-related-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 1199px) {
	.pp .pp-a-buy { gap: 32px; }
	.pp .pp-a-box { padding: 28px; }
	.pp .pp-a-name { font-size: 36px; }
	.pp .pp-a-cols.has-side { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
	.pp .pp-a-related-row { gap: 20px; }
}
@media (max-width: 991px) {
	.pp .pp-a-buy { grid-template-columns: minmax(0, 1fr); }
	.pp .pp-a-media { max-width: 560px; width: 100%; margin: 0 auto; }
	.pp .pp-a-cols.has-side { grid-template-columns: minmax(0, 1fr); }
	/* Thanh phan len truoc phan doc dai. */
	.pp .pp-a-side { order: -1; }
	.pp .pp-a-related-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.pp .pp-a-top { padding: 24px 0 32px; }
	/* Dien thoai: khong khung hop, chu sat lề nhu trang ban le. */
	.pp .pp-a-box { padding: 0; box-shadow: none; }
	.pp .pp-a-name { margin: 14px 0 10px; font-size: 30px; }
	.pp .pp-a-slogan { font-size: 17px; }
	.pp .pp-a-rest { font-size: 15px; }
	.pp .pp-a-price { margin: 20px 0 14px; padding: 14px 16px; }
	.pp .pp-a-price-value { font-size: 22px; }
	.pp .pp-a-tabs ul { margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
	.pp .pp-a-tabs a { height: 44px; padding: 0 16px; font-size: 14px; }
	.pp .pp-a-body.proton-product-more { padding: 24px 0 56px; }
	.pp .pp-a-main { gap: 36px; }
	.pp .pp-a-card, .pp .pp-a-advice { padding: 20px; border-radius: 16px; }
	.pp .pp-a-h2 { font-size: 24px; margin-bottom: 14px; }
	.pp .pp-a-related { padding-bottom: 64px; }
	.pp .pp-a-related-head .pp-a-h2 { font-size: 22px; }
	/* Noi dung theo dung thu tu thanh muc neo (khong dao Thanh phan len truoc), hop tu van xuong sau cung. */
	.pp .pp-a-side { display: contents; }
	.pp .pp-a-advice { order: 1; }
	.pp .pp-a-related-head .pp-more { font-size: 14px; gap: 8px; }
	/* Cung danh muc: vuot ngang, the 62% man hinh (khong roi hang le). */
	.pp .pp-a-related-row { display: flex; gap: 12px; margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.pp .pp-a-related-row::-webkit-scrollbar { display: none; }
	.pp .pp-a-related-row > * { flex: 0 0 62%; scroll-snap-align: start; }
	/* height:100% (cho luoi may tinh) chan flex keo gian -> the ten 2 dong cao hon the ten 1 dong. */
	.pp .pp-a-related-row > .pp-shelf-card { height: auto; }
}
