[data-product-preview-list] .product-card__inner {
	flex-direction: column;
}

.product-preview-trigger {
	display: inline-flex;
	align-items: center;
	align-self: flex-end;
	justify-content: flex-end;
	gap: 5px;
	min-height: 32px;
	margin: 0 17px 7px;
	padding: 5px 0;
	border: 0;
	background: transparent;
	color: #69747e;
	font: 400 12px/1.4 "Roboto", Helvetica, Arial, sans-serif;
	cursor: pointer;
}

.product-preview-trigger:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-preview-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.product-preview-trigger:focus-visible { outline: 2px solid var(--main-color); outline-offset: 3px; }
body#dark .product-preview-trigger { color: #aeb7be; }

body.product-preview-open { overflow: hidden; }

.product-preview {
	--preview-surface: #fff;
	--preview-soft: #f7f9fa;
	--preview-border: #e1e6ea;
	--preview-text: #35414c;
	--preview-muted: #69747e;
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: min(920px, calc(100% - 40px));
	max-width: 920px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--preview-border);
	border-radius: 18px;
	background: var(--preview-surface);
	box-shadow: 0 18px 48px rgba(30, 45, 58, .24);
	color: var(--preview-text);
	font-family: "Roboto", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.product-preview[open] { display: flex; flex-direction: column; }
.product-preview:not([open]), .product-preview [hidden] { display: none !important; }
.product-preview::backdrop { background: rgba(21, 28, 34, .58); }
.product-preview__announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-preview *, .product-preview *::before, .product-preview *::after { box-sizing: border-box; }
.product-preview h2, .product-preview h3, .product-preview h4, .product-preview p, .product-preview dl { margin: 0; color: inherit; font-family: inherit; }
.product-preview button, .product-preview a { -webkit-tap-highlight-color: transparent; }
.product-preview button { font: inherit; cursor: pointer; }
.product-preview :is(a, button):focus-visible { outline: 2px solid var(--main-color); outline-offset: 3px; }
.product-preview ::selection { background: var(--main-color); color: #fff; }

.product-preview__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 22px;
	border-bottom: 1px solid var(--preview-border);
}

.product-preview__header h2 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.product-preview__icon-button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--preview-border);
	border-radius: 50%;
	background: var(--preview-soft);
	color: var(--preview-text);
}

