/*
 * Quick view pop-up (Qode Quick View for WooCommerce) in the product page's signature style:
 * paper image panel, olive brand eyebrow, Georgia title + price, muted Arial text,
 * quantity stepper + ink "Kosárba teszem" button, the size table of variable products, wishlist + details link.
 * Loaded on every front-end page by P4U_Quick_View; everything is scoped to the pop-up.
 */
#qode-quick-view-for-woocommerce-pop-up {
	--p4-ink: #171c18;
	--p4-ink-2: #414e36;
	--p4-text: #4b5149;
	--p4-muted: #656b60;
	--p4-paper: #f2f0e9;
	--p4-card: #fbfaf6;
	--p4-sage: #dfe4d2;
	--p4-olive: #6a7757;
	--p4-olive-2: #839441;
	--p4-line: #dcdfd3;
	--p4-line-2: #b9bfad;
	--p4-serif: Georgia, "Times New Roman", serif;
	--p4-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
	--p4-ease: cubic-bezier(.2, .7, .2, 1);
	--qqvfw-qv-width: 1040px;
	--qqvfw-qv-height: 620px;
}

/* frame */
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-overlay {
	background: rgba(23, 28, 24, .58) !important;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-content {
	width: min(var(--qqvfw-qv-width), calc(100vw - 48px)) !important; /* the theme sets width: auto, which made it follow the image */
	max-width: none !important;
	background: var(--p4-card) !important;
	box-shadow: 0 50px 90px -40px rgba(10, 14, 11, .6);
	transform: translateY(14px);
	transition: transform .45s var(--p4-ease), opacity .3s;
}
#qode-quick-view-for-woocommerce-pop-up.qqvfw--opened .qqvfw-m-content { transform: none; }
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-content-inner { height: 100%; background: transparent !important; }

/* close: round button */
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-close {
	top: 18px !important;
	right: 18px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	background: #fff;
	color: var(--p4-ink) !important;
	box-shadow: 0 2px 12px rgba(23, 28, 24, .12);
	z-index: 5;
	transition: background .2s, color .2s, transform .3s var(--p4-ease);
}
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-close svg { width: 16px !important; height: 16px !important; }
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-close svg * { stroke: currentColor; fill: currentColor; }
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-close:hover { background: var(--p4-ink); color: #fff !important; transform: rotate(90deg); }

/* image: paper panel, white product shots melt into it */
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-media-wrapper { background: var(--p4-paper); }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 44px;
	box-sizing: border-box;
}
#qode-quick-view-for-woocommerce-pop-up .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	mix-blend-mode: multiply;
}
#qode-quick-view-for-woocommerce-pop-up .onsale,
#qode-quick-view-for-woocommerce-pop-up .mkdf-onsale,
#qode-quick-view-for-woocommerce-pop-up .mkdf-out-of-stock {
	top: 20px !important;
	left: 20px !important;
	right: auto !important;
	width: auto !important;
	height: auto !important;
	padding: 6px 10px !important;
	border-radius: 0 !important;
	background: var(--p4-ink) !important;
	color: #fff !important;
	font: 600 9px/1.3 var(--p4-sans) !important;
	letter-spacing: 1.8px !important;
	text-transform: uppercase;
}

/* summary column */
#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary {
	padding: 64px 56px 56px !important;
	box-sizing: border-box;
}
/* short summaries sit vertically centred; wishlist + details link share the last row */
@media (min-width: 881px) {
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary {
		display: grid !important;
		grid-template-columns: auto 1fr;
		align-content: center;
		align-items: center;
		min-height: 100%;
	}
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary > * { grid-column: 1 / -1; }
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary > .qwfw-add-to-wishlist-wrapper { grid-column: 1; }
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary > .p4u-qv-details { grid-column: 2; justify-self: start; }
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary > .ps__rail-x,
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary > .ps__rail-y { grid-column: auto; }
}
#qode-quick-view-for-woocommerce-pop-up .p4u-qv-brand {
	margin: 0 0 14px;
	font: 700 11px/1.3 var(--p4-sans);
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--p4-olive);
}
#qode-quick-view-for-woocommerce-pop-up .p4u-qv-brand a { color: inherit !important; text-decoration: none; transition: color .2s; }
#qode-quick-view-for-woocommerce-pop-up .p4u-qv-brand a:hover { color: var(--p4-ink) !important; }
#qode-quick-view-for-woocommerce-pop-up .summary .entry-title {
	margin: 0 0 16px !important;
	font: 400 32px/1.15 var(--p4-serif) !important;
	letter-spacing: -.6px !important;
	text-transform: none !important;
	color: var(--p4-ink) !important;
	text-wrap: balance;
}
#qode-quick-view-for-woocommerce-pop-up .summary > .price {
	display: block;
	margin: 0 0 22px !important;
	font: 400 24px/1.25 var(--p4-serif) !important;
	letter-spacing: -.3px;
	color: var(--p4-ink) !important;
}
#qode-quick-view-for-woocommerce-pop-up .summary .price * { font: inherit !important; color: inherit; text-transform: none !important; }
#qode-quick-view-for-woocommerce-pop-up .summary .price del { color: var(--p4-muted) !important; font-size: .7em !important; margin-right: 8px; }
#qode-quick-view-for-woocommerce-pop-up .summary .price ins { text-decoration: none; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-product-details__short-description { margin: 0 0 28px !important; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-product-details__short-description p {
	margin: 0 0 10px;
	font: 400 15px/1.75 var(--p4-sans) !important;
	color: var(--p4-text) !important;
}
#qode-quick-view-for-woocommerce-pop-up .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-product-details__short-description strong { color: var(--p4-ink); font-weight: 600; }
#qode-quick-view-for-woocommerce-pop-up .summary .stock {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font: 600 10px/1.5 var(--p4-sans) !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--p4-olive) !important;
}
#qode-quick-view-for-woocommerce-pop-up .summary .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
#qode-quick-view-for-woocommerce-pop-up .summary .stock.out-of-stock { color: #a4372b !important; }

