/* Book detail layout. Keep WooCommerce's gallery and cart controls intact. */
body.single-product .product-main {
  padding: 28px 0 42px;
  background: #fff;
}

body.single-product .product-main > .row.content-row {
  width: min(1100px, calc(100% - 40px));
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 92px) !important;
}

body.single-product .product-main .product-gallery.col {
  flex: 0 0 38%;
  width: 38%;
  max-width: 38%;
  padding: 0;
}

body.single-product .product-main .product-info.col {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  padding: 4px 0 0 !important;
}

body.single-product .product-main #product-sidebar {
  display: none !important;
}

body.single-product .product-gallery .product-images {
  max-width: 340px;
  margin: 0 auto 12px;
}

body.single-product .product-gallery .badge-container {
  display: none;
}

body.single-product .product-gallery .product-gallery-slider img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
}

body.single-product .product-gallery .product-thumbnails {
  max-width: 420px;
  margin: 0 auto;
}

body.single-product .product-gallery .product-thumbnails .col {
  padding: 0 4px;
}

body.single-product .product-gallery .product-thumbnails img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  background: #f5f5f5;
}

body.single-product .product-gallery .product-thumbnails .is-nav-selected img {
  border: 2px solid #7520ed;
}

body.single-product .product-info .product-title {
  max-width: 560px;
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.35;
}

body.single-product .fm-single-author {
  margin-bottom: 12px;
  color: #50545c;
  font-size: 18px;
  line-height: 1.45;
}

body.single-product .product-info .price-wrapper {
  margin-bottom: 16px;
}

body.single-product .product-info .product-page-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  color: #0aa2d3;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

body.single-product .product-info .product-page-price ins {
  order: -1;
  color: #0aa2d3;
  text-decoration: none;
}

body.single-product .product-info .product-page-price ins .amount {
  color: #0aa2d3 !important;
}

body.single-product .product-info .product-page-price del {
  color: #666;
  font-size: 17px;
  font-weight: 400;
  opacity: 1;
}

body.single-product .product-short-description {
  margin: 0 0 14px;
  padding: 0;
}

body.single-product .product-short-description .newsamplebtn,
body.single-product .product-short-description .fm-sample-link,
body.single-product .product-short-description a:has(.newsamplebtn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  padding: 7px 20px;
  border: 1px solid #0aa7e6;
  border-radius: 11px;
  background: #fff;
  color: #079ed6;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;
}

body.single-product .product-short-description .newsamplebtn:hover {
  background: #eaf9fe;
  color: #087ca8;
}

body.single-product .fm-single-formats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  min-height: 43px;
  margin: 10px 0 58px;
}

body.single-product .fm-format-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.single-product .fm-format-group + .fm-format-group {
  padding-left: 17px;
  border-left: 1px solid #333;
}

body.single-product .fm-format-type,
body.single-product .fm-format-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 36px;
  text-decoration: none;
}

body.single-product .fm-format-type {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d6f3fc;
  color: #087c9f;
}

body.single-product .fm-format-type img,
body.single-product .fm-format-link img {
  display: block;
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
  border-radius: 8px;
}

body.single-product .fm-format-type i,
body.single-product .fm-format-link i {
  font-size: 18px;
}

body.single-product .fm-format-link:hover,
body.single-product .fm-format-type--linked:hover {
  transform: translateY(-2px);
  opacity: .8;
}

body.single-product .product-info form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 0 12px;
}

body.single-product .product-info form.cart .quantity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

body.single-product .product-info form.cart .quantity .minus,
body.single-product .product-info form.cart .quantity .plus {
  width: 27px;
  min-width: 27px;
  height: 27px;
  min-height: 27px;
  padding: 0;
  border: 1px solid #d5d7da;
  border-radius: 50%;
  background: #fff;
  color: #363b3f;
  font-size: 18px;
  line-height: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

body.single-product .product-info form.cart .quantity .qty {
  width: 48px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #dfe3e7;
  border-radius: 5px;
  background: #fff;
  text-align: center;
  box-shadow: none;
}

body.single-product .product-info form.cart .single_add_to_cart_button {
  min-height: 42px;
  margin: 0;
  padding: 0 24px;
  border-radius: 25px;
  background: #0aa6d4 !important;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 42px;
  text-transform: none;
}

body.single-product .product-info form.cart .single_add_to_cart_button::before {
  content: '\f291';
  display: inline-block;
  margin-right: 10px;
  font-family: 'Font Awesome 7 Free', 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 19px;
  vertical-align: -1px;
}

body.single-product .product-info form.cart .single_add_to_cart_button:hover {
  background: #078ab3 !important;
}

@media (max-width: 849px) {
  body.single-product .product-main > .row.content-row {
    width: min(680px, calc(100% - 30px));
    display: flex;
    flex-direction: column;
    gap: 24px !important;
  }

  body.single-product .product-main .product-gallery.col,
  body.single-product .product-main .product-info.col {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  body.single-product .product-gallery .product-images {
    max-width: 320px;
  }

  body.single-product .fm-single-formats {
    margin-bottom: 28px;
  }
}
