/* Orthovita product detail interaction and responsive fixes v6 */
.trwpwhatsappall {
  pointer-events: none !important;
}

/* Floating buttons: WhatsApp stays on the right, go-top stays on the left. */
#goTop {
  right: auto !important;
  left: 24px !important;
  bottom: 24px !important;
  z-index: 9998 !important;
}

.trwpwhatsappall {
  right: 24px !important;
  left: auto !important;
  bottom: 24px !important;
  z-index: 9999 !important;
}

body.orthovita-product-detail-page #goTop,
body.orthovita-product-detail-page .trwpwhatsappall,
body:has(.orthovita-product-sticky.show) #goTop,
body:has(.orthovita-product-sticky.show) .trwpwhatsappall {
  bottom: 115px !important;
}

@media only screen and (max-width: 1149px) {
  #goTop {
    left: 12px !important;
    right: auto !important;
    bottom: 82px !important;
  }

  .trwpwhatsappall {
    right: 12px !important;
    left: auto !important;
    bottom: 82px !important;
  }

  body.orthovita-product-detail-page #goTop,
  body.orthovita-product-detail-page .trwpwhatsappall,
  body:has(.orthovita-product-sticky.show) #goTop,
  body:has(.orthovita-product-sticky.show) .trwpwhatsappall {
    bottom: 151px !important;
  }
}

@media only screen and (max-width: 575px) {
  #goTop {
    left: 12px !important;
    bottom: 82px !important;
  }

  .trwpwhatsappall {
    right: 12px !important;
    bottom: 82px !important;
  }

  body.orthovita-product-detail-page #goTop,
  body.orthovita-product-detail-page .trwpwhatsappall,
  body:has(.orthovita-product-sticky.show) #goTop,
  body:has(.orthovita-product-sticky.show) .trwpwhatsappall {
    bottom: 145px !important;
  }
}

.trwpwhatsappall .trwpwhatsappballon,
.trwpwhatsappall .trwpwhatsappbutton,
.trwpwhatsappall .kapat {
  pointer-events: auto !important;
}

@media (min-width: 1150px) {
  body:has(.orthovita-product-sticky.show) .trwpwhatsappall {
    bottom: 115px !important;
  }
}

.orthovita-product-detail-title .heading {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-wrap: anywhere;
}

.orthovita-product-detail-title .breadcrumbs {
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px 12px !important;
  padding: 0 20px !important;
  overflow: visible !important;
  line-height: 1.5;
  white-space: normal !important;
}

.orthovita-product-detail-title .breadcrumbs li {
  flex: 0 0 auto;
}

.orthovita-product-detail-title .breadcrumbs li:last-child {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.orthovita-product-detail .tf-product-btn-wishlist {
  border: 1px solid var(--line) !important;
  background: var(--white) !important;
  color: var(--main) !important;
}

.orthovita-product-detail .tf-product-info-buy-button form.product-detail-actions-row {
  display: grid !important;
  grid-template-columns: 127px minmax(0, 1fr) 49px;
  align-items: end;
  gap: 10px;
}

.orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity {
  width: 127px;
  margin: 0 !important;
}

.orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity .wg-quantity {
  width: 127px;
  height: 49px;
}

.orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity .wg-quantity input,
.orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity .wg-quantity .btn-quantity {
  height: 49px;
}

.orthovita-product-detail .product-detail-actions-row .product-detail-add {
  width: 100%;
  min-width: 0 !important;
}

.orthovita-product-detail .product-detail-actions-row > .w-100 {
  grid-column: 1 / -1;
}

.orthovita-product-detail .orthovita-detail-heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 6 Free" !important;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.orthovita-product-detail .tf-product-btn-wishlist:hover,
.orthovita-product-detail .tf-product-btn-wishlist.active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: var(--white) !important;
}

.orthovita-product-detail .tf-product-btn-wishlist.active .orthovita-detail-heart-icon {
  font-weight: 900;
}

.orthovita-product-detail .variant-picker-values {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: auto !important;
  max-width: none !important;
}

.orthovita-product-detail .orthovita-option-variant .variant-picker-values label {
  min-width: 0 !important;
}

.orthovita-product-detail .orthovita-size-variant .variant-picker-values {
  display: flex !important;
  gap: 8px !important;
}

