/* Attic Shop. Scoped to body.ac-shop. Fraunces for display, Inter for labels. Mirrors /attic-print/ chapters. */
.ac-shop-root {
	--ink: #111111;
	--ink2: #3a3a3a;
	--muted: #767676;
	--rule: #e7e4df;
	--wash: #faf9f7;
	--brass: var(--ac-brass, #b08d57);
	color: var(--ink);
	background: #fff;
	font-family: var(--ac-font-label);
}
.ac-shop-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: calc(var(--ac-header-clearance) + 40px) 64px 112px;
}

/* Admin-only preview banner (manage_options + preview only). */
.ac-shop-admin {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: baseline;
	margin: 0 0 40px;
	padding: 10px 0 10px 14px;
	border-left: 2px solid var(--brass);
	border-bottom: 1px solid var(--rule);
	font-size: 12px;
	color: var(--ink2);
}
.ac-shop-admin b {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--brass);
}

/* Product: cover left, buy box right. */
.ac-shop-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
	gap: 104px;
	align-items: center;
	min-height: calc(100vh - var(--ac-header-clearance) - 152px);
}
.ac-shop-cover {
	position: relative;
	width: 100%;
	max-width: 520px;
	justify-self: end;
	aspect-ratio: 2548 / 2839; /* 9.5 x 12 in */
	background: var(--wash);
	border: 1px solid var(--rule);
	box-shadow: 0 40px 70px -48px rgba(17, 17, 17, 0.45);
	overflow: hidden;
}
.ac-shop-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}
.ac-shop-plate {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	text-align: center;
}
.ac-shop-plate img {
	width: 56%;
	height: auto;
	opacity: 0.26;
	object-fit: contain;
}
.ac-shop-plate span {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--muted);
}
.ac-shop-plate em {
	font-family: var(--ac-font-display);
	font-style: normal;
	font-weight: 400;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink2);
	max-width: 80%;
}

.ac-shop-eye {
	margin: 0;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}
.ac-shop-eye b {
	font-family: var(--ac-font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--ink);
	margin-right: 10px;
}
.ac-shop-title {
	margin: 20px 0 22px;
	font-family: var(--ac-font-display);
	font-weight: 400;
	font-size: clamp(64px, 6.4vw, 108px);
	line-height: 0.92;
	letter-spacing: -0.025em;
}
.ac-shop-title em {
	font-style: italic;
	font-weight: 400;
}
.ac-shop-title--book {
	font-size: clamp(44px, 4.6vw, 72px);
}
.ac-shop-dek {
	margin: 0;
	max-width: 40ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink2);
}
.ac-shop-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 30px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--rule);
	list-style: none;
	font-size: 12.5px;
	color: var(--muted);
}
.ac-shop-specs b {
	font-family: var(--ac-font-display);
	font-weight: 400;
	font-size: 18px;
	color: var(--ink);
	margin-right: 5px;
}
.ac-shop-ships {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--muted);
}

