/* =========================================================
   SINGLE PRODUCT · CONSOLIDATED LAYOUT
   ========================================================= */

.single-product .tb-woocommerce-content {
  max-width: min(1380px, 95vw);
  padding-top: clamp(0.45rem, 1.4vw, 1rem);
  overflow-x: clip;
}

.single-product .tb-single-product,
.single-product div.product.tb-single-product {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow-x: clip;
}

.single-product .tb-sp-context {
  margin-bottom: clamp(0.55rem, 1.3vw, 0.95rem);
}

.single-product .tb-sp-context .woocommerce-breadcrumb {
  margin: 0;
  color: var(--tb-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.single-product .tb-sp-context .woocommerce-breadcrumb a {
  color: #5c6872;
}

.single-product .tb-sp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}

.single-product .tb-sp-hero__gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.single-product .tb-sp-hero__gallery .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: clamp(0.38rem, 0.8vw, 0.58rem);
  border-radius: 0.32rem;
  background: #e8eef4;
  overflow: hidden;
}

.single-product .tb-sp-hero__gallery .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border-radius: 0.24rem;
}

.single-product .tb-sp-hero__gallery .woocommerce-product-gallery__image {
  min-height: clamp(260px, 30vw, 420px);
  margin-bottom: 0;
  aspect-ratio: 1 / 1;
  background: #f3f6fa;
}

.single-product .tb-sp-hero__gallery .woocommerce-product-gallery__image a,
.single-product .tb-sp-hero__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
}

.single-product .tb-sp-hero__gallery .woocommerce-product-gallery__image img {
  padding: clamp(0.5rem, 1.2vw, 1rem);
  object-fit: contain;
  object-position: center;
}

.single-product .tb-sp-hero__gallery .woocommerce-product-gallery__trigger,
.single-product .tb-sp-hero__gallery .woocommerce-product-gallery .zoomImg {
  z-index: 3;
}

.single-product .tb-sp-hero__gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.single-product .tb-sp-hero__gallery .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}

.single-product .tb-sp-hero__gallery .flex-control-thumbs li {
  flex: 0 0 clamp(68px, 18%, 92px);
  width: clamp(68px, 18%, 92px) !important;
  max-width: clamp(68px, 18%, 92px);
  margin: 0;
  float: none !important;
  scroll-snap-align: start;
}

.single-product .tb-sp-hero__gallery .flex-control-thumbs li img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(77, 92, 106, 0.16);
  border-radius: 0.2rem;
  background: #edf0f3;
  object-fit: cover;
  opacity: 0.76;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.single-product .tb-sp-hero__gallery .flex-control-thumbs li img.flex-active,
.single-product .tb-sp-hero__gallery .flex-control-thumbs li img:hover {
  opacity: 1;
  border-color: rgba(31, 42, 51, 0.38);
  transform: translateY(-1px);
}

.single-product .tb-sp-hero__summary {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.single-product .tb-sp-hero__summary .summary.entry-summary,
.single-product .tb-sp-hero__summary .summary {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  float: none;
  display: grid;
  gap: 0.55rem;
}

.single-product .tb-sp-hero__summary .summary > * {
  max-width: none;
}

.single-product .tb-sp-hero__summary .product_title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #1f2a33;
  font-size: clamp(1.95rem, 2.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.single-product .tb-sp-hero__summary .price,
.single-product .tb-sp-hero__summary .price .amount,
.single-product .tb-sp-hero__summary .price ins .amount {
  color: var(--tb-red) !important;
}

.single-product .tb-sp-hero__summary .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 900;
}

.single-product .tb-sp-hero__summary .price del {
  color: #75828d;
  font-size: 1rem;
  font-weight: 600;
}

.single-product .tb-sp-hero__summary .stock {
  width: 100%;
  margin: 0;
}

.single-product .tb-sp-hero__summary .woocommerce-product-details__short-description {
  margin: 0;
  color: #4d5b67;
}

.single-product .tb-sp-hero__summary form.cart,
.single-product .tb-sp-hero__summary form.cart:not(.variations_form) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  margin: 0.35rem 0 0;
  padding: 0.72rem;
  border: 1px solid rgba(87, 99, 112, 0.16);
  border-radius: 0.55rem;
  background: #f3f7fb;
}

.single-product .tb-sp-hero__summary form.cart > .quantity,
.single-product .tb-sp-hero__summary form.cart > .single_add_to_cart_button {
  width: 100%;
}

.single-product .tb-sp-hero__summary form.cart .quantity {
  width: min(172px, 100%);
  min-height: 48px;
  margin: 0;
  float: none;
  display: inline-grid;
  grid-template-columns: 2.2rem minmax(3.4rem, auto) 2.2rem;
  align-items: center;
  justify-self: start;
  border: 1px solid rgba(87, 99, 112, 0.18);
  border-radius: 0.45rem;
  background: #fff;
}

