/* ==========================
   14) Produktová stránka
   ========================== */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.product > * {
  min-width: 0;
}

#galleryMain {
  cursor: pointer;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.gallery__stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    /* zásadní */
    width: 100%;
    max-height: 600px;       /* desktop – uprav dle layoutu */
    aspect-ratio: 4 / 3;    /* drží hezký poměr */
    overflow: visible;      /* thumbs NEJSOU uvnitř, takže OK */
}

.gallery__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;   /* DŮLEŽITÉ */
    display: block;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
}

.gallery__nav,
.gallery__zoom {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 999px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
}

.gallery__nav.prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery__nav.next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery__zoom {
  right: 8px;
  top: 8px;
  padding-top: 3px;
}

.gallery__nav:hover,
.gallery__zoom:hover {
  filter: brightness(.95);
}



/* ať jsou klikatelné, pokud chceš */
.gallery__thumbs {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px;
  box-sizing: border-box;
  z-index: 5;
}

.right_box {
  min-width: 0;
}

.gallery__thumbs .thumb__video {
  margin: 15px 0 0 10px;
  border: 0;
  place-items: center;
}

.gallery__thumbs .thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
}

.gallery__thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery__thumbs .thumb:is(:hover, :focus-visible) {
  border-color: #cbd5e1;
  outline: none;
}

.gallery__thumbs .thumb.is-active {
  border-color: var(--brand, --zelena);
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .9);
  display: grid;
  place-items: center;
  user-select: none;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform .15s ease;
  cursor: zoom-in;
  touch-action: none;   /* jinak ti mobil bude scrollovat stránku */
  user-select: none;
}
.lightbox.zoomed .lightbox__img {
  cursor: grab;
}


.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.lightbox__close {
  top: 14px;
  right: 14px;
}

.lightbox__nav.prev {
  padding: 0;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav.next {
  padding: 0;
  right: 14px;
  top: 50%;
  padding-top: -3px;
  transform: translateY(-50%);
}

.lightbox__hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  opacity: .8;
}

/* základ štítku */
.labels {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  pointer-events: none;
}

.gallery .label,
.labels div {
  background: var(--zelena);
  pointer-events: auto;
  color: var(--bg);
  font-size: 1rem;
  padding: 4px 8px;
  margin-left:5px;
  border-radius: 0px;
  line-height: 1.2;
  white-space: nowrap;
  float:left;
}

/* varianty barev (volitelné) */
.gallery .label-sale,
.product-card .label-sale {
  background: var(--primary);
}

.gallery .label-new,
.product-card .label-new {
  background: var(--zelena);
}

.gallery .label-top,
.product-card .label-top {
  background: var(--zluta);
}

/* ========== BUYBOX ========== */
.buyboxadd {
  background: var(--bgseda);
  padding: 18px 16px;
  margin: 0px 0px 0px 0px;

  display: grid;
  column-gap: 0px;
  /* mezera mezi obsahem a lištou */
  align-items: start;
}

.buybox__price .price-pop{ display:none; }
.buybox__price.is-open .price-pop{ display:block; }

.buybox__price {
  font-size: 1rem;
  position: relative;
}

.buybox__main {
  position: relative;
  color: var(--ink);
  font-size: 2.8rem;
  font-weight: 700;
  display: inline-block;
  margin-top:10px;
}
.buybox__oldtxt
{
  color: var(--bgseda3);
  font-size: 0.75rem;
  font-weight: 400;
  padding-right: 5px;
}
.buybox__prc
{
  padding: .18rem .45rem;
  background: var(--primary);
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 10px 0 10px;
}
.buybox__old 
{
  position: relative;
  color: var(--bgseda3);
  font-size: 1.1rem;
  font-weight: 400;
  display: inline-block;
}

.buybox__old::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  /* tloušťka čáry */
  background: currentColor;
  /* stejné jako barva textu */
  transform: rotate(-12deg);
  /* úhel čáry */
  transform-origin: center;
}

.buybox__new {
  font-weight: 700;
  color: var(--ink);
}

.buybox__actions {
  margin-bottom: 16px;
}

.buybox__actions input {
  width: 50px;
  text-align: center;
}

