/* Product page (design/canvas/Night-Product.dc.html). */

.notices .woocommerce-notices-wrapper:not(:empty) {
	padding-top: 22px;
}

.notices .woocommerce-message {
	margin: 0;
}

.crumbs {
	padding-top: 22px;
	font-size: 14px;
	color: var(--muted);
}

.crumbs a {
	color: var(--muted);
}

.crumbs a:hover {
	color: var(--text);
}

.pdp {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 22px;
	padding-bottom: 64px;
}

.pdp__stage {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-feature);
	min-height: 620px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

/* Real proportions, at the design's 320px width. */
img.pdp__cover {
	max-width: min(320px, 72%);
	max-height: 520px;
	border-radius: 3px 8px 8px 3px;
	box-shadow: 0 0 120px rgba(120, 200, 240, 0.22), 30px 40px 60px -20px rgba(0, 0, 0, 0.9);
	transform: perspective(1200px) rotateY(-14deg);
}

.pdp__stage .cover--placeholder {
	width: 60%;
	transform: perspective(1200px) rotateY(-14deg);
}

.pdp__info {
	padding-top: 6px;
}

.pdp__title {
	font-size: clamp(40px, 6vw, 60px);
	line-height: 0.96;
	letter-spacing: -0.05em;
	margin: 20px 0 12px;
}

.pdp__by {
	font-size: 18px;
	color: var(--muted);
	margin: 0 0 26px;
}

.pdp__by a {
	color: var(--text);
}

/* Buy box */
.buybox {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 24px;
}

.buybox__price {
	margin: 0;
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.buybox__price del {
	font-size: 22px;
	color: var(--muted);
	font-weight: 500;
	margin-right: 8px;
}

.buybox__price ins {
	text-decoration: none;
}

.buybox__delivery {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 18px 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 5px var(--surface);
}

.buybox__delivery .icon {
	width: 24px;
	height: 24px;
	color: var(--accent);
	flex: none;
}

.buybox__delivery .muted {
	font-size: 13px;
}

.buybox__to-order {
	margin: 0 0 16px;
	color: var(--gold);
	font-size: 15px;
}

.buybox__oos {
	margin: 0;
	color: var(--muted);
}

.buybox .stock {
	display: none;
}

.buybox form.cart {
	display: flex;
	gap: 10px;
	margin: 0;
}

.buybox .single_add_to_cart_button {
	flex: 1;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--accent-ink);
	font: inherit;
	font-weight: 600;
	font-size: 16px;
	min-height: 52px;
	cursor: pointer;
}

.buybox .single_add_to_cart_button:hover {
	background: var(--accent-hover);
}

.buybox .single_add_to_cart_button.disabled,
.buybox .single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Stripe express checkout buttons, when shown. */
.buybox #wc-stripe-express-checkout-element {
	margin-top: 12px;
}

/* About / Details / Delivery & returns */
.panels {
	margin-top: 26px;
	border-top: 1px solid var(--line);
}

.panel {
	border-bottom: 1px solid var(--line);
}

.panel summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.panel summary::-webkit-details-marker {
	display: none;
}

.panel summary::after {
	content: "+";
	font-weight: 400;
	font-size: 20px;
	line-height: 1;
}

.panel[open] summary::after {
	content: "−";
}

.panel__body {
	margin: -8px 0 0;
	padding-bottom: 18px;
	color: var(--muted);
}

.prose p {
	margin: 0 0 10px;
}

.prose p:last-child {
	margin-bottom: 0;
}

.details-list {
	display: grid;
	gap: 8px;
}

.details-list div {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 12px;
}

.details-list dt {
	color: var(--muted);
}

.details-list dd {
	margin: 0;
	color: var(--text);
}

/* Related books */
.related {
	padding-bottom: 72px;
}

.related__title {
	font-size: clamp(34px, 4.6vw, 46px);
	line-height: 1;
	letter-spacing: -0.045em;
	margin: 0 0 24px;
}

@media (max-width: 760px) {
	.pdp {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.pdp__stage {
		min-height: 420px;
		padding: 32px;
	}

	img.pdp__cover {
		max-height: 360px;
	}
}
