/* ==========================================================================
   Red Crafta — the single product page
   ==========================================================================

   The page has one job: let somebody decide. So it is ordered the way that
   decision is made — what it is, what it costs, what it is like, what to do
   about it — and the two purchase actions sit together at the end of that
   run rather than being hunted for.

   Three things this file has to do that the rest of the site does not:

     1. Style WooCommerce's own add-to-cart form. The plugin's stylesheets are
        dequeued on every Red Crafta view (functions.php, rc_child_trim_block_
        styles), so .cart, .quantity, .variations and .single_add_to_cart_button
        arrive here with no styling at all. Everything the plugin prints is
        given a home below under section 5.
     2. Hold two buttons side by side that must not read as equals. Add to
        Cart is forest green and filled — the site's own structural colour,
        the safe move. Buy Now is terracotta, the brand's one warm accent,
        which marks it as the quick route without making it louder.
     3. Keep every tappable thing at --rc-tap-lg (48px) once the layout
        stacks. Not the 44px minimum the rest of the site uses: these are the
        buttons the whole page exists for.

   Nothing here is a hard-coded value. Colour, type, spacing, rule weight and
   motion all come from tokens.css, so a change to the palette reaches this
   page without this file being opened.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. The breadcrumb
   -------------------------------------------------------------------------- */

.rc-crumbs {
	background: var(--rc-page);
	border-bottom: var(--rc-hairline) solid var(--rc-rule);
}

.rc-crumbs__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rc-space-2xs);
	width: 100%;
	max-width: var(--rc-container-wide);
	margin-inline: auto;
	padding: var(--rc-space-sm) var(--rc-gutter);
	font-size: var(--rc-size-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-ink-soft);
}

.rc-crumbs__inner :lang(si) { letter-spacing: normal; text-transform: none; }

.rc-crumbs__link {
	color: inherit;
	text-decoration: none;
	border-bottom: var(--rc-hairline) solid transparent;
	transition: color var(--rc-duration-fast) var(--rc-ease),
		border-color var(--rc-duration-fast) var(--rc-ease);
}

.rc-crumbs__link:hover,
.rc-crumbs__link:focus-visible {
	color: var(--rc-accent-ink);
	border-bottom-color: var(--rc-rule-accent);
}

.rc-crumbs__sep { color: var(--rc-rule-strong); }

/* The product's own name. It is where you already are, so it is the one
   step that is not a link and it does not pretend to be one. */
.rc-crumbs__here {
	color: var(--rc-ink);
	text-transform: none;
	letter-spacing: var(--rc-track-body);
}

/* --------------------------------------------------------------------------
   2. The split
   -------------------------------------------------------------------------- */

.rc-pdp {
	background: var(--rc-page);
	padding-block: var(--rc-space-xl) var(--rc-space-2xl);
}

.rc-pdp__inner {
	display: grid;
	/* The image gets the larger share: it is the only thing on this page that
	   can show what the glaze actually looks like. */
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: var(--rc-space-2xl);
	align-items: start;
	width: 100%;
	max-width: var(--rc-container);
	margin-inline: auto;
	padding-inline: var(--rc-gutter);
}

/* --------------------------------------------------------------------------
   3. The gallery
   -------------------------------------------------------------------------- */

.rc-pdp__media {
	display: flex;
	flex-direction: column;
	gap: var(--rc-space-sm);
	/* The panel on the right is the taller column on a product with a long
	   description, so the picture follows the read down rather than scrolling
	   away from the text that is describing it. */
	position: sticky;
	top: var(--rc-space-lg);
}

.rc-pdp__frame {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-radius: var(--rc-radius-none);
	box-shadow: var(--rc-shadow-image);
	aspect-ratio: 4 / 5;
}

.rc-pdp__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rc-pdp__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
	gap: var(--rc-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-pdp__thumb-item { margin: 0; }

.rc-pdp__thumb {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-radius: var(--rc-radius-none);
	cursor: pointer;
	aspect-ratio: 1 / 1;
	transition: border-color var(--rc-duration-fast) var(--rc-ease);
}

.rc-pdp__thumb:hover { border-color: var(--rc-rule-accent); }

/* The picture you are looking at. A terracotta line rather than a heavier
   border, so the strip does not shift by a pixel as the choice moves. */
.rc-pdp__thumb.is-active { border-color: var(--rc-accent); }

.rc-pdp__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   4. The panel
   -------------------------------------------------------------------------- */

.rc-pdp__panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--rc-space-sm);
}

.rc-pdp__cat { margin: 0; color: var(--rc-accent-ink); }

