/* Single product — balanced media + buy layout */

body.single-product .tmo-main > .tmo-section {
  max-width: none;
  padding: 0;
  margin: 0;
}

body.single-product .woocommerce-notices-wrapper {
  max-width: var(--tmo-max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

body.single-product .woocommerce-breadcrumb {
  max-width: var(--tmo-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  font-size: .82rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--tmo-muted) !important;
}

.tmo-pdp {
  max-width: var(--tmo-max) !important;
  margin: 0 auto 4rem !important;
  padding: 1.25rem 1.25rem 0 !important;
  float: none !important;
}

.tmo-pdp__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.tmo-pdp__media {
  position: relative;
}

.tmo-pdp__media,
.tmo-pdp__buy,
.tmo-pdp .woocommerce-product-gallery,
.tmo-pdp .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* —— Gallery —— */
.tmo-pdp .woocommerce-product-gallery {
  position: relative;
  opacity: 1 !important;
}

.tmo-pdp .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.tmo-pdp .woocommerce-product-gallery__image {
  margin: 0;
  background: #eef2f5;
}

.tmo-pdp .woocommerce-product-gallery__image a {
  display: block;
  line-height: 0;
}

.tmo-pdp .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Sale badge — quiet corner mark */
.tmo-pdp > .onsale,
.tmo-pdp__media .onsale,
.tmo-pdp .woocommerce-product-gallery .onsale {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 3;
  margin: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: .35rem .65rem !important;
  border-radius: 0 !important;
  background: var(--tmo-gold) !important;
  color: var(--tmo-navy) !important;
  font-family: var(--tmo-font) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

.tmo-pdp .woocommerce-product-gallery__trigger {
  top: .85rem !important;
  right: .85rem !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  background: #fff !important;
  border: 1px solid var(--tmo-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 3;
}

/* Thumbnails — one equal row spanning full gallery width */
.tmo-pdp .flex-control-thumbs,
.tmo-pdp ol.flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  gap: .5rem !important;
  width: 100% !important;
  margin: .5rem 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tmo-pdp .flex-control-thumbs li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tmo-pdp .flex-control-thumbs img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid transparent;
  opacity: .72;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease;
}

.tmo-pdp .flex-control-thumbs img:hover,
.tmo-pdp .flex-control-thumbs .flex-active {
  opacity: 1;
  border-color: var(--tmo-navy);
}

/* —— Buy column —— */
.tmo-pdp__buy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: .15rem !important;
}

.tmo-pdp__buy > * {
  margin: 0 !important;
}

.tmo-pdp .product_title {
  font-family: var(--tmo-font) !important;
  font-size: clamp(1.55rem, 2.4vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
  color: var(--tmo-navy) !important;
}

.tmo-pdp .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem .75rem;
  font-family: var(--tmo-font) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--tmo-navy) !important;
}

.tmo-pdp .price del {
  color: var(--tmo-muted) !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  text-decoration: line-through;
  opacity: .85;
}

.tmo-pdp .price ins {
  text-decoration: none !important;
  color: var(--tmo-mint-deep) !important;
  background: none !important;
}

.tmo-pdp .woocommerce-product-details__short-description {
  padding: 1rem 0 0;
  border-top: 1px solid var(--tmo-line);
  color: var(--tmo-slate);
  font-size: .95rem;
  line-height: 1.55;
}

.tmo-pdp .woocommerce-product-details__short-description p {
  margin: 0 0 .55rem !important;
}

.tmo-pdp .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

.tmo-pdp .woocommerce-product-details__short-description strong {
  display: block;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tmo-muted);
}

.tmo-pdp .woocommerce-product-details__short-description ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
}

.tmo-pdp .woocommerce-product-details__short-description li {
  position: relative;
  padding-left: 1rem;
  color: var(--tmo-slate);
}

.tmo-pdp .woocommerce-product-details__short-description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .4rem;
  height: .4rem;
  background: var(--tmo-mint);
}

/* Variations */
.tmo-pdp form.cart {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tmo-line);
}

.tmo-pdp table.variations {
  width: 100%;
  margin: 0;
  border: 0;
}

.tmo-pdp table.variations tbody,
.tmo-pdp table.variations tr,
.tmo-pdp table.variations td,
.tmo-pdp table.variations th {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
}

.tmo-pdp table.variations label {
  display: block;
  margin: 0 0 .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tmo-muted);
}

