/* Remu product variations.
   Palette and type match the remu.pk theme: Montserrat for content, the
   Shop Now orange for the accent and the theme purple for prices. Override the
   custom properties to restyle. */
.remu-var {
	--remu-accent: #f55404;  /* theme "Shop Now" orange, used for the buy button */
	--remu-select: #8959f6;  /* theme price purple, used for the selected variation */
	--remu-price: #8959f6;
	--remu-border: #e2e4e8;
	--remu-muted: #6b7280;
	--remu-radius: 30px;     /* matches the theme's pill buttons */
	--remu-font: "Montserrat", "Bricolage Grotesque", sans-serif;

	margin: 0 0 1.5rem;
	font-family: var(--remu-font);
	color: #000;
	line-height: 1.5;
}

.remu-var *,
.remu-var *::before,
.remu-var *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- switcher */

.remu-var__head {
	display: flex;
	align-items: baseline;
	gap: 0.4em;
	margin-bottom: 0.6em;
}

.remu-var__label {
	color: var(--remu-muted);
	font-size: 14px;
}

.remu-var__label::after {
	content: ":";
}

.remu-var__current {
	font-size: 14px;
	font-weight: 700;
}

.remu-var__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 1.25em;
}

.remu-var .remu-var__option {
	position: relative;
	padding: 0.5em 1.25em;
	border: 1px solid var(--remu-border);
	border-radius: var(--remu-radius);
	background: #fff;
	color: #000;
	font-family: var(--remu-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* The theme's reset.css paints every button #CC3366 on :hover and :focus.
   These selectors carry more specificity than its bare `button:hover`, so the
   pills keep their own colours after being clicked. */
.remu-var .remu-var__option:hover,
.remu-var .remu-var__option:focus,
.remu-var .remu-var__option:active {
	background: #fff;
	border-color: var(--remu-select);
	color: var(--remu-select);
}

.remu-var .remu-var__option:focus-visible {
	outline: 2px solid var(--remu-select);
	outline-offset: 2px;
}

.remu-var .remu-var__option.is-active,
.remu-var .remu-var__option.is-active:hover,
.remu-var .remu-var__option.is-active:focus,
.remu-var .remu-var__option.is-active:active {
	border-color: var(--remu-select);
	background: var(--remu-select);
	color: #fff;
	box-shadow: none;
	font-weight: 700;
}

.remu-var .remu-var__option.is-out {
	color: var(--remu-muted);
}

.remu-var .remu-var__option.is-out.is-active {
	color: #fff;
	opacity: 0.75;
}

.remu-var__flag {
	display: block;
	font-size: 0.72em;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------- panel */

.remu-var__panel {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
}

.remu-var__media {
	flex: 1 1 260px;
	min-width: 0;
}

.remu-var__image {
	display: none;
	width: 100%;
	height: auto;
	border-radius: var(--remu-radius);
}

.remu-var__image.is-active {
	display: block;
}

.remu-var__details {
	flex: 1 1 260px;
	min-width: 0;
}

.remu-var__detail {
	display: none;
}

.remu-var__detail.is-active {
	display: block;
}

.remu-var__price {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	margin-bottom: 0.5em;
}

.remu-var__price-sale {
	font-size: 34px;
	font-weight: 800;
	color: var(--remu-select);
}

.remu-var__price-was {
	color: var(--remu-muted);
}

.remu-var__note,
.remu-var__sku {
	margin: 0 0 0.5em;
	font-size: 14px;
	color: var(--remu-muted);
}

.remu-var__buy {
	display: inline-block;
	margin-top: 0.5em;
	padding: 0.5em 1.5em;
	border: 1px solid var(--remu-accent);
	border-radius: var(--remu-radius);
	background: transparent;
	color: var(--remu-accent) !important;
	font-family: var(--remu-font);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.remu-var__buy:hover,
.remu-var__buy:focus {
	background: var(--remu-accent);
	color: #fff !important;
}

.remu-var__buy--sm {
	margin-top: 0;
	padding: 0.45em 1em;
	font-size: 0.9em;
	white-space: nowrap;
}

/* --------------------------------------------------------- comparison table */

.remu-var__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.remu-var__compare {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.remu-var__compare th,
.remu-var__compare td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--remu-border);
	vertical-align: middle;
}

.remu-var__compare thead th {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--remu-muted);
	white-space: nowrap;
}

.remu-var__compare tbody tr.is-out {
	opacity: 0.55;
}

.remu-var__row-title {
	display: flex;
	align-items: center;
	gap: 0.7em;
	font-weight: 600;
}

.remu-var__thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	flex: none;
}

@media (max-width: 600px) {
	.remu-var__panel {
		gap: 1rem;
	}

	.remu-var__price-sale {
		font-size: 28px;
	}
}