.rc-pdp__title {
	margin: 0;
	font-family: var(--rc-font-display);
	font-weight: var(--rc-weight-display);
	font-size: var(--rc-size-h2);
	line-height: 1.12;
	letter-spacing: var(--rc-track-display);
	color: var(--rc-ink);
}

/* The price is large enough that terracotta is held to 3:1 rather than
   4.5:1, which it clears — so this is the one piece of running text on the
   page that may wear the accent itself. */
.rc-pdp__price {
	margin: 0;
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-h4);
	font-weight: var(--rc-weight-display);
	color: var(--rc-accent);
	font-variant-numeric: tabular-nums;
}

.rc-pdp__price del {
	margin-inline-end: var(--rc-space-3xs);
	color: var(--rc-ink-soft);
	opacity: 0.7;
}

.rc-pdp__price ins {
	text-decoration: none;
	background: transparent;
}

.rc-pdp__price--pending {
	font-size: var(--rc-size-body);
	font-family: var(--rc-font-body);
	font-weight: var(--rc-weight-body);
	color: var(--rc-ink-soft);
}

/* --- The highlights ------------------------------------------------------
   Point form, between the price and the buttons. A buyer asks "is this the
   right one?" before "how do I get it?", so the answer sits in that order. */

.rc-pdp__features {
	display: flex;
	flex-direction: column;
	gap: var(--rc-space-3xs);
	width: 100%;
	max-width: var(--rc-measure);
	margin: var(--rc-space-3xs) 0 0;
	padding: 0;
	list-style: none;
}

.rc-pdp__feature {
	display: flex;
	align-items: baseline;
	gap: var(--rc-space-2xs);
	margin: 0;
	font-size: var(--rc-size-body);
	line-height: 1.55;
	color: var(--rc-ink-soft);
}

/* A small terracotta lozenge rather than a disc: the same turned square that
   marks a section elsewhere on the site, at a size that reads as a bullet. */
.rc-pdp__bullet {
	flex: 0 0 auto;
	width: 0.4rem;
	height: 0.4rem;
	margin-top: 0.1em;
	background: var(--rc-accent);
	transform: rotate(45deg);
}

.rc-pdp__feature-text { flex: 1 1 auto; }

/* --- WooCommerce's notices ----------------------------------------------- */

.rc-pdp__notices { width: 100%; }

.rc-pdp__notices ul,
.rc-pdp__notices .woocommerce-message,
.rc-pdp__notices .woocommerce-error,
.rc-pdp__notices .woocommerce-info {
	margin: 0 0 var(--rc-space-2xs);
	padding: var(--rc-space-2xs) var(--rc-space-xs);
	font-size: var(--rc-size-small);
	list-style: none;
	background: var(--rc-surface);
	border-inline-start: 3px solid var(--rc-accent);
	color: var(--rc-ink);
}

.rc-pdp__notices .woocommerce-error { border-inline-start-color: var(--rc-earth); }

.rc-pdp__notices a { color: var(--rc-accent-ink); }

/* --------------------------------------------------------------------------
   5. The purchase actions
   --------------------------------------------------------------------------

   Everything in this section is markup WooCommerce printed. The plugin's own
   stylesheets are dequeued on this page, so each of its class names is given
   a home here rather than being left to the browser's defaults. */

.rc-pdp__buy { width: 100%; }

.rc-pdp__buy form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--rc-space-2xs);
	margin: 0;
}

/* A variable product prints its selectors in a table above the buttons. It
   is laid out as rows so a long glaze name never squeezes the control. */
.rc-pdp__buy table.variations {
	flex: 1 1 100%;
	width: 100%;
	margin: 0 0 var(--rc-space-2xs);
	border-collapse: collapse;
}

.rc-pdp__buy table.variations th,
.rc-pdp__buy table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	text-align: start;
	border: 0;
}

.rc-pdp__buy table.variations th.label {
	padding-bottom: var(--rc-space-3xs);
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-ink-soft);
}

.rc-pdp__buy table.variations td.value { padding-bottom: var(--rc-space-xs); }

.rc-pdp__buy select {
	width: 100%;
	min-height: var(--rc-tap-lg);
	padding: 0 var(--rc-space-xs);
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-body);
	color: var(--rc-ink);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule-strong);
	border-radius: var(--rc-radius-none);
	cursor: pointer;
}

.rc-pdp__buy select:focus-visible {
	outline: var(--rc-hairline) solid var(--rc-accent);
	outline-offset: 2px;
}

.rc-pdp__buy .reset_variations {
	display: inline-block;
	margin-top: var(--rc-space-3xs);
	font-size: var(--rc-size-small);
	color: var(--rc-accent-ink);
	text-decoration: none;
	border-bottom: var(--rc-hairline) solid var(--rc-rule-accent);
}

