.bs-product-mosaic {
  --bs-pm-gap: 10px;
  --bs-pm-radius: 6px;
  --bs-pm-accent: #f07c00;
  --bs-pm-accent-soft: rgba(240, 124, 0, .42);
  --bs-pm-card: #0b0b0b;
  --bs-pm-border: rgba(255, 255, 255, .12);
  --bs-pm-text: #fff;
}

.bs-product-mosaic .bs-pm-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bs-pm-gap);
}

@media (min-width: 400px) {
  .bs-product-mosaic .bs-pm-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .bs-product-mosaic .bs-pm-grid{
    grid-template-columns: 2.55fr 1.75fr 1fr;
    column-gap: var(--bs-pm-gap);
    row-gap: var(--bs-pm-gap);
    align-items: stretch;
  }

  .bs-product-mosaic .bs-pm-slot-a{ grid-column: 1; grid-row: 1 / span 2; }
  .bs-product-mosaic .bs-pm-slot-b{ grid-column: 2; grid-row: 1 / span 2; }
  .bs-product-mosaic .bs-pm-slot-c{ grid-column: 3; grid-row: 1; }
  .bs-product-mosaic .bs-pm-slot-d{ grid-column: 3; grid-row: 2; }
}

.bs-product-mosaic .bs-pm-item{
  position: relative;
  overflow: hidden;
  border-radius: var(--bs-pm-radius);
  background: var(--bs-pm-card);
  border: 1px solid var(--bs-pm-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .38);
  isolation: isolate;
}

@media (min-width: 900px) {
  .bs-product-mosaic .bs-pm-slot-c,
  .bs-product-mosaic .bs-pm-slot-d{
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 899.98px) {
  .bs-product-mosaic .bs-pm-item{
    aspect-ratio: 1 / 1;
  }
}

.bs-product-mosaic .bs-pm-link{
  display: block;
  height: 100%;
  min-height: 220px;
  color: inherit;
  text-decoration: none;
  position: relative;
  outline: none;
}

.bs-product-mosaic .bs-pm-media{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bs-product-mosaic .bs-pm-img,
.bs-product-mosaic .bs-pm-noimg{
  width: 100%;
  height: 100%;
  display: block;
}

.bs-product-mosaic .bs-pm-img{
  object-fit: cover;
  transform: scale(1);
  transition: transform .42s ease;
}

.bs-product-mosaic .bs-pm-link:hover .bs-pm-img,
.bs-product-mosaic .bs-pm-link:focus-visible .bs-pm-img{
  transform: scale(1.045);
}

.bs-product-mosaic .bs-pm-link:focus-visible{
  box-shadow: inset 0 0 0 2px var(--bs-pm-accent);
}

.bs-product-mosaic .bs-pm-noimg{
  background:
    radial-gradient(circle at 40% 24%, rgba(240, 124, 0, .18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
}

/* Překryv je jen dole pod textem, ne přes celý obrázek. */
.bs-product-mosaic .bs-pm-overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-height: 42%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(14px, 2.1vw, 24px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .54) 42%, rgba(0, 0, 0, .88) 100%);
  pointer-events: none;
}

.bs-product-mosaic .bs-pm-badge{
  pointer-events: none;
  align-self: flex-start;
  padding: 6px 10px 5px;
  border: 1px solid rgba(240, 124, 0, .7);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  background: rgba(0, 0, 0, .66);
  color: var(--bs-pm-accent);
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .34);
}

.bs-product-mosaic .bs-pm-text{
  max-width: calc(100% - 48px);
}

.bs-product-mosaic .bs-pm-price{
  margin-bottom: 8px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .96);
  font-weight: 500;
  letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .95);
}

.bs-product-mosaic .bs-pm-price del{
  color: rgba(255, 255, 255, .6);
  opacity: 1;
}

.bs-product-mosaic .bs-pm-price ins{
  color: var(--bs-pm-text);
  text-decoration: none;
}

.bs-product-mosaic .bs-pm-title{
  color: #fff;
  font-size: clamp(1.32rem, 2.7vw, 2.85rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .95);
}

.bs-product-mosaic .bs-pm-category{
  margin-top: 7px;
  color: #f28a00;
  font-size: .96rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .88);
}