/* simple products: quantity stepper + button in one row */
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0 0 22px !important;
}
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-buttons {
	display: inline-flex !important;
	align-items: stretch;
	flex: 0 0 auto;
	width: auto !important;
	height: 56px;
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--p4-line-2);
}
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-minus,
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-plus {
	position: static !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: auto !important;
	border: 0 !important;
	font: 400 0/1 var(--p4-sans) !important;
	color: var(--p4-ink);
	cursor: pointer;
	user-select: none;
	transition: background .2s;
}
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-minus::before { content: "\2212"; font-size: 18px; }
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-plus::before { content: "+"; font-size: 18px; }
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-minus:hover,
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-plus:hover { background: var(--p4-sage); }
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-minus { order: 0; }
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-input { order: 1; }
#qode-quick-view-for-woocommerce-pop-up form.cart .mkdf-quantity-plus { order: 2; }
#qode-quick-view-for-woocommerce-pop-up form.cart input.mkdf-quantity-input {
	width: 46px !important;
	height: auto !important;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-left: 1px solid var(--p4-line) !important;
	border-right: 1px solid var(--p4-line) !important;
	box-shadow: none !important;
	font: 600 15px/1 var(--p4-sans) !important;
	color: var(--p4-ink) !important;
	text-align: center;
}
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex: 1 1 200px;
	min-height: 56px;
	margin: 0 !important;
	padding: 18px 24px !important;
	background: var(--p4-ink) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	font: 600 12px/1.4 var(--p4-sans) !important;
	letter-spacing: 1.8px !important;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .25s, transform .25s var(--p4-ease), box-shadow .25s;
}
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button::after { content: "\2192"; font: 400 18px/1 var(--p4-sans); transition: transform .3s var(--p4-ease); }
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button:hover {
	background: var(--p4-ink-2) !important;
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -18px rgba(23, 28, 24, .7) !important;
}
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button:hover::after { transform: translateX(5px); }
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button.loading::after { content: "\2026"; }
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button.added::after { content: "\2713"; }
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button:disabled,
#qode-quick-view-for-woocommerce-pop-up .summary > form.cart .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; transform: none; }
#qode-quick-view-for-woocommerce-pop-up form.cart :focus-visible,
#qode-quick-view-for-woocommerce-pop-up a:focus-visible,
#qode-quick-view-for-woocommerce-pop-up button:focus-visible { outline: 3px solid var(--p4-olive-2); outline-offset: 2px; }

