/* Development product detail layout: preserves the original product proportions while fixing description flow. */
body.tupu-product-page {
  background: #fff;
  color: #333;
  font-family: Lato, Arial, sans-serif;
}

.elementor-location-footer { font-family: Roboto, sans-serif; }

.tupu-product-main {
  max-width: 1222px;
  margin: 0 auto;
  padding: 38px 0 0;
}

.tupu-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.tupu-product-gallery {
  position: relative;
  min-width: 0;
}

.tupu-product-image {
  display: grid;
  min-height: 590px;
  padding: 0;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 9px;
}

.tupu-product-image img {
  display: block;
  width: 100%;
  height: 590px;
  object-fit: contain;
  mix-blend-mode: multiply;
}


.wd-show-product-gallery-wrap {
  position: absolute;
  right: auto;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  width: 50px;
  height: 50px;
}

.woodmart-show-product-gallery {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: #fff;
  color: #666;
  box-shadow: 0 0 5px rgba(0, 0, 0, .08);
  text-decoration: none;
}

.woodmart-show-product-gallery span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.woodmart-show-product-gallery::before { display: none; }

.woodmart-show-product-gallery svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.tupu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  padding: 40px;
  place-items: center;
  background: rgba(0, 0, 0, .9);
  cursor: zoom-out;
}

.tupu-lightbox img {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  cursor: default;
}

.tupu-lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.tupu-product-summary {
  min-width: 0;
  padding: 13px 0 0;
}

.tupu-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #777;
  font-size: 13px;
}

.tupu-breadcrumb a { color: #777; text-decoration: none; }
.tupu-breadcrumb strong { color: #333; }

.tupu-product-summary h1 {
  margin: 0 0 20px;
  color: #333;
  font-size: clamp(28px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.2;
}

.tupu-option-group h2 {
  margin: 0;
  padding: 9px 14px;
  border-left: 4px solid #333;
  background: #f8f8f8;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.tupu-option-group dl {
  margin: 0 0 25px;
}

.tupu-option-group dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 14px;
}

.tupu-option-group dt { font-weight: 700; }
.tupu-option-group dd { margin: 0; color: #888; text-align: right; }
.tupu-option-label { margin: 15px 0 9px; font-size: 14px; }

.tupu-swatches {
  display: flex;
  gap: 14px;
  margin-bottom: 23px;
}

.tupu-swatch {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: #c8c8c8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  cursor: pointer;
}

.tupu-swatch:nth-child(2) { background: #777; }
.tupu-swatch:nth-child(3) { background: #161616; }
.tupu-swatch:nth-child(4) { background: #dbb331; }
.tupu-swatch:first-child { outline: 2px solid #fff; outline-offset: -5px; }

.tupu-option-group select {
  width: 254px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #888;
}

.tupu-clear {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
}

.tupu-meta {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #e2e2e2;
  color: #888;
  font-size: 13px;
}

.tupu-meta p { margin: 0 0 14px; }
.tupu-meta strong { color: #444; }

.tupu-tabs {
  margin-top: 38px;
  border-top: 1px solid #ddd;
}

.tupu-tab-list {
  display: flex;
  justify-content: center;
  gap: 29px;
  border-bottom: 1px solid #e5e5e5;
}

.tupu-tab-list button {
  position: relative;
  min-height: 65px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.tupu-tab-list button.is-active { color: #444; }
.tupu-tab-list button.is-active::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 3px;
  background: #1673c9;
  content: '';
}

.tupu-description {
  max-width: 1150px;
  margin: 0 auto;
  padding: 25px 0 48px;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.75;
}

.tupu-description p { margin: 0; }

.tupu-related {
  padding: 38px 0 70px;
  border-top: 1px solid #e5e5e5;
}

.tupu-related h2 {
  margin: 0 0 22px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.tupu-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tupu-related-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #ededed;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .04);
}

.tupu-related-card a { color: inherit; text-decoration: none; }
.tupu-related-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3f3f3; }
.tupu-related-card h3 { margin: 11px 0 5px; color: #444; font-size: 14px; text-align: center; }
.tupu-related-card p { margin: 0; color: #aaa; font-size: 12px; text-align: center; }

.tupu-product-footer {
  padding: 62px max(30px, calc((100% - 1140px) / 2)) 18px;
  background: #031440;
  color: #fff;
}

.tupu-product-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.25fr;
  gap: 44px;
  max-width: 1140px;
  margin: 0 auto;
}

.tupu-product-footer img { width: 145px; height: auto; }
.tupu-product-footer p, .tupu-product-footer a { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.7; }
.tupu-product-footer a { display: block; margin-bottom: 8px; text-decoration: none; }
.tupu-product-footer h2 { margin: 0 0 16px; font-size: 17px; font-weight: 500; }
.tupu-product-footer-bottom { display: flex; justify-content: space-between; gap: 18px; max-width: 1140px; margin: 46px auto 0; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .35); }
.tupu-product-footer-bottom a, .tupu-product-footer-bottom span { color: rgba(255, 255, 255, .75); font-size: 13px; }

@media (max-width: 999px) {
  .tupu-product-main { padding: 22px 16px 0; }
  .tupu-product-hero { grid-template-columns: 1fr; gap: 25px; }
  .tupu-product-image, .tupu-product-image img { height: min(90vw, 460px); min-height: 0; }
  .tupu-product-summary { padding-top: 0; }
  .tupu-product-summary h1 { font-size: 27px; }
  .tupu-tabs { margin-top: 28px; }
  .tupu-tab-list { justify-content: flex-start; gap: 18px; overflow-x: auto; }
  .tupu-tab-list button { flex: 0 0 auto; font-size: 12px; }
  .tupu-description { padding: 21px 0 35px; font-size: 13px; }
  .tupu-related { padding: 28px 0 45px; }
  .tupu-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tupu-product-footer { padding: 40px 22px 18px; }
  .tupu-product-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .tupu-product-footer-bottom { display: block; margin-top: 30px; }
  .tupu-product-footer-bottom span { display: block; margin-top: 10px; }
}

@media (min-width: 1000px) {
  .tupu-product-page .whb-header {
    margin-bottom: 0;
  }

  .tupu-product-page .whb-header .whb-main-header,
  .tupu-product-page .whb-header .whb-row {
    min-height: 96px !important;
  }

  .tupu-product-page .whb-header .whb-col-left { padding-left: 0; }
  .tupu-product-page .whb-header .whb-col-right { padding-right: 0; }
  .tupu-product-main {
    width: calc(100% - 48px);
    max-width: 1192px;
    box-sizing: border-box;
  }
  .tupu-product-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
}

.tupu-product-page .wd-header-search .wd-tools-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.tupu-product-page .wd-header-search .wd-tools-icon::before {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 11px;
  height: 11px;
  border: 1.7px solid #333;
  border-radius: 50%;
  content: '';
}

.tupu-product-page .wd-header-search .wd-tools-icon::after {
  position: absolute;
  top: 12px;
  left: 13px;
  width: 7px;
  height: 1.7px;
  background: #333;
  content: '';
  transform: rotate(45deg);
  transform-origin: left center;
}

@media (max-width: 999px) {
  .tupu-product-page .wd-header-mobile-nav .wd-tools-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
  }

  .tupu-product-page .wd-header-mobile-nav .wd-tools-icon::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 2px;
    border: 0;
    border-radius: 2px;
    background: #142136;
    box-shadow: 0 6px #142136, 0 12px #142136;
    content: '';
  }

  .tupu-product-page .wd-header-mobile-nav .wd-tools-icon::after { content: none; }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  .tupu-product-main {
    width: calc(100% - 30px) !important;
  }
}