.bs-product-mosaic .bs-pm-arrow{
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 1px solid #f28a00;
  border-radius: 999px;
  background: rgba(7, 7, 7, .52);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .32);
  transition: background-color .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.bs-product-mosaic .bs-pm-arrow::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
  background-color: #f28a00;
  -webkit-mask-image: url('arrow-right.png');
  mask-image: url('arrow-right.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.bs-product-mosaic .bs-pm-arrow::after{
  content: none;
}

.bs-product-mosaic .bs-pm-link:hover .bs-pm-arrow,
.bs-product-mosaic .bs-pm-link:focus-visible .bs-pm-arrow{
  background: rgba(242, 138, 0, .14);
  border-color: #ff9a22;
  transform: translateX(2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
}

.bs-product-mosaic .bs-pm-link:hover .bs-pm-arrow::before,
.bs-product-mosaic .bs-pm-link:focus-visible .bs-pm-arrow::before{
  background-color: #ff9a22;
}

.bs-product-mosaic .bs-pm-item:hover{
  border-color: var(--bs-pm-accent-soft);
}

/* Slider v první velké dlaždici */
.bs-product-mosaic .bs-pm-slider{
  position: relative;
  height: 100%;
  min-height: 220px;
}

.bs-product-mosaic .bs-pm-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease;
}

