/* Looks popup — styled per Figma 798:20241 */

/* "Купити повний образ" button (Figma 0:3786)
   Desktop/12 REG, padding 10/12, bg #FFF, color #141414, no border/shadow */
.btn-look-full {
	box-sizing: border-box;
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 5;
	display: inline-grid;
	place-content: center;
	min-height: 32px;
	padding: 11px 14px 9px;
	background: #FFFFFF;
	color: #141414;
	border: 0;
	font: 400 12px/1 'Fixel Text', sans-serif;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	vertical-align: middle;
}
.btn-look-full:hover {
	background: #141414;
	color: #FFFFFF;
}

/* Compact variant for product cards in listings */
.btn-look-full--sm {
	right: 8px;
	bottom: 8px;
	padding: 7px 10px;
	font-size: 11px;
}

.look-popup-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	min-height: 100vh;
	height: 100%;
	background-color: rgba(15, 15, 14, 0.6);
	z-index: 4000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.look-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.look-popup-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 620px;
	max-width: 100%;
	min-height: 100vh;
	height: 100%;
	background-color: #fff;
	z-index: 4001;
	transform: translateX(100%);
	transition: transform 0.35s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.look-popup-drawer.is-open {
	transform: translateX(0);
}

.look-popup {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

body.look-popup-open {
	overflow: hidden;
}

/* Sticky header */
.look-popup__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 32px 40px 12px;
	border-bottom: 1px solid #E3E3E3;
	flex-shrink: 0;
	background: #fff;
	box-sizing: border-box;
}
.look-popup__heading {
	margin: 0;
	font-family: 'FixelDisplayR', 'Fixel Text', 'MacPawFixel', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: #141414;
	letter-spacing: 0.3px;
}
.look-popup__close {
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-size: 11px 11px;
	background-position: center;
	background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDFMMSAxMSIgc3Ryb2tlPSIjNUU1RTVFIiBzdHJva2Utd2lkdGg9IjEuMiIvPgo8cGF0aCBkPSJNMSAxTDExIDExIiBzdHJva2U9IiM1RTVFNUUiIHN0cm9rZS13aWR0aD0iMS4yIi8+Cjwvc3ZnPgo=');
	border: none;
	background-color: transparent;
	opacity: 1;
	cursor: pointer;
	padding: 0;
	font-size: 0;
}
.look-popup__close:hover { opacity: 0.6; }

/* Body — two fixed columns per Figma (193px + 20px gap + 327px) */
.look-popup__body {
	display: flex;
	flex: 1;
	min-height: 0;
	gap: 20px;
	padding: 24px 40px 24px 40px;
	box-sizing: border-box;
}

.look-popup__left {
	min-width: 200px;
	overflow-y: auto;
	padding: 0;
}
.look-popup__left::-webkit-scrollbar { width: 4px; }
.look-popup__left::-webkit-scrollbar-thumb { background: #EEEEEE; }

.look-popup__right {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	gap: 19px;
}

.look-popup__photo {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	max-height: 589px;
}
.look-popup__photo img {
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: cover;
}

.look-popup__footer {
	padding: 0;
	background: #fff;
	flex-shrink: 0;
}

.look-popup__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	font-family: 'FixelDisplayR', 'Fixel Text', sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	color: #000;
	line-height: 1.38;
	margin: 0;
}
.look-popup__total-label {
	font-family: 'FixelDisplayR', 'Fixel Text', sans-serif;
	font-weight: 400;
	color: #000;
}
.look-popup__total-value {
	font-family: 'FixelDisplayM', 'Fixel Text', sans-serif;
	font-weight: 500;
	color: #000;
}

.look-popup__buy {
	width: 100%;
  height: 46px;
	background: #000;
	color: #fff;
	border: 0;
	padding: 16px;
	font-family: 'FixelDisplayM', 'Fixel Text', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.38;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.2s;
}
.look-popup__buy:hover { background: #1a1a1a; }

/* Product cards in left column */
.look-popup__products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.look-popup__product {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	margin: 0;
	border: 0;
	width: 193px;
}

/* Image wrapper with absolute-positioned size pills + gallery arrows */
.look-popup__product-img {
	position: relative;
	width: 193px;
	height: 283px;
	background: #FAFAFA;
	overflow: hidden;
	display: block;
}
.look-popup__product-img-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}
.look-popup__product-img .look-popup__product-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.look-popup__product-img .look-popup__product-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Gallery arrows — visible only on hover */
.look-popup__img-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	padding: 0;
	z-index: 3;
}
.look-popup__img-arrow svg {
	display: block;
	width: 6px;
	height: 11px;
}
.look-popup__img-arrow--prev { left: 8px; }
.look-popup__img-arrow--next { right: 8px; }

.look-popup__product-img:hover .look-popup__img-arrow {
	opacity: 1;
	visibility: visible;
}
.look-popup__img-arrow:hover svg path {
	stroke: #000000;
}

.look-popup__product-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
}

.look-popup__product-name {
	font-family: 'FixelDisplayR', 'Fixel Text', sans-serif;
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	color: #141414;
	line-height: 1.38;
	margin: 0;
}

.look-popup__product-price {
	font-family: 'FixelDisplayR', 'Fixel Text', sans-serif;
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	color: #757575;
	line-height: 1.38;
}
.look-popup__price-old {
	text-decoration: line-through;
	color: #757575;
	margin-right: 6px;
}
.look-popup__price-special {
	color: #E14D3C;
	font-weight: 400;
}

