/**
 * Single product page: gallery, lightbox, summary, swatches, sticky bar.
 */

.single-product div.product {
	max-width: var(--container-max);
	margin-inline: auto;
	padding: var(--space-10) var(--container-pad) 0;
}

/*
 * The two columns moved off div.product and onto this wrapper (opened in
 * inc/woocommerce/setup.php), which brackets the gallery and the summary and
 * nothing else. div.product also holds the accordion, the reviews and the
 * related products; while the grid lived there, those were grid items that had
 * to be told to span both columns, and a sticky gallery was free to scroll down
 * across all of them.
 */
.sunny-product-top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: var(--space-10) var(--space-16);
	align-items: start;
}

/*
 * The gallery follows the summary down instead of leaving half a screen of
 * nothing beside it - the summary runs to well over a thousand pixels on a
 * product with options, a quantity ladder and a bundle block, against a square
 * image. Bounded by .sunny-product-top, so it stops where the summary does.
 *
 * Two columns only: below that the layout is a single column and a stuck image
 * would sit on top of the text it belongs to.
 */
@media (min-width: 782px) {
	.sunny-product-top .sunny-gallery {
		position: sticky;
		top: var(--sticky-offset);
	}
}

/* ---------------------------------------------------------------------------
 * Gallery
 * ------------------------------------------------------------------------ */

.sunny-gallery {
	position: relative;
	display: grid;
	gap: var(--space-4);
}

.sunny-gallery--left {
	display: block;
	padding-left: calc(88px + var(--space-4));
}

.sunny-gallery--below,
.sunny-gallery:not(:has(.sunny-gallery__thumb-nav)) {
	grid-template-columns: 1fr;
}

.sunny-gallery__thumb-nav {
	min-width: 0;
}

.sunny-gallery--left .sunny-gallery__thumb-nav {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: 88px;
	min-height: 0;
	overflow: hidden;
}

.sunny-gallery--left:not(:has(.sunny-gallery__thumb-nav)) {
	padding-left: 0;
}

.sunny-gallery__thumbs {
	display: flex;
	gap: var(--space-3);
	min-width: 0;
}

.sunny-gallery--left .sunny-gallery__thumbs {
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: none;
}

.sunny-gallery--below .sunny-gallery__thumb-nav {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	gap: var(--space-2);
	align-items: stretch;
	order: 2;
}

.sunny-gallery--below .sunny-gallery__thumbs {
	flex-direction: row;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.sunny-gallery.is-thumb-carousel-ready .sunny-gallery__thumbs {
	overflow: hidden;
}

.sunny-gallery.is-thumb-carousel-ready:not(.sunny-gallery--left) .sunny-gallery__thumbs {
	cursor: grab;
	user-select: none;
}

.sunny-gallery.is-thumb-carousel-ready:not(.sunny-gallery--left) .sunny-gallery__thumbs.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

@media (max-width: 600px) {
	.sunny-gallery.is-thumb-carousel-ready .sunny-gallery__thumbs {
		cursor: grab;
		user-select: none;
	}

	.sunny-gallery.is-thumb-carousel-ready .sunny-gallery__thumbs.is-dragging {
		cursor: grabbing;
		scroll-behavior: auto;
	}
}

.sunny-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.sunny-gallery__thumb-nav:has(.sunny-gallery__thumb-control--prev[hidden]) {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
}

.sunny-gallery__thumb-nav:has(.sunny-gallery__thumb-control--prev[hidden]) .sunny-gallery__thumbs {
	grid-column: 1;
	grid-row: 1;
}

.sunny-gallery__thumb {
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
	border: 2px solid var(--border-default);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
	line-height: 0;
}

.sunny-gallery--below .sunny-gallery__thumb {
	flex-basis: calc((100% - (3 * var(--space-3))) / 4);
	width: auto;
}

.sunny-gallery__thumb-control {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--surface-sunken);
	color: var(--fg-secondary);
}

.sunny-gallery--left .sunny-gallery__thumb-control {
	display: flex;
}