.bs-product-mosaic .bs-pm-slide.is-active{
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.bs-product-mosaic .bs-pm-slider-effect-slide .bs-pm-slide{
  transform: translateX(5%);
  transition: opacity .34s ease, transform .40s ease;
}

.bs-product-mosaic .bs-pm-slider-effect-slide .bs-pm-slide.is-active{
  transform: translateX(0);
}

.bs-product-mosaic .bs-pm-slider-effect-zoom .bs-pm-slide{
  transform: scale(1.045);
  transition: opacity .34s ease, transform .42s ease;
  transform-origin: center center;
}

.bs-product-mosaic .bs-pm-slider-effect-zoom .bs-pm-slide.is-active{
  transform: scale(1);
}

.bs-product-mosaic .bs-pm-slider-control{
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.bs-product-mosaic .bs-pm-slider-prev{ left: 18px; }
.bs-product-mosaic .bs-pm-slider-next{ right: 18px; }

.bs-product-mosaic .bs-pm-slider-control::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.bs-product-mosaic .bs-pm-slider-prev::before{
  transform: translate(-35%, -50%) rotate(-135deg);
}

.bs-product-mosaic .bs-pm-slider-next::before{
  transform: translate(-65%, -50%) rotate(45deg);
}

.bs-product-mosaic .bs-pm-slider-control:hover,
.bs-product-mosaic .bs-pm-slider-control:focus-visible{
  border-color: var(--bs-pm-accent);
  background: rgba(240, 124, 0, .85);
  outline: none;
}

.bs-product-mosaic .bs-pm-slider-dots{
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
}

.bs-product-mosaic .bs-pm-slider-dot{
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.bs-product-mosaic .bs-pm-slider-dot.is-active{
  background: #fff;
}

@media (min-width: 900px) {
  .bs-product-mosaic .bs-pm-slot-c .bs-pm-overlay,
  .bs-product-mosaic .bs-pm-slot-d .bs-pm-overlay{
    min-height: 48%;
    padding: 13px;
    gap: 6px;
  }

  .bs-product-mosaic .bs-pm-slot-c .bs-pm-title,
  .bs-product-mosaic .bs-pm-slot-d .bs-pm-title{
    font-size: clamp(1.08rem, 1.22vw, 1.42rem);
    line-height: 1.02;
  }

  .bs-product-mosaic .bs-pm-slot-c .bs-pm-category,
  .bs-product-mosaic .bs-pm-slot-d .bs-pm-category{
    font-size: .8rem;
    letter-spacing: .02em;
  }

  .bs-product-mosaic .bs-pm-slot-c .bs-pm-price,
  .bs-product-mosaic .bs-pm-slot-d .bs-pm-price{
    font-size: .8rem;
    margin-bottom: 5px;
  }

  .bs-product-mosaic .bs-pm-slot-c .bs-pm-badge,
  .bs-product-mosaic .bs-pm-slot-d .bs-pm-badge{
    font-size: 10px;
    padding: 5px 8px 4px;
  }

  .bs-product-mosaic .bs-pm-slot-c .bs-pm-arrow,
  .bs-product-mosaic .bs-pm-slot-d .bs-pm-arrow{
    right: 12px;
    bottom: 12px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 520px) {
  .bs-product-mosaic .bs-pm-link,
  .bs-product-mosaic .bs-pm-slider{
    min-height: 260px;
  }

  .bs-product-mosaic .bs-pm-overlay{
    min-height: 48%;
  }

  .bs-product-mosaic .bs-pm-text{
    max-width: calc(100% - 40px);
  }

  .bs-product-mosaic .bs-pm-title{
    font-size: 1.4rem;
  }

  .bs-product-mosaic .bs-pm-category{
    font-size: .76rem;
  }

  .bs-product-mosaic .bs-pm-slider-control{
    width: 34px;
    height: 34px;
  }

  .bs-product-mosaic .bs-pm-slider-prev{ left: 10px; }
  .bs-product-mosaic .bs-pm-slider-next{ right: 10px; }
}

/* Placeholder pro editor */
.bs-product-mosaic .bs-pm-item.is-empty{
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.08) 10px,
    rgba(255,255,255,.03) 10px,
    rgba(255,255,255,.03) 20px
  );
  border: 1px dashed rgba(255,255,255,.25);
}

.bs-product-mosaic .bs-pm-placeholder{
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  color: rgba(255,255,255,.9);
  text-align: center;
}

.bs-product-mosaic .bs-pm-ph-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.bs-product-mosaic .bs-pm-ph-sub{
  font-size: 12px;
  opacity: .9;
}

/* Od v1.2.6: podtitulek z produktu má mít dost prostoru i u delších názvů. */
.bs-product-mosaic .bs-pm-title{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 900px) {
  .bs-product-mosaic .bs-pm-slot-c .bs-pm-title,
  .bs-product-mosaic .bs-pm-slot-d .bs-pm-title{
    -webkit-line-clamp: 2;
  }
}

/* v1.2.9 – izolace typografie mozaiky proti stylům šablony/WooCommerce. */
.bs-product-mosaic .bs-pm-overlay .bs-pm-text .bs-pm-price{
  grid-row: auto !important;
  grid-column: auto !important;
  align-self: auto !important;
  justify-self: auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  color: rgba(255, 255, 255, .74) !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: clamp(13px, 0.95vw, 16px) !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.95) !important;
}

.bs-product-mosaic .bs-pm-overlay .bs-pm-text .bs-pm-title{
  grid-row: auto !important;
  grid-column: auto !important;
  align-self: auto !important;
  justify-self: auto !important;
  display: -webkit-box !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: clamp(19px, 1.45vw, 28px) !important;
  line-height: 1.02 !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.95) !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.bs-product-mosaic .bs-pm-overlay .bs-pm-text .bs-pm-category{
  grid-row: auto !important;
  grid-column: auto !important;
  align-self: auto !important;
  justify-self: auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 7px 0 0 !important;
  color: #f28a00 !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: clamp(14px, 1.08vw, 18px) !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.88) !important;
}

.bs-product-mosaic .bs-pm-item.is-small .bs-pm-overlay .bs-pm-text .bs-pm-price,
.bs-product-mosaic .bs-pm-slot-c .bs-pm-overlay .bs-pm-text .bs-pm-price,
.bs-product-mosaic .bs-pm-slot-d .bs-pm-overlay .bs-pm-text .bs-pm-price{
  font-size: .7rem !important;
  margin-bottom: 5px !important;
}

.bs-product-mosaic .bs-pm-item.is-small .bs-pm-overlay .bs-pm-text .bs-pm-title,
.bs-product-mosaic .bs-pm-slot-c .bs-pm-overlay .bs-pm-text .bs-pm-title,
.bs-product-mosaic .bs-pm-slot-d .bs-pm-overlay .bs-pm-text .bs-pm-title{
  font-size: clamp(.95rem, 1.15vw, 1.2rem) !important;
  line-height: 1.05 !important;
  -webkit-line-clamp: 3 !important;
}

.bs-product-mosaic .bs-pm-item.is-small .bs-pm-overlay .bs-pm-text .bs-pm-category,
.bs-product-mosaic .bs-pm-slot-c .bs-pm-overlay .bs-pm-text .bs-pm-category,
.bs-product-mosaic .bs-pm-slot-d .bs-pm-overlay .bs-pm-text .bs-pm-category{
  font-size: .72rem !important;
  line-height: 1.15 !important;
  margin-top: 5px !important;
}

.bs-product-mosaic .bs-pm-item.is-large .bs-pm-text{
  max-width: calc(100% - 58px) !important;
}

.bs-product-mosaic .bs-pm-item.is-small .bs-pm-text{
  max-width: calc(100% - 44px) !important;
}