.single-product .tb-sp-hero__summary form.cart .quantity .tb-qty-button {
  min-height: 100%;
  border: 0;
  background: transparent;
  color: #25303a;
  font-family: var(--tb-font-family-base);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.single-product .tb-sp-hero__summary form.cart .quantity .tb-qty-button:hover,
.single-product .tb-sp-hero__summary form.cart .quantity .tb-qty-button:focus-visible {
  background: rgba(233, 238, 243, 0.95);
}

.single-product .tb-sp-hero__summary form.cart .quantity .qty {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-inline: 1px solid rgba(87, 99, 112, 0.15);
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-weight: 700;
  appearance: textfield;
}

.single-product .tb-sp-hero__summary form.cart .quantity .qty::-webkit-outer-spin-button,
.single-product .tb-sp-hero__summary form.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.single-product .tb-sp-hero__summary form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  padding-inline: clamp(1rem, 2vw, 1.55rem);
  border-radius: 0.95rem;
  box-shadow: none;
  white-space: nowrap;
}

.single-product .tb-sp-hero__summary form.cart .single_variation_wrap,
.single-product .tb-sp-hero__summary form.cart .woocommerce-variation-add-to-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.single-product .tb-sp-hero__summary .variations_form .variations {
  margin-bottom: 0.7rem;
}

.single-product .tb-sp-hero__summary .variations_form .woocommerce-variation {
  margin-bottom: 0.55rem;
}

.single-product .tb-sp-highlights {
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
}

.single-product .tb-sp-highlights__item {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.95rem 1rem;
  border-radius: 0.24rem;
  background: #eef3f7;
}

.single-product .tb-sp-highlights__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: #33414d;
  margin-top: 0.1rem;
}

.single-product .tb-sp-highlights__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.single-product .tb-sp-highlights__label {
  display: block;
  margin-bottom: 0.14rem;
  color: #63707a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-product .tb-sp-highlights__value {
  color: #1a232c;
  font-size: 0.88rem;
  font-weight: 700;
}

.single-product .tb-sp-quick-specs {
  gap: 1px;
  border-radius: 0.24rem;
  background: rgba(94, 107, 119, 0.1);
}

.single-product .tb-sp-quick-specs__item {
  padding: 0.95rem 1rem;
}

.single-product .tb-sp-lower {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  padding-top: 0;
}

.single-product .tb-sp-tabs {
  gap: clamp(1.8rem, 3.5vw, 3rem);
}

.single-product .tb-sp-tabs__section {
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  background: rgba(243, 246, 249, 0.72);
}

.single-product .tb-sp-commercial {
  margin-top: clamp(2.2rem, 5vw, 3.8rem);
}

.single-product .related.products.tb-featured-products {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

.single-product .related.products.tb-featured-products .tb-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.single-product .related.products.tb-featured-products .tb-featured-products__track {
  grid-auto-columns: minmax(220px, 23%);
  gap: 0.8rem;
}

.single-product .related.products.tb-featured-products .tb-product-card__thumb {
  min-height: 150px;
}

.single-product .related.products.tb-featured-products .tb-product-card__body {
  gap: 0.42rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.single-product .related.products.tb-featured-products .tb-product-card__body h3 {
  font-size: 0.92rem;
  line-height: 1.35;
}

.single-product .related.products.tb-featured-products .tb-product-card__price {
  font-size: 1.02rem;
}

.single-product .related.products.tb-featured-products .tb-product-card__cta {
  min-height: 1.95rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.68rem;
}

.single-product .related.products.tb-featured-products .tb-product-card__icon {
  width: 1.9rem;
  height: 1.9rem;
}

@media (min-width: 960px) {
  .single-product .tb-sp-hero {
    grid-template-columns: minmax(420px, 0.92fr) minmax(560px, 1.18fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }

  .single-product .tb-sp-hero__gallery {
    max-width: none;
    margin: 0;
  }

  .single-product .tb-sp-hero__summary {
    width: 100%;
    max-width: none;
    padding-left: 0;
  }
}

@media (min-width: 1240px) {
  .single-product .tb-sp-hero {
    grid-template-columns: minmax(460px, 0.9fr) minmax(620px, 1.2fr);
  }
}

@media (max-width: 1200px) {
  .single-product .related.products.tb-featured-products .tb-featured-products__track {
    grid-auto-columns: calc((100% - (0.8rem * 3)) / 4);
  }
}

@media (max-width: 959px) {
  .single-product .tb-sp-hero__gallery .flex-control-thumbs li {
    flex-basis: clamp(62px, 22%, 86px);
    width: clamp(62px, 22%, 86px) !important;
    max-width: clamp(62px, 22%, 86px);
  }

  .single-product .tb-sp-hero__summary form.cart .quantity {
    width: min(100%, 220px);
  }

  .single-product .related.products.tb-featured-products .tb-featured-products__track {
    grid-auto-columns: minmax(210px, 74vw);
  }
}

@media (max-width: 560px) {
  .single-product .tb-sp-hero__gallery .woocommerce-product-gallery {
    padding: 0.45rem;
  }

  .single-product .tb-sp-hero__gallery .woocommerce-product-gallery__image {
    min-height: clamp(280px, 78vw, 420px);
  }

  .single-product .tb-sp-quick-specs {
    grid-template-columns: minmax(0, 1fr);
  }
}