/* Size pills — floating over the bottom of the photo (Figma 0:5778)
   Container: padding 14/12, gap 20, rgba(255,255,255,0.5), blur(36) */
.look-popup__size-row {
  width: 95%;
  height: 42px;
	position: absolute;
  left: 50%;
  transform: translateX(-50%);
	bottom: 6px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
	padding: 0px 12px;
	background: rgba(255, 255, 255, 0.5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 0;
	margin: 0;
	z-index: 2;
	box-sizing: border-box;
}
.look-popup__size {
	flex: 0 0 auto;
	display: inline-flex;
	cursor: pointer;
	margin: 0;
	min-width: auto;
}
.look-popup__size input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.look-popup__size span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	font-family: 'FixelDisplayR', 'Fixel Text', sans-serif;
	font-size: 13px;
	font-weight: 400;
	text-transform: uppercase;
	color: #757575;
	transition: all 0.15s;
	user-select: none;
	border: 0;
	background: transparent;
	border-bottom: 1px solid transparent;
	box-sizing: border-box;
}
.look-popup__size:hover span {
	background: rgba(250, 250, 250, 0.7);
	color: #000000;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.look-popup__size input:checked + span {
	background: rgba(250, 250, 250, 0.7);
	color: #000000;
	border-bottom: 1px solid #000000;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.look-popup__size.is-disabled {
	pointer-events: none;
}
.look-popup__size.is-disabled span {
	color: #bdbdbd;
	text-decoration: line-through;
}

/* Error state */
.look-popup__product-error {
	display: none;
	color: #E14D3C;
	font-family: 'FixelDisplayR', 'Fixel Text', sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 500;
	letter-spacing: 0.3px;
	margin-top: 4px;
}
.look-popup__product.has-error .look-popup__product-error {
	display: block;
}
.look-popup__product.has-error .look-popup__product-name,
.look-popup__product.has-error .look-popup__product-price {
	color: #E14D3C;
}
.look-popup__product.has-error .look-popup__size-row {
	outline: 1px solid #E14D3C;
	outline-offset: -1px;
}

/* Responsive */
@media (max-width: 1100px) {
	.look-popup-drawer { width: 80%; }
}

@media (max-width: 992px) {
	.look-popup-drawer { width: 100%; }
	.look-popup__header { padding: 24px 16px 12px; }
	.look-popup__body { padding: 16px; gap: 16px; }
}

/* ===== Mobile adaptive per Figma 0:5793 =====
   390w mobile layout:
   - Header (24/16/0, border-bottom Black/30, "Готовий образ" 16 REG UPPER)
   - Body: column, scroll-y, gap 23, padding-x 0 (left/right inner padding via children)
     • Products row: overflow-x scroll, gap 8, padding-x 16, 193px cards
     • Hero photo: full-bleed width
   - Sticky footer: padding 10/16/16, gap 8, Разом 16 REG + value 16 MED,
     black button full-width Desktop/14 MED padding 16 */
@media (max-width: 768px) {
	.look-popup {
		display: flex;
		flex-direction: column;
		height: 100%;
	}
	.look-popup__header {
		padding: 24px 16px 12px;
		border-bottom: 1px solid #E3E3E3;
	}
	.look-popup__heading {
		font-size: 16px;
		line-height: 1.2;
	}
	.look-popup__body {
		display: flex;
		flex-direction: column;
		gap: 23px;
		padding: 16px 0 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		flex: 1 1 auto;
		min-height: 0;
	}
	/* Right column on mobile — plain block, full width, no flex/sticky */
	.look-popup__right {
		display: block;
		position: static;
		flex: 0 0 auto;
		width: 100%;
		padding: 0;
		margin: 0;
		gap: 0;
	}
	.look-popup__left {
		flex: 0 0 auto;
		width: 100%;
		padding: 0;
		overflow: visible;
	}
	.look-popup__products {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 8px;
		padding: 0 16px;
	}
	.look-popup__products::-webkit-scrollbar { display: none; }
	.look-popup__product {
		flex: 0 0 193px;
		width: 193px;
		gap: 12px;
	}
	.look-popup__product-img {
		width: 193px;
		height: 283px;
	}
	/* Mobile typography is smaller — Desktop/12 REG on card name + price */
	.look-popup__product-name,
	.look-popup__product-price {
		font-size: 12px;
	}
	/* Hero photo — full-bleed, fills width and keeps aspect */
	.look-popup__photo {
		display: block;
		width: 100%;
		height: auto;
		max-height: none;
		margin: 0;
		padding: 0;
		overflow: hidden;
	}
	.look-popup__photo img {
		display: block;
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: cover;
	}

	/* Sticky footer — pinned to viewport bottom of the scrolling body */
	.look-popup__footer {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding: 10px 16px 16px;
		display: flex;
		flex-direction: column;
		gap: 8px;
		z-index: 5;
	}
	.look-popup__total {
		padding: 12px 0;
		font-size: 16px;
		line-height: 1.38;
	}
	.look-popup__total-label,
	.look-popup__total-value {
		font-size: 16px;
		line-height: 1.38;
	}
	.look-popup__buy {
		width: 100%;
		padding: 16px;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.38;
		letter-spacing: 0;
		height: auto;
	}
  .btn-look-full {
    bottom: 4%;
  }
}
