/**
 * Lux Authen — PLP (Product Listing Page) styles
 *
 * 对应设计稿:docs/design/plp-bags-v2.html(714 行)
 * 视觉 1:1 还原,Token 严格遵守 docs/design/design-system.md
 *
 * Enqueue 条件:is_shop() || is_product_taxonomy()(详 functions.php)
 *
 * §B.8 不动父代码 — 本文件子主题 override,Astra Pro 父主题完全不动。
 *
 * @package Lux\Child
 */

/* ============================================================
 * 1. PLP 局部色彩 token(基于 design-system.md §1)
 * ============================================================ */
.lux-plp {
	--lux-ivory-2: #F4F2EC;
	--lux-ink-soft: #3A3A38;
	--lux-mute: #8A8780;
	--lux-line: #E5E2D9;
	--lux-gold-deep: #A88848;
	--lux-rose-deep: #D9A89A;
}

/* ============================================================
 * 2. Announcement bar(顶部信任条)
 * ============================================================ */
.lux-plp .lux-announce {
	background: var(--lux-charcoal);
	color: var(--lux-ivory);
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: 10px 24px;
	font-weight: 400;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-announce span {
	color: var(--lux-champagne-gold);
}

/* ============================================================
 * 3. Page header(breadcrumb + page-title-wrap)
 * ============================================================ */
.lux-plp .lux-page-head {
	max-width: 1440px;
	margin: 0 auto;
	padding: 40px 40px 0;
}
.lux-plp .lux-crumb {
	display: flex;
	gap: 10px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lux-mute);
	font-weight: 500;
	align-items: center;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-crumb a {
	color: inherit;
	text-decoration: none;
}
.lux-plp .lux-crumb a:hover {
	color: var(--lux-gold-deep);
}
.lux-plp .lux-crumb .sep {
	color: var(--lux-line);
}
.lux-plp .lux-crumb .now {
	color: var(--lux-charcoal);
	font-weight: 600;
}
.lux-plp .lux-page-title-wrap {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-top: 28px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--lux-line);
}
.lux-plp h1.lux-page-title {
	font-family: var(--lux-font-serif);
	font-weight: 400;
	font-size: clamp(42px, 5.4vw, 76px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--lux-charcoal);
	margin: 0;
}
.lux-plp h1.lux-page-title .accent {
	font-weight: 700;
}
.lux-plp .lux-page-sub {
	font-size: 14px;
	color: var(--lux-ink-soft);
	max-width: 360px;
	line-height: 1.6;
	padding-bottom: 8px;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-page-sub b {
	font-family: var(--lux-font-serif);
	font-weight: 600;
	color: var(--lux-charcoal);
	font-size: 16px;
	display: block;
	margin-bottom: 4px;
}

/* ============================================================
 * 4. Layout(sidebar + results)
 * ============================================================ */
.lux-plp .lux-page {
	max-width: 1440px;
	margin: 0 auto;
	padding: 40px 40px 80px;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 56px;
	align-items: flex-start;
}

/* ============================================================
 * 5. Sidebar (filter)
 * ============================================================ */
.lux-plp .lux-sidebar {
	position: sticky;
	top: 110px;
}
.lux-plp .lux-sb-title {
	font-family: var(--lux-font-sans);
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--lux-charcoal);
	font-weight: 600;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--lux-charcoal);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.lux-plp .lux-sb-title .clear {
	font-size: 10px;
	color: var(--lux-gold-deep);
	letter-spacing: 0.16em;
	cursor: pointer;
}
.lux-plp .lux-sb-title .clear:hover {
	color: var(--lux-charcoal);
}
.lux-plp .lux-filter {
	border-bottom: 1px solid var(--lux-line);
	padding: 22px 0;
}
.lux-plp .lux-filter-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lux-charcoal);
	font-weight: 600;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-filter-h .count {
	color: var(--lux-mute);
	font-weight: 500;
	letter-spacing: 0.1em;
}
.lux-plp .lux-filter-h .chev {
	width: 10px;
	height: 10px;
	border-right: 1.5px solid var(--lux-charcoal);
	border-bottom: 1.5px solid var(--lux-charcoal);
	transform: rotate(45deg);
	transition: transform 0.25s;
}
.lux-plp .lux-filter.closed .lux-filter-h .chev {
	transform: rotate(-45deg);
}
.lux-plp .lux-filter-body {
	margin-top: 16px;
}
.lux-plp .lux-filter.closed .lux-filter-body {
	display: none;
}

