/* Product details on the product page (product-details.php). Square corners,
   the site's fonts, black / gold / red, like the rest of the product page. */

.pxd { --pxd-gold: var(--wd-alternative-color, #c09a5e); --pxd-line: rgba(0, 0, 0, .1); --pxd-red: #e1251b; color: #333; }
.pxd > * + * { margin-top: 18px; }

/* Required parts */
.pxd-req__head { margin-bottom: 12px; }
.pxd .pxd-req__title { margin: 0 0 2px; font-family: var(--px-font-main, "LUXURY AV"), sans-serif; font-size: 14px; font-weight: 400; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; color: #000; }
.pxd-req__head p { margin: 0; font-size: 13px; color: #8c8c8c; }
.pxd-req__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pxd-req__track::-webkit-scrollbar { display: none; }
.pxd-req__nav { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.pxd-req__nav[hidden] { display: none; }
.pxd .pxd-req__nav button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 1px solid var(--pxd-line); border-radius: 0; background: #fff; color: #000; cursor: pointer; transition: border-color .2s ease; }
.pxd .pxd-req__nav button:hover:not(:disabled) { border-color: #000; }
.pxd .pxd-req__nav button:disabled { opacity: .3; cursor: default; }
.pxd-card { flex: 0 0 calc(50% - 6px); min-width: 160px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid #e8e8e8; transition: border-color .2s ease; }
.pxd-card:hover,
.pxd-card:focus-within { border-color: #000; }
.pxd-card__media { position: relative; margin-bottom: 10px; }
.pxd-card__img { display: block; aspect-ratio: 1 / 1; background: #fff; }
.pxd-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pxd-card__media .pxd-badge { position: absolute; top: 0; left: 0; z-index: 1; }
.pxd-req--3 .pxd-card { flex-basis: calc(33.333% - 8px); }
.pxd-card__copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pxd-badge { align-self: flex-start; padding: 3px 6px; background: var(--pxd-red); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.pxd-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; color: #1a1b1d; font-size: 13px; font-weight: 600; line-height: 1.35; }
.pxd-card__name:hover { color: #000; text-decoration: none; }
.pxd-card__compat { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 11px; line-height: 1.45; color: #858585; }
.pxd-card__rule { height: 1px; margin: 10px 0; background: #ededed; }
.pxd-card__bottom { margin-top: auto; }
.pxd-card__price { margin: 0; font-family: var(--px-font-main, "LUXURY AV"), sans-serif; font-size: 14px; line-height: 1.15; color: #000; white-space: nowrap; }
.pxd-card__price .woocommerce-Price-currencySymbol { font-size: 10px; color: #717171; }
.pxd-card__tax { margin: 4px 0 0; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #999; }
.pxd .pxd-card__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 36px; margin-top: 12px; padding: 8px 10px; border: 1px solid #000; border-radius: 0; background: transparent; color: #000; font-family: var(--px-font-main, "LUXURY AV"), sans-serif; font-size: 10px; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.pxd .pxd-card__btn:hover,
.pxd .pxd-card__btn:focus-visible { background: #000; color: #fff; }
.pxd .pxd-card__btn.loading { opacity: .5; pointer-events: none; }
.pxd .pxd-card__btn.added::after,
.pxd .pxd-card .added_to_cart { display: none; }

/* Highlights: side by side, one per row on phones */
.pxd-hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin-right: 0; margin-bottom: 0; margin-left: 0; border: 1px solid var(--pxd-line); }
.pxd-hl__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 12px 14px; border-right: 1px solid var(--pxd-line); }
.pxd-hl__item:last-child { border-right: 0; }
.pxd-hl dd { margin: 0; font-family: var(--px-font-main, "LUXURY AV"), sans-serif; font-size: 15px; line-height: 1.3; color: #000; white-space: nowrap; }
.pxd-hl dt { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #8c8c8c; }

/* Overview */
.pxd-overview p { margin: 0 0 10px; }
.pxd-overview p:last-child { margin-bottom: 0; }

/* Sections */
.pxd .pxd-acc { margin-top: 0; border-top: 1px solid var(--pxd-line); }
.pxd-overview + .pxd-acc, .pxd-hl + .pxd-acc { margin-top: 18px; }
.pxd-acc:last-of-type { border-bottom: 1px solid var(--pxd-line); }
.pxd-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; list-style: none; cursor: pointer; font-family: var(--px-font-main, "LUXURY AV"), sans-serif; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #000; }
.pxd-acc summary::-webkit-details-marker { display: none; }
.pxd-acc summary::after { content: "+"; font-family: "Instrument Sans", Arial, sans-serif; font-size: 18px; line-height: 1; }
.pxd-acc[open] summary::after { content: "\2212"; }
.pxd-acc summary:focus-visible { outline: 1px solid var(--pxd-gold); outline-offset: 2px; }
.pxd-acc__body { padding-bottom: 18px; font-size: 14px; }
.pxd-feat { margin: 0; padding: 0; list-style: none; }
.pxd-feat li { position: relative; margin-bottom: 6px; padding-left: 18px; }
.pxd-feat li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--pxd-gold); }
.pxd-spec { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.pxd-spec th, .pxd-spec td { padding: 8px 0; border-bottom: 1px solid var(--pxd-line); letter-spacing: 0; text-align: left; text-transform: none; vertical-align: top; }
.pxd-spec th { width: 45%; padding-right: 12px; font-weight: 400; color: #8c8c8c; }
.pxd-spec td { color: #000; }
.pxd-spec tr:last-child th, .pxd-spec tr:last-child td { border-bottom: 0; }
.pxd-box { margin: 0; padding: 0; list-style: none; counter-reset: pxd; }
.pxd-box li { position: relative; padding: 6px 0 6px 30px; counter-increment: pxd; }
.pxd-box li::before { content: counter(pxd, decimal-leading-zero); position: absolute; left: 0; top: 8px; font-family: var(--px-font-main, "LUXURY AV"), sans-serif; font-size: 11px; color: var(--pxd-gold); }
.pxd-fit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; }
.pxd-fit b { display: block; font-weight: 600; color: #000; }
.pxd-fit span { font-size: 13px; color: #8c8c8c; }

/* Note */
.pxd-note { padding: 10px 0 10px 14px; border-left: 1px solid var(--pxd-gold); font-size: 13px; line-height: 1.6; color: #555; }
.pxd-note p { display: inline; margin: 0; }
.pxd-note p + p { display: block; margin-top: 8px; }
.pxd-note__label { margin-right: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #000; }

@media (max-width: 767px) {
	.pxd-hl { grid-template-columns: minmax(0, 1fr); }
	.pxd-hl__item { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border-right: 0; }
	.pxd-hl__item + .pxd-hl__item { border-top: 1px solid var(--pxd-line); }
	.pxd-card, .pxd-req--3 .pxd-card { flex-basis: 78%; }
	/* Run the cards to the screen edges (the column has side margins), so the
	   next card slides off the edge instead of looking cut off. */
	.pxd-req__track {
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
		padding-right: calc(50vw - 50%);
		padding-left: calc(50vw - 50%);
		scroll-padding-inline: calc(50vw - 50%);
	}
	.pxd-req__track .pxd-card { scroll-margin-left: 20px; }
	.pxd-req__track::after { content: ""; flex: 0 0 1px; }
}
.pxd-editor-note { margin: 0; padding: 12px 14px; border: 1px dashed var(--pxd-line, #ccc); color: #8c8c8c; font-size: 13px; }

/* Required parts as a list (widget setting): one row per part. */
.pxd-req--list .pxd-req__track { flex-direction: column; gap: 8px; overflow: visible; scroll-snap-type: none; }
.pxd-req--list .pxd-card {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	grid-template-areas: "img badge price" "img name price" "img compat btn";
	grid-template-rows: auto auto 1fr;
	column-gap: 16px;
	align-items: start;
	flex: none;
	min-width: 0;
	padding: 10px 14px 10px 10px;
}
.pxd-req--list .pxd-card__media,
.pxd-req--list .pxd-card__copy { display: contents; }
.pxd-req--list .pxd-card__img { grid-area: img; align-self: center; width: 76px; }
.pxd-req--list .pxd-card__media .pxd-badge { grid-area: badge; position: static; justify-self: start; margin-bottom: 6px; }
.pxd-req--list .pxd-card__name { grid-area: name; }
.pxd-req--list .pxd-card__compat { grid-area: compat; -webkit-line-clamp: 1; }
.pxd-req--list .pxd-card__rule { display: none; }
.pxd-req--list .pxd-card__bottom { grid-area: price; align-self: start; margin: 0; text-align: right; }
.pxd .pxd-req--list .pxd-card__btn { grid-area: btn; align-self: end; justify-self: end; width: auto; min-height: 32px; margin-top: 8px; padding: 7px 12px; }

@media (max-width: 767px) {
	.pxd-req--list .pxd-req__track { margin: 0; padding: 0; }
	.pxd-req--list .pxd-req__track::after { display: none; }
	.pxd-req--list .pxd-card {
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-areas: "img badge" "img name" "img compat" "img price" "btn btn";
		grid-template-rows: auto auto auto 1fr auto;
		column-gap: 12px;
		padding: 10px;
	}
	.pxd-req--list .pxd-card__img { width: 72px; align-self: start; }
	.pxd-req--list .pxd-card__name { -webkit-line-clamp: 2; }
	.pxd-req--list .pxd-card__bottom { align-self: end; margin-top: 6px; text-align: left; }
	.pxd .pxd-req--list .pxd-card__btn { justify-self: stretch; width: 100%; min-height: 36px; margin-top: 10px; }
}