.sunny-gallery--left .sunny-gallery__thumb-control .sunny-icon {
	transform: rotate(90deg);
}

.sunny-gallery--below .sunny-gallery__thumb-control {
	display: flex;
	width: 34px;
	height: auto;
}

.sunny-gallery__thumb-control:hover:not(:disabled) {
	background: var(--surface-raised);
	color: var(--fg-primary);
}

.sunny-gallery__thumb-control:disabled {
	opacity: 0.35;
	cursor: default;
}

.sunny-gallery__thumb-control[hidden] {
	display: none;
}

.sunny-gallery__thumb.is-active {
	border-color: var(--surface-brand);
}

.sunny-gallery__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--surface-sunken);
	aspect-ratio: 1;
	cursor: zoom-in;
}

.sunny-gallery__slide,
.sunny-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sunny-gallery__badge {
	position: absolute;
	top: var(--space-4);
	left: var(--space-4);
}

.sunny-gallery__zoom {
	position: absolute;
	top: var(--space-4);
	right: var(--space-4);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: var(--radius-pill);
	background: rgba(26, 23, 19, 0.72);
	color: var(--neutral-0);
}

@media (max-width: 600px) {
	.sunny-gallery,
	.sunny-gallery--left {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		padding-left: 0;
	}

	.sunny-gallery__thumb-nav,
	.sunny-gallery--left .sunny-gallery__thumb-nav {
		position: static;
		order: 2;
		width: auto;
		max-height: none;
	}

	.sunny-gallery__thumb-nav,
	.sunny-gallery--below .sunny-gallery__thumb-nav,
	.sunny-gallery--left .sunny-gallery__thumb-nav {
		display: grid;
		grid-template-columns: 32px minmax(0, 1fr) 32px;
		grid-template-rows: auto;
		gap: var(--space-2);
	}

	.sunny-gallery__thumbs,
	.sunny-gallery--left .sunny-gallery__thumbs {
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.sunny-gallery.is-thumb-carousel-ready .sunny-gallery__thumbs {
		overflow: hidden;
	}

	.sunny-gallery__thumb {
		flex-basis: calc((100% - (3 * var(--space-3))) / 4);
		width: auto;
	}

	.sunny-gallery--left .sunny-gallery__thumb-control,
	.sunny-gallery__thumb-control {
		display: flex;
		width: 32px;
		height: auto;
	}

	.sunny-gallery--left .sunny-gallery__thumb-control .sunny-icon {
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * Lightbox
 * ------------------------------------------------------------------------ */

.sunny-lightbox {
	width: min(1100px, 96vw);
	max-width: none;
	max-height: 96vh;
	padding: var(--space-6);
	border: 0;
	border-radius: var(--radius-lg);
	background: rgba(18, 16, 14, 0.96);
	color: var(--neutral-0);
	overflow: hidden;
}

.sunny-lightbox::backdrop {
	background: rgba(18, 16, 14, 0.8);
}

.sunny-lightbox__image {
	width: 100%;
	max-height: 78vh;
	margin-inline: auto;
	object-fit: contain;
}

.sunny-lightbox__close,
.sunny-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.08);
	color: var(--neutral-0);
}

.sunny-lightbox__close:hover,
.sunny-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.2);
}

.sunny-lightbox__close {
	top: var(--space-5);
	right: var(--space-5);
}

.sunny-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

.sunny-lightbox__nav--prev { left: var(--space-5); }
.sunny-lightbox__nav--next { right: var(--space-5); }

.sunny-lightbox__counter {
	display: block;
	margin-top: var(--space-4);
	font-family: var(--font-display);
	font-weight: var(--fw-extrabold);
	font-size: var(--fs-body-sm);
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * Summary
 * ------------------------------------------------------------------------ */

/* float/width come from WooCommerce's own stylesheet, which still lays the
   single product out as two floated halves. Left alone they shrink the summary
   to 48% of the grid column it already occupies - the column is the layout
   here, so the float sizing has to go. */
.summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

/* WooCommerce's own selector here is .woocommerce div.product div.summary, so
   a bare .summary loses to it - match its weight or the reset never lands. */
.single-product div.product div.summary {
	float: none;
	width: auto;
}

.sunny-product__kicker {
	font-family: var(--font-display);
	font-weight: var(--fw-extrabold);
	font-size: var(--fs-caption);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--surface-accent);
}