/* products with sizes: WooCommerce's form – size buttons, then quantity + button in one row (same as the product page) */
#qode-quick-view-for-woocommerce-pop-up .summary > form.variations_form { display: block !important; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations,
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations tbody,
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations tr { display: block; width: 100%; margin: 0; border: 0 !important; background: none !important; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations { margin: 0 0 16px !important; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations tr { margin: 0 0 12px; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations th,
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations th.label { display: flex !important; align-items: baseline; margin: 0 0 8px; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations label { font: 600 10px/1.5 var(--p4-sans) !important; letter-spacing: 2px; text-transform: uppercase; color: var(--p4-ink); }
#qode-quick-view-for-woocommerce-pop-up .variations_form .woo-selected-variation-item-name { font: 400 13px/1.5 var(--p4-sans) !important; letter-spacing: 0; text-transform: none; color: var(--p4-muted); }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations tr:not(.p4u-one) .woo-selected-variation-item-name { display: none !important; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations tr.p4u-one td.value { display: none !important; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations tr.p4u-one th.label { margin: 0 !important; }
#qode-quick-view-for-woocommerce-pop-up .variations_form table.variations tr.p4u-one .woo-selected-variation-item-name { color: var(--p4-ink); font-weight: 600 !important; }
#qode-quick-view-for-woocommerce-pop-up .variable-items-wrapper { gap: 8px; margin: 0 !important; }
#qode-quick-view-for-woocommerce-pop-up .variable-items-wrapper .variable-item:not(.radio-variable-item) { min-width: 64px; height: 42px !important; margin: 0 !important; padding: 0 14px !important; background: #fff !important; border-radius: 0 !important; box-shadow: 0 0 0 1px var(--p4-line-2) !important; color: var(--p4-ink); transition: box-shadow .2s, background .2s; }
#qode-quick-view-for-woocommerce-pop-up .variable-items-wrapper .variable-item:not(.radio-variable-item):hover { box-shadow: 0 0 0 1px var(--p4-ink) !important; }
#qode-quick-view-for-woocommerce-pop-up .variable-items-wrapper .variable-item.selected:not(.radio-variable-item) { background: var(--p4-ink) !important; box-shadow: 0 0 0 1px var(--p4-ink) !important; }
#qode-quick-view-for-woocommerce-pop-up .variable-items-wrapper .variable-item .variable-item-span { font: 600 12px/1 var(--p4-sans) !important; letter-spacing: .5px; color: var(--p4-ink); }
#qode-quick-view-for-woocommerce-pop-up .variable-items-wrapper .variable-item.selected .variable-item-span { color: #fff !important; }
#qode-quick-view-for-woocommerce-pop-up .reset_variations,
#qode-quick-view-for-woocommerce-pop-up .single_variation_wrap .woocommerce-variation-price { display: none !important; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-variation-add-to-cart { display: flex !important; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0 0 22px !important; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-variation-add-to-cart .single_add_to_cart_button { display: inline-flex !important; align-items: center; justify-content: space-between; gap: 24px; flex: 1 1 200px; min-height: 56px; margin: 0 !important; padding: 18px 24px !important; background: var(--p4-ink) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important; font: 600 12px/1.4 var(--p4-sans) !important; letter-spacing: 1.8px !important; text-transform: uppercase; cursor: pointer; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-variation-add-to-cart .single_add_to_cart_button::after { content: "\2192"; font: 400 18px/1 var(--p4-sans); }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover { background: var(--p4-ink-2) !important; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled,
#qode-quick-view-for-woocommerce-pop-up .woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
#qode-quick-view-for-woocommerce-pop-up .woocommerce-variation-availability { font: 400 13px/1.6 var(--p4-sans); color: var(--p4-muted); }
/* wishlist + link to the full product page */
#qode-quick-view-for-woocommerce-pop-up .qwfw-add-to-wishlist-wrapper.qwfw--single { display: inline-flex; margin: 4px 28px 0 0 !important; vertical-align: middle; }
#qode-quick-view-for-woocommerce-pop-up .qwfw--single .qwfw-add-to-wishlist {
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	padding: 0 !important;
	color: var(--p4-ink) !important;
	font: 400 13px/1.4 var(--p4-sans) !important;
	font-style: normal !important;
	letter-spacing: .2px;
	text-decoration: none;
	transition: color .2s;
}
#qode-quick-view-for-woocommerce-pop-up .qwfw--single .qwfw-add-to-wishlist .qwfw-m-text { font: inherit !important; font-style: normal !important; margin: 0 !important; }
#qode-quick-view-for-woocommerce-pop-up .qwfw--single .qwfw-add-to-wishlist .qwfw-m-icon { display: inline-flex; margin: 0 !important; }
#qode-quick-view-for-woocommerce-pop-up .qwfw--single .qwfw-add-to-wishlist svg { width: 18px !important; height: 18px !important; }
#qode-quick-view-for-woocommerce-pop-up .qwfw--single .qwfw-add-to-wishlist:hover { color: var(--p4-olive) !important; }
#qode-quick-view-for-woocommerce-pop-up .p4u-qv-details {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	vertical-align: middle;
	font: 600 11px/1.4 var(--p4-sans);
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--p4-ink) !important;
	text-decoration: none !important;
	transition: color .2s, gap .3s var(--p4-ease);
}
#qode-quick-view-for-woocommerce-pop-up .p4u-qv-details:hover { color: var(--p4-olive) !important; gap: 12px; }
#qode-quick-view-for-woocommerce-pop-up .summary .product_meta { display: none; }

/* phones / small tablets: image on top, text below, whole pop-up scrolls */
@media (max-width: 1024px) {
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-content { width: calc(100vw - 32px) !important; }
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary { padding: 52px 36px 40px !important; }
	#qode-quick-view-for-woocommerce-pop-up .summary .entry-title { font-size: 27px !important; }
}
@media (max-width: 680px) {
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-content { width: 100vw !important; }
	#qode-quick-view-for-woocommerce-pop-up .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image a { padding: 24px; }
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-summary-wrapper .summary { padding: 30px 22px 32px !important; }
	#qode-quick-view-for-woocommerce-pop-up .summary .entry-title { font-size: 24px !important; }
	#qode-quick-view-for-woocommerce-pop-up .summary > .price { font-size: 21px !important; }
	#qode-quick-view-for-woocommerce-pop-up .qqvfw-m-close { top: 12px !important; right: 12px !important; }
}
@media (max-width: 880px) {
	#qode-quick-view-for-woocommerce-pop-up .p4u-qv-details { margin-top: 16px; }
}