.orthovita-product-detail .orthovita-size-variant .variant-picker-values label {
  min-width: 0 !important;
  margin: 0 !important;
}

@media only screen and (max-width: 767px) {
  .orthovita-product-detail .orthovita-size-variant .variant-picker-values {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 7px !important;
    max-width: none !important;
  }

  .orthovita-product-detail-title {
    padding: 36px 0 34px !important;
  }

  .orthovita-product-detail-title .heading {
    padding: 0 15px;
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  .orthovita-inner-wide .orthovita-product-detail-title .breadcrumbs {
    justify-content: center !important;
    gap: 7px 9px !important;
    margin-top: 13px;
    padding: 0 15px !important;
    overflow: visible !important;
    font-size: 12px;
    white-space: normal !important;
  }

  .orthovita-product-detail .thumbs-slider {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .orthovita-product-detail .tf-product-media-main {
    order: 0;
    width: 100% !important;
  }

  .orthovita-product-detail .tf-product-media-thumbs {
    order: 1;
    width: 100% !important;
    height: 96px !important;
    max-height: 96px !important;
    padding: 3px 0 !important;
    overflow: hidden !important;
  }

  .orthovita-product-detail .tf-product-media-thumbs .swiper-slide {
    flex: 0 0 60px !important;
    width: 60px !important;
    height: 90px !important;
  }

  .orthovita-product-detail .tf-product-media-thumbs .swiper-slide .item {
    width: 60px !important;
    height: 90px !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
    border: 1px solid var(--line) !important;
    border-radius: 5px !important;
    background: #ffffff !important;
  }

  .orthovita-product-detail .tf-product-media-thumbs .swiper-slide .item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* Compact sticky cart and toolbar-safe WhatsApp positioning */
@media only screen and (max-width: 1149px) {
  .trwpwhatsappall {
    right: 12px !important;
    bottom: 81px !important;
  }

  body:has(.orthovita-product-sticky.show) .trwpwhatsappall {
    bottom: 151px !important;
  }

  .orthovita-product-sticky {
    bottom: 67px !important;
    z-index: 190 !important;
  }

  .orthovita-product-sticky .container {
    max-width: none !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .orthovita-product-sticky .tf-height-observer {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0 !important;
  }

  .orthovita-product-sticky .tf-sticky-atc-product {
    display: flex !important;
    flex: 0 0 52px !important;
    gap: 0 !important;
    min-width: 0;
  }

  .orthovita-product-sticky .tf-sticky-atc-img {
    width: 48px !important;
    height: 48px !important;
  }

  .orthovita-product-sticky .tf-sticky-atc-title {
    display: none !important;
  }

  .orthovita-product-sticky .tf-sticky-atc-infos {
    width: 100% !important;
    min-width: 0;
  }

  .orthovita-product-sticky .tf-sticky-atc-infos form {
    display: grid !important;
    grid-template-columns: minmax(90px, 1fr) auto;
    gap: 8px;
    align-items: center;
    flex-direction: row !important;
  }

  .orthovita-product-sticky .tf-sticky-atc-variant-price {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .orthovita-product-sticky .product-detail-sticky-variant {
    width: 100% !important;
    height: 44px !important;
    padding: 0 30px 0 10px !important;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .orthovita-product-sticky .tf-sticky-atc-btns {
    display: grid !important;
    grid-template-columns: 110px 150px;
    gap: 7px !important;
    width: auto !important;
    min-width: 0;
  }

  .orthovita-product-sticky .tf-product-info-quantity {
    margin: 0 !important;
  }

  .orthovita-product-sticky .wg-quantity {
    width: 110px !important;
    height: 44px !important;
  }

  .orthovita-product-sticky .wg-quantity input {
    width: 42px !important;
    height: 44px !important;
  }

  .orthovita-product-sticky .wg-quantity .btn-quantity {
    width: 34px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  .orthovita-product-sticky .product-detail-sticky-add {
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 575px) {
  .orthovita-product-detail .tf-product-info-buy-button form.product-detail-actions-row {
    grid-template-columns: 92px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity {
    width: 92px;
  }

  .orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity .wg-quantity {
    width: 92px;
    height: 46px;
  }

  .orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity .wg-quantity input {
    width: 36px;
    height: 46px;
    font-size: 14px;
  }

  .orthovita-product-detail .product-detail-actions-row .product-detail-inline-quantity .wg-quantity .btn-quantity {
    width: 28px;
    height: 46px;
    font-size: 18px;
  }

  .orthovita-product-detail .product-detail-actions-row .product-detail-add,
  .orthovita-product-detail .product-detail-actions-row .tf-product-btn-wishlist {
    min-height: 46px;
    height: 46px;
  }

  .orthovita-product-detail .product-detail-actions-row .product-detail-add {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px !important;
    white-space: nowrap;
  }

  body:has(.orthovita-product-sticky.show) .trwpwhatsappall {
    bottom: 145px !important;
  }

  .orthovita-product-sticky .container {
    padding-right: 7px !important;
    padding-left: 7px !important;
  }

  .orthovita-product-sticky .tf-height-observer {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 5px;
    padding: 5px 0 !important;
  }

  .orthovita-product-sticky .tf-sticky-atc-product {
    flex-basis: 40px !important;
  }

  .orthovita-product-sticky .tf-sticky-atc-img {
    width: 38px !important;
    height: 38px !important;
  }

  .orthovita-product-sticky .tf-sticky-atc-infos form {
    grid-template-columns: minmax(64px, 1fr) auto;
    gap: 5px;
  }

  .orthovita-product-sticky .product-detail-sticky-variant {
    height: 40px !important;
    padding: 0 22px 0 7px !important;
    font-size: 10px;
  }

  .orthovita-product-sticky .tf-sticky-atc-btns {
    grid-template-columns: 72px 92px;
    gap: 5px !important;
  }

  .orthovita-product-sticky .wg-quantity {
    width: 72px !important;
    height: 40px !important;
  }

  .orthovita-product-sticky .wg-quantity input {
    width: 28px !important;
    height: 40px !important;
    font-size: 13px !important;
  }

  .orthovita-product-sticky .wg-quantity .btn-quantity {
    width: 22px !important;
    height: 40px !important;
    font-size: 17px !important;
  }

  .orthovita-product-sticky .product-detail-sticky-add {
    width: 92px !important;
    height: 40px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }
}

.quick-add-site-loading {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    background: #fff;
}

.quick-add-site-loading .preload-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-add-site-loading .spinner {
    display: block;
}

.quick-add-loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* Related-products pagination uses the same orange treatment as the homepage blog. */
.orthovita-product-related .sw-pagination-product {
    gap: 6px;
}

.orthovita-product-related .sw-pagination-product.style-2 .swiper-pagination-bullet {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
}

.orthovita-product-related .sw-pagination-product.style-2 .swiper-pagination-bullet::before {
    width: 8px;
    height: 8px;
    background: #c6c9ce;
}

.orthovita-product-related .sw-pagination-product.style-2 .swiper-pagination-bullet-active {
    border: 0;
    background: rgba(254, 117, 44, 0.14);
}

.orthovita-product-related .sw-pagination-product.style-2 .swiper-pagination-bullet-active::before {
    width: 9px;
    height: 9px;
    background: #fe752c;
}

/* Make the selected product-detail tab immediately visible. */
.orthovita-product-tabs .widget-tabs.style-has-border .widget-menu-tab .item-title {
    padding-right: 18px;
    padding-left: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.orthovita-product-tabs .widget-tabs.style-has-border .widget-menu-tab .item-title.active {
    background: #fe752c;
    color: #ffffff;
}

.orthovita-product-tabs .widget-tabs.style-has-border .widget-menu-tab .item-title.active .inner {
    color: #ffffff;
}

.orthovita-product-tabs .widget-tabs.style-has-border .widget-menu-tab .item-title.active::after {
    display: none;
}

.orthovita-product-tabs .widget-tabs.style-has-border .widget-menu-tab .item-title:not(.active):hover {
    color: #fe752c;
}

.orthovita-product-tabs .widget-tabs.style-has-border .widget-menu-tab .item-title:not(.active):hover .inner {
    color: #fe752c;
}

.orthovita-product-tabs .widget-tabs.style-has-border .widget-menu-tab .item-title:not(.active):hover::after {
    width: 100%;
    background: #fe752c;
}