.sunny-product__title {
	font-size: var(--fs-display-md);
}

.sunny-product__rating {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.summary .price {
	font-family: var(--font-display);
	font-weight: var(--fw-black);
	font-size: var(--fs-heading-lg);
	color: var(--fg-primary);
}

.summary .price del {
	margin-right: var(--space-2);
	color: var(--fg-muted);
	font-size: var(--fs-heading-md);
}

.summary .price ins {
	text-decoration: none;
	color: var(--surface-accent);
}

.woocommerce-product-details__short-description {
	color: var(--fg-secondary);
	line-height: var(--lh-relaxed);
}

.sunny-product__guarantees {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: var(--space-3);
	margin: 0;
	padding: var(--space-2) 0 0;
	list-style: none;
}

.sunny-product__guarantee {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--fg-secondary);
	font-size: var(--fs-body-md);
}

.sunny-product__guarantee .sunny-icon {
	color: var(--surface-brand);
}

/* ---------------------------------------------------------------------------
 * Product meta (category + SKU)
 *
 * One row of inline label/value pairs, separated by a thin top rule from the
 * guarantees above. Categories stay as anchors so a shopper can drift sideways
 * into the rest of the range. Wraps onto a second line on narrow viewports
 * rather than overflowing or squeezing the text.
 * ------------------------------------------------------------------------ */

.sunny-product__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-5);
	margin: var(--space-2) 0 0;
	padding-top: var(--space-4);
	border-top: var(--border-w) solid var(--border-default);
	font-size: var(--fs-body-sm);
}

.sunny-product__meta-item {
	display: inline-flex;
	align-items: baseline;
	gap: var(--space-2);
}

.sunny-product__meta-label {
	color: var(--fg-muted);
	font-family: var(--font-display);
	font-weight: var(--fw-extrabold);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
}

.sunny-product__meta-value {
	color: var(--fg-secondary);
}

.sunny-product__meta-value a {
	color: var(--fg-secondary);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sunny-product__meta-value a:hover {
	color: var(--fg-primary);
}

/* ---------------------------------------------------------------------------
 * Variation swatches
 * ------------------------------------------------------------------------ */

.sunny-product__stock {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #047857;
	font-weight: var(--fw-semibold);
	font-size: var(--fs-body-sm);
}

.sunny-product__stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.sunny-product__stock--onbackorder {
	background: transparent;
	color: #a16207;
}

.sunny-product__stock--outofstock,
.sunny-product__stock--unavailable {
	background: transparent;
	color: #b91c1c;
}

/* The select stays in the DOM - WooCommerce's script reads it - but is taken
   out of the visual and tab order, since the buttons replace it. */
.sunny-hidden-select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.variations {
	width: 100%;
	border: 0;
}

.variations th,
.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.variations th {
	padding-top: var(--space-4);
	font-family: var(--font-display);
	font-weight: var(--fw-extrabold);
	font-size: var(--fs-body-sm);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--fg-muted);
}

/*
 * The chosen option, printed after the attribute name. It drops the uppercase
 * and the letter-spacing the th sets, because this is a value rather than a
 * label - "TRẮNG" beside "MÀU SẮC" reads as a second heading.
 */
.sunny-swatches__value {
	font-weight: var(--fw-semibold);
	font-size: var(--fs-body-sm);
	letter-spacing: normal;
	text-transform: none;
	color: var(--fg-primary);
}

.sunny-swatches__value:not(:empty)::before {
	content: ":";
	margin: 0 var(--space-2);
	color: var(--border-strong);
}

.sunny-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

