/*
 * Hurtownia Lux — galeria zdjęć produktu (miniatury pod zdjęciem) i obrót 360° (24.10.2026). Opis: inc/galeria.php.
 * Styl hurtowni: Open Sans, grafit + sygnałowa czerwień, narożniki 6 px (przyciski) / 10 px (okno), cienkie szare ramki.
 * Tylko strona produktu (ładowany po main.css). Tokeny z main.css (:root).
 */

/* ------------------------------------------------------------ Miniatury galerii (flexslider WooCommerce) */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex; gap: 8px; margin: 12px 0 0; padding: 2px; list-style: none;
	overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 64px; width: 64px; height: 64px; margin: 0; padding: 0; box-sizing: border-box;
	border: 1px solid var(--line-soft, #DDE2EF); border-radius: var(--r, 6px); background: var(--white, #fff);
	overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	display: block; width: 100%; height: 100%; max-height: none; padding: 5px; box-sizing: border-box;
	object-fit: contain; opacity: .72; transition: opacity .15s; cursor: pointer;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover { border-color: #BFC6D6; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img,
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { opacity: 1; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
	border-color: var(--ink, #0E0F24); box-shadow: inset 0 0 0 1px var(--ink, #0E0F24);
}
.single-product div.product .woocommerce-product-gallery .flex-viewport { border-radius: calc(var(--r-card, 10px) - 4px); }

/* ------------------------------------------------------------ Znak „360°” na zdjęciu i kafelek w miniaturach */
.hlx360 { position: absolute; top: 12px; left: 12px; z-index: 6; }
.hlx360[hidden] { display: none; }
.hlx360-badge, .hlx360-thumb {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0;
	font-family: var(--font); font-weight: 700; color: var(--ink, #0E0F24); cursor: pointer;
	background: var(--white, #fff); border: 1px solid #C9CFDE; border-radius: var(--r, 6px);
	transition: background-color .15s, color .15s, border-color .15s;
}
.hlx360-badge { height: 36px; padding: 0 12px 0 9px; font-size: 13.5px; letter-spacing: .01em; box-shadow: 0 6px 16px -10px rgba(15, 16, 32, .45); }
.hlx360-badge svg, .hlx360-thumb svg { color: var(--acc-ink); flex: 0 0 auto; transition: color .15s; }
.hlx360-badge:hover, .hlx360-thumb:hover { background: var(--ink, #0E0F24); border-color: var(--ink, #0E0F24); color: var(--white, #fff); }
.hlx360-badge:hover svg, .hlx360-thumb:hover svg { color: var(--white, #fff); }
.hlx360-badge:focus-visible, .hlx360-thumb:focus-visible, .hlx360-btn:focus-visible, .hlx360-x:focus-visible, .hlx360-stage:focus-visible {
	outline: 2px solid var(--acc, var(--acc)); outline-offset: 2px;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li.hlx360-li { border: 0; overflow: visible; background: none; }
.hlx360-thumb { flex-direction: column; gap: 2px; width: 100%; height: 100%; padding: 0; font-size: 12.5px; }

/* ------------------------------------------------------------ Okno 360° */
html.hlx360-open { overflow: hidden; }
.hlx360-dlg {
	width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0;
	border-radius: var(--r-card, 10px); background: var(--white, #fff); color: var(--ink, #0E0F24); font-family: var(--font);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden;
}
.hlx360-dlg::backdrop { background: rgba(20, 22, 25, .72); }
.hlx360-dlg[open] { display: flex; animation: hlx360-in .18s var(--ease, ease-out) both; }
@keyframes hlx360-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.hlx360-box { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.hlx360-top { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line-soft, #DDE2EF); }
.hlx360-tag { flex: 0 0 auto; padding: 3px 7px; border-radius: 4px; background: var(--acc, var(--acc)); color: var(--acc-on); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.hlx360-h {
	flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hlx360-x, .hlx360-btn {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0;
	border: 1px solid #C9CFDE; border-radius: var(--r, 6px); background: var(--white, #fff); color: var(--ink, #0E0F24); cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.hlx360-x:hover, .hlx360-btn:hover { background: var(--soft, #E8EBF8); border-color: #BFC6D6; }
.hlx360-play .i-pause, .hlx360-play[aria-pressed="true"] .i-play { display: none; }
.hlx360-play[aria-pressed="true"] .i-pause { display: block; }
.hlx360-play[aria-pressed="true"] { background: var(--ink, #0E0F24); border-color: var(--ink, #0E0F24); color: var(--white, #fff); }
.hlx360-view { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 12px; background: var(--white, #fff); }
.hlx360-stage {
	position: relative; width: min(100%, calc(100dvh - 200px), 680px); aspect-ratio: 1 / 1;
	cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-radius: var(--r, 6px);
}
.hlx360-stage.is-drag { cursor: grabbing; }
.hlx360-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; visibility: hidden; pointer-events: none; }
.hlx360-stage img.is-on { visibility: visible; }
.hlx360-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: var(--muted, #545C6B); font-size: 14px; }
.hlx360-msg[hidden] { display: none; }
.hlx360-bar { position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px; border-radius: 2px; background: var(--soft, #E8EBF8); overflow: hidden; transition: opacity .3s .4s; }
.hlx360-bar span { display: block; width: 0; height: 100%; background: var(--acc, var(--acc)); transition: width .2s; }
.hlx360-stage.is-ready .hlx360-bar { opacity: 0; }
.hlx360-ctl { display: flex; align-items: center; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid var(--line-soft, #DDE2EF); }
.hlx360-hint { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 0 8px; color: var(--muted, #545C6B); font-size: 13px; line-height: 1.3; }
.hlx360-hint svg { flex: 0 0 auto; color: var(--acc-ink); }

@media (max-width: 699px) {
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { gap: 6px; margin-top: 8px; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { flex-basis: 52px; width: 52px; height: 52px; }
	.hlx360 { top: 8px; left: 8px; }
	.hlx360-badge { height: 34px; padding: 0 10px 0 8px; font-size: 13px; }
	.hlx360-thumb { font-size: 11.5px; }
	.hlx360-thumb svg { width: 16px; height: 16px; }
	.hlx360-dlg { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
	.hlx360-top { padding: 8px 8px 8px 16px; padding-top: max(8px, env(safe-area-inset-top, 0px)); }
	.hlx360-h { font-size: 14px; }
	.hlx360-view { padding: 8px 0; }
	.hlx360-stage { width: 100%; border-radius: 0; }
	.hlx360-ctl { flex-wrap: wrap; justify-content: center; padding: 10px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
	.hlx360-hint { flex: 1 0 100%; justify-content: center; order: -1; margin: 0 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.hlx360-dlg[open] { animation: none; }
	.hlx360-bar span, .hlx360-badge, .hlx360-thumb { transition: none; }
}

/* =====================================================================================================================
   LUPA, SLIDER I OKNO ZDJĘĆ (24.10.2026, assets/js/lupa.js): przycisk lupy (prawy górny róg zdjęcia), strzałki, licznik „1 / 5”, kropki na
   telefonie, powiększenie pod kursorem (mysz) i pełnoekranowe okno z miniaturami. Elementy leżą w warstwie absolutnej nad zdjęciem —
   bez przesunięć układu. Bez zmian dla produktu z jednym zdjęciem: tylko lupa.
   ===================================================================================================================== */
.single-product div.product .woocommerce-product-gallery.hlx-g { position: relative; }
.hlx-g-zoom, .hlx-g-nav { position: absolute; z-index: 7; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px -10px rgba(15, 16, 32, .5); transition: background-color .15s, color .15s, border-color .15s, opacity .15s; }
.hlx-g-zoom { top: 12px; right: 12px; }
.hlx-g-nav { top: calc(var(--hlx-vh, 320px) / 2); transform: translateY(-50%); border-radius: 50%; }
.hlx-g-prev { left: 10px; } .hlx-g-next { right: 10px; }
.hlx-g-zoom:hover, .hlx-g-nav:hover:not(:disabled) { background: var(--acc-soft); border-color: var(--acc-soft2); color: var(--acc); }
.hlx-g-nav:disabled { opacity: .35; cursor: default; }
.hlx-g-zoom:focus-visible, .hlx-g-nav:focus-visible, .hlx-g-dot:focus-visible, .hlx-lb button:focus-visible { outline: 2px solid var(--acc-bright); outline-offset: 2px; }
.hlx-g-count { position: absolute; z-index: 7; right: 12px; top: calc(var(--hlx-vh, 320px) - 40px); padding: 3px 10px; border-radius: 999px; background: rgba(15, 16, 32, .78); color: #fff; font: 600 12.5px var(--font); font-variant-numeric: tabular-nums; pointer-events: none; }
.hlx-g-dots { display: none; }
.single-product div.product .woocommerce-product-gallery.hlx-g .woocommerce-product-gallery__image { overflow: hidden; }
.single-product div.product .woocommerce-product-gallery.hlx-g .woocommerce-product-gallery__image a { display: block; cursor: zoom-in; }
.single-product div.product .woocommerce-product-gallery.hlx-g .woocommerce-product-gallery__image img { transition: transform .18s ease-out; will-change: transform; }
.single-product div.product .woocommerce-product-gallery.hlx-g .woocommerce-product-gallery__image.is-zoom img { transform: scale(2.1); }
@media (max-width: 699px) {
  .hlx-g-zoom { top: 8px; right: 8px; width: 40px; height: 40px; }
  .hlx-g-nav { display: none; }
  .hlx-g-count { right: 10px; top: calc(var(--hlx-vh, 280px) - 34px); }
  .hlx-g-dots { position: absolute; z-index: 7; left: 0; right: 0; top: calc(var(--hlx-vh, 280px) - 30px); display: flex; justify-content: center; }
  .hlx-g-dot { position: relative; width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .hlx-g-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(15, 16, 32, .28); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
  .hlx-g-dot[aria-current="true"]::before { width: 18px; margin-left: -9px; border-radius: 4px; background: var(--acc); }
  .single-product div.product .woocommerce-product-gallery.hlx-g .flex-control-thumbs { display: none; }
}

/* okno pełnoekranowe */
html.hlx-lb-open { overflow: hidden; }
.hlx-lb { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: #F4F6FA; color: var(--ink); font-family: var(--font); }
.hlx-lb[hidden] { display: none; }
.hlx-lb-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
.hlx-lb-count { font: 600 14px var(--font); font-variant-numeric: tabular-nums; color: var(--muted); }
.hlx-lb-tools { display: flex; gap: 8px; }
.hlx-lb-b, .hlx-lb-nav { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: 700 13.5px var(--font); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.hlx-lb-b:hover, .hlx-lb-nav:hover { background: var(--acc-soft); border-color: var(--acc-soft2); color: var(--acc); }
.hlx-lb-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.hlx-lb-stage.is-zoomed { cursor: grab; }
.hlx-lb-img { position: absolute; inset: 0; margin: auto; max-width: 94%; max-height: 94%; width: auto; height: auto; object-fit: contain; transform-origin: center center; will-change: transform; -webkit-user-drag: none; pointer-events: none; }
.hlx-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 8px 22px -12px rgba(15, 16, 32, .5); }
.hlx-lb-prev { left: 16px; } .hlx-lb-next { right: 16px; }
.hlx-lb-strip { flex: none; display: flex; justify-content: center; gap: 8px; padding: 10px 14px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); overflow-x: auto; }
.hlx-lb-th { flex: 0 0 60px; width: 60px; height: 60px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; opacity: .75; transition: opacity .15s, border-color .15s; }
.hlx-lb-th img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hlx-lb-th:hover { opacity: 1; }
.hlx-lb-th[aria-current="true"] { opacity: 1; border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
@media (max-width: 699px) { .hlx-lb-nav { display: none; } .hlx-lb-th { flex-basis: 48px; width: 48px; height: 48px; } .hlx-lb-strip { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .single-product div.product .woocommerce-product-gallery.hlx-g .woocommerce-product-gallery__image img { transition: none; } }

/* ------------------------------------------------------------ Zdjęcie poglądowe (29.10.2026, inc/galeria.php)
   Podpis w slajdzie zdjęcia rodziny/serii: jasnoniebieska wstawka jak „hlx-similar” (main.css), ikona w akcencie; nad
   powiększeniem lupy (z-index). */
.single-product div.product .woocommerce-product-gallery .hlx-pogl-note {
	position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 9px 12px;
	border: 1px solid var(--acc-soft2); border-radius: 10px; background: var(--acc-soft); color: var(--muted);
	font-size: 12.5px; line-height: 1.45; text-align: left;
}
.single-product div.product .woocommerce-product-gallery .hlx-pogl-note svg { flex: none; margin-top: 1px; color: var(--acc-ink); }
.single-product div.product .woocommerce-product-gallery .hlx-pogl-note strong { color: var(--ink); font-weight: 700; }