.buybox__actions .btn-minus,
.buybox__actions .btn-plus {
  padding: 0;
  border-radius: 0;
  font-size: 2rem;
  background: var(--bgseda);
  color: var(--ink);
  border: 0;
  padding: 5px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;

}

.buybox__actions .inp-pc {
  margin: 0;
  font-size: 1.2rem;
  height: 55px;
  width: 50px;
  color: var(--muted);
}

.btn-buy {
  background: var(--primary);
  color: var(--bg);
  border: 0;
  padding: 10px 20px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.btn-buy:hover {
  background: #c30000;
}

.buybox__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* vlevo info, vpravo výhody */
  gap: 20px;
  margin-top: 10px;
  font-size: 14px;
}

.buybox__info p,
.buybox__benefits p {
  margin: 4px 0;
  font-size: 1.0rem;
  font-weight: 400;
}

.buybox__info a {
  color: var(--primary);
  text-decoration: underline;
}

.buybox__icons {
  font-size: 1rem;
  margin-bottom: 12px;
}

.buybox__termin {
  margin-top: 5px;
  margin-right: 10px;
  font-size: 1.1rem;
  font-weight: 400;
  float: left;
}

.buyboxadd__right {
  float: right;
}

.buyboxadd__right a {
  margin-right: 5px;
  float: left;
}

.buybox__benefits .highlight {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.buybox__benefits .highlight a {
  color: var(--primary);
  font-weight: normal;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* --- varianty --- */
/* --- Variant picker --- */
.variant-picker {
  margin-bottom: 10px;
}

/* Desktop: tlačítka */
.variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.variant-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.variant-btn.is-active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  font-weight: 700;
}

.variant-picker legend {
  font-weight: 800;
  margin-bottom: 8px;
}

.buybox .variant-picker .variant-grid {
  display: grid;
  gap: 10px;
  /* 3-4 vedle sebe, stejně široké */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.buyboxpr {
  display: grid;
  gap: 0px;
  /* 3-4 vedle sebe, stejně široké */
  grid-template-columns: 1fr 1fr;
}
.buyboxpr_s {
  display: grid;
  gap: 10px;
  /* 3-4 vedle sebe, stejně široké */
  grid-template-columns: 1fr;
}
.buybox--no-variants {
  align-items: left;
  border-bottom: 1px solid var(--line);
  background: var(--bgseda1);
  padding: 12px 12px 10px 15px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.product-stock {
  grid-column: 1 / span 2;
  grid-row: 2;
  font-size: 1.0rem;
  color: var(--tmzelena);
}

.product-stock.low {
  color: var(--ink);
}
.product-stock.ok {
  color: var(--tmzelena);
  font-weight: 700;
}
.product-stock.or {
  color: var(--orange);
}
.product-stock.bd {
  color: var(--primary);
}

.variant-card {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  /* bullet | text | cena */
  grid-template-rows: auto auto;
  /* řádek pro název, řádek pro sklad */
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bgseda1);
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

/* radio je skryté, bullet = vizuální */
.variant-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bullet {
  grid-column: 1;
  grid-row: 1;
}

.variant-name {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
}

.variant-stock {
  grid-column: 1 / span 2;
  grid-row: 2;
  font-size: 0.9rem;
  color: var(--tmzelena);
}
.variant-card .bd{
  color: var(--primary);
}
.variant-card .or{
  color: var(--zluta);
}

.variant-price {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-weight: 800;
  justify-self: end;
}

.variant-card:hover {
  background: var(--bgseda1);
}


.variant-card__left {
  display: grid;
  gap: 2px;
  align-items: center;
  grid-template-columns: 18px 1fr;
}

.variant-name {
  font-weight: 700;
}

.bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-sizing: border-box;
  position: relative;
  top: 1px;
}

.variant-card.is-active .bullet {
  border-color: var(--ink);
  background:
    radial-gradient(#111 0 40%, transparent 42%);
}

.variant-card.is-active {
  outline: 2px solid var(--primary);
  background: var(--bg);

}

.variant-stock.low {
  color: var(--ink);
}

.variant-stock.ok {
  color: var(--tmzelena);
}
.variant-stock.or {
  color: var(--orange);
}
.variant-stock.bd {
  color: var(--primary);
}

#variant-select {
  display: none;
}

/* mobil si případně přepneš v media dotazu */

/* --- promo blok (červený) --- */
.promo {
  display: none;
}

.buybox.buybox--promo .promo {
  display: block;
  background: var(--zelena);
  /* "red" */
  color: var(--ink);
  padding: 18px 16px;
  margin: 0px 0px 0px 0px;
}

.promo__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.promo__desc {
  opacity: .95;
  margin-bottom: 12px;
}

.promo__note,
.promo__foot {
  opacity: .9;
  font-size: 1rem;
  margin-top: 6px;
}

/* --- ceny --- */
.price {
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price--row {
  display: none;
}

.buybox:not(.buybox--promo) .price--row {
  display: flex;
}

.price-old {
  color: var(--ink);
  text-decoration: line-through;
  font-size: 1.4rem;
}

.price-main {
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
}

.price--row .price-main {
  font-size: 1.6rem;
}

.vat {
  font-size: 1rem;
  opacity: .9;
}

/* --- množství + košík --- */
.buyrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty input {
  width: 54px;
  text-align: center;
  border: 0;
  outline: 0;
}

.qty-btn {
  width: 36px;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  border: 0;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn.primary:hover {
  filter: brightness(.95);
}

.icons {
  display: inline-flex;
  gap: 8px;
}

.icon-btn {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.meta {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  color: var(--ink);
}

.meta li {
  padding: 4px 0;
  border-top: 1px solid var(--seda);
}

.meta li:first-child {
  border-top: 0;
}



.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--seda);
  margin-top: 30px;
  padding-bottom: 4px;
}

.tab {
  padding: 8px 12px 8px 10px;
  background: var(--seda);
  font-size: 1.2rem;
}

.aktiv {
  background: var(--bgtmseda);
  color: var(--bg);
  font-weight: 700;
}


/* Desktop: sktryt */
.sr-only,
#variant-select {
  display: none;
}

.variant-grid {
  display: block;
}



/* ==========================
   15) Responzivní styly
========================== */

/* --- responzivita --- */
@media (max-width: 860px) {
  #variant-select {
    display: block;
    margin-top: 8px;
    width: 100%;
    height: 40px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(1, 1fr);
  }

  .page {
    grid-template-columns: 1fr;
  }

  footer.site .cols {
    grid-template-columns: repeat(1, 1fr);
  }

  .product {
    grid-template-columns: 1fr;
  }

  .head__in {
    gap: 12px;
  }

  .head__links {
    display: none;
  }


  .logo img {
    height: 48px;
  }

  footer__newsletter {
    grid-template-columns: 1fr;
  }

  .footer__newsletter-form {
    justify-content: stretch;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  

  [data-variants-mobile] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg);
  }

  .footer__main {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
  }

  .footer__newsletter-form input[type="email"] {
    flex-basis: auto;
  }
}