/* Checkbox rows */
.lux-plp .lux-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 13px;
	cursor: pointer;
	color: var(--lux-ink-soft);
	transition: color 0.2s;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-check:hover {
	color: var(--lux-charcoal);
}
.lux-plp .lux-check input {
	appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid var(--lux-mute);
	background: var(--lux-ivory);
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.2s, background 0.2s;
}
.lux-plp .lux-check input:checked {
	background: var(--lux-charcoal);
	border-color: var(--lux-charcoal);
}
.lux-plp .lux-check input:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border-right: 1.5px solid var(--lux-ivory);
	border-bottom: 1.5px solid var(--lux-ivory);
	transform: rotate(45deg);
}
.lux-plp .lux-check .n {
	flex: 1;
}
.lux-plp .lux-check .c {
	color: var(--lux-mute);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.lux-plp .lux-show-more {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lux-gold-deep);
	margin-top: 10px;
	cursor: pointer;
	font-weight: 600;
	padding-top: 4px;
	border-bottom: 1px solid transparent;
	display: inline-block;
}
.lux-plp .lux-show-more:hover {
	border-bottom-color: var(--lux-champagne-gold);
}

/* Price slider */
.lux-plp .lux-range-wrap {
	padding: 8px 0 0;
}
.lux-plp .lux-range-track {
	position: relative;
	height: 2px;
	background: var(--lux-line);
	margin: 14px 0 18px;
}
.lux-plp .lux-range-fill {
	position: absolute;
	height: 2px;
	background: var(--lux-champagne-gold);
	left: 8%;
	right: 35%;
}
.lux-plp .lux-range-thumb {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	background: var(--lux-ivory);
	border: 1.5px solid var(--lux-charcoal);
	border-radius: 50%;
	cursor: grab;
}
.lux-plp .lux-range-thumb:hover {
	background: var(--lux-champagne-gold);
	border-color: var(--lux-champagne-gold);
}
.lux-plp .lux-range-vals {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	letter-spacing: 0.1em;
	color: var(--lux-ink-soft);
	font-weight: 500;
}
.lux-plp .lux-range-vals .v {
	font-family: var(--lux-font-sans);
	font-weight: 600;
	color: var(--lux-charcoal);
}
.lux-plp .lux-range-inputs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
}
.lux-plp .lux-range-inputs input {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--lux-line);
	background: var(--lux-ivory);
	font-size: 12px;
	outline: none;
	transition: border-color 0.2s;
	font-weight: 500;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-range-inputs input:focus {
	border-color: var(--lux-charcoal);
}
.lux-plp .lux-range-inputs .dash {
	width: 12px;
	height: 1px;
	background: var(--lux-mute);
}

