/* Современный блок покупки на странице товара. */

.bx-mobile-product-title {
  display: none;
}

body.single-product .summary.entry-summary {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 30px 32px 24px;
  border: 1px solid #e1e6ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(25, 35, 50, .09);
}

body.single-product .summary.entry-summary .shoptimizer-product-prevnext {
  top: 24px;
  right: 24px;
  gap: 5px;
}

body.single-product .summary.entry-summary .shoptimizer-product-prevnext a {
  display: grid;
  width: 22px;
  height: 22px;
  border: 1px solid #d7dde4;
  border-radius: 50%;
  color: #6e7885;
  place-items: center;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

body.single-product .summary.entry-summary .shoptimizer-product-prevnext a:hover {
  border-color: #c52127;
  background: #fff4f4;
  color: #c52127;
}

body.single-product .summary.entry-summary h1.product_title {
  max-width: calc(100% - 28px);
  margin: 0 0 22px;
  padding: 0;
  color: #182235;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.16;
}

body.single-product .summary.entry-summary p.price {
  margin: 0 0 12px;
  color: #c52127;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

body.single-product .summary.entry-summary .woocommerce-product-details__short-description {
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 0;
  color: #68778b;
  font-size: 14px;
  line-height: 1.5;
}

body.single-product .summary.entry-summary .woocommerce-product-details__short-description p {
  margin: 0;
  font-size: inherit;
}

body.single-product .summary.entry-summary p.stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  color: #16824f;
  font-size: 13px;
  line-height: 1.4;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin {
  display: block;
  width: 100%;
  margin: 18px 0 17px;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .commercekit-pdp-sticky-inner,
body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .commercekit-pdp-simple-form,
body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .commercekit-sticky-atc-intersector {
  width: 100%;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .commercekit-sticky-atc-intersector {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity {
  display: flex;
  flex: 0 0 132px;
  align-items: center;
  width: 132px;
  height: 50px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce2e8;
  border-radius: 12px;
  background: #f8fafb;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity .qty_button {
  display: grid;
  width: 36px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526071;
  font-size: 18px;
  line-height: 1;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity .qty_button:hover {
  border-radius: 0;
  background: #edf1f4;
  color: #c52127;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity input.qty {
  width: 58px;
  height: 48px;
  padding: 0;
  border: 0;
  border-right: 1px solid #e2e7ec;
  border-left: 1px solid #e2e7ec;
  border-radius: 0;
  background: #fff;
  color: #182235;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity input.qty:focus {
  outline: 2px solid rgba(197, 33, 39, .16);
  outline-offset: -2px;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity.bx-single-stock-quantity {
  flex: 0 0 58px;
  width: 58px;
  justify-content: center;
  background: #f8fafb;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity.bx-single-stock-quantity .qty_button {
  display: none;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity.bx-single-stock-quantity input.qty {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: default;
}

/* Фиксированная копия формы CommerceKit находится вне .summary. */
body.single-product .commercekit-pdp-sticky-inner .quantity.bx-single-stock-quantity {
  flex: 0 0 58px;
  width: 58px;
  justify-content: center;
  background: #f8fafb;
}

body.single-product .commercekit-pdp-sticky-inner .quantity.bx-single-stock-quantity .qty_button {
  display: none;
}

body.single-product .commercekit-pdp-sticky-inner .quantity.bx-single-stock-quantity input.qty {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: default;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .single_add_to_cart_button {
  flex: 1 1 auto;
  width: auto;
  height: 50px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #d02a31 0%, #b91d24 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 50px;
  box-shadow: 0 9px 20px rgba(197, 33, 39, .2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #bd1f26 0%, #a9161c 100%);
  box-shadow: 0 12px 25px rgba(197, 33, 39, .28);
  transform: translateY(-1px);
}

body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .single_add_to_cart_button:focus-visible {
  outline: 3px solid rgba(197, 33, 39, .2);
  outline-offset: 3px;
}

body.single-product .summary.entry-summary .commercekit-wishlist.full {
  margin: 0;
}

body.single-product .summary.entry-summary .commercekit-wishlist.full a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4f5c6c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

body.single-product .summary.entry-summary .commercekit-wishlist.full a:hover {
  color: #c52127;
}

@media (max-width: 992px) {
  .single-product .bx-mobile-product-title {
    display: block;
    max-width: 1170px;
    margin: 0 auto 22px;
    padding: 0;
    color: #182235;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.18;
  }

  body.single-product .summary.entry-summary h1.product_title {
    display: none;
  }

  body.single-product .summary.entry-summary {
    padding: 26px 24px 22px;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  body.single-product .summary.entry-summary {
    padding: 22px 18px 20px;
  }

  body.single-product .summary.entry-summary h1.product_title {
    font-size: 27px;
  }

  body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .commercekit-sticky-atc-intersector {
    gap: 9px;
  }

  body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity {
    flex-basis: 116px;
    width: 116px;
  }

  body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity .qty_button {
    width: 30px;
  }

  body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .quantity input.qty {
    width: 54px;
  }

  body.single-product .summary.entry-summary form.cart.commercekit_sticky-atc-origin .single_add_to_cart_button {
    padding: 0 12px;
    font-size: 14px;
  }
}
