/**
 * Single product page — the shell.
 *
 * Handoff section L. The theme had NO single-product styles at all, which is
 * why this route looked unfinished: WooCommerce's own stylesheet was the only
 * thing describing it, so the page ran edge to edge and Add to cart was Woo's
 * default purple (#7f54b3, measured in the browser — no theme rule was even in
 * the cascade to lose to it).
 *
 * The split is the same one the rest of the site uses: this file owns the page
 * — container, columns, breadcrumb, gallery, and the Woo buttons — and the
 * studio's own configurator internals stay in the plugin's atomic-theme.css,
 * which exists for exactly that and is already enqueued here.
 */

/* ── Container ────────────────────────────────────────────────────────────── */
/*
 * 1400px, the width the category and promo routes use. Woo's div.product is a
 * bare block, so without this the configurator sat flush against the right edge
 * of the window — measured at x=832 running to 1600 on a 1600px viewport, with
 * no gutter at all.
 */
/*
 * ─── 42px OF NOTHING BETWEEN THE CRUMB AND THE PRODUCT ───────────────────────
 *
 * Three separate spacings stacked into one gap and none of them looked wrong
 * on its own: 6px of padding under the breadcrumb text, WooCommerce's own
 * `margin: 0 0 1em` on the same element (12.5px), and 24px of padding on top
 * of the product. 42.5px between the last word of "Home / Custom Signs" and
 * the first pixel of the thing being sold.
 *
 * The breadcrumb keeps its space ABOVE — that one separates it from the
 * header and is doing a job — and gives up both of its trailing ones. The
 * product's own top padding is then the whole gap, set once, where it can be
 * read as a number rather than an accident.
 */
.single-product .woocommerce-breadcrumb {
	padding-block: 22px 0;
	margin-bottom: 0;
	font-size: var(--text-xs); color: var(--color-text-muted);
}
.single-product .woocommerce-breadcrumb a { color: var(--color-text-muted); }
.single-product .woocommerce-breadcrumb a:hover { color: var(--atomic-blue); }

/* ── Two columns ──────────────────────────────────────────────────────────── */
.single-product div.product {
	padding-bottom: 56px;
}
/*
 * The widths and floats have to be undone explicitly.
 *
 * woocommerce.css sets `.woocommerce div.product div.images { width: 48%;
 * float: left }` and the same for .summary. Inside a grid the float is ignored
 * but the width is not — 48% OF THE GRID COLUMN — so the first attempt at this
 * produced a 274px gallery and a 321px summary inside a 1400px page, with the
 * product title wrapping onto three lines and half the row empty.
 *
 * body.single-product.woocommerce is (0,3,2) against Woo's (0,3,1), so this
 * wins on specificity rather than on load order, which is not something this
 * theme gets to rely on for a stylesheet it does not enqueue.
 */
body.single-product.woocommerce div.product > .as-sgnp-gallery,
body.single-product.woocommerce div.product > .summary {
	width: auto; float: none; margin: 0;
}
/* Anything else Woo prints — tabs, related, upsells — spans both. */
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .upsells,
.single-product div.product > .product_meta { grid-column: 1 / -1; }

.single-product .summary .woocommerce-product-details__short-description p {
	margin: 0 0 14px;
}
.single-product .summary .product_meta { font-size: var(--text-xs); color: var(--color-text-muted); }

/*
 * ─── ADD TO CART ──────────────────────────────────────────────────────────
 *
 * Woo ships `.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
 * button.button`, which is what made this button purple (#7f54b3). :where()
 * contributes nothing, so that lands at (0,2,1).
 *
 * `.single-product button.single_add_to_cart_button` is ALSO (0,2,1) — an exact
 * tie, decided by load order, and woocommerce.css is enqueued after this file.
 * So the first version of this rule sat in the cascade doing nothing, which is
 * indistinguishable from not having written it. Leading with body. takes it to
 * (0,3,2) and settles it on specificity instead of on who happens to load last.
 *
 * Note the other two selectors that looked plausible and match nothing:
 * `.woocommerce .single-product` and `.single-product .woocommerce` both want a
 * descendant, and those two classes are on the same element — body.
 */
body.woocommerce.single-product button.single_add_to_cart_button {
	margin: 0;
	padding: 16px 24px;
	font-size: var(--text-body);
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}
body.woocommerce.single-product button.single_add_to_cart_button:hover { background: #159ac6; }
body.woocommerce.single-product button.single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }

/* Woo's quantity box is not used here — the studio's tier list is the quantity. */
.single-product .summary form.cart > .quantity { display: none; }