/* Color swatches */
.lux-plp .lux-swatches {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.lux-plp .lux-sw {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
.lux-plp .lux-sw .dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--lux-line);
	position: relative;
	transition: transform 0.2s;
}
.lux-plp .lux-sw:hover .dot {
	transform: scale(1.1);
}
.lux-plp .lux-sw.on .dot {
	box-shadow: 0 0 0 2px var(--lux-ivory), 0 0 0 3px var(--lux-charcoal);
}
.lux-plp .lux-sw .l {
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--lux-ink-soft);
	text-transform: uppercase;
	font-weight: 500;
}
.lux-plp .lux-sw-black .dot { background: #1A1A1A; }
.lux-plp .lux-sw-brown .dot { background: #6B4A2B; }
.lux-plp .lux-sw-beige .dot { background: #D6C3A2; }
.lux-plp .lux-sw-white .dot { background: #FAFAF7; }
.lux-plp .lux-sw-red   .dot { background: #8B1A1A; }
.lux-plp .lux-sw-blue  .dot { background: #1F3A6B; }
.lux-plp .lux-sw-green .dot { background: #2E4A35; }
.lux-plp .lux-sw-multi .dot {
	background: conic-gradient(#C9A86A, #E8C5B7, #1F3A6B, #2E4A35, #8B1A1A, #C9A86A);
}

/* Era / size pill toggles */
.lux-plp .lux-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.lux-plp .lux-pill {
	padding: 8px 14px;
	border: 1px solid var(--lux-line);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lux-ink-soft);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	font-weight: 500;
	font-family: var(--lux-font-sans);
	background: transparent;
}
.lux-plp .lux-pill:hover {
	border-color: var(--lux-charcoal);
	color: var(--lux-charcoal);
}
.lux-plp .lux-pill.on {
	background: var(--lux-charcoal);
	color: var(--lux-ivory);
	border-color: var(--lux-charcoal);
}

/* ============================================================
 * 6. Results column toolbar
 * ============================================================ */
.lux-plp .lux-results {
	min-width: 0;
}
.lux-plp .lux-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 22px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--lux-line);
	flex-wrap: wrap;
}
.lux-plp .lux-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.lux-plp .lux-chips-label {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lux-mute);
	font-weight: 500;
	margin-right: 4px;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--lux-ivory-2);
	border: 1px solid var(--lux-line);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lux-charcoal);
	font-weight: 500;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-chip .x {
	width: 10px;
	height: 10px;
	cursor: pointer;
	position: relative;
}
.lux-plp .lux-chip .x::before,
.lux-plp .lux-chip .x::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 1px;
	background: var(--lux-ink-soft);
	transform-origin: center;
}
.lux-plp .lux-chip .x::before {
	transform: translate(-50%, -50%) rotate(45deg);
}
.lux-plp .lux-chip .x::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
.lux-plp .lux-chip:hover .x::before,
.lux-plp .lux-chip:hover .x::after {
	background: var(--lux-charcoal);
}

.lux-plp .lux-toolbar-right {
	display: flex;
	gap: 18px;
	align-items: center;
}
.lux-plp .lux-sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lux-ink-soft);
	font-weight: 500;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-sort select {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--lux-charcoal);
	padding: 6px 22px 6px 4px;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lux-charcoal);
	cursor: pointer;
	outline: none;
	font-weight: 600;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1.4'/></svg>");
	background-repeat: no-repeat;
	background-position: right 4px center;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-grid-toggle {
	display: flex;
	gap: 0;
	border: 1px solid var(--lux-line);
}
.lux-plp .lux-gt {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	color: var(--lux-mute);
	background: transparent;
	border: 0;
}
.lux-plp .lux-gt:hover {
	color: var(--lux-charcoal);
}
.lux-plp .lux-gt.on {
	background: var(--lux-charcoal);
	color: var(--lux-ivory);
}
.lux-plp .lux-gt + .lux-gt {
	border-left: 1px solid var(--lux-line);
}
.lux-plp .lux-gt svg {
	width: 14px;
	height: 14px;
}

/* ============================================================
 * 7. Product grid + product card
 * ============================================================ */
.lux-plp .lux-pgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 24px;
}
.lux-plp .lux-pgrid[data-cols="2"] {
	grid-template-columns: repeat(2, 1fr);
}
.lux-plp .lux-pgrid[data-cols="4"] {
	grid-template-columns: repeat(4, 1fr);
}

.lux-plp .lux-pcard {
	position: relative;
	cursor: pointer;
	display: block;
	color: inherit;
	text-decoration: none;
}
.lux-plp .lux-pimg {
	position: relative;
	aspect-ratio: 1/1;
	background: var(--lux-white-pure);
	overflow: hidden;
	margin-bottom: 16px;
}
.lux-plp .lux-pimg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	transition: opacity 0.5s ease;
	display: block;
}
.lux-plp .lux-pimg .lux-img-2 {
	opacity: 0;
}
.lux-plp .lux-pcard:hover .lux-img-1 {
	opacity: 0;
}
.lux-plp .lux-pcard:hover .lux-img-2 {
	opacity: 1;
}

/* Placeholder face(无图时占位编辑色块,同设计稿)*/
.lux-plp .lux-pimg .face {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	transition: opacity 0.5s ease;
}
.lux-plp .lux-pimg .face-2 {
	opacity: 0;
	background: var(--lux-ivory-2);
}
.lux-plp .lux-pcard:hover .face-1 {
	opacity: 0;
}
.lux-plp .lux-pcard:hover .face-2 {
	opacity: 1;
}

.lux-plp .lux-pwish {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(250, 250, 247, 0.92);
	display: grid;
	place-items: center;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background 0.25s, color 0.25s, opacity 0.25s, transform 0.25s;
	color: var(--lux-charcoal);
	z-index: 3;
	opacity: 0;
	transform: translateY(-4px);
	border: 0;
	cursor: pointer;
}
.lux-plp .lux-pcard:hover .lux-pwish {
	opacity: 1;
	transform: translateY(0);
}
.lux-plp .lux-pwish:hover {
	background: var(--lux-dusty-rose);
	color: var(--lux-charcoal);
}
.lux-plp .lux-pwish.on {
	opacity: 1;
	background: var(--lux-champagne-gold);
	color: var(--lux-ivory);
}
.lux-plp .lux-pwish svg {
	width: 14px;
	height: 14px;
	stroke-width: 1.4;
}