.product-preview__icon-button:hover { border-color: var(--main-color); color: var(--main-color); }
.product-preview__icon-button:disabled { opacity: .35; cursor: default; }
.product-preview__icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-preview__body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--preview-muted) var(--preview-soft); scrollbar-width: thin; }
.product-preview__message { padding: 35px 24px; color: var(--preview-muted); }
.product-preview__retry { margin: 0 24px 24px; padding: 9px 16px; border: 1px solid var(--preview-border); border-radius: 8px; background: var(--preview-soft); color: var(--preview-text); }
.product-preview__summary { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 28px; padding: 26px 24px; }
.product-preview__gallery, .product-preview__information { min-width: 0; }
.product-preview__picture { position: relative; padding: 30px 15px 15px; border-radius: 12px; background: #fff; }
.product-preview__image { display: block; width: 100%; height: 280px; margin: 0; object-fit: contain; }
.product-preview__favorite.product-card__favorite { top: 10px; right: 10px; }
.product-preview__thumbnails { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.product-preview__thumbnail { width: 50px; height: 50px; padding: 3px; border: 1px solid var(--preview-border); border-radius: 8px; background: #fff; }
.product-preview__thumbnail[aria-pressed="true"] { border: 2px solid var(--main-color); padding: 2px; }
.product-preview__thumbnail img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; }
.product-preview h3.product-preview__title { font-size: 26px; font-weight: 700; line-height: 1.22; overflow-wrap: anywhere; text-wrap: balance; }
.product-preview p.product-preview__category { margin-top: 8px; color: var(--preview-muted); font-size: 12px; }
.product-preview p.product-preview__description { margin-top: 14px; color: var(--preview-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.product-preview__pricing { margin-top: 19px; }
.product-preview__price-label { display: block; color: var(--preview-muted); font-size: 12px; }
.product-preview__price { display: block; color: var(--preview-text); font-size: 34px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.product-preview p.product-preview__availability { margin-top: 4px; color: var(--preview-muted); font-size: 13px; }
.product-preview__merchant { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-preview__merchant > img { width: 64px; height: 32px; margin: 0; padding: 3px; border-radius: 4px; background: #fff; object-fit: contain; }
.product-preview__merchant > div { min-width: 0; overflow-wrap: anywhere; }
.product-preview__merchant strong { display: block; font-size: 14px; }
.product-preview__merchant span { display: block; color: var(--preview-muted); font-size: 12px; }
.product-preview__specifications { margin-top: 25px; }
.product-preview__specifications h4 { margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.product-preview__specifications dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.product-preview__specifications dl > div { padding: 10px 0; border-bottom: 1px solid var(--preview-border); overflow-wrap: anywhere; }
.product-preview__specifications dt { color: var(--preview-muted); font-size: 12px; font-weight: 400; }
.product-preview__specifications dd { margin: 3px 0 0; font-size: 13px; font-weight: 600; }
.product-preview__footer { flex: 0 0 auto; padding: 16px 24px; border-top: 1px solid var(--preview-border); background: var(--preview-soft); }
.product-preview__actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.product-preview__offer-group { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; }
.product-preview__offer-group .product-preview__offer-link { flex: 0 0 auto; }
.product-preview a.product-preview__product-link { color: var(--preview-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.product-preview a.product-preview__product-link:hover { color: var(--preview-text); }
.product-preview a.product-preview__offer-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 10px; background: var(--main-color); color: #fff; font-size: 19px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
.product-preview a.product-preview__offer-link:hover { filter: brightness(.92); }
.product-preview__navigation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--preview-border); }
.product-preview__position { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 10px; min-width: 0; color: var(--preview-muted); font-size: 12px; }
.product-preview__dots { display: flex; align-items: center; justify-content: center; }
.product-preview__dot { display: flex; align-items: center; justify-content: center; width: 23px; height: 28px; padding: 0; border: 0; background: transparent; }
.product-preview__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b1bac1; }
.product-preview__dot[aria-current="true"]::before { width: 9px; height: 9px; background: var(--main-color); }
.product-preview__counter { white-space: nowrap; font-variant-numeric: tabular-nums; }

body#dark .product-preview { --preview-surface: #282c31; --preview-soft: #202429; --preview-border: #3d454b; --preview-text: #f0f2f3; --preview-muted: #aeb7be; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); }

@media (max-width: 640px) {
	.product-preview { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
	.product-preview__header { padding: 10px 16px; }
	.product-preview__summary { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
	.product-preview__picture { padding: 15px; }
	.product-preview__image { height: 185px; }
	.product-preview h3.product-preview__title { font-size: 24px; }
	.product-preview__footer { padding: 12px 16px; }
	.product-preview__actions { flex-direction: column-reverse; gap: 10px; }
	.product-preview__offer-group { flex-direction: column; gap: 10px; width: 100%; }
	.product-preview__merchant { align-self: center; }
	.product-preview__offer-link { width: 100%; }
	.product-preview__navigation { margin-top: 12px; padding-top: 10px; gap: 8px; }
	.product-preview__position > span:first-child { flex-basis: 100%; text-align: center; }
	.product-preview__dot { width: 20px; }
	.product-preview-trigger { margin-right: 13px; margin-bottom: 6px; }
}

@media (pointer: coarse) {
	.product-preview__icon-button { width: 44px; height: 44px; }
	.product-preview-trigger { min-height: 44px; }
	.product-preview__dot { height: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
	.product-preview[open] { animation: product-preview-enter .18s cubic-bezier(.16, 1, .3, 1); }
	@keyframes product-preview-enter { from { opacity: .7; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