@media (max-width: 900px) {
	.single-product .woocommerce-breadcrumb,
	.single-product div.product { padding-inline: 24px; }
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
	.single-product div.product > .as-sgnp-gallery,
	.single-product div.product > .summary { grid-column: 1; }
	.single-product .summary .product_title { font-size: var(--text-h2); }
}


/* ═══════════════════════════════════════════════════════════════════════════
 * Handoff section L — Custom Cut Stickers Product Page v2
 *
 * `~/atomic-corpus/design handoff/design_handoff_atomic_signs 2/mocks/
 *  Custom Cut Stickers Product Page v2.dc.html`
 *
 * Every value below is measured off that mock. Its palette turned out to be the
 * theme's palette exactly — #2D384B, #F5F8FA, #E3F6FC, #555B68, #9AA0AD,
 * #1AB0E0, #2D3445 are --color-text, --color-surface-alt, --color-surface-tint,
 * --color-text-muted, --color-placeholder, --atomic-blue, --atomic-dark — so
 * this is written in tokens and there is not a raw hex in it.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* The mock's page is 1160 wide, narrower than the 1280 the rest of the site
   uses. Kept as the mock has it: this route is a two-column reading task, and
   the wider container pushed the configurator away from the gallery. */
/* ── The two columns ──────────────────────────────────────────────────────── */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(340px, 1fr) minmax(420px, 1fr);
	gap: var(--space-12);
	align-items: start;
	/* The entire gap under the breadcrumb — see the note on it above. */
	padding-block: 20px 56px;
}
.single-product div.product > .as-sgnp-gallery { grid-column: 1; margin: 0; width: auto; }
.single-product div.product > .summary { grid-column: 2; margin: 0; width: auto; float: none; display: flex; flex-direction: column; gap: var(--space-6); }
/* Anything Woo still prints inside the product element spans both columns.
   The theme's own bands are hooked outside it — see inc/product-page.php. */
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .upsells { grid-column: 1 / -1; }

/*
 * ─── THE GALLERY COLUMN FOLLOWS THE CONFIGURATOR DOWN ────────────────────────
 *
 * The right column on a sticker page is a configurator plus the whole studio,
 * so it routinely runs to twice the gallery's height; without this the customer
 * scrolls past the photograph in the first screen and configures the rest of
 * the product beside white space.
 *
 * `align-self: start` matters as much as the position: a grid item stretches to
 * its row by default, and an element as tall as its track has nowhere to stick.
 *
 * Scoped to the sticker route. Whether a gallery sticks is a decision each
 * route should make — route-sign-product.css makes it for the banner route and
 * declines it for the rest — rather than something every product page inherits
 * from whoever wrote this rule first.
 *
 * WHAT USED TO BE HERE: six rules restyling WooCommerce's stock FlexSlider
 * gallery, because this route had never been moved onto the theme's own. They
 * were written at `.single-product .woocommerce-product-gallery …` (0,3,1)
 * against Woo's (0,3,2) / (0,3,3) / (0,4,4) and lost: the thumbnails rendered
 * at 30px, which is 25% of their grid track. The component is
 * css/product-gallery.css now and owns its own markup, so there is no
 * selector fight left to lose.
 */
body.asp-sticker-product.single-product div.product > .as-sgnp-gallery {
	position: sticky; top: 40px; align-self: start;
}

/*
 * No photography, no empty column. The gallery renders nothing when a product
 * has no images, so the summary takes the full width rather than sitting beside
 * a 340px hole that reads as a page which failed to load. The sign route states
 * the same thing for itself in route-sign-product.css.
 */
body.asp-sticker-product.single-product div.product.as-sgnp--nogallery > .summary {
	grid-column: 1 / -1;
}

/* ── Title block ──────────────────────────────────────────────────────────── */

/*
 * ─── THE HERO, THE SAME ON EVERY PRODUCT ─────────────────────────────────────
 *
 * Eyebrow, title, lede: one treatment for the whole shop, so a customer moving
 * from a banner to a board to a custom sign is reading the same page each time.
 * The sign route used to carry its own copy of the title rule at a different
 * tracking, which meant two products a click apart set their headline
 * differently for no reason anybody chose.
 */
/*
 * The wrapper the design specifies: flex column, 8px, and the children carry
 * no margins of their own. `.summary` is itself a flex column at gap 22px, so
 * anything left on a margin here is added to that, not instead of it.
 */
.single-product .summary .as-pdp__hero {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}
.single-product .summary .as-pdp__hero > * { margin: 0; }
.single-product .summary .as-pdp__hero .woocommerce-product-details__short-description p { margin: 0; }