/* ==========================
   13) Specigfikace produktu
   ========================== */
.grid-specifikace,
.radekspec 
{
  display: grid;
  grid-template-columns: 35px 0.5fr 1.5fr;
  gap: 10px;
  min-height: 52px;
  background: var(--bgseda1);
  font-size: 1rem;
  justify-content: center; 
  align-items: center;
  border-bottom: 1px solid var(--seda);
  padding: 10px 0 10px 0;
}
.rd-img,
.radeklimg
{
  padding: 0px 10px 0px 10px;
}





/* ==========================
   17) Hodnocení produktu
   ========================== */
.rating-summary {
  padding: 1rem 0;
  margin: 0;
  font-size: 1rem;
  background: var(--bgseda1);
}

.rating-summaryall {
  padding: 1rem 0;
  margin: 0;
  font-size: 1rem;
}

.rating-summary h2 {
  margin-left: 1rem;
}

.rating-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.rating-summary__overall {
  border-right: 1px solid var(--bgseda1);
  padding: 0 1rem 0 1rem;
}

.rating-summary__label {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.rating-summary__score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.rating-summary__stars {
  font-size: 1.2rem;
  color: var(--zluta);
  /* žlutá pro hvězdičky */
}

.rating-summary__value {
  font-size: 1.2rem;
}

.rating-summary__count {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.rating-summary__sh {
  margin: 0;
  padding: 0;
  margin-top: 1.5rem;
  font-size: 1.0rem;
}

.rating-summary__sh a {
  color: var(--ink);
  padding: 7px 7px 7px 0px;
  text-decoration: none;
  cursor: pointer;

}

.rating-summary__breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--bgseda1);
  padding-right: 1rem;
}

