/* ==========================================================
   Evigrin: úpravy produktovej stránky (audit 30. 11. 2026)
   Nahrať do: Súbory → úpravy/Produktová stránka/
   ========================================================== */

/* 1) Kontrast textov (WCAG AA, min. 4,5 : 1) ------------------ */

/* Popisky parametrov: "výška so stojanom", "šírka"… a nadpis PARAMETRE
   (pôvodne #7DA7D9 = 2,5 : 1 → teraz 5,5 : 1, ten istý modrý odtieň) */
.p-detail .ev-short-desc .ev-params-label,
.p-detail .ev-short-desc .ev-param-label {
  color: #3F69A6;
}

/* Drobné sivé texty pri produkte: hodnotenia, značka, Opýtať sa, záložky
   (pôvodne #7C7E8F = 3,7 : 1 → teraz 6,3 : 1) */
.p-detail .stars-label,
.p-detail .p-info-headline a,
.p-detail .link-icon.chat,
.p-detail .shp-tab-link,
.p-detail .detail-tab-item {
  color: #5C5F70;
}

/* "SKLADOM" (pôvodne #009901 = 3,5 : 1 → teraz 5,5 : 1).
   Farbu nastavuje Shoptet priamo v kóde, preto !important.
   Mení len túto zelenú, ostatné stavy dostupnosti ostanú. */
.availability-label[style*="009901"] {
  color: #007A0A !important;
}

/* Najmenšie popisky nie pod 12 px */
.p-detail .stars-label,
.p-detail .link-icon.chat {
  font-size: max(12px, 1em);
}

/* 2) Mobil: cena a košík hneď pod fotkou ---------------------- */
@media (max-width: 991px) {
  .p-detail .p-info-wrapper {
    display: flex;
    flex-direction: column;
  }
  .p-detail .p-info-wrapper > .p-info-headline        { order: 1; }
  .p-detail .p-info-wrapper > .p-info-grid            { order: 2; }
  .p-detail .p-info-wrapper > .add-to-cart            { order: 3; margin-bottom: 28px; }
  .p-detail .p-info-wrapper > .p-short-description-block { order: 4; }
  .p-detail .p-info-wrapper > .social-buttons-wrapper { order: 5; }
}

/* 3) Mobil: lišta s cenou a košíkom pri scrollovaní ----------- */
.ev-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #E3E7EF;
  box-shadow: 0 -6px 20px rgba(26, 46, 82, 0.10);
  font-family: inherit;
  transform: translateY(110%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ev-buybar.is-visible {
  transform: translateY(0);
}
.ev-buybar__info {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
}
.ev-buybar__name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: #5C5F70;
}
.ev-buybar__price {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1A2E52;
  font-variant-numeric: tabular-nums;
}
.ev-buybar__old {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #5C5F70;
  text-decoration: line-through;
}
.ev-buybar__btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #C2410C;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
.ev-buybar__btn:hover { background: #A3360A; }
.ev-buybar__btn:active { background: #8A2E08; }
.ev-buybar__btn:focus-visible {
  outline: 3px solid #1A2E52;
  outline-offset: 2px;
}
@media (min-width: 992px) {
  .ev-buybar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-buybar { transition: opacity 150ms linear; opacity: 0; transform: none; }
  .ev-buybar.is-visible { opacity: 1; }
}
/* Aby lišta neprekryla koniec stránky */
body.ev-has-buybar { padding-bottom: 76px; }
@media (min-width: 992px) {
  body.ev-has-buybar { padding-bottom: 0; }
}