.sunny-swatch {
	min-width: 52px;
	padding: var(--space-2) var(--space-4);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	background: var(--surface-card);
	font-family: var(--font-body);
	font-size: var(--fs-body-md);
	color: var(--fg-primary);
	transition: border-color var(--duration-fast) var(--ease-standard);
}

.sunny-swatch:hover {
	border-color: var(--fg-muted);
}

.sunny-swatch.is-unavailable,
.sunny-swatch:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.sunny-swatch.is-unavailable:hover,
.sunny-swatch:disabled:hover {
	border-color: var(--border-strong);
}

.sunny-swatch.is-active {
	border-color: var(--surface-brand);
	background: var(--brand-50);
	font-weight: var(--fw-semibold);
}

.sunny-swatches--colour .sunny-swatch {
	width: 32px;
	height: 32px;
	min-width: 0;
	padding: 0;
	border-radius: var(--radius-pill);
	background: var(--swatch, var(--surface-sunken));
	box-shadow: 0 0 0 1px var(--border-strong);
}

.sunny-swatches--colour .sunny-swatch.is-active {
	box-shadow: 0 0 0 2px var(--surface-brand);
}

/* Flag the picker when someone tries the sticky bar without choosing. */
.variations.is-highlighted {
	animation: sunny-nudge var(--duration-slow) var(--ease-standard) 2;
}

@keyframes sunny-nudge {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

/* ---------------------------------------------------------------------------
 * Add to cart
 * ------------------------------------------------------------------------ */

form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
}

/*
 * Variable products nest the row one level deeper.
 *
 * On a simple product the quantity field and the button are children of
 * form.cart, so the flex row above places them side by side. A variable product
 * puts both inside div.woocommerce-variation-add-to-cart, which WooCommerce
 * renders only once a variation is chosen - and that div is a plain block, so
 * the row above never reached them and the button dropped under the quantity.
 *
 * The same row, one level in. flex-basis: 100% on the wrapper WooCommerce puts
 * around it makes that a full-width line of form.cart: without it the wrapper
 * shares a line with the screen-reader alert next to it and shrinks to 252px,
 * which is narrower than the 84px field plus the button's 200px basis - so the
 * row wrapped even after it became a row.
 */
.single_variation_wrap {
	flex-basis: 100%;
}

/* Keep an unavailable-variation notice on its own row above the cart controls. */
.single_variation_wrap > .notice-not-available {
	display: block;
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 var(--space-3);
}

.woocommerce-variation-add-to-cart {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
}

form.cart .quantity input {
	width: 84px;
	padding: var(--space-3);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	text-align: center;
}

.single_add_to_cart_button {
	flex: 1 1 200px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4) var(--space-8);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--surface-brand);
	color: var(--fg-on-brand);
	font-family: var(--font-display);
	font-weight: var(--fw-extrabold);
	font-size: var(--fs-body-lg);
}

.single_add_to_cart_button:hover {
	background: var(--surface-brand-hover);
}

.single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
 * Tabs, rendered as an accordion
 * ------------------------------------------------------------------------ */

.woocommerce-tabs {
	max-width: var(--container-max);
	margin: var(--rhythm-section-y-tight) auto 0;
	padding-inline: var(--container-pad);
}

/*
 * One row per section, ruled off from the next. Matches the design system's
 * Accordion: a full-width summary line, the title on the left, a "+" on the
 * right that rotates 45deg into an "x" when the section is open.
 */
.sunny-accordion__item {
	border-bottom: 1px solid var(--border-default);
}

.sunny-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-4) 2px;
	cursor: pointer;
	list-style: none;
	font-weight: var(--fw-semibold);
	font-size: var(--fs-heading-sm);
	color: var(--fg-primary);
}

/* Safari draws its own disclosure triangle through a pseudo-element that
   `list-style: none` alone does not remove. */
.sunny-accordion__summary::-webkit-details-marker {
	display: none;
}

.sunny-accordion__summary:hover .sunny-accordion__title {
	color: var(--brand-600);
}

