/* ===== LAYOUT: cena vlevo / košík vpravo ===== */
.category-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.category-price-row > *:first-child {
  min-width: 0;
  overflow: hidden;
}

/* ===== PRAVÁ STRANA ===== */
.category-cart-actions {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  white-space: nowrap;
  margin-left: auto;
}

.category-inline-form {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
}

/* ===== QUANTITY ===== */
.category-qty-holder {
  display: flex;
}

.category-qty {
  display: inline-flex;
  height: 38px;
  border: 1px solid #9b9b9b;
  background: #fff;
  overflow: hidden;
}

.category-qty-input {
  width: 40px;
  height: 36px;
  border: 0;
  background: transparent;
  text-align: right;
  padding: 0 8px 0 6px;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px;
  color: #4d4d4d;
  outline: none;
  appearance: textfield;
}

.category-qty-input::-webkit-outer-spin-button,
.category-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== ŠIPKY ===== */
.category-qty-controls {
  width: 26px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid #9b9b9b;
}

.category-qty-arrow {
  position: relative;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.category-qty-up {
  border-bottom: 1px solid #dcdcdc;
}

.category-qty-arrow:hover {
  background: #f5f5f5;
}

.category-qty-arrow span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
}

.category-qty-up span::before,
.category-qty-down span::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-left: 2px solid #5b5b5b;
  border-bottom: 2px solid #5b5b5b;
}

.category-qty-up span::before {
  transform: rotate(135deg);
}

.category-qty-down span::before {
  transform: rotate(-45deg);
}

/* ===== IKONOVÉ TLAČÍTKO ===== */
.category-icon-cart-btn {
  position: relative !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 38px !important;
  margin-left: -1px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  font-size: 0 !important;
}

/* 🔥 VYPNUTÍ SHOPTET IKONY */
.category-icon-cart-btn::before {
  content: none !important;
  display: none !important;
}

/* schování všeho uvnitř */
.category-icon-cart-btn *,
.category-icon-cart-btn span,
.category-icon-cart-btn svg,
.category-icon-cart-btn img,
.category-icon-cart-btn i,
.category-icon-cart-btn .icon,
.category-icon-cart-btn [class*="icon"] {
  display: none !important;
}

/* ===== TVOJE IKONKA ===== */
.category-icon-cart-btn::after {
  content: '' !important;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  background: url("https://www.velkoobaly.cz/user/documents/upload/icon-kosik.svg") no-repeat center;
  background-size: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .category-qty-input {
    width: 36px;
  }

  .category-icon-cart-btn {
    width: 44px !important;
    min-width: 44px !important;
  }

  .category-icon-cart-btn::after {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .category-price-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .category-cart-actions {
    justify-content: flex-end;
  }
}
/* ===== MOBILE FIX – zarovnání doleva ===== */
@media (max-width: 768px) {

  .category-price-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .category-cart-actions {
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }

  .category-inline-form {
    justify-content: flex-start;
  }

}
/* karty, které jsou užší, přepni stejně jako mobil */
@media (max-width: 1400px) {
  .type-category .products .product .category-price-row,
  .related .product .category-price-row,
  .related-products .product .category-price-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
    align-items: start;
  }

  .type-category .products .product .category-cart-actions,
  .related .product .category-cart-actions,
  .related-products .product .category-cart-actions {
    justify-content: flex-start !important;
    justify-self: start !important;
    margin-left: 0 !important;
  }

  .type-category .products .product .category-inline-form,
  .related .product .category-inline-form,
  .related-products .product .category-inline-form {
    justify-content: flex-start !important;
  }
}
/* ===== Podobné produkty / alternativy: dřívější přepnutí pod sebe ===== */
@media (max-width: 1600px) {
  #productsAlternative .category-price-row,
  .products-alternative .category-price-row,
  .products-additional .category-price-row {
    grid-template-columns: 1fr !important;
    row-gap: 8px !important;
    align-items: start !important;
  }

  #productsAlternative .category-cart-actions,
  .products-alternative .category-cart-actions,
  .products-additional .category-cart-actions {
    justify-content: flex-start !important;
    justify-self: start !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  #productsAlternative .category-inline-form,
  .products-alternative .category-inline-form,
  .products-additional .category-inline-form {
    justify-content: flex-start !important;
  }

  #productsAlternative .category-qty-holder,
  .products-alternative .category-qty-holder,
  .products-additional .category-qty-holder {
    margin-left: 0 !important;
  }
}
/* ===== ŠIPKY – sjednocení s detailem produktu ===== */
.category-qty-controls {
  width: 20px !important;
  display: flex !important;
  flex-direction: column;
  border-left: 1px solid #919191;
}

.category-qty-arrow {
  width: 20px !important;
  height: 19px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f6f6f6 !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  position: relative;
}

.category-qty-up {
  border-bottom: 1px solid #dadada !important;
}

.category-qty-arrow:hover {
  background: #ececec !important;
}

/* reset původní pseudo ikonky */
.category-qty-arrow span,
.category-qty-arrow span::before {
  all: unset;
}

/* ===== NOVÉ IKONY (pixel perfect) ===== */
.category-qty-up::before,
.category-qty-down::before {
  content: '';
  width: 6px;
  height: 6px;
  border-left: 2px solid #5b5b5b;
  border-bottom: 2px solid #5b5b5b;
  display: block;
}

.category-qty-up::before {
  transform: rotate(135deg);
  margin-top: 2px; /* jemný optický posun */
}

.category-qty-down::before {
  transform: rotate(-45deg);
  margin-bottom: 2px; /* jemný optický posun */
}
/* ===== NEDOSTUPNÉ PRODUKTY – srovnání DETAIL do stejné spodní linie ===== */
.p-bottom.single-button [data-micro="offer"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.p-bottom.single-button [data-micro="offer"] > .prices {
  min-width: 0;
}

.p-bottom.single-button .p-tools {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.p-bottom.single-button .p-tools .btn,
.p-bottom.single-button .p-tools .btn-primary {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
}
.p-bottom.single-button .p-tools .btn,
.p-bottom.single-button .p-tools .btn-primary {
  transform: translateY(1px);
}