.single-product .summary .as-pdp__hero-eyebrow,
.as-pdp-copy__eyebrow {
	margin: 0;
	color: var(--atomic-blue);
}
/* The product headline's fallback place: under the name, when there is no card (2a). */
.single-product .summary .as-pdp__hero-headline {
	margin: 0;
	font-size: clamp(var(--text-body-lg), 1.5vw, var(--text-h3)); font-weight: 600; line-height: var(--leading-snug);
	color: var(--color-text);
}

.single-product .summary .product_title {
	margin: 0;
	font-size: var(--text-stat); font-weight: 800; line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: var(--atomic-dark);
}

.single-product .summary .woocommerce-product-details__short-description {
	font-size: var(--text-body); line-height: 1.6; color: var(--color-text-muted);
}
.single-product .summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* ── Group labels ─────────────────────────────────────────────────────────────
 * These were numbered steps — "1 · STICKER SHAPE" — drawn by a CSS counter so
 * that a product with no finishing choice left no hole in the sequence. The
 * Split 5 handoff labelled its groups plainly, and the custom-cut-stickers-
 * standard handoff (2026-10-06) did the same for the single-sticker page, so
 * the counter is gone rather than kept running and hidden. The colour is the
 * Section Y recipe's (studio-4a.css: muted, on every sticker product). */
.asp-pg-section { display: flex; flex-direction: column; gap: var(--space-2-5); }
/* The group labels' colour is the Section Y recipe's (studio-4a.css); the
   uploader heading keeps the theme's text colour. */
.asp-slot-strip__title {
  color: var(--color-text);
}

/* ── Options ──────────────────────────────────────────────────────────────────
 * The mock gives each of the three a different card, not one pill reused:
 *
 *   shape   radius 14, padding 16 12, column, centred — 24px OUTLINE icon
 *           above the label
 *   size    radius 10, padding 11 20, 14px/700, one line
 *   finish  radius 12, padding 12 18, column, LEFT aligned — name over a
 *           one-line note
 *
 * And the selected state is a 2px blue border on WHITE. Not a tinted fill:
 * the tint is what the mock uses for information panels and for the chosen row
 * in the quantity table, and spending it on every selected option as well left
 * three tinted blocks stacked down the column with nothing to distinguish the
 * live selection from a note. */
.asp-pg-option-btns { display: flex; gap: var(--space-2-5); flex-wrap: wrap; align-items: stretch; }

.asp-pg-option-btn {
	display: flex; align-items: center; justify-content: center; gap: var(--space-2);
	padding: 11px 20px; min-height: var(--tap-min);
	border: 1.5px solid rgba(45, 56, 75, 0.2); border-radius: var(--radius-sm);
	background: var(--color-surface); color: var(--color-text-muted);
	font: inherit; font-size: var(--text-sm); font-weight: 700; line-height: 1.25;
	white-space: nowrap; cursor: pointer;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.asp-pg-option-btn:hover:not(:disabled) { border-color: var(--atomic-blue); }
.asp-pg-option-btn--active {
	border: 2px solid var(--atomic-blue);
	background: var(--color-surface);
	color: var(--atomic-dark);
	/* The border grows 1.5 → 2px; absorb it so the row does not shift. */
	padding: 10.5px 19.5px;
}
.asp-pg-option-btn--locked, .asp-pg-option-btn:disabled { opacity: .55; cursor: default; }

/* Shape — the tall centred card with the icon on top.
 *
 * Led with `.single-product .asp-pg-shape-btns` deliberately. The plugin sets
 * `flex-direction: row` at `.asp-pg-shape-btns .asp-pg-option-btn` — (0,2,0),
 * and in TWO of its stylesheets — which outranks a lone `.asp-pg-option-btn--card`
 * (0,1,0) no matter that this file loads afterwards. Load order only settles
 * ties. Matching at (0,2,0) would tie and win on order, but a rule that wins by
 * a tiebreak is one stylesheet-reorder away from silently doing nothing, and
 * that failure looks identical to never having written it. (0,3,0) wins
 * outright. */
.asp-pg-shape-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.single-product .asp-pg-shape-btns .asp-pg-option-btn--card {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
}
.asp-pg-option-btn--card .asp-pg-shape-icon {
	display: flex; color: var(--atomic-blue);
	/* The plugin's own stylesheet draws these as CSS boxes; this route supplies
	   a real SVG instead, so the box styling has to be cleared. */
	width: auto; height: auto; background: none; border: 0; border-radius: 0;
}

/* Finish, Material and "How should they arrive?" are drawn by the Section Y
   recipe in the plugin's studio-4a.css since 2026-10-06 (the option groups on
   every sticker product). Studio 4A is the build; its stylesheet is the only
   recipe for these controls and this file carries no fallback for them.
   .asp-pg-option-btn__label stays for the shape cards. */
.asp-pg-option-btn__label { font-weight: 700; font-size: var(--text-sm); }

/* ── The quantity table ───────────────────────────────────────────────────────
 * Drawn by pricing.js and styled by the Section Y recipe in the plugin's
 * studio-4a.css (one bordered box, a radio row per tier) since 2026-10-06.
 * This file keeps only what that recipe does not say. */
.asp-qty__n, .asp-qty__each, .asp-qty__total { font-variant-numeric: tabular-nums; }
.asp-qty__more-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }

/* ── Order total panel ────────────────────────────────────────────────────── */
/*
 * `.asp-live-price` and `#asp-pg-total` were this panel. Centro_Price_Line is
 * now — and #asp-pg-total is still the id the pricing JS writes into, so it
 * still exists, but an ID selector is (1,0,0) and silently outranked
 * .as-priceline__total: the sticker and decal pages kept a 30px figure while
 * every other route got the handoff's 34px. Sizing the figure is the
 * component's business; the id is a JS handle and nothing else.
 */
.asp-pg-price {
	background: var(--color-surface-alt); border-radius: var(--radius-lg);
	padding: 22px 24px; display: flex; flex-direction: column; gap: var(--space-3);
}
.asp-live-price__line { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); }


.single-product .summary .single_add_to_cart_button.button {
	font-weight: 800;
	font-size: var(--text-body);
	padding: 17px 0;
}
.single-product .summary .single_add_to_cart_button.button:hover { background: var(--atomic-dark); }

/* ═══ Below the configurator ═══════════════════════════════════════════════ */
.as-pdp__eyebrow {
	margin: 0 0 6px;
	color: var(--atomic-blue);
}

/* ── Trust bar ────────────────────────────────────────────────────────────── */
.as-pdp-trust { background: var(--atomic-dark); color: var(--color-text-invert); }
.as-pdp-trust__inner { padding-block: 34px; }
.as-pdp-trust__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5); }
/* Only when the "This sticker" card follows (sticker product copy, 2a). */
.as-pdp-trust__kicker { margin: 0 0 var(--space-4); color: var(--atomic-blue); }
.as-pdp-trust__item { display: flex; flex-direction: column; align-items: center; gap: var(--space-2-5); text-align: center; }
.as-pdp-trust__icon { color: var(--atomic-blue); display: flex; }
.as-pdp-trust__label { font-weight: 700; font-size: var(--text-sm); line-height: 1.35; }

