/*
Quick.Cart default plugins stylesheet
*/

#randPro {
  margin: 20px auto;
  padding: 10px;
  text-align: center;
  max-width: 260px;
}

#randPro img {
  margin: 0 0 6px;
  border: 3px solid #ddd;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

/* nadpis */
#randPro h2 {
  font-size: 14px;
  margin: 6px 0 4px;
}

/* všechny p uvnitř */
#randPro p {
  margin: 2px 0;
  line-height: 1.3;
  font-size: 13px;
}

/* první nadpisový p */
#randPro p:first-of-type {
  font-weight: bold;
  margin-bottom: 6px;
}



/* =========================
   PRODUCTS MODERN
   ========================= */

#productsInRow {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 16px;
  margin: 10px 0;
}

#productsInRow td.empty {
    visibility:hidden;
}


/* produkt */
#productsInRow td {
  position:relative;
  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 karta */
#productsInRow td:hover {
  transform:translateY(-3px);
  box-shadow:0 12px 25px rgba(0,0,0,0.08);
  z-index:20;
}


/* kategorie */
#productsInRow h5 {
  margin:0 0 8px;
  color:#9ca3af;
  font-size:12px;
}


/* název */
#productsInRow h2 {
  margin:0 0 12px;
  font-size:18px;
  line-height:1.3;
  height:46px;
  overflow:hidden;
}


#productsInRow h2 a {
  color:#111827;
  font-weight:bold;
  text-decoration:none;
}


/* obrázek */
#productsInRow .photo {
  width:100%;
  height:200px;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
  display:block;
  position:relative;
}


#productsInRow .photo img {
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  transition:0.25s;
}


#productsInRow td:hover .photo img {
  transform:scale(1.05);
}


/* sklad */
#productsInRow .stock {
  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;
}



/* =========================
   ROZBALENÝ PANEL
   ========================= */


#productsInRow .product-hover {
  display:none;
  position:absolute;
  left:-1px;
  right:-1px;

/*  top:calc(100% - 14px); */
  top:calc(100% - 30px);
  background:#fff;
  border:1px solid #e5e7eb;
  border-top:none;
  border-radius:0 0 14px 14px;
  padding:16px;
  z-index:50;
  box-shadow:0 12px 25px -10px rgba(0,0,0,0.12);
}


/* okamžité zobrazení */
#productsInRow td:hover .product-hover {
  display:block;

}


/* popis v rozbalení */
#productsInRow .product-hover h4 {
  margin:0 0 15px;
  font-size:14px;
  font-weight:400;
  line-height:1.5;
  color:#4b5563;
}



/* tlačítko */
#productsInRow .basket {
    display:flex;
    align-items:center;
    justify-content:center;
  text-align:center;
  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;
}


/* badge */
#productsInRow .photo .badge {
  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);
}


.basketToast{
    position:fixed;
    top:20px;
    right:20px;
    background:#28a745;
    color:#fff;
    padding:14px 18px;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    opacity:0;
    transform:translateY(-20px);
    transition:all .3s ease;
    z-index:99999;
    font-size:15px;
    font-weight:600;
}

.basketToast.show{
    opacity:1;
    transform:translateY(0);
}

.basketToast i{
    margin-right:8px;
    color:#fff;
}




.mobileBasket,
.hoverBasket{
    align-items:center;
    gap:8px;
}

.hoverBasket{
    display:flex;
}

.mobileBasket .basketQty,
.hoverBasket .basketQty{
    width:50px;
    min-width:50px;
    height:35px;
    padding:0;
    text-align:center;
    border:1px solid #d1d5db;
    border-radius:10px;
    font-size:14px;
}

.mobileBasket .basket,
.hoverBasket .basket{
    flex:1;
    margin-top:0 !important;
}
