/*
Quick.Cart default plugins stylesheet
*/

#randPro {
    margin: 15px auto;
    text-align: center;
}

#randPro p {
    margin: 0 0 6px;
    font-size: 14px;
}

#randPro img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#randPro a:hover img {
    opacity: 0.9;
}


/* =========================
   PRODUCTS GRID MODERN
   ========================= */

#productsInRow {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 16px;
  margin: 10px 0;
}

#productsInRow td.empty {
    visibility:hidden;
}

/* produkt */
#productsInRow td {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  vertical-align: top;
  transition: 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* hover efekt */
#productsInRow td:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* nadpis produktu */
#productsInRow h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

#productsInRow h2 a {
  color: #111827;
  font-weight: bold;
  text-decoration: none;
}

/* kategorie */
#productsInRow h5 {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 12px;
}

/* =========================
   POPIS – 1 ŘÁDEK + FADE
   ========================= */

#productsInRow h4 {
  margin: 10px 0 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #4b5563;

  display: -webkit-box;
  -webkit-line-clamp: 1;     /* 1 řádek */
  -webkit-box-orient: vertical;
  overflow: hidden;

  position: relative;
  max-height: 22px;
  transition: 0.3s;
}

/* fade efekt */
#productsInRow h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

/* rozbalení po hoveru */
#productsInRow td:hover h4 {
  -webkit-line-clamp: unset;
  max-height: 200px;
  overflow: visible;
}

#productsInRow td:hover h4::after {
  display: none;
}

/* =========================
   OBRÁZEK – VĚTŠÍ
   ========================= */

#productsInRow .photo {
  width: 100%;
  height: 200px;          /* pevná, rozumná výška */
  overflow: hidden;

  border-radius: 12px;
  background: #fff;

  display: block;
}

/* obrázek */
#productsInRow .photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;    /* ?? KLÍČ: žádné brutální ořezy */
  object-position: center;

  transition: 0.25s;
}

/* hover zoom jen jemně */
#productsInRow td:hover .photo img {
  transform: scale(1.05);
}

/* sklad */
#productsInRow h7 {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #16a34a;
}

#productsInRow .sklad {
  font-weight: bold;
}

/* cena */
#productsInRow .price {
  display: block;
  margin: 10px 0;
  font-size: 22px;
  font-weight: bold;
  color: #e11d48;
  text-decoration: none;
}

/* tlačítko */
#productsInRow .basket {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

#productsInRow .basket:hover {
  background: #1d4ed8;
}

#productsInRow .photo {
  position: relative; /* ?? KLÍČ pro badge */
}

/* BADGE - Novinka / Akce / Cena po přihlášení */
#productsInRow .photo h8 {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;

  background: #ef4444;
  color: #fff;

  padding: 5px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: bold;

  line-height: 1;
  white-space: nowrap;

  pointer-events: none;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