/* ── "This sticker" — the product's own copy (design/handoffs/sticker-product-copy, 2a) ── */
/* The section is navy for its first 64px, so the card rises out of the strip. */
.as-pdp-copy {
	background: linear-gradient(var(--atomic-dark) 0 var(--space-16), var(--color-surface) var(--space-16));
	container-type: inline-size;
}
.as-pdp-copy__wrap { padding-bottom: clamp(8px, 1cqw, 16px); }
.as-pdp-copy__card {
	background: var(--color-surface);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card-hover);
	padding: clamp(22px, 3cqw, 44px);
	display: flex; flex-direction: column; gap: clamp(22px, 2.6cqw, 36px);
}
.as-pdp-copy__top {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(22px, 3.5cqw, 56px); align-items: start;
}
.as-pdp-copy__intro { display: flex; flex-direction: column; gap: var(--space-2-5); min-width: 0; }
.as-pdp-copy__title {
	margin: 0;
	font-size: clamp(24px, 2.4cqw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: var(--tracking-tight);
	color: var(--atomic-dark); max-width: 26ch; text-wrap: balance;
}
.as-pdp-copy__desc { display: flex; flex-direction: column; gap: var(--space-3); max-width: 64ch; }
.as-pdp-copy__desc > * { margin: 0; }
.as-pdp-copy__desc p,
.as-pdp-copy__desc li { font-size: var(--text-body); line-height: 1.7; color: var(--color-text); text-wrap: pretty; }
.as-pdp-copy__desc ul,
.as-pdp-copy__desc ol { padding-left: 1.2em; }

/* The spec sheet: product specifications, never a review (README). An .as-card; only its corners and padding are its own. */
.as-pdp-copy__spec {
	border-radius: var(--radius-lg);
	padding: clamp(18px, 2cqw, 26px);
	display: flex; flex-direction: column; gap: var(--space-4-5); min-width: 0;
}
.as-pdp-copy__spec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-1-5) var(--space-4); flex-wrap: wrap; }
.as-pdp-copy__spec-title { margin: 0; color: var(--atomic-dark); }
.as-pdp-copy__spec-note { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.as-pdp-copy__rated {
	margin: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-4) var(--space-8);
}
.as-pdp-copy__rating { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-2) var(--space-2-5); }
.as-pdp-copy__rating dt { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.as-pdp-copy__rating dd { display: contents; }
.as-pdp-copy__value { font-size: var(--text-body); font-weight: 800; color: var(--atomic-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-pdp-copy__value span { font-size: var(--text-label); font-weight: 600; color: var(--color-text-muted); }
.as-pdp-copy__meter { grid-column: 1 / -1; display: flex; gap: 3px; }
/* Ten segments; the last one part-filled for a value like 95. --as-fill is set per segment. */
.as-pdp-copy__meter span {
	flex: 1; height: 7px; border-radius: 2px;
	background: linear-gradient(90deg, var(--atomic-blue) var(--as-fill), var(--color-border-soft) var(--as-fill));
}
.as-pdp-copy__included {
	display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-2-5);
	border-top: 1px solid var(--color-border-soft); padding-top: var(--space-3-5);
}
.as-pdp-copy__included-title { margin: 0; color: var(--color-text-muted); }
/* A long label wraps inside the sheet, as the mock's chip does; .as-chip itself never wraps. */
.as-pdp-copy__chip { color: var(--atomic-dark); white-space: normal; }
.as-pdp-copy__chip svg { color: var(--atomic-blue); flex: none; }

.as-pdp-copy__features {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: clamp(20px, 2.4cqw, 28px) clamp(24px, 3cqw, 40px);
}
.as-pdp-copy__feature { display: flex; flex-direction: column; gap: var(--space-1-5); border-top: 2px solid var(--atomic-dark); padding-top: var(--space-3-5); }
.as-pdp-copy__num { font-size: var(--text-sm); font-weight: 800; color: var(--atomic-blue); }
.as-pdp-copy__feature-title { margin: 0; font-size: var(--text-body); font-weight: 700; line-height: 1.3; color: var(--atomic-dark); }
.as-pdp-copy__feature-text { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--color-text-muted); }

/* ── Info accordion ───────────────────────────────────────────────────────── */
.as-pdp-info { padding-block: 56px; }
.as-pdp-info__grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: var(--space-12); align-items: start; }
.as-pdp-info__aside { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: 20px; }
.as-pdp-info__title { margin: 0; font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.as-pdp-info__aside .as-slot { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; }

/* The accordion's rows (.as-pdp-info__item, __mark, __a) are in primitives.css
   — the category FAQ wears the same recipe (Dennis, 2026-11-14). */

/* ── Reviews ──────────────────────────────────────────────────────────────── */
.as-pdp-reviews { background: var(--color-surface-alt); padding-block: 56px; }
.as-pdp-reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: 26px; }
.as-pdp-reviews__title { margin: 0; font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.02em; }
.as-pdp-reviews__cta { display: flex; gap: var(--space-2-5); align-items: center; margin: 0; font-size: var(--text-sm); font-weight: 700; }
.as-pdp-reviews__featured { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4-5); align-items: start; margin-bottom: 18px; }
.as-pdp-reviews__compact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3-5); }
.as-pdp-review {
	background: var(--color-surface); border-radius: var(--radius-lg); padding: 26px;
	display: flex; flex-direction: column; gap: var(--space-3);
}
.as-pdp-review--compact { border-radius: var(--radius-md); padding: 18px; gap: var(--space-2); }
.as-pdp-review__text { font-size: var(--text-sm); line-height: 1.65; color: var(--color-text-muted); }
.as-pdp-review--compact .as-pdp-review__text { font-size: var(--text-sm); line-height: 1.55; }
.as-pdp-review__text p { margin: 0 0 10px; }
.as-pdp-review__text p:last-child { margin-bottom: 0; }
.as-pdp-review__who { margin: auto 0 0; font-size: var(--text-xs); font-weight: 700; color: var(--color-text); }
.as-pdp-stars { color: var(--atomic-blue); font-size: var(--text-body); letter-spacing: 2px; }
.as-pdp-stars span:not(.is-full):not(.is-half) { opacity: .25; }
.as-pdp-stars .is-half { opacity: .55; }

/* ── Related ──────────────────────────────────────────────────────────────── */
.as-pdp-related { padding-block: 52px; }
.as-pdp-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: 22px; }
.as-pdp-related__title { margin: 0; font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.02em; }
.as-pdp-related__all { font-size: var(--text-sm); font-weight: 700; color: var(--atomic-blue); }
.as-pdp-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }

/* ── Narrow ───────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }

	/*
	 * Put BOTH children back in column 1.
	 *
	 * The 900px block above already does this, but section L below it re-asserts
	 * `.summary { grid-column: 2 }` unconditionally at the same specificity —
	 * and a media query adds none, so the later rule won at every width. The
	 * summary then sat in an *implicit* second column, auto-sized to its content;
	 * the explicit `1fr` first column was left with 0px and the gallery collapsed
	 * to nothing. The product image was in the DOM at full size the whole time,
	 * in a zero-width track.
	 *
	 * This block is after section L, so it settles the tie by order.
	 */
	.single-product div.product > .as-sgnp-gallery,
	.single-product div.product > .summary { grid-column: 1; }

	/* Same specificity as the sticky rule above, or the release loses to it. */
	body.asp-sticker-product.single-product div.product > .as-sgnp-gallery { position: static; }
	.as-pdp-info__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
	.as-pdp-info__aside { position: static; }
	.as-pdp-reviews__featured, .as-pdp-reviews__compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.as-pdp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.as-pdp-trust__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.single-product .woocommerce-breadcrumb,
	.single-product div.product,
	.as-pdp__wrap { padding-inline: 24px; }
	.single-product .summary .product_title { font-size: var(--text-h2); }
	.as-pdp-info__title, .as-pdp-reviews__title, .as-pdp-related__title { font-size: var(--text-h2); }
	.as-pdp-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.as-pdp-reviews__featured, .as-pdp-reviews__compact, .as-pdp-related__grid { grid-template-columns: minmax(0, 1fr); }
	/* The quantity table keeps all five columns at 420: the Split 5 recipe's
	   fixed template (studio-4a.css, Section Y) fits "$0.64 ea" in 72px. */
}

/* ── Total panel, to the mock's arrangement ───────────────────────────────── */
.asp-live-price__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.asp-live-price__label {
  color: var(--color-text-muted);
}
/* The reassurance line under the button is gone — Dennis, 2026-09-06. */

/* ── Unpair Material and Finish on this route ─────────────────────────────────
 *
 * Both plugin stylesheets pair those two sections side by side at 50% width
 * above 560px — `display: inline-block; width: calc(50% - 4px)`, inside a
 * @media block, which is why a scan of top-level rules did not turn it up.
 *
 * The mock makes Finish its own full-width numbered step, and on a product with
 * a single base there is no Material section to pair with anyway: Finish sat at
 * half width with empty space beside it and its cards squeezed to 114px, which
 * is what made "Matte laminate" wrap.
 *
 * Led with `.single-product .asp-pg-section` to reach (0,3,0) and beat the
 * plugin's `.asp-pg-section.asp-pg-section--finish` (0,2,0) outright rather than
 * tie it. The !important reverses are matching the plugin's own !important on
 * those paddings — not reaching for force, just meeting it.
 *
 * Scoped to the product route on purpose: the studio modal reuses these classes
 * and its two-up pairing there is its own layout decision. */
.single-product .asp-pg-section.asp-pg-section--material,
.single-product .asp-pg-section.asp-pg-section--finish {
	display: flex; width: auto; vertical-align: baseline;
	padding-left: 0 !important; padding-right: 0 !important;
	border-right: 0; border-bottom: 0;
}

/* ═══ Density pass ═══════════════════════════════════════════════════════════
 *
 * Measured against the mock, every control was running long:
 *
 *   size chip    46px   mock 40      qty header  40px  mock 33
 *   finish card  62px   mock 48      qty row     47px  mock 40
 *
 * (The size, turnaround and quantity lines of this pass went on 2026-10-06
 * when those controls moved to the Section Y recipe in studio-4a.css.)
 *
 * But the controls were the smaller half. The plugin gives every
 * .asp-pg-section 20px of padding top AND bottom, and this route adds a 22px
 * column gap between them — 62px of dead space between one control and the
 * next, seven times down the page. The right column came out 1924px against a
 * 900px gallery.
 *
 * The hairline separators stay; it is the padding around them that goes. */
.single-product .asp-pg-section {
	padding-top: 0 !important; padding-bottom: 0 !important;
	border-bottom: 0;
}
/*
 * No rules between the settings.
 *
 * I added those last pass, moving the plugin's border onto the gap. The mock
 * has none at all — the steps are separated by space and by their numbered
 * labels, and a hairline under every one of seven controls reads as a table.
 */
.single-product .summary .asp-pg-section + .asp-pg-section {
	border-top: 0; padding-top: 22px !important;
}
.single-product .summary { gap: 0; }

/*
 * A label belongs to the control BELOW it.
 *
 * Measured: 19px above, 23–27px below — so every step title sat nearer the
 * section it had nothing to do with than the control it named. The plugin puts
 * margins on both the label and the first control, which is where the extra
 * came from; zeroed here so the section's own 8px gap is the whole distance.
 */
.single-product .asp-pg-label { line-height: 1.2; margin: 0 0 0 !important; }
.single-product .asp-pg-section { gap: var(--space-2); }
.single-product .asp-pg-section > .asp-pg-label + * { margin-top: 0 !important; }