.rc-pdp__buy .single_variation_wrap { flex: 1 1 100%; }

.rc-pdp__buy .woocommerce-variation-price {
	display: block;
	margin-bottom: var(--rc-space-2xs);
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-h5);
	color: var(--rc-accent);
}

.rc-pdp__buy .woocommerce-variation-availability { font-size: var(--rc-size-small); color: var(--rc-ink-soft); }

.rc-pdp__buy .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--rc-space-2xs);
}

/* --- Quantity ------------------------------------------------------------ */

.rc-pdp__buy .quantity {
	flex: 0 0 100%;
	display: flex;
}

.rc-pdp__buy .quantity .qty {
	width: 4.75rem;
	min-height: var(--rc-tap-lg);
	padding: 0 var(--rc-space-3xs);
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-body);
	text-align: center;
	color: var(--rc-ink);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule-strong);
	border-radius: var(--rc-radius-none);
}

.rc-pdp__buy .quantity .qty:focus-visible {
	outline: var(--rc-hairline) solid var(--rc-accent);
	outline-offset: 2px;
}

.rc-pdp__buy .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --- The two buttons -----------------------------------------------------
   Side by side, equal in height and in weight of type, different only in
   colour — which is the whole point. Green is the ordinary move, terracotta
   the quick one. Neither is allowed to shout at the other. */

.rc-pdp__btn,
.rc-pdp__buy .single_add_to_cart_button {
	flex: 1 1 11rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--rc-tap-lg);
	padding: 0 var(--rc-space-md);
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-button);
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	border: var(--rc-hairline) solid transparent;
	border-radius: var(--rc-radius-none);
	cursor: pointer;
	transition: background var(--rc-duration-fast) var(--rc-ease),
		border-color var(--rc-duration-fast) var(--rc-ease),
		color var(--rc-duration-fast) var(--rc-ease);
}

.rc-pdp__btn:lang(si),
.rc-pdp__buy .single_add_to_cart_button:lang(si) {
	letter-spacing: normal;
	text-transform: none;
	font-family: var(--rc-font-sinhala);
}

/* Add to Cart — forest green, the site's own structural colour. */
.rc-pdp__btn--cart,
.rc-pdp__buy .single_add_to_cart_button {
	background: var(--rc-forest);
	border-color: var(--rc-forest);
	color: var(--rc-on-forest);
}

.rc-pdp__btn--cart:hover,
.rc-pdp__btn--cart:focus-visible,
.rc-pdp__buy .single_add_to_cart_button:hover,
.rc-pdp__buy .single_add_to_cart_button:focus-visible {
	background: var(--rc-forest-alt);
	border-color: var(--rc-forest-alt);
}

/* Buy Now — terracotta. */
.rc-pdp__btn--buy {
	background: var(--rc-accent);
	border-color: var(--rc-accent);
	color: var(--rc-cream-light);
}

.rc-pdp__btn--buy:hover,
.rc-pdp__btn--buy:focus-visible {
	background: var(--rc-earth);
	border-color: var(--rc-earth);
}

.rc-pdp__btn:focus-visible,
.rc-pdp__buy .single_add_to_cart_button:focus-visible {
	outline: var(--rc-hairline) solid var(--rc-gold);
	outline-offset: 3px;
}

/* WooCommerce disables the button until a variation is chosen. Saying so is
   better than a button that silently does nothing. */
.rc-pdp__buy .single_add_to_cart_button.disabled,
.rc-pdp__buy .single_add_to_cart_button[disabled],
.rc-pdp__btn--buy[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

/* The brief state the AJAX add puts the button into. */
.rc-pdp__buy .single_add_to_cart_button.is-busy { opacity: 0.7; cursor: progress; }

.rc-pdp__added {
	display: flex;
	align-items: center;
	gap: var(--rc-space-3xs);
	width: 100%;
	margin: var(--rc-space-2xs) 0 0;
	font-size: var(--rc-size-small);
	color: var(--rc-accent-ink);
}

.rc-pdp__added a {
	color: inherit;
	border-bottom: var(--rc-hairline) solid var(--rc-rule-accent);
	text-decoration: none;
}

.rc-pdp__unavailable {
	margin: 0 0 var(--rc-space-2xs);
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}

/* --------------------------------------------------------------------------
   6. Wholesale and custom orders
   --------------------------------------------------------------------------

   A second, quieter action area. Outlined rather than filled, and in the
   palette's craft tones rather than the accent, so it reads as the other
   door — plainly there, never competing with the two buttons above it. */

.rc-pdp__trade {
	width: 100%;
	margin-top: var(--rc-space-2xs);
	padding: var(--rc-space-sm);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-radius: var(--rc-radius-none);
}

.rc-pdp__trade-title {
	margin: 0;
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label-wide);
	text-transform: uppercase;
	color: var(--rc-accent-ink);
}

