/* ==========================================================
   Brand & category product listings (product-listing.php)
   ========================================================== */
.pl-page {
	--pl: #7C3AED;
	--pl-d: #5B21B6;
	--pl-soft: #F1EBFF;
	--ink: #1F2937;
	--muted: #6B7280;
	--line: #ECE9F6;
	--shadow: 0 1px 2px rgba(17, 12, 46, .06), 0 6px 20px rgba(17, 12, 46, .06);
	padding: 6px 0 10px;
	color: var(--ink);
}
.pl-page a { text-decoration: none; }
.pl-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.pl-crumbs a { color: var(--muted); }
.pl-crumbs a:hover { color: var(--pl); }
.pl-crumbs b { color: var(--ink); font-weight: 600; }

/* Hero */
.pl-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 28px;
	align-items: center;
	padding: 28px 32px;
	overflow: hidden;
	color: #fff;
	border-radius: 20px;
	background: radial-gradient(700px 300px at 90% 0%, rgba(192, 132, 252, .45), transparent 60%), linear-gradient(135deg, #3B0F7A 0%, #6D28D9 60%, #8B5CF6 100%);
	box-shadow: 0 16px 40px rgba(76, 29, 149, .22);
}
.pl-kicker { display: inline-block; margin-bottom: 10px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); }
.pl-hero h1 { margin: 0 0 10px; font-size: 32px; font-weight: 800; line-height: 1.2; color: #fff; }
.pl-hero p { margin: 0 0 18px; max-width: 760px; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .92); }
.pl-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-weight: 700; border-radius: 12px; border: 1.5px solid transparent; transition: transform .2s, background .2s; }
.pl-btn:hover { transform: translateY(-2px); }
.pl-page .pl-btn-primary { color: var(--pl-d); background: #fff; }
.pl-page .pl-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.pl-page .pl-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.pl-count { margin-left: 4px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.pl-count b { font-size: 18px; color: #fff; }
.pl-hero-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 16px 36px rgba(20, 5, 60, .3); }
.pl-hero-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Toolbar */
.pl-toolbar {
	position: sticky;
	top: 0;
	z-index: 6;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 20px 0 18px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
}
.pl-chips { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.pl-chip { flex-shrink: 0; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--muted); background: #F8F6FF; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: .15s; }
.pl-chip span { margin-left: 4px; font-size: 11.5px; color: #9CA3AF; }
.pl-chip:hover { color: var(--pl-d); border-color: #D9CCFB; }
.pl-chip.active { color: #fff; background: var(--pl); border-color: var(--pl); }
.pl-chip.active span { color: rgba(255, 255, 255, .8); }
.pl-tools { display: flex; gap: 8px; }
.pl-search { position: relative; margin: 0; font-weight: 400; }
.pl-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9CA3AF; font-size: 13px; }
.pl-search input, .pl-tools select { height: 38px; padding: 0 12px; font-size: 13.5px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.pl-search input { width: 220px; padding-left: 32px; }
.pl-search input:focus, .pl-tools select:focus { border-color: var(--pl); }

/* Grid & cards */
.pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pl-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.pl-card:hover { transform: translateY(-4px); border-color: #D9CCFB; box-shadow: 0 12px 32px rgba(91, 33, 182, .16); }
.pl-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin: 10px 10px 0; padding: 16px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff 0%, #F6F3FE 100%); overflow: hidden; }
.pl-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.pl-card:hover .pl-img img { transform: scale(1.05); }
.pl-body { flex: 1; padding: 12px 14px 4px; }
.pl-label { display: inline-block; max-width: 100%; margin-bottom: 6px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--pl-d); background: var(--pl-soft); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name { margin: 0; min-height: 2.7em; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pl-name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-name a:hover { color: var(--pl); }
.pl-actions { display: flex; gap: 8px; padding: 10px 14px 14px; }
.pl-view { flex: 1; padding: 9px 8px; font-size: 13px; font-weight: 700; text-align: center; color: #fff !important; border-radius: 10px; background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.pl-view:hover { background: var(--pl-d); }
.pl-quote { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #16A34A !important; border: 1px solid #BBF7D0; border-radius: 10px; background: #F0FDF4; }
.pl-quote:hover { background: #DCFCE7; }
.pl-empty { margin: 10px 0 0; padding: 26px; text-align: center; font-size: 15px; color: var(--muted); background: #fff; border: 1px dashed #D9CCFB; border-radius: 16px; }
.pl-empty a { color: var(--pl); font-weight: 700; }

/* About / SEO block */
.pl-about { margin: 30px 0 10px; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--ink); }
.pl-about h2 { margin: 18px 0 12px; font-size: 21px; font-weight: 800; color: var(--ink); }
.pl-about h2:first-child { margin-top: 0; }
.pl-about-text { font-size: 15px; line-height: 1.8; color: #374151; }
.pl-about-text h1, .pl-about-text h2, .pl-about-text h3, .pl-about-text h4 { margin: 18px 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.pl-about-text img { max-width: 100%; height: auto; }
.pl-about-text a, .pl-about a { color: #7C3AED; }
.pl-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.pl-why li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; line-height: 1.55; color: #374151; }
.pl-why i { margin-top: 4px; color: #10B981; }
.pl-faq details { margin-bottom: 10px; padding: 0 18px; border: 1px solid #ECE9F6; border-radius: 12px; background: #FDFCFF; }
.pl-faq summary { padding: 13px 0; font-size: 15px; font-weight: 700; cursor: pointer; }
.pl-faq details p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.7; color: #4B5563; }

@media (max-width: 1199px) { .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
	.pl-hero { grid-template-columns: 1fr; padding: 22px; }
	.pl-hero-img { display: none; }
	.pl-hero h1 { font-size: 25px; }
	.pl-tools { width: 100%; }
	.pl-search { flex: 1; }
	.pl-search input { width: 100%; }
	.pl-why { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pl-img { margin: 8px 8px 0; padding: 10px; }
	.pl-body { padding: 10px 10px 2px; }
	.pl-name { font-size: 13px; }
	.pl-actions { padding: 8px 10px 10px; }
	.pl-about { padding: 18px; }
	.pl-toolbar { position: static; }
}

/* ---------- Product categories page ---------- */
.pc-hero { grid-template-columns: 1fr; }
.pc-tool-label { font-weight: 700; color: var(--ink); padding-left: 4px; }
.pc-tool-label i { color: var(--pl); margin-right: 6px; }
.pc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.pc-card::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, #8B5CF6, #C084FC);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s ease;
}
.pc-card:hover { transform: translateY(-6px); border-color: #D9CCFB; box-shadow: 0 18px 40px rgba(91, 33, 182, .18); }
.pc-card:hover::after { transform: scaleX(1); }
.pc-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin: 10px 10px 0; padding: 18px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fff 0%, #F4F0FF 100%); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.pc-card:hover .pc-img img { transform: scale(1.08) rotate(-1deg); }
.pc-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 56px 16px 16px; }
.pc-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ink); transition: color .2s; }
.pc-meta { font-size: 12.5px; color: var(--muted); }
.pc-card:hover .pc-name { color: var(--pl); }
.pc-go { position: absolute; right: 14px; bottom: 16px; width: 34px; height: 34px; line-height: 34px; text-align: center; font-size: 13px; border-radius: 50%; color: var(--pl); background: var(--pl-soft); transition: background .25s, color .25s, transform .25s; }
.pc-card:hover .pc-go { color: #fff; background: var(--pl); transform: translateX(3px); }
@media (max-width: 1199px) { .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pc-body { padding: 10px 40px 12px 12px; }
	.pc-name { font-size: 13.5px; }
	.pc-go { width: 28px; height: 28px; line-height: 28px; right: 10px; bottom: 12px; }
}
@media (max-width: 767px) {
	.pl-view { padding: 9px 4px; font-size: 12.5px; white-space: nowrap; }
	.pl-quote { flex-basis: 36px; }
}