/* Controls, to the mock's own numbers. */
.single-product .asp-pg-option-btn { padding: 11px 18px; min-height: 0; }
.single-product .asp-pg-option-btn--active { padding: 10px 17px; }
.single-product .asp-pg-shape-btns .asp-pg-option-btn--card { padding: 12px 10px; gap: var(--space-1-5); }
.single-product .asp-pg-shape-btns .asp-pg-option-btn--card.asp-pg-option-btn--active { padding: 11px 9px; }


/* The total panel's padding and the second override of #asp-pg-total went with
   .asp-live-price — see the note above. Both are Centro_Price_Line's now. */


/* ── Add to cart, inside the total panel ──────────────────────────────────────
 * The mock builds the button into the order-total block rather than leaving it
 * as the next thing down the page. WooCommerce prints it after everything this
 * plugin renders, so route-product.js moves it in; these rules are what it
 * looks like once it is there. */
.single-product .asp-live-price .single_add_to_cart_button.button {
	width: 100%; margin: 4px 0 0;
}

/* ── Split drop targets ───────────────────────────────────────────────────────
 * One target per design the quantity buys. The single dropzone stays for a
 * one-design order; above that it is replaced, because a lone "drop your
 * artwork" box on an order that holds three designs says nothing about where
 * the other two go. */
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-strip__list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-2-5);
	overflow: visible;
}
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-cell { display: block; }
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile {
	flex-direction: column; width: 100%; gap: var(--space-2);
	border: 2px dashed var(--color-border); border-radius: var(--radius-md);
	background: var(--color-surface-alt); padding: 18px 10px; text-align: center;
}
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile--active,
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile:hover:not(:disabled) {
	border-color: var(--atomic-blue); background: var(--color-surface);
}
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile__thumb { width: 56px; max-width: 56px; }
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile__label { font-size: var(--text-sm); }
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile__status { font-size: var(--text-label); }
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-strip__head { margin-bottom: 10px; }

/* ── One uploader, one look ───────────────────────────────────────────────────
 *
 * Below the split threshold the page showed the plugin's dropzone — 10px
 * radius, its own border colour, an orange hover — and above it, target cards
 * at 14px radius in the theme's palette. Changing the quantity changed the
 * uploader's appearance, which reads as the page swapping controls rather than
 * dividing the one it already had.
 *
 * The shell is defined once here and applied to both, so the only thing the
 * quantity changes is how many of them there are. */
.asp-pg-upload-section .asp-pg-dropzone,
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile {
	/* Matched to the split staging card's upload tile (.asp-stage__source,
	   studio-4a.css) — same border weight, same surface, same radius, so the
	   single product and the bundle read as one uploader family. */
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	padding: 16px 12px;
	text-align: center;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.asp-pg-upload-section .asp-pg-dropzone:hover,
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile:hover:not(:disabled),
.asp-pg-upload-section .asp-slot-strip--targets .asp-slot-tile--active {
	/* Was an orange tint from the studio's own accent; the rest of this route
	   is blue, and the two uploaders disagreed with each other as well. */
	border-color: var(--atomic-blue);
}
/* The drag state matches the staging tile's .is-drag: heavier blue and the
   pale fill, so “this will take your file” looks the same on both. */
.asp-pg-upload-section .asp-pg-dropzone.asp-pg-dropzone--active {
	border: 2px solid var(--atomic-blue);
	background: #f0fafe;
	padding: 15.5px 11.5px;
}

/* Matching type, so the wording changes between the two states but the voice
   does not. */
.asp-pg-upload-section .asp-pg-dropzone__icon {
	margin: 0 auto 8px; color: var(--atomic-blue);
	width: 22px; height: 22px;   /* the staging tile's icon size */
}
.asp-pg-upload-section .asp-pg-dropzone__text {
	font-size: var(--text-sm); font-weight: 700; color: var(--atomic-blue); margin: 0 0 2px;
}
.asp-pg-upload-section .asp-pg-dropzone__hint {
	font-size: var(--text-label); font-weight: 600; color: var(--color-text-muted); margin: 8px 0 0;
}

/*
 * A refused upload, said where the customer was looking.
 *
 * Replaces a native alert(), which froze the page until dismissed and put the
 * shop's explanation in browser chrome — where it reads as the browser having
 * failed rather than the file being unusable. It was a fair trade while upload
 * errors were rare; the megapixel ceiling makes "too big to work with" a
 * routine answer, and a routine answer belongs on the page.
 *
 * Here rather than in the plugin's own stylesheet because this route restyles
 * the dropzone entirely — plugin-side rules lose to these on specificity, which
 * is exactly how the first attempt at this went unseen.
 *
 * The text carries the pixel size to save at, so it is left at full size and
 * full contrast: the border does the signalling, and nothing shrinks or greys
 * the one line the customer has to act on.
 */
.asp-pg-upload-section .asp-pg-dropzone.asp-pg-dropzone--error {
	border: 1.5px solid #f3c9c5;
	background: #fdf3f2;
}
.asp-pg-upload-section .asp-pg-dropzone--error .asp-pg-dropzone__text {
	color: #8a2018;
	margin-bottom: 6px;
}

/*
 * The way out, next to the reason.
 *
 * Offered only where the server said it can resize, so this is never a button
 * that fails on press. Deliberately quieter than Browse files: the customer
 * chose their file at the size they chose it, and being handed a smaller one
 * is a concession worth reading before taking, not the loud default.
 */
.asp-pg-upload-section .asp-pg-fix-btn {
  display: inline-block;
  margin: 2px 0 10px;
  border: 1.5px solid #c98a83;
  background: transparent;
  color: #8a2018;
  transition: background var(--dur) var(--ease);
}
.asp-pg-upload-section .asp-pg-fix-btn:hover:not(:disabled) { background: #f7e2df; }
.asp-pg-upload-section .asp-pg-fix-btn:disabled { opacity: .55; cursor: wait; }
.asp-pg-upload-section .asp-pg-browse-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--atomic-dark);
  color: var(--color-text-invert);
}
.asp-pg-upload-section .asp-pg-browse-btn:hover { background: var(--atomic-blue); }

