/*
 * Skateboard Konfigurátor — styly (anq- design)
 * Tento soubor je převzat z givená HTML šablony (vzhled.html).
 * Prefix: anq-
 */

/* ═══════════════════════════════════════════
   ČÁST 1 – KONFIGURÁTOR (ÚVODNÍ STRANA)
   ═══════════════════════════════════════════ */

.anq-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid #e0e0dc;
  font-family: 'Barlow', sans-serif;
}

/* ── LEFT: preview ── */
.anq-configurator__preview {
  background: #ffffff;
  border-right: 1px solid #e0e0dc;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px;
  min-height: 500px;
}

.anq-configurator__board-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.anq-layer {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.06);
  transition: opacity .4s ease;
}

.anq-layer--empty {
  opacity: 0.18;
  filter: grayscale(1);
}

/* ── RIGHT: config panel ── */
.anq-configurator__panel {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.anq-configurator__title {
  font-size: 22px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
}

/* ── Parts grid ── */
.anq-configurator__parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.anq-part-card {
  border: 1.5px solid #e0e0dc;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: #ffffff;
  position: relative;
  min-width: 0;
}

.anq-part-card:hover {
  border-color: #aaa;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.anq-part-card--selected {
  border-color: #1a1a1a;
  background: #fafafa;
}

/* Full-width expanded state */
.anq-part-card--expanded {
  grid-column: 1 / -1;
  border-color: #1a1a1a;
}

.anq-part-card__thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  background-color: #fff;
  border-radius: 6px;
}

/* Icon placeholder */
.anq-part-card__thumb-placeholder {
  width: 46px;
  height: 46px;
  background: #f0f0ec;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anq-part-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .55;
}

.anq-part-card__info {
  flex: 1;
  min-width: 0;
}

.anq-part-card__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.anq-part-card__name {
  font-size: 12.5px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anq-part-card__price {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2px;
}

/* Variant tag shown on selected card */
.anq-part-card__variant-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #1d6e4f;
  background: #e8f4ef;
  padding: 1px 7px;
  border-radius: 10px;
  margin-top: 3px;
}

/* Badge showing number of available variants */
.anq-variants-badge {
  font-size: 10px;
  font-weight: 700;
  color: #666;
  background: #efefeb;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.anq-part-card__action {
  display: flex;
  gap: 6px;
  align-items: center;
}