.rc-pdp__trade-title:lang(si) { letter-spacing: normal; text-transform: none; }

.rc-pdp__trade-note {
	margin: var(--rc-space-3xs) 0 var(--rc-space-xs);
	font-size: var(--rc-size-small);
	line-height: 1.5;
	color: var(--rc-ink-soft);
}

.rc-pdp__trade-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rc-space-2xs);
}

.rc-pdp__trade-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	min-height: var(--rc-tap-lg);
	padding: var(--rc-space-3xs) var(--rc-space-2xs);
	font-size: var(--rc-size-small);
	text-align: center;
	text-decoration: none;
	color: var(--rc-earth);
	background: transparent;
	border: var(--rc-hairline) solid var(--rc-rule-strong);
	border-radius: var(--rc-radius-none);
	transition: border-color var(--rc-duration-fast) var(--rc-ease),
		color var(--rc-duration-fast) var(--rc-ease);
}

.rc-pdp__trade-btn:hover,
.rc-pdp__trade-btn:focus-visible {
	color: var(--rc-accent-ink);
	border-color: var(--rc-rule-accent);
}

/* The icon is the gold the brief asks for. It is a graphic, held to 3:1,
   and it is the only gold on a cream field anywhere on this page. */
.rc-pdp__trade-icon {
	display: inline-flex;
	color: var(--rc-gold);
}

.rc-pdp__trade-icon svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.rc-pdp__trade-label {
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
}

.rc-pdp__trade-label:lang(si) { letter-spacing: normal; text-transform: none; }

/* No number is confirmed yet, so the button says so instead of dialling
   nowhere. It is deliberately not a link: there is nothing to follow. */
.rc-pdp__trade-btn.is-pending {
	cursor: default;
	border-style: dashed;
	color: var(--rc-ink-soft);
}

.rc-pdp__trade-btn.is-pending .rc-pdp__trade-icon { opacity: 0.55; }

.rc-pdp__trade-pending {
	font-size: var(--rc-size-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	opacity: 0.8;
}

.rc-pdp__trade-pending:lang(si) { letter-spacing: normal; text-transform: none; }

.rc-pdp__trade-fallback {
	margin: var(--rc-space-2xs) 0 0;
	font-size: var(--rc-size-small);
	text-align: center;
	color: var(--rc-ink-soft);
}

.rc-pdp__trade-mail {
	color: var(--rc-accent-ink);
	text-decoration: none;
	border-bottom: var(--rc-hairline) solid var(--rc-rule-accent);
}

/* --------------------------------------------------------------------------
   7. Details below the fold
   -------------------------------------------------------------------------- */

.rc-pdp__detail {
	background: var(--rc-surface);
	border-block: var(--rc-hairline) solid var(--rc-rule);
	padding-block: var(--rc-space-xl);
	margin-top: var(--rc-space-2xl);
}

.rc-pdp__detail-inner,
.rc-pdp__also-inner {
	width: 100%;
	max-width: var(--rc-container);
	margin-inline: auto;
	padding-inline: var(--rc-gutter);
}

.rc-pdp__detail-title,
.rc-pdp__also-title {
	margin: 0 0 var(--rc-space-md);
	font-family: var(--rc-font-display);
	font-weight: var(--rc-weight-display);
	font-size: var(--rc-size-h3);
	letter-spacing: var(--rc-track-display);
	color: var(--rc-ink);
}

.rc-pdp__detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--rc-space-xl);
	align-items: start;
}

.rc-pdp__detail-text {
	font-size: var(--rc-size-body);
	line-height: 1.7;
	color: var(--rc-ink-soft);
	max-width: var(--rc-measure);
}

.rc-pdp__detail-text p { margin: 0 0 var(--rc-space-xs); }
.rc-pdp__detail-text p:last-child { margin-bottom: 0; }

.rc-pdp__specs {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: var(--rc-space-3xs) var(--rc-space-sm);
	margin: 0;
}

.rc-pdp__specs dt {
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-ink-soft);
	padding-top: 0.15em;
}

.rc-pdp__specs dd {
	margin: 0;
	font-size: var(--rc-size-body);
	color: var(--rc-ink);
}

/* --------------------------------------------------------------------------
   8. You may also like
   -------------------------------------------------------------------------- */