/* ── Reorder previous artwork ─────────────────────────────────────────────── */
.asp-mine__open { margin-top: 14px; width: 100%; }

.asp-mine-modal {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
	background: rgba(36, 41, 56, 0.55);
}
.asp-mine-modal__card {
	display: flex; flex-direction: column; gap: var(--space-3-5);
	width: min(560px, 100%); max-height: min(80vh, 640px);
	padding: 22px; border-radius: var(--radius-lg);
	background: var(--color-surface);
	box-shadow: var(--shadow-xl);
}
.asp-mine-modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.asp-mine-modal__head h2 { margin: 0; font-size: var(--text-h3); font-weight: 800; letter-spacing: -0.01em; }
.asp-mine-modal__close {
	border: 0; background: none; cursor: pointer;
	font-size: var(--text-h3); line-height: 1; color: var(--color-text-muted); padding: 2px 6px;
}
.asp-mine-modal__close:hover { color: var(--color-text); }

.asp-mine-modal__find {
	width: 100%; padding: 11px 14px;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	background: var(--color-surface); font: inherit; font-size: var(--text-sm);
	-webkit-appearance: none; appearance: none;
}
.asp-mine-modal__find:focus {
	border-color: var(--atomic-blue);
}

.asp-mine-modal__list { display: flex; flex-direction: column; gap: var(--space-2); overflow-y: auto; }
.asp-mine-modal__none { margin: 4px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }

.asp-mine-row {
	display: flex; align-items: center; gap: var(--space-3); width: 100%;
	padding: 10px; cursor: pointer; text-align: left;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
	background: var(--color-surface); font: inherit;
}
.asp-mine-row:hover { border-color: var(--atomic-blue); }
.asp-mine-row__shot {
	flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm);
	overflow: hidden; background: var(--color-surface-alt);
}
.asp-mine-row__shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asp-mine-row__meta { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; flex: 1; }
.asp-mine-row__name { font-size: var(--text-sm); font-weight: 700; }
.asp-mine-row__spec { font-size: var(--text-xs); color: var(--color-text-muted); }
.asp-mine-row__go { flex: none; color: var(--atomic-blue); font-weight: 800; }
.asp-mine-row.is-loading { opacity: .55; pointer-events: none; }

/* ─────────────────────────────────────────────────────────────────────────────
 * THE CATEGORY LINKS, AT THE FOOT
 *
 * A footnote and drawn as one: centred, small, muted, with a hairline above it
 * separating it from whatever section a treatment ended on. It used to sit
 * between Add to Cart and the rest of the page — see the note in
 * inc/product-page.php for why it is down here instead of gone.
 * ───────────────────────────────────────────────────────────────────────────── */

.as-pdp__meta {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 24px var(--gutter) 48px;
	border-top: 1px solid var(--color-border-soft);
	text-align: center;
}

.as-pdp__meta .product_meta {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	line-height: 1.6;
}

.as-pdp__meta .product_meta a { color: var(--color-text-muted); text-decoration: underline; }
.as-pdp__meta .product_meta a:hover { color: var(--atomic-blue); }

/* Core prints these as separate spans with no spacing of their own. */
.as-pdp__meta .product_meta > span { display: inline-block; margin: 0 var(--space-2); }