.anq-btn-select {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1.5px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.anq-btn-select:hover { background: #1a1a1a; color: #fff; }

.anq-btn-swap {
  font-size: 11px;
  font-weight: 600;
  color: #1d6e4f;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 8px; right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: underline;
  text-underline-offset: 2px;
  z-index: 1;
}

/* ── Variant chips ── */
.anq-part-card__variants {
  display: none;
  width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid #e8e8e4;
}

.anq-part-card--expanded .anq-part-card__variants {
  display: flex;
}

.anq-variant-chip {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}

.anq-variant-chip:hover { border-color: #999; }

.anq-variant-chip--active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.anq-variant-chip--unavail {
  opacity: .3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Services ── */
.anq-services__label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #1a1a1a;
}

.anq-services__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.anq-service-item__tag {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  background: #efefeb;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.anq-service-item__tag.for-free {
  color: #1d6e4f;
  background: #e8f4ef;
}

/* ── Footer ── */
.anq-configurator__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1.5px solid #e0e0dc;
  padding-top: 18px;
}

.anq-configurator__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anq-configurator__total-label {
  font-size: 14px;
  font-weight: 500;
  color: #888;
}

.anq-configurator__total-price {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -.01em;
}

.anq-configurator__footer-btns {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.anq-btn-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  background: none;
  border: 1.5px solid #e0e0dc;
  border-radius: 4px;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.anq-btn-reset:hover { border-color: #aaa; color: #1a1a1a; }

.anq-btn-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.anq-btn-cart:hover:not(:disabled)  { background: #333; transform: translateY(-1px); }
.anq-btn-cart:active { transform: translateY(0); }
.anq-btn-cart:disabled { opacity: .45; cursor: default; transform: none; }
.anq-btn-cart--done { background: #1d6e4f !important; }


/* ═══════════════════════════════════════════
   ČÁST 2 – SELEKTOR PRODUKTU
   ═══════════════════════════════════════════ */

.anq-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  width: 100%;
  height: 560px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid #e0e0dc;
  font-family: 'Barlow', sans-serif;
}

/* ── Left: galerie ── */
.anq-selector__gallery {
  background: #ffffff;
  border-right: 1px solid #e0e0dc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

/* Kontejner galerie */
.anq-gallery-splide {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.anq-gallery-track {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.anq-gallery-inner {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.anq-gallery-inner.is-dragging { cursor: grabbing; }

.anq-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 44px;
  box-sizing: border-box;
}

.anq-slide img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;       /* zabránit nativnímu drag obrázku */
  -webkit-user-drag: none;
}

/* Navigační šipky */
.anq-gallery-prev,
.anq-gallery-next {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.78);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #1a1a1a;
  transition: background .15s;
}
.anq-gallery-prev { left: 8px; }
.anq-gallery-next { right: 8px; }
.anq-gallery-prev:hover,
.anq-gallery-next:hover { background: #fff; }

/* Stránkovací tečky */
.anq-gallery-dots {
  position: absolute;
  bottom: 14px;
  z-index: 1;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.anq-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #888;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.anq-gallery-dot.is-active {
  background: #1a1a1a;
  transform: scale(1.25);
}

/* Prázdná galerie — placeholder ikona fotoaparátu */
.anq-gallery-empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #d0d0cc;
}

/* ── Right: selector panel ── */
.anq-selector__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  min-width: 0;
}

.anq-selector__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1.5px solid #e0e0dc;
  flex-shrink: 0;
  gap: 12px;
}

.anq-selector__title {
  font-size: 20px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
}

/* ── Filter ── */
.anq-filter-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.anq-btn-clear-filters {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #e03030;
  background: none;
  border: none;
  padding: 5px 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, opacity .15s;
  line-height: 1;
}

.anq-btn-clear-filters:hover {
  color: #b71c1c;
  opacity: .85;
}

.anq-btn-filter {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: 1.5px solid #e0e0dc;
  border-radius: 4px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1a1a1a;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
  user-select: none;
}

.anq-btn-filter:hover,
.anq-btn-filter.is-active { border-color: #1a1a1a; background: #f7f7f5; }

.anq-btn-filter svg { transition: transform .2s; }
.anq-btn-filter.is-active svg { transform: rotate(180deg); }

.anq-filter-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 272px;
  background: #fff;
  border: 1.5px solid #e0e0dc;
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.13);
  z-index: 300;
  display: none;
  overflow: hidden;
  max-height: min(480px, 70vh);
  overflow-y: auto;
}

.anq-filter-dropdown.is-open { display: block; }

.anq-filter-dropdown::-webkit-scrollbar        { width: 4px; }
.anq-filter-dropdown::-webkit-scrollbar-track  { background: transparent; }
.anq-filter-dropdown::-webkit-scrollbar-thumb  { background: #d5d5d0; border-radius: 2px; }

.anq-filter-section { border-bottom: 1px solid #f0f0ec; }
.anq-filter-section:last-child { border-bottom: none; }

.anq-filter-section__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  background: none;
  border: none;
  text-align: left;
  transition: background .1s;
}

.anq-filter-section__toggle:hover { background: #f7f7f5; }

.anq-filter-section__chevron {
  transition: transform .2s;
  flex-shrink: 0;
  color: #888;
}

.anq-filter-section--open .anq-filter-section__chevron { transform: rotate(180deg); }

.anq-filter-section__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.anq-filter-section--open .anq-filter-section__body { max-height: 600px; }

.anq-filter-section__items {
  padding: 8px 16px 14px;
  border-top: 1px solid #f0f0ec;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── Cenový slider ── */
.anq-price-slider { padding: 2px 0 4px; }

.anq-price-slider__labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.anq-price-slider__track {
  position: relative;
  margin: 6px 0;
  /* výška = 1 input (18px) — druhý input překryt přes margin-top */
}

/* Šedá základní linka */
.anq-price-slider__track::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0dc;
  border-radius: 2px;
  pointer-events: none;
}

.anq-price-slider__fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

/* Inputy v normálním toku — width: 100% se počítá od rodiče, ne viewport */
.anq-price-slider__input {
  display: block;
  width: 100%;
  height: 18px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

/* Druhý input překrytý přes negativní margin — žádný position: absolute */
.anq-price-slider__input--max {
  margin-top: -18px;
  z-index: 3;
}

.anq-price-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a1a1a;
  cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.anq-price-slider__input::-moz-range-thumb {
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a1a1a;
  cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.anq-price-slider__input::-webkit-slider-runnable-track { background: transparent; }
.anq-price-slider__input::-moz-range-track { background: transparent; }
.anq-price-slider__input:focus { outline: none; }

.anq-filter-section__items label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
}

.anq-filter-section__items input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #1a1a1a;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Products scroll grid ── */
.anq-products-grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
  align-items: stretch; /* dlaždice stejně vysoké v každém řádku */
}

.anq-products-grid::-webkit-scrollbar        { width: 4px; }
.anq-products-grid::-webkit-scrollbar-track  { background: transparent; }
.anq-products-grid::-webkit-scrollbar-thumb  { background: #d5d5d0; border-radius: 2px; }

.anq-product-card {
  border: 1.5px solid #e0e0dc;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}

.anq-product-card:hover {
  border-color: #aaa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.anq-product-card--selected {
  border-color: #1a1a1a;
  background: #fafafa;
}

.anq-product-card--expanded {
  grid-column: 1 / -1;
  border-color: #1a1a1a;
}

.anq-product-card__img {
  width: 56px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  align-self: center;
}

.anq-product-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}

.anq-product-card__name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anq-product-card__price {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Variant badge on product card */
.anq-product-card__variants-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #666;
  background: #efefeb;
  padding: 1px 6px;
  border-radius: 10px;
  margin-top: 2px;
  align-self: flex-start;
}

/* Parametrové štítky (fixní atribut nebo single-variant) */
.anq-product-card__params {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}

.anq-product-card__param {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #666;
  background: #efefeb;
  border-radius: 10px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* Variant chips inside product card */
.anq-product-card__variants {
  display: none;
  width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid #e8e8e4;
}

.anq-product-card--expanded .anq-product-card__variants {
  display: flex;
}

/* ── Selector footer ── */
.anq-selector__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 1.5px solid #e0e0dc;
  flex-shrink: 0;
  gap: 10px;
}

.anq-btn-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  background: none;
  border: 1.5px solid #e0e0dc;
  border-radius: 4px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.anq-btn-back:hover { border-color: #aaa; color: #1a1a1a; }

.anq-btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.anq-btn-add:hover:not(:disabled)  { background: #333; transform: translateY(-1px); }
.anq-btn-add:active { transform: translateY(0); }
.anq-btn-add:disabled { opacity: .45; cursor: default; transform: none; }

/* ── Icon image ── */
.anq-part-card__icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ── Loading / error states ── */
.anq-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #888;
  font-size: 14px;
}

.anq-error {
  padding: 12px 16px;
  background: #fff0f0;
  border: 1px solid #f5c0c0;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 13px;
  margin: 12px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE – MOBIL (max 768 px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Konfigurátor – stack na výšku */
  .anq-configurator {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .anq-configurator__preview {
    min-height: 180px;
    padding: 20px 24px;
  }

  .anq-configurator__panel {
    padding: 18px 16px 16px;
    gap: 14px;
  }

  .anq-configurator__title {
    font-size: 18px;
  }

  .anq-configurator__parts {
    grid-template-columns: 1fr;
  }

  .anq-part-card {
    padding: 10px;
    gap: 8px;
  }

  .anq-part-card__thumb,
  .anq-part-card__thumb-placeholder {
    width: 38px;
    height: 38px;
  }

  .anq-part-card__icon-img {
    width: 30px;
    height: 30px;
  }

  .anq-part-card__name {
    font-size: 11.5px;
  }

  .anq-configurator__footer {
    gap: 10px;
  }

  .anq-configurator__total {
    gap: 8px;
  }

  .anq-configurator__footer-btns {
    flex-direction: column;
    gap: 8px;
  }

  .anq-btn-cart,
  .anq-btn-reset {
    width: 100%;
    justify-content: center;
  }

  /* Selektor – stack na výšku */
  .anq-selector {
    grid-template-columns: 1fr;
    height: auto;
    border-radius: 8px;
  }

  .anq-selector__gallery {
    height: 200px;
  }

  .anq-selector__panel {
    height: 500px;
  }

  .anq-selector__header {
    padding: 14px 16px 12px;
  }

  .anq-selector__title {
    font-size: 16px;
  }

  /* Produkty – jeden sloupec */
  .anq-products-grid {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 6px;
  }

  .anq-product-card--expanded {
    grid-column: 1 / -1;
  }

  .anq-selector__footer {
    padding: 12px 16px;
  }

  /* Na mobilu dropdown přes celou šířku headeru */
  .anq-selector__header {
    position: relative; /* nový containing block pro dropdown */
  }

  .anq-filter-wrap {
    position: static; /* uvolní containing block → přebírá header */
  }

  .anq-filter-dropdown {
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    width: auto;
    transform: none;
    max-height: min(380px, 52vh);
    border-radius: 0 0 8px 8px;
  }
}

/* ═══════════════════════════════════════════
   LIGHTBOX (klik na vrstvený obrázek v preview)
   ═══════════════════════════════════════════ */

.anq-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.anq-lightbox {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  position: relative;
}

.anq-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s;
}
.anq-lightbox__close:hover { background: #fff; }

/* Lightbox galerie (sdílí .anq-slide styly s galerií selektoru) */
.anq-lightbox-gallery {
  width: 100%;
  height: 400px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.anq-lightbox-gallery .anq-slide {
  padding: 24px 24px 44px;
}

.anq-lightbox-gallery .anq-gallery-dots {
  bottom: 12px;
}

.anq-lightbox__name {
  padding: 13px 20px 15px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1a1a1a;
  border-top: 1px solid #e0e0dc;
  flex-shrink: 0;
}
