/* Equitop: produkt (rám fotky 4:5, konfigurátor čižiem, košík). Ostatné štýly témy sú v mix_3.css a native-theme. */

/* Fotka produktu v ráme 4:5. Shoptet posiela súbory v pomere 3:4 a dopĺňa ich bielym okrajom, cover ho odreže. !important len pri width a height, lebo ich v téme prebíja !important. */
.p-detail-inner .p-image a.p-main-image,
.products-block .p .image {
  aspect-ratio: 4 / 5;
}
.p-detail-inner .p-image a.p-main-image {
  display: block;
}
.p-detail-inner .p-image img {
  aspect-ratio: 4 / 5;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.products-block .p .image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Konfigurátor čižiem */
html.eq-pending form.pr-action > .tab-pane {
  height: 0;
  overflow: hidden;
  opacity: 0;
  animation: eq-reveal 0.01s 4s forwards;
}

html.eq-pending body.eq-active form.pr-action > .tab-pane {
  display: none;
}

@keyframes eq-reveal {
  to {
    height: auto;
    overflow: visible;
    opacity: 1;
  }
}

.eq-config {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.4;
}

.eq-config__step {
  margin: 0 0 16px;
}

.eq-config__label {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
}

.eq-config__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eq-config__option {
  min-width: 52px;
  padding: 9px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.eq-config__option:hover,
.eq-config__option:focus-visible {
  border-color: #222;
}

.eq-config__option[aria-pressed="true"] {
  border-color: #222;
  background: #222;
  color: #fff;
}

.eq-config__option small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.75;
}

.eq-config__option--order {
  border-style: dashed;
}

.eq-config__result {
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fafafa;
}

.eq-config__code {
  margin: 0 0 6px;
}

.eq-config__status {
  margin: 0 0 4px;
  color: #666;
}

.eq-config__status--stock {
  color: #7da413;
}

.eq-config__price {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.eq-config__note {
  margin: 8px 0 12px;
}

.eq-config__cart,
.eq-config__ask {
  display: inline-block;
}

@media (max-width: 575px) {
  .eq-config__option {
    flex: 1 1 calc(33.333% - 8px);
  }

  .eq-config__cart,
  .eq-config__ask {
    display: block;
    width: 100%;
    text-align: center;
  }
}

body.eq-split .p-variants-block .variant-list {
  display: none !important;
}

body.eq-split.eq-nochoice .p-to-cart-block,
body.eq-split.eq-nochoice .p-variants-block .surcharge-list {
  display: none !important;
}

body.eq-split .p-variants-block select.surcharge-parameter {
  color: #f5f5f3;
}

body.eq-split .p-variants-block select.surcharge-parameter option {
  background-color: #181818;
  color: #f5f5f3;
}

.eq-config__hint {
  margin: 4px 0 0;
  color: #666;
}

.eq-config__facts {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #444;
}

/* Konfigurátor v tmavej téme */
.eq-config .eq-config__result {
  background: #181818;
  color: #f5f5f3;
  border-color: #444;
  border-radius: 0;
}
.eq-config .eq-config__code,
.eq-config .eq-config__price,
.eq-config .eq-config__note {
  color: #f5f5f3;
}
.eq-config .eq-config__status {
  color: #c4c4c1;
}
.eq-config .eq-config__status--stock {
  color: #bad78a;
}
.eq-config .eq-config__cart,
.eq-config .eq-config__ask {
  background: #f5f5f3 !important;
  color: #080808 !important;
  border: 1px solid #f5f5f3;
  border-radius: 0;
}
.eq-config .eq-config__cart:hover,
.eq-config .eq-config__ask:hover {
  background: #d9d9d5 !important;
}
.eq-config .eq-config__option {
  border-radius: 0;
}
.eq-config .eq-config__option[aria-pressed="true"] {
  border-color: #bbb;
}

/* Košík: poznámka pri konfigurácii na objednávku */
.eq-cart-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #c4c4c1;
}

body.eq-split.eq-buttons .p-variants-block .surcharge-list{display:none!important}

.eq-config .eq-config__facts,.eq-config .eq-config__hint{color:#c4c4c1}

@media (min-width: 768px) {
  body.eq-active .overall-wrapper {
    overflow-x: clip;
    overflow-y: visible;
  }

  body.eq-active .p-detail-inner .p-image-wrapper {
    position: sticky;
    top: 20px;
    align-self: start;
    justify-self: center;
    max-width: calc((100vh - 140px) * 0.8);
  }
}

.eq-mini {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  width: 84px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid #3a3a38;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.eq-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eq-mini--on {
  display: block;
}

@media (min-width: 768px) {
  .eq-mini {
    display: none !important;
  }
}

body.eq-active:not(.eq-split) form.pr-action > .tab-pane:has(.variant-table) {
  display: none !important;
}
