/* Catalogue-only refinement of the native product controls. */
.cfr-redesign .catalog-section-item:is(:hover,:focus-within) .product-card {
  transform: none;
}
.cfr-redesign .catalog-section-item.available .catalog-section-item-button {
  grid-template-columns: minmax(0,1fr) 44px;
  gap: 4px 0;
}
.cfr-redesign .catalog-section-item.available .catalog-section-item-button .add2basket {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  width: 100% !important;
  padding: 0 8px !important;
  line-height: 1.2 !important;
}
.cfr-redesign .catalog-section-item.available .catalog-section-item-button .add2basket .icon {
  display: block !important;
  flex: 0 0 auto;
  margin: 0 !important;
  width: 20px;
  height: 20px;
}
.cfr-redesign .catalog-section-item.available .catalog-section-item-button .add2basket::after {
  content: 'В корзину' !important;
  display: block !important;
  margin: 0 !important;
  line-height: 1.2;
}
.cfr-redesign .catalog-section-item.available .added-to-basket .catalog-section-item-button {
  grid-template-columns: minmax(0,1fr) 44px;
}
.cfr-redesign .catalog-section-item.available .added-to-basket .catalog-section-item-button .add2basket {
  grid-area: 1 / 2;
  border-radius: 0 8px 8px 0 !important;
}
.cfr-redesign .catalog-section-item.available .added-to-basket .catalog-section-item-button .add2basket::after {
  content: none !important;
  display: none !important;
}
.cfr-redesign .catalog-section-item.available .added-to-basket .catalog-section-item-button .product-quantity-container {
  display: block !important;
  width: 100% !important;
}
.cfr-redesign .catalog-section-item.available .catalog-section-item-button .fast-order-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  inset: auto !important;
  min-width: 0;
  min-height: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  line-height: 1.3 !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  white-space: normal;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.cfr-redesign .catalog-section-item.available .catalog-section-item-button .fast-order-button:is(:hover,:focus-visible) {
  background: #fff0f5 !important;
  color: #a9204d !important;
}
.cfr-redesign .catalog-section-item.available .catalog-section-item-button .fast-order-button:focus-visible {
  outline: 2px solid #44425b;
  outline-offset: 2px;
}
.cfr-redesign .catalog-section-item.available .added-to-basket .catalog-section-item-button .fast-order-button {
  display: none !important;
}
@media (min-width:1001px) and (hover:hover) {
  /* Reveal a second action in the existing 44px row; never extend the card. */
  .cfr-redesign .catalog-section-item.available .product:not(.added-to-basket) .catalog-section-item-button .fast-order-button {
    grid-area: 1 / 1 / 2 / -1;
    justify-self: end;
    width: 40% !important;
    height: 44px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .cfr-redesign .catalog-section-item.available:is(:hover,:focus-within) .product:not(.added-to-basket) .catalog-section-item-button .add2basket {
    width: calc(60% - 6px) !important;
    justify-self: start;
  }
  .cfr-redesign .catalog-section-item.available:is(:hover,:focus-within) .product:not(.added-to-basket) .catalog-section-item-button .fast-order-button {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
@media(max-width:700px) {
  .cfr-redesign .catalog-section-item .catalog-section-item-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 2.9em;
    min-height: 0;
  }
  .cfr-redesign .catalog-section-item.available .catalog-section-item-button .fast-order-button {
    display: none !important;
  }
  .cfr-redesign .catalog-section-item.available .catalog-section-item-button .add2basket .icon { width:18px;height:18px; }
  .cfr-redesign .catalog-section-item.available .catalog-section-item-button .product-quantity-btn-minus,
  .cfr-redesign .catalog-section-item.available .catalog-section-item-button .product-quantity-btn-plus { width:28px; }
  .cfr-redesign .catalog-section-item.available .catalog-section-item-button .product-quantity-field-block { width:calc(100% - 56px); }
  .cfr-redesign .catalog-section-item.available .catalog-section-item-button .product-quantity-field { min-width:0;padding:0;font-size:16px; }
}