/* The choice: two hairline rows, one radio group, one button. No JS. */
.ac-shop-form { margin: 34px 0 0; }
.ac-shop-choice {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.ac-shop-choice legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.ac-shop-opt {
	position: relative;
	display: grid;
	grid-template-columns: 18px 1fr auto;
	column-gap: 18px;
	align-items: baseline;
	padding: 20px 22px;
	border: 1px solid var(--rule);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.3s var(--ac-ease-out), background 0.3s var(--ac-ease-out);
}
.ac-shop-opt + .ac-shop-opt { margin-top: -1px; }
.ac-shop-opt:hover { border-color: #cfcac2; z-index: 1; }
.ac-shop-opt:has(input:checked) { border-color: var(--ink); z-index: 2; }
.ac-shop-opt:has(input:focus-visible) { outline: 1px solid var(--brass); outline-offset: 3px; }
.ac-shop-opt input {
	appearance: none;
	-webkit-appearance: none;
	align-self: center;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1px solid var(--ink);
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-content: center;
	cursor: inherit;
}
.ac-shop-opt input::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ink);
	transform: scale(0);
	transition: transform 0.25s var(--ac-ease-out);
}
.ac-shop-opt input:checked::before { transform: scale(1); }
.ac-shop-opt__name {
	font-family: var(--ac-font-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.2;
}
.ac-shop-opt__price {
	font-family: var(--ac-font-display);
	font-weight: 400;
	font-size: 22px;
	white-space: nowrap;
}
.ac-shop-opt__price small {
	font-family: var(--ac-font-label);
	font-size: 12px;
	color: var(--muted);
	margin-left: 4px;
}
.ac-shop-opt__price.is-muted { color: var(--muted); }
.ac-shop-opt__note {
	grid-column: 2 / -1;
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}
.ac-shop-opt__invite {
	grid-column: 2 / -1;
	margin: 8px 0 0;
	font-family: var(--ac-font-display);
	font-style: italic;
	font-size: 15px;
	color: var(--ink2);
}
.ac-shop-opt__state {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}
.ac-shop-opt.is-off { cursor: default; background: var(--wash); }
.ac-shop-opt.is-off:hover { border-color: var(--rule); }
.ac-shop-opt.is-off input { border-color: #cfcac2; }
.ac-shop-opt.is-off .ac-shop-opt__name { color: var(--muted); }

/* Buttons: same look as .ac-print-ch-pill--dark. */
.ac-shop-buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-family: var(--ac-font-label);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.3s var(--ac-ease-out);
}
.ac-shop-buy:hover,
.ac-shop-buy:focus-visible { background: #000; }
.ac-shop-buy:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }
.ac-shop-buy--block {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin-top: 22px;
}
.ac-shop-buy--line {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--ink);
}
.ac-shop-buy--line:hover,
.ac-shop-buy--line:focus-visible { background: var(--ink); color: #fff; }
.ac-shop-buy.is-disabled,
.ac-shop-buy.is-soldout,
.ac-shop-buy.is-pending,
.ac-shop-buy[disabled] {
	background: var(--wash);
	color: var(--muted);
	border: 1px solid var(--rule);
	cursor: default;
}
.ac-shop-arrow {
	display: inline-block;
	position: relative;
	width: 16px;
	height: 1px;
	background: currentColor;
}
.ac-shop-arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: -3px;
	width: 7px;
	height: 7px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}
.ac-shop-fine {
	margin: 16px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}
.ac-shop-alt {
	display: inline-block;
	margin-top: 14px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--rule);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
}
.ac-shop-alt:hover,
.ac-shop-alt:focus-visible { border-bottom-color: var(--ink); }

/* Index: books row (only when books are configured). */
.ac-shop-books {
	margin-top: 112px;
	padding-top: 22px;
	border-top: 1px solid var(--ink);
}
.ac-shop-books__hd {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 36px;
}
.ac-shop-books__hd h2 {
	margin: 12px 0 0;
	font-family: var(--ac-font-display);
	font-weight: 400;
	font-size: clamp(40px, 3.6vw, 56px);
	line-height: 1;
	letter-spacing: -0.02em;
}
.ac-shop-books__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ac-shop-book__img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	background: var(--wash);
	border: 1px solid var(--rule);
	overflow: hidden;
}
.ac-shop-book__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ac-shop-book h3 {
	margin: 18px 0 6px;
	font-family: var(--ac-font-display);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.2;
}
.ac-shop-book__row {
	display: flex;
	gap: 14px;
	align-items: baseline;
}
.ac-shop-book__price {
	font-family: var(--ac-font-display);
	font-size: 17px;
}
.ac-shop-book__label {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--brass);
}
.ac-shop-book .ac-shop-ships { margin-top: 6px; font-size: 12px; }
.ac-shop-book form { margin-top: 16px; }

@media (max-width: 1100px) {
	.ac-shop-product { gap: 64px; }
	.ac-shop-books__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ac-shop-wrap { padding: calc(var(--ac-header-clearance) + 20px) 20px 72px; }
	.ac-shop-admin { margin-bottom: 24px; }
	.ac-shop-product {
		grid-template-columns: 1fr;
		gap: 28px;
		min-height: 0;
	}
	.ac-shop-cover { justify-self: center; max-width: 232px; }
	.ac-shop-title { font-size: 60px; margin: 16px 0 16px; }
	.ac-shop-title--book { font-size: clamp(44px, 4.6vw, 72px); }
	.ac-shop-dek { font-size: 15px; }
	.ac-shop-specs { margin-top: 22px; }
	.ac-shop-form { margin-top: 26px; }
	.ac-shop-opt { padding: 18px 16px; column-gap: 14px; }
	.ac-shop-opt__name,
	.ac-shop-opt__price { font-size: 19px; }
	.ac-shop-opt__price { text-align: right; }
	.ac-shop-opt__price small { display: block; margin: 2px 0 0; }
	.ac-shop-books { margin-top: 72px; }
	.ac-shop-books__grid { gap: 32px 16px; }
	.ac-shop-book h3 { font-size: 17px; }
	.ac-shop-book .ac-shop-buy { width: 100%; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-shop-root * { transition: none !important; }
}
