/* Quick view modal — values from the reference quick-add.css (modal) + product page info column */

.rk-qv {
	position: fixed;
	inset: 0;
	z-index: 1001;
	background: rgba(18, 18, 18, .5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #121212;
	font-family: inherit;
}
.rk-qv[hidden] {
	display: none;
}

.rk-qv__dialog {
	position: absolute;
	top: 0;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 30px);
	margin: 32px auto 0;
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
}
.rk-qv__dialog:focus-visible {
	outline: none;
}

.rk-qv__close {
	position: absolute;
	top: 5px;
	right: 5px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	margin: 0;
	min-height: 0;
	border: 1px solid rgba(18, 18, 18, .1);
	border-radius: 8px;
	background: #fff;
	color: rgba(18, 18, 18, .55);
	line-height: 0;
	cursor: pointer;
}
.rk-qv__close:hover,
.rk-qv__close:focus {
	background: #fff;
	color: rgba(18, 18, 18, .75);
}

.rk-qv__content {
	display: flex;
	height: 100%;
	padding: 40px 16px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rk-qv__product {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	height: max-content;
}

/* Media */
.rk-qv__media {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.rk-qv__main {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
}
.rk-qv__main .swiper-slide {
	aspect-ratio: 2 / 3;
	background: #f7f7f7;
}
.rk-qv__img,
.rk-qv__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rk-qv__thumbcol {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}
.rk-qv__thumbs {
	width: 100%;
}
.rk-qv__thumb {
	box-sizing: border-box;
	aspect-ratio: 2 / 3;
	border: 1px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
}
.rk-qv__thumb.swiper-slide-thumb-active {
	border-color: #000;
}
.rk-qv__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rk-qv__arrows {
	display: none;
}

/* Info column */
.rk-qv__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.rk-qv__info > * {
	margin: 0;
}
.rk-qv__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.rk-qv__title {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
}
.rk-qv__title a {
	color: inherit;
	text-decoration: none;
}
.rk-qv__title a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.rk-qv__stock {
	flex-shrink: 0;
	width: max-content;
	padding: 4px 8px;
	border-radius: 6px;
	background: #f2f2f2;
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
}
.rk-qv__stock.is-out {
	color: #d73d3d;
}
.rk-qv__info > .rk-qv__sku {
	margin-top: -6px;
	color: #757575;
	font-size: 10px;
	font-weight: 300;
}
.rk-qv__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.rk-qv__label-lg {
	font-size: 14px;
	font-weight: 400;
}
.rk-qv__price .rk-price {
	font-size: 16px;
	font-weight: 600;
	text-align: right;
}
.rk-qv__label,
.rk-qv__ship {
	font-size: 10px;
	font-weight: 300;
	line-height: 1.2;
	text-transform: uppercase;
}
.rk-qv__ship {
	font-weight: 400;
}

/* Form */
.rk-qv__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.rk-qv__options {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.rk-qv__options legend,
.rk-qv__qty .rk-qv__label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
}
.rk-qv__pills {
	display: flex;
	flex-wrap: wrap;
}
.rk-qv__pill {
	position: relative;
	margin: 0 5px 10px 0;
	cursor: pointer;
}
.rk-qv__pill input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.rk-qv__pill span {
	display: inline-block;
	min-width: 45px;
	padding: 4px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
	color: #121212;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	text-align: center;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.rk-qv__pill:hover span {
	border-color: #121212;
}
.rk-qv__pill input:checked + span {
	border-color: #000;
	background: #000;
	color: #fff;
}
.rk-qv__pill input:focus-visible + span {
	outline: 2px solid #121212;
	outline-offset: 2px;
}
.rk-qv__pill.is-disabled span {
	color: #9a9a9a;
	text-decoration: line-through;
}

.rk-qty {
	display: inline-flex;
	align-items: center;
}
.rk-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	min-height: 0;
	border: 0;
	border-radius: 2px;
	background: #121212;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}
.rk-qty__btn:hover,
.rk-qty__btn:focus {
	background: #000;
	color: #fff;
}
.rk-qty__btn:disabled,
.rk-qty__btn:disabled:hover {
	background: #e9e9e9;
	color: #fff;
	cursor: default;
}
.rk-qty__input {
	width: 48px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #121212;
	font: inherit;
	font-size: 14px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.rk-qty__input::-webkit-outer-spin-button,
.rk-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rk-qv__atc {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 55px;
	padding: 8px 21px;
	margin: 0;
	border: 1px solid #121212;
	border-radius: 8px;
	background: #121212;
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity .3s ease;
}
.rk-qv__atc:hover,
.rk-qv__atc:focus {
	background: #121212;
	color: #fff;
	opacity: .9;
}
.rk-qv__atc:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.rk-qv__atc.is-loading > :not(.rk-spinner) {
	visibility: hidden;
}
.rk-qv__atc.is-loading > .rk-spinner {
	display: block;
}
.rk-qv__msg {
	margin: 0;
	font-size: 12px;
}
.rk-qv__msg:empty {
	display: none;
}
.rk-qv__msg.is-error {
	color: #d73d3d;
}

/* Accordions */
.rk-qv__accordions {
	display: flex;
	flex-direction: column;
}
.rk-qv__acc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 4px;
	font-size: 12px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.rk-qv__acc summary::-webkit-details-marker {
	display: none;
}
.rk-qv__acc summary svg {
	flex-shrink: 0;
	transition: transform .3s ease;
}
.rk-qv__acc[open] summary svg {
	transform: rotate(45deg);
}
.rk-qv__acc-body {
	padding: 0 4px 12px;
	color: #121212;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.6;
}
.rk-qv__acc-body > :first-child {
	margin-top: 0;
}
.rk-qv__acc-body > :last-child {
	margin-bottom: 0;
}

.rk-qv a:focus-visible,
.rk-qv button:focus-visible,
.rk-qv summary:focus-visible,
.rk-qty__input:focus-visible {
	outline: 2px solid #121212;
	outline-offset: 2px;
}

/* ≥750: modal 80% wide, 100px from the top, scrolls inside */
@media screen and (min-width: 750px) {
	.rk-qv__dialog {
		bottom: auto;
		width: 80%;
		margin-top: 100px;
		max-height: calc(100% - 200px);
		overflow-y: auto;
	}
	.rk-qv__close {
		top: 10px;
		right: 10px;
	}
	.rk-qv__content {
		height: auto;
	}
}

/* ≥990: 60% / min 970px × 75vh, image column + info column */
@media screen and (min-width: 990px) {
	.rk-qv__dialog {
		width: 60%;
		min-width: 970px;
		min-height: 580px;
		height: 75vh;
		overflow: hidden;
	}
	.rk-qv__content {
		height: 100%;
		padding: 25px;
	}
	.rk-qv__product {
		flex-direction: row;
		gap: 40px;
	}
	.rk-qv__media {
		flex-direction: row;
		gap: 16px;
		flex-shrink: 0;
		width: 27vw;
		max-width: 49%;
	}
	.rk-qv__main {
		flex: 1 1 auto;
		min-height: 530px;
		height: calc(75vh - 50px);
	}
	.rk-qv__main .swiper-slide {
		aspect-ratio: auto;
		height: 100%;
	}
	.rk-qv__thumbcol {
		flex: 0 0 4vw;
		width: 4vw;
	}
	.rk-qv__thumbs {
		height: calc(50vh + 1px);
		max-height: calc(50vh + 1px);
	}
	.rk-qv__thumb {
		height: auto;
	}
	.rk-qv__arrows {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 30px;
		padding-bottom: 18px;
	}
	.rk-qv__arrow {
		display: inline-flex;
		padding: 0;
		margin: 0;
		min-height: 0;
		border: 0;
		background: transparent;
		color: #121212;
		line-height: 0;
		transform: rotate(90deg);
		cursor: pointer;
		transition: color .3s ease-in-out;
	}
	.rk-qv__arrow:hover,
	.rk-qv__arrow:focus {
		background: transparent;
		color: #121212;
	}
	.rk-qv__arrow.swiper-button-disabled {
		color: #757575;
		cursor: default;
	}
	.rk-qv__info {
		flex: 1 1 auto;
		max-width: 48%;
		padding-top: 20px;
		padding-right: 20px;
		gap: 19px;
	}
	.rk-qv__form {
		gap: 19px;
	}
	.rk-qv__info > .rk-qv__sku {
		margin-top: -15px;
		font-size: 12px;
	}
	.rk-qv__pill {
		margin: 0 9px 12px 0;
	}
	.rk-qv__pill span {
		min-width: 0;
		padding: 4px 8px;
		font-size: 14px;
	}
}

@media screen and (min-width: 1025px) {
	.rk-qv__title { font-size: 20px; }
	.rk-qv__label-lg { font-size: 16px; }
	.rk-qv__price .rk-price { font-size: 20px; }
	.rk-qv__label,
	.rk-qv__ship { font-size: 12px; }
	.rk-qv__acc summary { font-size: 13px; }
	.rk-qv__acc-body { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.rk-qv *,
	.rk-qv *::before {
		transition: none !important;
	}
}

/* ---------- Desktop quick view: values measured on the reference modal at 1536px ---------- */
@media screen and (min-width: 990px) {
	.rk-qv__dialog { width: 970px; min-width: 970px; height: 580px; min-height: 580px; border-radius: 12px; }
	.rk-qv__close { top: 11px; right: 10px; width: 32px; height: 32px; border-radius: 8px; background: #fff; }
	.rk-qv__content { padding: 26px; }
	.rk-qv__product { gap: 40px; }
	.rk-qv__media { width: 442px; max-width: none; gap: 17px; }
	.rk-qv__main { flex: 0 0 365px; width: 365px; height: 548px; min-height: 0; }
	.rk-qv__main img { width: 100%; height: 100%; object-fit: cover; }
	.rk-qv__thumbcol { flex: 0 0 60px; width: 60px; }
	.rk-qv__thumbs { height: 450px; max-height: 450px; }
	.rk-qv__thumb { height: 87.5px; }
	.rk-qv__thumb img { width: 60px; height: 90px; object-fit: cover; }
	.rk-qv__info { flex: 0 0 401px; max-width: 401px; padding: 20px 0 0; gap: 0; }
	.rk-qv__head { align-items: center; min-height: 26px; margin: 0; }
	.rk-qv__title { font-size: 20px; line-height: 20px; font-weight: 500; }
	.rk-qv__stock { padding: 5px 12px; border-radius: 6px; font-size: 12px; line-height: 16px; font-weight: 500; }
	.rk-qv__info > .rk-qv__sku { margin: 7px 0 0; font-size: 12px; line-height: 16px; font-weight: 500; }
	.rk-qv__row { min-height: 28px; margin-top: 19px; }
	.rk-qv__label-lg { font-size: 16px; line-height: 28px; font-weight: 500; }
	.rk-qv__price .rk-price { font-size: 18px; line-height: 27px; font-weight: 700; }
	.rk-qv__ship { margin-top: 21px; font-size: 12px; line-height: 16px; }
	.rk-qv__form { gap: 0; margin-top: 19px; }
	.rk-qv__label { display: block; margin: 0 0 14px; font-size: 12px; line-height: 18px; font-weight: 500; }
	.rk-qv__pills { gap: 12px 13px; }
	.rk-qv__pill { margin: 0; }
	.rk-qv__pill span { min-width: 70px; height: 30px; padding: 5px 8px; border-radius: 8px; font-size: 16px; line-height: 20px; font-weight: 500; }
	.rk-qv__qty { margin-top: 31px; }
	.rk-qv__qty .rk-qv__label { line-height: 15px; margin-bottom: 15px; }
	.rk-qv .rk-qty__btn { width: 32px; height: 32px; border-radius: 0; }
	.rk-qv .rk-qty__input { width: 80px; height: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; }
	.rk-qv__atc { width: 401px; height: 40px; min-height: 40px; margin-top: 25px; padding: 8px 16px; border-radius: 9px; font-size: 12px; line-height: 24px; font-weight: 500; }
	.rk-qv__accordions { margin-top: 31px; }
	.rk-qv__acc summary { font-size: 12px; line-height: 16px; font-weight: 600; }
	.rk-qv__acc-body { font-size: 12px; line-height: 15.6px; }
}
@media screen and (min-width: 990px) {
	.rk-qv__ship { display: flex; align-items: center; justify-content: space-between; }
	.rk-qv__ship > * { margin: 0; }
	.rk-qv__stock { padding: 5px 9px; }
	.rk-qv .rk-qty .rk-qty__input { height: 32px; }
	.rk-qv__accordions { margin-top: 27px; }
}
@media screen and (min-width: 990px) {
	.rk-qv__row--ship { min-height: 0; margin-top: 21px; }
	.rk-qv__row--ship .rk-qv__label { display: inline; margin: 0; font-weight: 400; line-height: 16px; text-transform: uppercase; }
	.rk-qv__row--ship .rk-qv__ship { margin-top: 0; font-weight: 500; }
}
@media screen and (min-width: 990px) {
	.rk-qv__row--ship { margin-top: 23px; }
	.rk-qv__options legend { margin-bottom: 14px; padding: 0; line-height: 18px; }
}