.tmo-pdp table.variations select,
.tmo-pdp .variations select {
  width: 100% !important;
  max-width: none !important;
  min-height: 2.85rem;
  padding: .7rem .9rem !important;
  border: 1px solid var(--tmo-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--tmo-navy) !important;
  font-family: var(--tmo-font) !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.tmo-pdp .reset_variations {
  display: inline-block;
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--tmo-muted);
}

/* Size pills (enhanced from select) */
.tmo-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tmo-size-pills button {
  min-width: 3rem;
  padding: .55rem .8rem !important;
  border: 1px solid var(--tmo-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--tmo-navy) !important;
  font-family: var(--tmo-font) !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.tmo-size-pills button:hover {
  border-color: var(--tmo-navy) !important;
}

.tmo-size-pills button.is-active {
  background: var(--tmo-navy) !important;
  border-color: var(--tmo-navy) !important;
  color: #fff !important;
}

.tmo-pdp .variations select.tmo-size-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* Qty + ATC */
.tmo-pdp .woocommerce-variation-add-to-cart,
.tmo-pdp form.cart:not(.variations_form),
.tmo-pdp .single_variation_wrap .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .65rem;
}

.tmo-pdp .quantity {
  margin: 0 !important;
  float: none !important;
}

.tmo-pdp .quantity .qty {
  width: 3.5rem !important;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: .5rem !important;
  border: 1px solid var(--tmo-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--tmo-navy) !important;
  font-family: var(--tmo-font) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: center;
}

.tmo-pdp .single_add_to_cart_button,
.tmo-pdp button.single_add_to_cart_button {
  flex: 1 1 12rem;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: .85rem 1.25rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--tmo-mint) !important;
  color: var(--tmo-navy) !important;
  font-family: var(--tmo-font) !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.tmo-pdp .single_add_to_cart_button:hover {
  background: #6fad9d !important;
}

.tmo-pdp .single_add_to_cart_button.disabled,
.tmo-pdp .single_add_to_cart_button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Trust lines */
.tmo-pdp .tmo-pdp-guarantees {
  width: 100%;
  margin: 0 !important;
  padding: 1rem 0 0 !important;
  border-top: 1px solid var(--tmo-line);
  display: grid;
  gap: .4rem;
  list-style: none;
  font-size: .86rem;
  color: var(--tmo-muted);
}

.tmo-pdp .tmo-pdp-guarantees strong {
  color: var(--tmo-navy);
  font-weight: 700;
}

/* Meta + clutter */
.tmo-pdp .product_meta {
  padding-top: .85rem;
  border-top: 1px solid var(--tmo-line);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  font-size: .8rem;
  color: var(--tmo-muted);
}

.tmo-pdp .product_meta a {
  color: var(--tmo-navy);
}

.tmo-pdp .yith-wcwl-add-to-wishlist,
.tmo-pdp .compare-button,
.tmo-pdp .compare.button,
.tmo-pdp a.compare,
.tmo-pdp .woocommerce-product-rating {
  display: none !important;
}

/* Tabs / related */
.tmo-pdp .woocommerce-tabs {
  margin-top: 3rem;
  clear: both;
}

.tmo-pdp .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--tmo-line);
}

.tmo-pdp .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0 0 .75rem;
  border: 0 !important;
  background: none !important;
}

.tmo-pdp .woocommerce-tabs ul.tabs li a {
  font-family: var(--tmo-font) !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  color: var(--tmo-muted) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.tmo-pdp .woocommerce-tabs ul.tabs li.active {
  border-bottom: 2px solid var(--tmo-navy) !important;
}

.tmo-pdp .woocommerce-tabs ul.tabs li.active a {
  color: var(--tmo-navy) !important;
}

.tmo-pdp .related > h2,
.tmo-pdp .upsells > h2 {
  font-family: var(--tmo-font) !important;
  font-size: 1.25rem !important;
  text-transform: none !important;
  letter-spacing: -.01em !important;
  margin: 2.5rem 0 1.25rem !important;
}

@media (max-width: 900px) {
  .tmo-pdp__stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tmo-pdp__buy {
    max-width: 36rem;
  }
}

@media (max-width: 640px) {
  .tmo-pdp {
    padding: 1rem 1rem 0 !important;
  }

  .tmo-pdp .flex-control-thumbs,
  .tmo-pdp ol.flex-control-thumbs {
    gap: .35rem !important;
  }
}