.sunny-accordion__summary:focus-visible {
	outline: 2px solid var(--brand-600);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/*
 * The marker is drawn from two bars rather than typed as "+", so it is the same
 * shape in every font and rotates about its own centre.
 */
.sunny-accordion__marker {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
	color: var(--fg-muted);
	transition: transform var(--duration-fast) var(--ease-standard);
}

.sunny-accordion__marker::before,
.sunny-accordion__marker::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transform: translateY(-50%);
}

.sunny-accordion__marker::after {
	inset: 0 50% auto auto;
	width: 2px;
	height: 100%;
	transform: translateX(50%);
}

.sunny-accordion__item[open] .sunny-accordion__marker {
	transform: rotate(45deg);
}

.sunny-accordion__panel {
	max-width: 75ch;
	padding: 0 2px var(--space-4);
	color: var(--fg-secondary);
	font-size: var(--fs-body-sm);
	line-height: var(--lh-relaxed);
}

.sunny-accordion__panel > :first-child {
	margin-top: 0;
}

.sunny-accordion__panel > :last-child {
	margin-bottom: 0;
}

/*
 * Headings inside the accordion panel are product content written by the shop,
 * not theme chrome - so they should not out-scale the surrounding body text.
 * h2 sits at the same scale as a strong paragraph, h3/h4 step down from there.
 */
.sunny-accordion__panel h2 {
	margin: var(--space-4) 0 var(--space-2);
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: var(--fw-bold);
	line-height: var(--lh-snug);
	color: var(--fg-primary);
}

.sunny-accordion__panel h3 {
	margin: var(--space-3) 0 var(--space-1);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: var(--fw-bold);
	line-height: var(--lh-snug);
	color: var(--fg-primary);
}

.sunny-accordion__panel h4 {
	margin: var(--space-3) 0 var(--space-1);
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: var(--fw-semibold);
	line-height: var(--lh-snug);
	color: var(--fg-primary);
}

/*
 * WooCommerce's attributes tab renders a table; inside a 320px accordion column
 * its two columns need to be able to sit on top of each other.
 */
.sunny-accordion__panel table {
	width: 100%;
	border-collapse: collapse;
}

.sunny-accordion__panel th,
.sunny-accordion__panel td {
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--border-default);
	text-align: left;
	vertical-align: top;
}

.sunny-accordion__panel th {
	width: 40%;
	padding-right: var(--space-4);
	font-weight: var(--fw-semibold);
	color: var(--fg-primary);
}