.lux-plp .lux-pquick {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 10px;
	background: rgba(26, 26, 26, 0.92);
	color: var(--lux-ivory);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	font-weight: 600;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s, transform 0.3s;
	z-index: 2;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-pcard:hover .lux-pquick {
	opacity: 1;
	transform: translateY(0);
}

.lux-plp .lux-ribbon {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--lux-ivory);
	color: var(--lux-charcoal);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 6px 10px;
	z-index: 2;
	border: 1px solid var(--lux-line);
	font-weight: 600;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-ribbon.gold {
	background: var(--lux-charcoal);
	color: var(--lux-champagne-gold);
	border-color: var(--lux-charcoal);
}
.lux-plp .lux-ribbon.rose {
	background: var(--lux-dusty-rose);
	color: var(--lux-charcoal);
	border-color: var(--lux-dusty-rose);
}

.lux-plp .lux-pbrand {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--lux-mute);
	font-weight: 500;
	margin-bottom: 6px;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-pname {
	font-family: var(--lux-font-serif);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.3;
	margin-bottom: 12px;
	color: var(--lux-charcoal);
}
.lux-plp .lux-pmeta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.lux-plp .lux-pcond {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 11px;
	border: 1px solid var(--lux-champagne-gold);
	color: var(--lux-gold-deep);
	border-radius: 999px;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-pcond .dot {
	width: 5px;
	height: 5px;
	background: var(--lux-champagne-gold);
	border-radius: 50%;
}
.lux-plp .lux-pprice {
	font-family: var(--lux-font-sans);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.01em;
	color: var(--lux-charcoal);
}
.lux-plp .lux-pprice s,
.lux-plp .lux-pprice del {
	color: var(--lux-strikethrough-gray);
	font-weight: 400;
	margin-right: 6px;
	font-size: 12px;
}

/* ============================================================
 * 8. Pagination
 * ============================================================ */
.lux-plp .lux-pagination {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--lux-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.lux-plp .lux-page-info {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lux-mute);
	font-weight: 500;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-page-info b {
	color: var(--lux-charcoal);
	font-weight: 600;
}
.lux-plp .lux-pages {
	display: flex;
	gap: 6px;
	align-items: center;
}
.lux-plp .lux-pages .page-numbers {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-size: 13px;
	color: var(--lux-ink-soft);
	border: 1px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	font-weight: 500;
	text-decoration: none;
	font-family: var(--lux-font-sans);
}
.lux-plp .lux-pages .page-numbers:hover {
	border-color: var(--lux-champagne-gold);
	color: var(--lux-charcoal);
}
.lux-plp .lux-pages .page-numbers.current {
	background: var(--lux-charcoal);
	color: var(--lux-ivory);
	border-color: var(--lux-charcoal);
	font-weight: 600;
}
.lux-plp .lux-pages .page-numbers.dots {
	cursor: default;
	color: var(--lux-mute);
}
.lux-plp .lux-pages .page-numbers.dots:hover {
	border-color: transparent;
}
.lux-plp .lux-pages .prev,
.lux-plp .lux-pages .next {
	padding: 0 18px;
	width: auto;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
}

/* ============================================================
 * 9. Responsive breakpoint
 * ============================================================ */
@media (max-width: 1100px) {
	.lux-plp .lux-page {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.lux-plp .lux-sidebar {
		position: static;
	}
	.lux-plp .lux-pgrid,
	.lux-plp .lux-pgrid[data-cols="3"],
	.lux-plp .lux-pgrid[data-cols="4"] {
		grid-template-columns: repeat(2, 1fr);
	}
	.lux-plp .lux-page-title-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
}

@media (max-width: 600px) {
	.lux-plp .lux-pgrid,
	.lux-plp .lux-pgrid[data-cols="2"],
	.lux-plp .lux-pgrid[data-cols="3"],
	.lux-plp .lux-pgrid[data-cols="4"] {
		grid-template-columns: 1fr;
	}
	.lux-plp .lux-page-head,
	.lux-plp .lux-page {
		padding-left: 20px;
		padding-right: 20px;
	}
}