.rating-summary__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-summary__row progress {
  flex: 1;
  height: 6px;
  appearance: none;
}

.rating-summary__row progress::-webkit-progress-bar {
  background: var(--bgseda1);
  border-radius: 3px;
}

.rating-summary__row progress::-webkit-progress-value {
  background: var(--bgseda2);
  border-radius: 3px;
}

.rating-summary__buyers {
  font-size: 0.9rem;
  border-right: 1px solid var(--bgseda1);
  padding-right: 1rem;
}

.rating-summary__highlight {
  font-size: 1.2rem;
  font-weight: 700;
}

.btn-rating {
  font-weight: 400;
  background: var(--blue);
  color: var(--bg);
  border: 0;
  font-size: 1.4rem;
  padding: 10px;
  cursor: pointer;
}

/* ==========================
   18) Samotna hodnocení
   ========================== */
/* Obal celé sekce */

.rating-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.rating-summary__avg {
  
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}

/* Jedno hodnocení */
.rating-user {

  border-radius: 0px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: var(--bgseda);
  transition: box-shadow 0.2s;
}

.rating-user:hover {
  box-shadow: 0 2px 6px var(--seda);
}

/* Header: jméno, datum, hvězdičky */
.rating-user__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.rating-user__name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}


.rating-user__stars {
  font-size: 1.6rem;
  color: var(--zluta);
  /* žlutá */
  letter-spacing: 2px;
}

/* Text recenze */
.rating-user__body p {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Footer: výhody/nevýhody */
.rating-user__footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.rating-user__footer .plus::before {
  content: "+  ";
  font-size: 1.4rem;
  color: var(--tmzelena);
}

.rating-user__footer .minus::before {
  content: "-  ";
  font-size: 1.4rem;
  color: var(--primary);
}

.rating-list .rating-user {
  display: none;
}

.rating-list .rating-user:nth-child(-n+5) {
  display: block;
}

.btn-show-more {
  margin-top: 20px;
  padding: 10px;
  border: 0;
  background: var(--tmzelena);
  font-size: 1.2rem;
  color: var(--bg);
  cursor: pointer;
}

/* BLOK VYROBCE */
.section_vyrobce {
  display: flex;
  align-items: flex-start;
  /* logo i text budou zarovnané nahoře */
  gap: 3rem;
  padding: 1rem 0;
}

.section_vyrobce_logo img {
  max-width: 150px;
  /* můžeš změnit dle potřeby */
  height: auto;
  display: block;
}

.section_vyrobce_text {
  flex: 1;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  /* zalamování na více řádků, když je málo místa */
  gap: 0.6rem;
  /* mezery mezi kategoriemi */
  margin-top: 1rem;
}

.rd-val {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--bgseda1);
  transition: background 0.2s;
  white-space: nowrap;
  /* aby se text nelámal */
}

.rd-val:hover {
  background: var(--bgseda2);
}

.icon-folder {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.4rem;
  background: url("data:image/svg+xml;utf8,<svg fill='currentColor' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 4l2 2h8c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2L2.01 6C2 4.9 2.9 4 4 4h6z'/></svg>") no-repeat center / contain;
}

.product-notice {
  font-size: 0.8rem;
}
.breadcrumbs_last {
  display:none;
}

/* Blok souborů */
.section .pdf {
  margin-bottom: 15px;
}

/* Odkaz na PDF */
.section .pdf a {
  position: relative;
  display: inline-block;
  padding-left: 35px;
  padding-top:5px;
  color: var(--primary);
  text-decoration: underline;
  font-size: 1rem;
}

/* Ikona */
.section .pdf a::before {
  content: "";
  position: absolute;
  left: 0;
  top:0;
  width: 28px;
  height: 28px;
  background: url('/img_new/ico-pdf.gif') no-repeat center center;
  background-size: contain;
}

/* Hover */
.section .pdf a:hover {
  text-decoration: underline;
  color: var(--primary);
}

@media (min-width: 48.001rem){
  .buybar
  {
    display: none;
  }
}
