/**
 * Product quick view modal.
 */

.rr-quick[hidden] {
	display: none !important;
}

.rr-quick {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.rr-quick__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(12 12 13 / 0.6);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.rr-quick__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 820px);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px -24px rgb(12 12 13 / 0.45);
}

.rr-quick__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--color-border, #eceae7);
	border-radius: 50%;
	background: #fff;
	color: var(--color-ink, #141414);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.rr-quick__close:hover {
	border-color: #d5d0ca;
}

.rr-quick__body {
	min-height: 200px;
}

.rr-quick__loading {
	padding: 3rem 2rem;
	text-align: center;
	color: var(--color-text-muted, #6b655e);
	font-size: 0.9375rem;
}

.rr-quick__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}

.rr-quick__media {
	aspect-ratio: 1 / 1;
	background: #f4f2ef;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.rr-quick__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rr-quick__info {
	padding: 2.125rem 2rem;
	display: flex;
	flex-direction: column;
}

.rr-quick__brand {
	margin: 0;
	font-family: var(--font-family-mono, "Roboto Mono", monospace);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-brand, #e11827);
}

.rr-quick__title {
	margin: 0.625rem 0 0.875rem;
	font-family: var(--font-family-heading, "Inter Tight", sans-serif);
	font-weight: 800;
	font-size: clamp(1.35rem, 2vw, 1.625rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--color-ink, #141414);
	padding-right: 2rem;
}

.rr-quick__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 1.125rem;
	font-family: var(--font-family-heading, "Inter Tight", sans-serif);
	font-weight: 800;
	font-size: 1.625rem;
	line-height: 1;
	color: var(--color-ink, #141414);
}

.rr-quick__price.is-sale,
.rr-quick__price:has(ins) {
	color: var(--color-brand, #e11827);
}

.rr-quick__price ins {
	order: 1;
	text-decoration: none;
}

.rr-quick__price del {
	order: 2;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #a8a29b;
}

.rr-quick__excerpt {
	margin: 0 0 1.5rem;
	font-size: 0.90625rem;
	line-height: 1.6;
	color: var(--color-text-muted, #6b655e);
}

.rr-quick__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: auto;
}

.rr-quick__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	border: 0;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.rr-quick__btn--cart {
	background: var(--color-brand, #e11827);
	color: #fff;
}

.rr-quick__btn--cart:hover {
	background: var(--color-brand-hover, #c3111f);
	color: #fff;
}

.rr-quick__btn--cart:disabled {
	opacity: 0.65;
	cursor: wait;
}

.rr-quick__btn--link {
	background: #fff;
	color: var(--color-ink, #141414);
	border: 1px solid var(--color-border, #eceae7);
	font-weight: 600;
	font-size: 0.875rem;
}

.rr-quick__btn--link:hover {
	border-color: #d5d0ca;
	color: var(--color-ink, #141414);
}

.rr-quick__error {
	padding: 3rem 2rem;
	text-align: center;
	color: var(--color-text-muted, #6b655e);
}

body.rr-quick-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.rr-quick {
		padding: 0.75rem;
		align-items: flex-end;
	}

	.rr-quick__dialog {
		max-height: 92vh;
		border-radius: 16px 16px 12px 12px;
	}

	.rr-quick__grid {
		grid-template-columns: 1fr;
	}

	.rr-quick__media {
		aspect-ratio: 4 / 3;
		max-height: 42vh;
	}

	.rr-quick__info {
		padding: 1.5rem 1.25rem 1.75rem;
	}

	.rr-quick__close {
		top: 12px;
		right: 12px;
	}
}
