/* Ohlala v25 – jednotná sleva na kartách i v detailu produktu */

/* Produktové karty */
html body .products .product .image {
  position: relative !important;
}

html body .products .product .image > .flags-extra {
  position: absolute !important;
  z-index: 8 !important;
  top: 12px !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}

html body .products .product .flag.flag-discount {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 6px 11px !important;
  background: #F6C7B9 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #7D3A2B !important;
}

html body .products .product .flag.flag-discount::before,
html body .products .product .flag.flag-discount::after {
  display: none !important;
  content: none !important;
}

html body .products .product .flag.flag-discount .price-standard {
  display: none !important;
}

html body .products .product .flag.flag-discount .price-save {
  display: block !important;
  margin: 0 !important;
  color: #7D3A2B !important;
  -webkit-text-fill-color: #7D3A2B !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

html body .products .product .price.price-final.ohlala-has-saving {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "old"
    "saving"
    "current" !important;
  align-items: start !important;
  justify-content: start !important;
  gap: 2px !important;
  min-width: 0 !important;
  min-height: 62px !important;
  text-align: left !important;
}

html body .products .product .price.price-final.ohlala-has-saving .price-standard {
  grid-area: old !important;
  margin: 0 !important;
}

html body .products .product .price.price-final.ohlala-has-saving > .ohlala-saving-amount {
  grid-area: saving !important;
  display: block !important;
  margin: 0 !important;
  color: #C5533E !important;
  -webkit-text-fill-color: #C5533E !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

html body .products .product .price.price-final.ohlala-has-saving > strong {
  grid-area: current !important;
  margin: 0 !important;
}

html body .products .product .p-bottom:has(.ohlala-has-saving) {
  min-height: 62px !important;
}

/* Detail produktu – stejná pilulka jako na kartách */
body.type-product .p-image {
  position: relative !important;
}

body.type-product .p-image > .flags.flags-extra {
  position: absolute !important;
  z-index: 8 !important;
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}

body.type-product .p-image .flag.flag-discount {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 64px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  background: #F6C7B9 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #7D3A2B !important;
}

body.type-product .p-image .flag.flag-discount::before,
body.type-product .p-image .flag.flag-discount::after {
  display: none !important;
  content: none !important;
}

body.type-product .p-image .flag.flag-discount > .price-standard {
  display: none !important;
}

body.type-product .p-image .flag.flag-discount > .price-save {
  display: block !important;
  margin: 0 !important;
  color: #7D3A2B !important;
  -webkit-text-fill-color: #7D3A2B !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

/* Detail ceny: původní cena, úspora, nová cena – vždy zarovnané vlevo. */
body.type-product .p-final-price-wrapper.ohlala-detail-has-saving {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "detail-old"
    "detail-saving"
    "detail-current"
    "detail-measure" !important;
  align-items: start !important;
  justify-items: start !important;
  gap: 3px !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

body.type-product .p-final-price-wrapper.ohlala-detail-has-saving > .price-standard {
  grid-area: detail-old !important;
  display: block !important;
  margin: 0 !important;
  color: #77737F !important;
  -webkit-text-fill-color: #77737F !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  white-space: nowrap !important;
}

body.type-product .p-final-price-wrapper.ohlala-detail-has-saving > .price-save {
  display: none !important;
}

body.type-product .p-final-price-wrapper > .ohlala-detail-saving {
  grid-area: detail-saving !important;
  display: block !important;
  margin: 0 !important;
  color: #C5533E !important;
  -webkit-text-fill-color: #C5533E !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

body.type-product .p-final-price-wrapper.ohlala-detail-has-saving > .price-final {
  grid-area: detail-current !important;
  display: block !important;
  margin: 2px 0 0 !important;
  text-align: left !important;
}

body.type-product .p-final-price-wrapper.ohlala-detail-has-saving > .price-measure {
  grid-area: detail-measure !important;
}

@media (max-width: 767px) {
  html body .products .product .image > .flags-extra,
  body.type-product .p-image > .flags.flags-extra {
    top: 10px !important;
    right: 10px !important;
  }

  html body .products .product .flag.flag-discount,
  body.type-product .p-image .flag.flag-discount {
    min-width: 56px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 6px 10px !important;
  }

  html body .products .product .flag.flag-discount .price-save,
  body.type-product .p-image .flag.flag-discount > .price-save {
    font-size: 13px !important;
  }

  body.type-product .p-final-price-wrapper > .ohlala-detail-saving {
    font-size: 12px !important;
  }
}

/* ==================================================
   V30 – RESPONZIVNÍ NÁKUPNÍ BLOK DETAILU PRODUKTU
   ================================================== */

/* Číslo a znak procenta mají v pilulce shodnou typografii. */
body.type-product .p-image .flag.flag-discount > .price-save {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
}

body.type-product .p-image .flag.flag-discount .ohlala-discount-number,
body.type-product .p-image .flag.flag-discount .ohlala-discount-percent {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* Skript přesune celé bloky ceny, dostupnosti a nákupu za krátký popis. */
body.type-product .ohlala-detail-buy-row {
  display: grid !important;
  grid-template-columns: minmax(118px, .9fr) minmax(0, 1.1fr) !important;
  grid-template-areas:
    "detail-price availability"
    "cart-form cart-form" !important;
  align-items: center !important;
  gap: 12px 14px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 20px 0 22px !important;
  padding-top: 18px !important;
  border-top: 1px solid #E5DED2 !important;
}

body.type-product .ohlala-detail-buy-row > .detail-price-block,
body.type-product .ohlala-detail-buy-row > .detail-availability-block {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.type-product .ohlala-detail-buy-row > .detail-price-block {
  grid-area: detail-price !important;
}

body.type-product .ohlala-detail-buy-row > .detail-availability-block {
  grid-area: availability !important;
}

body.type-product .ohlala-detail-buy-row .detail-grid-title {
  display: none !important;
}

body.type-product .ohlala-detail-buy-row .p-final-price-wrapper {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

body.type-product .ohlala-detail-buy-row .availability-value {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #3F776D !important;
  -webkit-text-fill-color: #3F776D !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  white-space: normal !important;
}

body.type-product .ohlala-detail-buy-row .availability-value::before,
body.type-product .ohlala-detail-buy-row .availability-value::after {
  display: none !important;
  content: none !important;
}

body.type-product .ohlala-detail-buy-row .availability-label,
body.type-product .ohlala-detail-buy-row .availability-amount {
  color: #3F776D !important;
  -webkit-text-fill-color: #3F776D !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 700 !important;
}

body.type-product .ohlala-detail-buy-row > .add-to-cart {
  grid-area: cart-form !important;
  display: grid !important;
  grid-template-columns: 110px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.type-product .ohlala-detail-buy-row .quantity {
  box-sizing: border-box !important;
  overflow: hidden !important;
  width: 110px !important;
  min-width: 110px !important;
  height: 50px !important;
  margin: 0 !important;
  background: #FFFDF8 !important;
  border: 1px solid #C8DED7 !important;
  border-radius: 999px !important;
}

body.type-product .ohlala-detail-buy-row .quantity input.amount {
  box-sizing: border-box !important;
  width: 110px !important;
  height: 48px !important;
  padding-right: 33px !important;
  padding-left: 33px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 18px !important;
}

body.type-product .ohlala-detail-buy-row .quantity .increase,
body.type-product .ohlala-detail-buy-row .quantity .decrease {
  width: 33px !important;
  height: 48px !important;
  background: transparent !important;
  border: 0 !important;
  color: #5D8D84 !important;
}

body.type-product .ohlala-detail-buy-row .add-to-cart-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  background: #C8DED7 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #292724 !important;
  -webkit-text-fill-color: #292724 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body.type-product .ohlala-detail-buy-row .add-to-cart-button::before,
body.type-product .ohlala-detail-buy-row .add-to-cart-button::after {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  transform: none !important;
}

body.type-product .ohlala-detail-buy-row .add-to-cart-button:hover,
body.type-product .ohlala-detail-buy-row .add-to-cart-button:focus-visible {
  background: #AFCFC5 !important;
  color: #292724 !important;
  -webkit-text-fill-color: #292724 !important;
}

@media (min-width: 1200px) {
  body.type-product .ohlala-detail-buy-row {
    grid-template-columns:
      minmax(126px, max-content)
      minmax(128px, 1fr)
      minmax(304px, 1fr) !important;
    grid-template-areas:
      "detail-price availability cart-form" !important;
    gap: 14px !important;
  }

  body.type-product .ohlala-detail-buy-row .availability-value {
    white-space: nowrap !important;
  }

  body.type-product .ohlala-detail-buy-row > .add-to-cart {
    grid-template-columns: 112px minmax(180px, 1fr) !important;
  }

  body.type-product .ohlala-detail-buy-row .p-final-price-wrapper.ohlala-detail-has-saving {
    gap: 1px !important;
  }

  body.type-product .ohlala-detail-buy-row .p-final-price-wrapper.ohlala-detail-has-saving > .price-standard {
    font-size: 13px !important;
  }

  body.type-product .ohlala-detail-buy-row .p-final-price-wrapper > .ohlala-detail-saving {
    font-size: 11px !important;
  }

  body.type-product .ohlala-detail-buy-row .p-final-price-wrapper.ohlala-detail-has-saving > .price-final {
    margin-top: 1px !important;
    font-size: 23px !important;
    line-height: 1.05 !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.type-product .ohlala-detail-buy-row {
    grid-template-columns: minmax(126px, .8fr) minmax(180px, 1.2fr) !important;
    gap: 14px 18px !important;
  }

  body.type-product .ohlala-detail-buy-row > .add-to-cart {
    grid-template-columns: 112px minmax(180px, 1fr) !important;
  }
}

@media (max-width: 767px) {
  body.type-product .ohlala-detail-buy-row {
    grid-template-columns: minmax(112px, .9fr) minmax(0, 1.1fr) !important;
    gap: 12px !important;
    margin: 16px 0 20px !important;
    padding-top: 16px !important;
  }

  body.type-product .ohlala-detail-buy-row > .add-to-cart {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.type-product .ohlala-detail-buy-row .quantity,
  body.type-product .ohlala-detail-buy-row .quantity input.amount {
    width: 104px !important;
    min-width: 104px !important;
  }

  body.type-product .ohlala-detail-buy-row .quantity input.amount {
    padding-right: 31px !important;
    padding-left: 31px !important;
  }

  body.type-product .ohlala-detail-buy-row .quantity .increase,
  body.type-product .ohlala-detail-buy-row .quantity .decrease {
    width: 31px !important;
  }

  body.type-product .ohlala-detail-buy-row .add-to-cart-button {
    padding-right: 12px !important;
    padding-left: 12px !important;
    font-size: 14px !important;
  }

  body.type-product .ohlala-detail-buy-row .p-final-price-wrapper.ohlala-detail-has-saving > .price-standard {
    font-size: 12px !important;
  }

  body.type-product .ohlala-detail-buy-row .p-final-price-wrapper.ohlala-detail-has-saving > .price-final {
    font-size: 22px !important;
    line-height: 1.05 !important;
  }

  body.type-product .ohlala-detail-buy-row .availability-value {
    font-size: 12px !important;
  }
}

@media (max-width: 374px) {
  body.type-product .ohlala-detail-buy-row {
    grid-template-columns: minmax(106px, .9fr) minmax(0, 1.1fr) !important;
  }

  body.type-product .ohlala-detail-buy-row > .add-to-cart {
    grid-template-columns: 98px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body.type-product .ohlala-detail-buy-row .quantity,
  body.type-product .ohlala-detail-buy-row .quantity input.amount {
    width: 98px !important;
    min-width: 98px !important;
  }

  body.type-product .ohlala-detail-buy-row .add-to-cart-button {
    padding-right: 9px !important;
    padding-left: 9px !important;
    font-size: 13px !important;
  }
}

/* ==============================================================
   V38 – DETAIL PRODUKTU: FOTOGRAFIE DOPLNKOVYCH PRODUKTU DO KRAJU
   Obrazek vyuzije celou sirku horni casti karty. Samotny produkt se
   neorezava; textova cast si ponechava puvodni bezpecne odsazeni.
   ============================================================== */

body.type-product .products-additional .product .p > .image,
body.type-product .products-related .product .p > .image,
body.type-product .products-alternative .product .p > .image {
  display: block !important;
  width: calc(100% + 60px) !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  margin: -30px -30px 20px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
}

body.type-product .products-additional .product .p > .image > img,
body.type-product .products-related .product .p > .image > img,
body.type-product .products-alternative .product .p > .image > img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.type-product .products-additional .product .p > .image,
  body.type-product .products-related .product .p > .image,
  body.type-product .products-alternative .product .p > .image {
    width: calc(100% + 36px) !important;
    margin: -22px -18px 18px !important;
  }
}

@media (max-width: 767px) {
  body.type-product .products-additional .product .p > .image,
  body.type-product .products-related .product .p > .image,
  body.type-product .products-alternative .product .p > .image {
    width: calc(100% + 24px) !important;
    margin: -16px -12px 16px !important;
  }
}

/* ==============================================================
   V37 – DETAIL PRODUKTU: PODOBNE A SOUVISEJICI PRODUKTY
   Stejny kompaktni kosik jako v produktovych carouselech homepage.
   Hlavni nakupni tlacitko v detailu produktu zustava beze zmeny.
   ============================================================== */

body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button),
body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button),
body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) {
  position: relative !important;
  padding-bottom: 24px !important;
}

body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-in,
body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-in,
body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-in {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
}

body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-in-in,
body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-in-in,
body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-in-in {
  flex: 1 0 auto !important;
}

body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom,
body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom,
body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom {
  display: flex !important;
  align-items: center !important;
  width: calc(100% - 64px) !important;
  min-height: 52px !important;
  margin-top: auto !important;
  padding: 0 !important;
}

body.type-product .products-additional .product .p-bottom > div,
body.type-product .products-additional .product .prices,
body.type-product .products-related .product .p-bottom > div,
body.type-product .products-related .product .prices,
body.type-product .products-alternative .product .p-bottom > div,
body.type-product .products-alternative .product .prices {
  width: 100% !important;
  margin: 0 !important;
}

body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button),
body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button),
body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) {
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
}

body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action {
  display: block !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
}

body.type-product .products-additional .product .product-btn .btn-cart,
body.type-product .products-additional .product .product-btn .add-to-cart-button,
body.type-product .products-related .product .product-btn .btn-cart,
body.type-product .products-related .product .product-btn .add-to-cart-button,
body.type-product .products-alternative .product .product-btn .btn-cart,
body.type-product .products-alternative .product .product-btn .add-to-cart-button {
  display: flex !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  aspect-ratio: 1 / 1 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--ohlala-teal-light, #C8DED7) !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(41, 39, 36, .08) !important;
  color: var(--ohlala-black, #292724) !important;
  -webkit-text-fill-color: var(--ohlala-black, #292724) !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

body.type-product .products-additional .product .product-btn .btn-cart span,
body.type-product .products-additional .product .product-btn .add-to-cart-button span,
body.type-product .products-related .product .product-btn .btn-cart span,
body.type-product .products-related .product .product-btn .add-to-cart-button span,
body.type-product .products-alternative .product .product-btn .btn-cart span,
body.type-product .products-alternative .product .product-btn .add-to-cart-button span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.type-product .products-additional .product .product-btn .btn-cart::after,
body.type-product .products-additional .product .product-btn .add-to-cart-button::after,
body.type-product .products-related .product .product-btn .btn-cart::after,
body.type-product .products-related .product .product-btn .add-to-cart-button::after,
body.type-product .products-alternative .product .product-btn .btn-cart::after,
body.type-product .products-alternative .product .product-btn .add-to-cart-button::after {
  margin: 0 !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 21px !important;
  line-height: 1 !important;
}

body.type-product .products-additional .product .product-btn .btn-cart:hover,
body.type-product .products-additional .product .product-btn .btn-cart:focus-visible,
body.type-product .products-additional .product .product-btn .add-to-cart-button:hover,
body.type-product .products-additional .product .product-btn .add-to-cart-button:focus-visible,
body.type-product .products-related .product .product-btn .btn-cart:hover,
body.type-product .products-related .product .product-btn .btn-cart:focus-visible,
body.type-product .products-related .product .product-btn .add-to-cart-button:hover,
body.type-product .products-related .product .product-btn .add-to-cart-button:focus-visible,
body.type-product .products-alternative .product .product-btn .btn-cart:hover,
body.type-product .products-alternative .product .product-btn .btn-cart:focus-visible,
body.type-product .products-alternative .product .product-btn .add-to-cart-button:hover,
body.type-product .products-alternative .product .product-btn .add-to-cart-button:focus-visible {
  background: var(--ohlala-teal-hover, #5D8D84) !important;
  color: var(--ohlala-white, #FFFDF8) !important;
  -webkit-text-fill-color: var(--ohlala-white, #FFFDF8) !important;
  box-shadow: 0 6px 16px rgba(41, 39, 36, .14) !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button),
  body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button),
  body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) {
    padding-bottom: 18px !important;
  }

  body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom,
  body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom,
  body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom {
    width: calc(100% - 60px) !important;
    min-height: 48px !important;
  }

  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
  body.type-product .products-additional .product .product-btn .btn-cart,
  body.type-product .products-additional .product .product-btn .add-to-cart-button,
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
  body.type-product .products-related .product .product-btn .btn-cart,
  body.type-product .products-related .product .product-btn .add-to-cart-button,
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
  body.type-product .products-alternative .product .product-btn .btn-cart,
  body.type-product .products-alternative .product .product-btn .add-to-cart-button {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) {
    right: 16px !important;
    bottom: 16px !important;
  }
}

@media (max-width: 767px) {
  body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button),
  body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button),
  body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) {
    padding-bottom: 12px !important;
  }

  body.type-product .products-additional .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom,
  body.type-product .products-related .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom,
  body.type-product .products-alternative .product .p:has(.product-btn .btn-cart, .product-btn .add-to-cart-button) .p-bottom {
    width: calc(100% - 56px) !important;
    min-height: 44px !important;
  }

  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
  body.type-product .products-additional .product .product-btn .btn-cart,
  body.type-product .products-additional .product .product-btn .add-to-cart-button,
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
  body.type-product .products-related .product .product-btn .btn-cart,
  body.type-product .products-related .product .product-btn .add-to-cart-button,
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) form,
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) .pr-action,
  body.type-product .products-alternative .product .product-btn .btn-cart,
  body.type-product .products-alternative .product .product-btn .add-to-cart-button {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  body.type-product .products-additional .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-related .product .product-btn:has(.btn-cart, .add-to-cart-button),
  body.type-product .products-alternative .product .product-btn:has(.btn-cart, .add-to-cart-button) {
    right: 10px !important;
    bottom: 10px !important;
  }
}

/* ==================================================
   V31 – ŘÁDKY PRODUKTŮ V KOŠÍKU
   Desktop, tablet, telefon na šířku i na výšku
   ================================================== */

/* Společný základ: čisté zarovnání a čitelný název. */
body.ordering-process.in-kosik .cart-table {
  border-collapse: collapse !important;
  table-layout: auto !important;
}

body.ordering-process.in-kosik .cart-table tr.removeable > td {
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

body.ordering-process.in-kosik .cart-table .p-name {
  min-width: 0 !important;
}

body.ordering-process.in-kosik .cart-table .p-name .main-link {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #292724 !important;
  -webkit-text-fill-color: #292724 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
}

body.ordering-process.in-kosik .cart-table .p-availability,
body.ordering-process.in-kosik .cart-table .p-price,
body.ordering-process.in-kosik .cart-table .p-total {
  white-space: nowrap !important;
}

body.ordering-process.in-kosik .cart-table .p-availability .availability-label,
body.ordering-process.in-kosik .cart-table .p-availability .availability-amount {
  color: #3F776D !important;
  -webkit-text-fill-color: #3F776D !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.ordering-process.in-kosik .cart-table .p-total .price-final {
  color: #292724 !important;
  -webkit-text-fill-color: #292724 !important;
  font-weight: 800 !important;
}

body.ordering-process.in-kosik .cart-table .p-total form.inline,
body.ordering-process.in-kosik .cart-table .p-total form.inline > .inline {
  margin: 0 !important;
  padding: 0 !important;
}

/* Apollo na menších displejích klonuje cenu za kus do buňky se součtem. */
@media (max-width: 1099px) {
  body.ordering-process.in-kosik .cart-table .p-total .p-price-content,
  body.ordering-process.in-kosik .cart-table .p-total .unit-value {
    display: none !important;
  }
}

body.ordering-process.in-kosik .cart-table .remove-item {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #77737F !important;
  -webkit-text-fill-color: #77737F !important;
  line-height: 1 !important;
}

body.ordering-process.in-kosik .cart-table .remove-item::before {
  position: static !important;
  display: block !important;
  margin: 0 !important;
  color: #77737F !important;
  -webkit-text-fill-color: #77737F !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transform: none !important;
}

body.ordering-process.in-kosik .cart-table .remove-item:hover {
  background: #FBE9E3 !important;
}

/* Desktop: zachováme tabulku a všechny údaje na jedné úrovni. */
@media (min-width: 1100px) {
  body.ordering-process.in-kosik .cart-table tr.removeable > td {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image {
    width: 96px !important;
    min-width: 96px !important;
    padding-right: 16px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-name {
    width: auto !important;
    min-width: 190px !important;
    padding-right: 18px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-availability {
    padding-right: 16px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity {
    width: 128px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price {
    padding-right: 16px !important;
    text-align: right !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total {
    min-width: 126px !important;
    text-align: right !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total form.inline {
    display: inline-flex !important;
    margin-left: 12px !important;
    vertical-align: middle !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total form.inline > .inline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Tablet a široký telefon: jeden kompaktní řádek, bez duplicitní ceny za kus. */
@media (min-width: 640px) and (max-width: 1099px) {
  body.ordering-process.in-kosik .cart-table,
  body.ordering-process.in-kosik .cart-table tbody {
    display: block !important;
    width: 100% !important;
  }

  body.ordering-process.in-kosik .cart-table tr.removeable {
    position: relative !important;
    display: grid !important;
    grid-template-columns:
      72px
      minmax(96px, 1fr)
      minmax(60px, max-content)
      104px
      minmax(82px, max-content)
      minmax(124px, max-content) !important;
    grid-template-areas: "cart-image cart-name cart-stock cart-quantity cart-price cart-total" !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #E5DED2 !important;
  }

  body.ordering-process.in-kosik .cart-table tr.removeable:last-child {
    border-bottom: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table tr.removeable > td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image {
    grid-area: cart-image !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image > a {
    width: 72px !important;
    height: 72px !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image img {
    max-width: 72px !important;
    max-height: 72px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-name {
    grid-area: cart-name !important;
  }

  body.ordering-process.in-kosik .cart-table .p-availability {
    grid-area: cart-stock !important;
    text-align: left !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity {
    grid-area: cart-quantity !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price {
    grid-area: cart-price !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    text-align: right !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total {
    grid-area: cart-total !important;
    display: grid !important;
    grid-template-columns: auto 34px !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 8px !important;
    text-align: right !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total > .price-final {
    display: block !important;
    align-self: center !important;
    margin: 0 !important;
    color: #292724 !important;
    -webkit-text-fill-color: #292724 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total > form.inline {
    align-self: center !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price .js-price-content {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price .price-final {
    color: #292724 !important;
    -webkit-text-fill-color: #292724 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price .unit-value {
    color: #77737F !important;
    -webkit-text-fill-color: #77737F !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-cell .p-label,
  body.ordering-process.in-kosik .cart-table .p-total > .p-label,
  body.ordering-process.in-kosik .cart-table .quantity-form > .p-label {
    display: none !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity .quantity {
    width: 104px !important;
    min-width: 104px !important;
    height: 42px !important;
    margin: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total form.inline,
  body.ordering-process.in-kosik .cart-table .p-total form.inline > .inline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Telefon na výšku: obrázek vlevo, název a ovládání trvale vpravo. */
@media (max-width: 639px) {
  body.ordering-process.in-kosik .cart-inner {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.ordering-process.in-kosik .cart-table,
  body.ordering-process.in-kosik .cart-table tbody {
    display: block !important;
    width: 100% !important;
  }

  body.ordering-process.in-kosik .cart-table tr.removeable {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 72px 104px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "cart-image cart-name cart-name cart-name"
      "cart-image cart-stock cart-total cart-total"
      "cart-image cart-quantity cart-price cart-price" !important;
    align-items: center !important;
    gap: 8px 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #E5DED2 !important;
  }

  body.ordering-process.in-kosik .cart-table tr.removeable:last-child {
    border-bottom: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table tr.removeable > td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image {
    grid-area: cart-image !important;
    align-self: start !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image > a {
    width: 72px !important;
    height: 72px !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image img {
    max-width: 72px !important;
    max-height: 72px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-name {
    grid-area: cart-name !important;
    align-self: end !important;
  }

  body.ordering-process.in-kosik .cart-table .p-name .main-link {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-availability {
    grid-area: cart-stock !important;
    text-align: left !important;
  }

  body.ordering-process.in-kosik .cart-table .p-availability .availability-amount {
    display: none !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity {
    grid-area: cart-quantity !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price {
    grid-area: cart-price !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 28px !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    text-align: right !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total {
    grid-area: cart-total !important;
    display: block !important;
    text-align: right !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total > .price-final {
    display: block !important;
    align-self: center !important;
    margin: 0 !important;
    color: #292724 !important;
    -webkit-text-fill-color: #292724 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total > form.inline {
    display: none !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price .js-price-content {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price > form.inline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price > form.inline > .inline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price .price-final {
    color: #292724 !important;
    -webkit-text-fill-color: #292724 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price .unit-value {
    color: #77737F !important;
    -webkit-text-fill-color: #77737F !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-cell .p-label,
  body.ordering-process.in-kosik .cart-table .p-total > .p-label,
  body.ordering-process.in-kosik .cart-table .quantity-form > .p-label {
    display: none !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity .quantity {
    width: 104px !important;
    min-width: 104px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity .quantity input.amount {
    height: 38px !important;
    padding-right: 31px !important;
    padding-left: 31px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity .quantity button.increase,
  body.ordering-process.in-kosik .cart-table .p-quantity .quantity button.decrease {
    width: 31px !important;
    height: 38px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total form.inline,
  body.ordering-process.in-kosik .cart-table .p-total form.inline > .inline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.ordering-process.in-kosik .cart-table .remove-item {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }
}

@media (max-width: 374px) {
  body.ordering-process.in-kosik .cart-table tr.removeable {
    grid-template-columns: 64px 98px minmax(0, 1fr) 26px !important;
    gap: 7px 8px !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image > a {
    width: 64px !important;
    height: 64px !important;
  }

  body.ordering-process.in-kosik .cart-table .cart-p-image img {
    max-width: 64px !important;
    max-height: 64px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-price .price-final {
    font-size: 14px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-total > .price-final {
    font-size: 14px !important;
  }

  body.ordering-process.in-kosik .cart-table .p-quantity .quantity {
    width: 98px !important;
    min-width: 98px !important;
  }

  body.ordering-process.in-kosik .cart-table .remove-item {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
  }
}