.rc-pdp__also {
	background: var(--rc-page);
	padding-block: var(--rc-space-xl);
}

.rc-pdp__also-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--rc-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-pdp__also-item { margin: 0; }

.rc-pdp__also-link {
	display: flex;
	flex-direction: column;
	gap: var(--rc-space-3xs);
	text-decoration: none;
	color: inherit;
}

.rc-pdp__also-frame {
	display: block;
	overflow: hidden;
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	aspect-ratio: 4 / 5;
	margin-bottom: var(--rc-space-3xs);
	transition: border-color var(--rc-duration-fast) var(--rc-ease);
}

.rc-pdp__also-link:hover .rc-pdp__also-frame,
.rc-pdp__also-link:focus-visible .rc-pdp__also-frame { border-color: var(--rc-rule-accent); }

.rc-pdp__also-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rc-pdp__also-name {
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-h5);
	font-weight: var(--rc-weight-display);
	line-height: 1.25;
	color: var(--rc-ink);
}

.rc-pdp__also-price {
	font-size: var(--rc-size-body);
	font-weight: var(--rc-weight-label);
	color: var(--rc-accent-ink);
	font-variant-numeric: tabular-nums;
}

.rc-pdp__also-price--pending {
	font-weight: var(--rc-weight-body);
	color: var(--rc-ink-soft);
}

/* ==========================================================================
   9. Tablet — up to 1023px
   ==========================================================================
   The split closes. Image on top, everything that is words and actions
   below it, which is the order a narrow screen can actually show. */

@media (max-width: 1023px) {

	.rc-pdp { padding-block: var(--rc-space-lg) var(--rc-space-xl); }

	.rc-pdp__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--rc-space-lg);
	}

	/* Sticky has nothing left to do once the columns are stacked, and it
	   would pin the picture over the text underneath it. */
	.rc-pdp__media {
		position: static;
		top: auto;
	}

	.rc-pdp__frame { aspect-ratio: 1 / 1; }

	.rc-pdp__detail-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--rc-space-md);
	}

	.rc-pdp__also-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   10. Phone — up to 767px
   ==========================================================================
   Every action goes full width and keeps its 48px. Two buttons wedged side
   by side at 360px would each be a 150px target carrying uppercase type at
   13px, which is a worse purchase than one above the other. */

/* A tablet stacks, which hands the picture the full column - 903px square
   at 1020px wide, so the title sits a whole screen below the fold. The frame
   is held to a readable size and centred; the air either side is the same
   generous margin the desktop split gives it. */

@media (min-width: 768px) and (max-width: 1023px) {

	.rc-pdp__frame {
		max-width: 34rem;
		margin-inline: auto;
	}

	.rc-pdp__thumbs { justify-content: center; }
}

@media (max-width: 767px) {

	.rc-crumbs__inner { padding-block: var(--rc-space-2xs); }

	/* The crumb trail would wrap to three lines on a narrow screen. The two
	   steps that matter are where you came from and where you are. */
	.rc-crumbs__link:first-of-type,
	.rc-crumbs__inner > .rc-crumbs__sep:first-of-type { display: none; }

	.rc-pdp__inner { gap: var(--rc-space-md); }

	.rc-pdp__title { font-size: var(--rc-size-h3); }

	.rc-pdp__features { gap: var(--rc-space-2xs); }

	.rc-pdp__buy form.cart,
	.rc-pdp__buy .woocommerce-variation-add-to-cart { gap: var(--rc-space-2xs); }

	/* The pair stays side by side here: a phone at 375px still leaves each
	   button a touch target far wider than it is tall. They only stack
	   below 400px, where the words stop fitting. */
	.rc-pdp__btn,
	.rc-pdp__buy .single_add_to_cart_button {
		flex: 1 1 8rem;
		min-height: var(--rc-tap-lg);
		padding: 0 var(--rc-space-sm);
	}

	.rc-pdp__trade { padding: var(--rc-space-xs); }

	.rc-pdp__also-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--rc-space-sm);
	}
}

/* Below 400px even two related cards are too narrow to read. */
@media (max-width: 399px) {
	.rc-pdp__also-list { grid-template-columns: minmax(0, 1fr); }
	.rc-pdp__trade-actions { grid-template-columns: minmax(0, 1fr); }

	.rc-pdp__btn,
	.rc-pdp__buy .single_add_to_cart_button {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* ==========================================================================
   11. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.rc-pdp__thumb,
	.rc-pdp__btn,
	.rc-pdp__trade-btn,
	.rc-pdp__also-frame,
	.rc-crumbs__link,
	.rc-pdp__buy .single_add_to_cart_button { transition: none; }
}
