/* Elektro za hubicku | Produktove karty v1.1
   Nahrada v1.0, nikoliv doplnek. Bez JS.
   Katalogove karty s nakupnimi nastroji; male karty no-buttons se nemeni.
   Odstraneni kolizi s pevnymi rozmery a absolutnim pozicovanim sablony. */

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) {
  display:flex !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p {
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  position:relative !important;
  overflow:visible !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .image {
  flex:0 0 auto !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in {
  display:flex !important;
  flex-direction:column !important;
  flex:1 0 auto !important;
  position:static !important;
  inset:auto !important;
  float:none !important;
  transform:none !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:8px 0 0 !important;
  gap:7px !important;
  overflow:visible !important;
  text-align:left !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] {
  display:contents !important;
  position:static !important;
  transform:none !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in::before,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in::after,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom::before,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom::after,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"]::before,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"]::after {
  content:none !important;
  display:none !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in > .name,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in > .ratings-wrapper,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-desc,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .prices,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-tools {
  position:static !important;
  inset:auto !important;
  float:none !important;
  clear:none !important;
  transform:none !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  box-sizing:border-box !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  text-align:left !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in > .name {
  order:1 !important;
  display:block !important;
  font-weight:600 !important;
  line-height:1.3 !important;
  white-space:normal !important;
  overflow-wrap:anywhere;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in > .name > span {
  position:static !important;
  height:auto !important;
  max-height:none !important;
  white-space:normal !important;
  overflow:visible !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-desc {
  order:2 !important;
  display:block !important;
  font-size:14px !important;
  line-height:1.4 !important;
  white-space:normal !important;
  overflow-wrap:anywhere;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in > .ratings-wrapper {
  order:3 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:4px 8px !important;
  margin-top:auto !important;
  padding-top:4px !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-in-in > .ratings-wrapper > .availability {
  position:static !important;
  inset:auto !important;
  float:none !important;
  transform:none !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
  line-height:1.4 !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .prices {
  order:4 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:baseline !important;
  justify-content:flex-start !important;
  gap:3px 8px !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .prices .price {
  position:static !important;
  inset:auto !important;
  float:none !important;
  transform:none !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .prices .price-final strong {
  font-size:clamp(20px,1.65vw,26px) !important;
  font-weight:700 !important;
  line-height:1.25 !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-tools {
  order:5 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:4px !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-tools > form.pr-action {
  position:static !important;
  float:none !important;
  transform:none !important;
  display:block !important;
  flex:1 1 100% !important;
  width:100% !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
}

.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-tools > form.pr-action > .btn-cart,
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-tools > a.btn {
  position:relative !important;
  inset:auto !important;
  float:none !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:42px !important;
  height:auto !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:9px 8px !important;
  line-height:1.3 !important;
  white-space:normal !important;
  text-align:center !important;
}

@media(max-width:480px){
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in > .p-bottom > [data-micro="offer"] > .p-desc {font-size:13px !important;}
.products:not(.products-inline) > .product:has(> .p > .p-in > .p-bottom:not(.no-buttons) > [data-micro="offer"] > .p-tools) > .p > .p-in {gap:6px !important;}
}