@media (prefers-reduced-motion: reduce) {
	.sunny-accordion__marker {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Related products
 * ------------------------------------------------------------------------ */

.related.products,
.up-sells.products {
	max-width: var(--container-max);
	margin: var(--rhythm-section-y) auto 0;
	padding-inline: var(--container-pad);
}

.related.products > h2,
.up-sells.products > h2 {
	margin-bottom: var(--space-8);
}

/*
 * Related products can go to 4 columns on wide viewports. The shop grid caps at 3,
 * but related products have no sidebar and live on their own section — they can
 * use the full width the same way the homepage does.
 */
.related.products ul.products,
.up-sells.products ul.products {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

@media (min-width: 1280px) {
	.related.products ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------------------
 * Sticky add-to-cart
 *
 * Fixed, so it never participates in layout and cannot shift the page.
 * ------------------------------------------------------------------------ */

.sunny-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--surface-card);
	border-top: 1px solid var(--border-default);
	box-shadow: 0 -8px 24px rgba(26, 23, 19, 0.1);
	animation: sunny-slide-up var(--duration-base) var(--ease-out);
}

@keyframes sunny-slide-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

.sunny-sticky-atc[hidden] {
	display: none;
}

.sunny-sticky-atc__inner {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding-block: var(--space-3);
}

.sunny-sticky-atc__product {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
}

.sunny-sticky-atc__media img {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	object-fit: cover;
}

.sunny-sticky-atc__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sunny-sticky-atc__name {
	overflow: hidden;
	font-family: var(--font-display);
	font-weight: var(--fw-extrabold);
	font-size: var(--fs-body-md);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sunny-sticky-atc__price {
	font-size: var(--fs-body-sm);
	color: var(--fg-secondary);
}

.sunny-sticky-atc__button {
	flex: none;
	margin-left: auto;
}

@media (max-width: 600px) {
	.sunny-sticky-atc__meta {
		display: none;
	}

	.sunny-sticky-atc__button {
		flex: 1;
	}
}

/* ---------------------------------------------------------------------------
 * Recently viewed
 * ------------------------------------------------------------------------ */

.sunny-recently-viewed[hidden] {
	display: none;
}

.sunny-recently-viewed .sunny-section-head__title {
	margin-bottom: var(--space-6);
	font-size: var(--fs-heading-lg);
}

/* ---------------------------------------------------------------------------
 * Complete the look
 * ------------------------------------------------------------------------ */

.sunny-ctl .sunny-section-head__title {
	margin-bottom: var(--space-6);
	font-size: var(--fs-heading-lg);
}

/*
 * The in-column variant. At its default position this block sits inside
 * .summary rather than on the page, so it takes a card's spacing instead of a
 * section's: sunny-section's 80px top and bottom, and sunny-container's 32px
 * either side, were being applied inside a column about 390px wide.
 */
.sunny-ctl--inline {
	margin-top: var(--space-8);
	padding-top: var(--space-6);
	border-top: 1px solid var(--border-default);
}

.sunny-ctl--inline .sunny-ctl__title {
	margin: 0 0 var(--space-4);
	font-family: var(--font-display);
	font-weight: var(--fw-extrabold);
	font-size: var(--fs-heading-sm);
	color: var(--fg-primary);
}

.sunny-ctl__grid {
	margin-bottom: var(--space-6);

	/*
	 * A denser track than the shop grid. This block sits in the summary column,
	 * about 470px wide, and the shared 230px minimum needs 488px for two
	 * columns - so it fell to one and the add-ons stacked down the page. These
	 * are thumbnail-sized "add this too" cards, not shop cards.
	 */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	gap: var(--space-3);
}

.sunny-ctl__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	cursor: pointer;
}

.sunny-ctl__card input[type="checkbox"] {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	z-index: 1;
	width: 20px;
	height: 20px;
	accent-color: var(--surface-brand);
}

.sunny-ctl__media {
	border-radius: var(--radius-lg);
}

.sunny-ctl__name {
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	font-size: var(--fs-body-sm);
	line-height: var(--lh-snug);
}

.sunny-ctl__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2);
	font-weight: var(--fw-semibold);
	color: var(--fg-primary);
}

/* The sale price (current) is what the customer pays; the regular price sits
   beside it in muted grey with a strikethrough, as on the rest of the shop -
   so the two prices read as a discount rather than two unrelated numbers. */
.sunny-ctl__price ins {
	text-decoration: none;
	font-weight: var(--fw-bold);
	color: var(--surface-accent);
}

.sunny-ctl__price del {
	font-weight: var(--fw-regular);
	color: var(--fg-muted);
	opacity: 0.7;
}

.sunny-ctl__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-lg);
	background: var(--surface-sunken);
}

.sunny-ctl__total strong {
	margin-left: var(--space-2);
	font-family: var(--font-display);
	font-weight: var(--fw-black);
	font-size: var(--fs-heading-sm);
}

/* Flexible specifications rendered inside the existing product accordion. */
.sunny-product-details__specs {
	margin: 0;
}

.sunny-product-details__specs > div {
	display: grid;
	grid-template-columns: minmax(130px, .8fr) minmax(0, 1.5fr);
	gap: var(--space-4);
	padding: var(--space-3) 0;
	border-bottom: var(--border-w) solid var(--border-default);
}

.sunny-product-details__specs > div:last-child {
	border-bottom: 0;
}

.sunny-product-details__specs dt {
	color: var(--fg-muted);
}

.sunny-product-details__specs dd {
	margin: 0;
	font-weight: var(--fw-semibold);
}

@media (max-width: 540px) {
	.sunny-product-details__specs > div {
		grid-template-columns: 1fr;
		gap: var(--space-1);
	}
}
