/* Single product override — mirrors product-detail.html while using live WooCommerce data. */
.tbch247-single-product-main {
  width: 100%;
  padding: 30px 0 60px;
  background: #fff;
  color: #334155;
}

.tbch247-single-product-main *,
.tbch247-single-product-main *::before,
.tbch247-single-product-main *::after {
  box-sizing: border-box;
}

.tbch247-single-product-container {
  width: 100%;
  max-width: var(--max-width, 1320px);
  margin: 0 auto;
  padding: 0 20px;
}

.tbch247-product-breadcrumb {
  margin: 0 0 24px;
  overflow-x: auto;
  color: #64748b;
  font-size: .9rem;
  scrollbar-width: none;
}

.tbch247-product-breadcrumb::-webkit-scrollbar { display: none; }

.tbch247-product-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tbch247-product-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color .2s ease;
}

.tbch247-product-breadcrumb a:hover { color: var(--color-teal, #1abc9c); }
.tbch247-product-breadcrumb .separator { color: #94a3b8; }
.tbch247-product-breadcrumb .current { color: #1e293b; font-weight: 700; }

.tbch247-product-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 45px;
  margin-bottom: 50px;
}

/* Gallery */
.tbch247-product-gallery {
  position: sticky;
  top: 90px;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-bar .tbch247-product-gallery { top: 122px; }

.tbch247-main-image-wrap {
  position: relative;
  display: flex;
  width: 100%;
  height: 440px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .04);
  cursor: zoom-in;
}

.tbch247-main-product-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  transition: opacity .25s ease, transform .35s ease;
}

.tbch247-main-image-wrap:hover .tbch247-main-product-image { transform: scale(1.08); }

.tbch247-zoom-button {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #1e293b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: all .3s ease;
}

.tbch247-zoom-button:hover {
  border-color: var(--color-teal, #1abc9c);
  background: var(--color-teal, #1abc9c);
  color: #fff;
  transform: scale(1.1);
}

.tbch247-zoom-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(15, 23, 42, .7);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.tbch247-thumbnail-carousel {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.tbch247-thumbnail-list {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.tbch247-thumbnail-list::-webkit-scrollbar { display: none; }

.tbch247-thumb-item {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  overflow: hidden;
  padding: 4px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all .3s ease;
}

.tbch247-thumb-item img { width: 100%; height: 100%; border-radius: 2px; object-fit: contain; }
.tbch247-thumb-item:hover,
.tbch247-thumb-item.active {
  border-color: var(--color-teal, #1abc9c);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, .35);
  transform: translateY(-2px);
}

.tbch247-thumb-nav {
  display: flex;
  width: 32px;
  height: 76px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all .3s ease;
}

.tbch247-thumb-nav:hover {
  border-color: var(--color-teal, #1abc9c);
  background: var(--color-teal, #1abc9c);
  color: #fff;
}

/* Product information */
.tbch247-product-summary-info { display: flex; min-width: 0; flex-direction: column; }
.tbch247-product-category-links {
  margin-bottom: 6px;
  color: var(--color-teal, #1abc9c);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.tbch247-product-category-links a { color: inherit; text-decoration: none; }
.tbch247-product-category-links a:hover { text-decoration: underline; }
.tbch247-product-title {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.tbch247-product-meta-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: .9rem;
}

.tbch247-product-rating { display: inline-flex; align-items: center; gap: 8px; color: #64748b; }
.tbch247-product-rating .star-rating { float: none; width: 5.4em; margin: 0; color: #f39c12; }
.tbch247-product-sku { color: #64748b; font-size: .88rem; }
.tbch247-stock-status .stock {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  background: #ecfdf5;
  color: #059669;
  font-size: .8rem;
  font-weight: 700;
}

.tbch247-stock-status.out-of-stock .stock { border-color: #fecaca; background: #fef2f2; color: #dc2626; }

.tbch247-product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid #fed7d7;
  border-left: 4px solid #d63031;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff5f5 0%, #fffbfb 100%);
}

.tbch247-product-price .current-price,
.tbch247-product-price .woocommerce-price-html > .amount,
.tbch247-product-price .woocommerce-price-html > ins .amount {
  color: #d63031;
  font-size: 1.95rem;
  font-weight: 900;
  text-decoration: none;
}

.tbch247-product-price .old-price,
.tbch247-product-price .woocommerce-price-html > del { color: #94a3b8; font-size: 1.1rem; }
.tbch247-product-price .woocommerce-price-html > del .amount { color: inherit; }
.tbch247-product-price .woocommerce-price-html > ins { text-decoration: none; }
.tbch247-product-price .sale-badge {
  padding: 4px 10px;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  background: #fee2e2;
  color: #dc2626;
  font-size: .82rem;
  font-weight: 800;
}

.tbch247-product-price .unavailable-price {
  color: #d63031;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.tbch247-short-description { margin: -4px 0 20px; color: #475569; font-size: .95rem; line-height: 1.65; }
.tbch247-short-description > :last-child { margin-bottom: 0; }

.tbch247-quick-specs {
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.tbch247-quick-specs h3 {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.tbch247-quick-specs ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  color: #475569;
  font-size: .9rem;
  list-style: none;
}

.tbch247-quick-specs li { display: flex; align-items: flex-start; gap: 8px; }
.tbch247-quick-specs .check { flex: 0 0 auto; color: var(--color-teal, #1abc9c); font-weight: 900; }

/* Native WooCommerce cart form, styled like the HTML prototype. */
.tbch247-product-action-box { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.tbch247-product-action-box form.cart { display: flex; align-items: stretch; flex-wrap: wrap; gap: 14px; margin: 0; }
.tbch247-product-action-box form.cart::before,
.tbch247-product-action-box form.cart::after { display: none; }
.tbch247-product-action-box .quantity {
  display: inline-flex;
  height: 44px;
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.tbch247-product-action-box .quantity .qty {
  width: 50px;
  height: 42px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid #cbd5e1;
  border-left: 1px solid #cbd5e1;
  border-radius: 0;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
}

.tbch247-product-action-box .quantity .qty::-webkit-outer-spin-button,
.tbch247-product-action-box .quantity .qty::-webkit-inner-spin-button { margin: 0; appearance: none; }
.tbch247-qty-button {
  width: 38px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
}

.tbch247-qty-button:hover { background: var(--color-teal, #1abc9c); color: #fff; }
.tbch247-product-action-box .single_add_to_cart_button,
.tbch247-product-action-box .tbch247-buy-now {
  display: inline-flex;
  min-width: 170px;
  min-height: 44px;
  flex: 1 1 170px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: all .3s ease;
}

.tbch247-product-action-box .single_add_to_cart_button,
.woocommerce .tbch247-product-action-box button.button.alt.single_add_to_cart_button {
  border: 2px solid var(--color-teal, #1abc9c);
  background: #fff;
  color: var(--color-teal, #1abc9c);
}

.tbch247-product-action-box .single_add_to_cart_button:hover,
.woocommerce .tbch247-product-action-box button.button.alt.single_add_to_cart_button:hover {
  border-color: var(--color-teal, #1abc9c);
  background: var(--color-teal, #1abc9c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 188, 156, .35);
  transform: translateY(-2px);
}

.tbch247-product-action-box .tbch247-buy-now,
.woocommerce .tbch247-product-action-box button.button.tbch247-buy-now {
  border: 0;
  background: #e65100;
  color: #fff;
  font-size: .98rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(230, 81, 0, .3);
}

.tbch247-product-action-box .tbch247-buy-now:hover,
.woocommerce .tbch247-product-action-box button.button.tbch247-buy-now:hover {
  background: #bf360c;
  color: #fff;
  box-shadow: 0 6px 16px rgba(230, 81, 0, .45);
  transform: translateY(-2px);
}

.tbch247-product-action-box .variations { width: 100%; margin: 0; border: 0; }
.tbch247-product-action-box .variations th,
.tbch247-product-action-box .variations td { padding: 5px 8px 8px 0; border: 0; text-align: left; }
.tbch247-product-action-box .variations select { min-height: 40px; padding: 6px 36px 6px 12px; border: 1px solid #cbd5e1; border-radius: 5px; }
.tbch247-product-action-box .reset_variations { margin-left: 8px; color: #64748b; font-size: .85rem; }
.tbch247-product-action-box .single_variation_wrap { width: 100%; }
.tbch247-product-action-box .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 14px; }
.tbch247-product-action-box .woocommerce-variation-price { margin-bottom: 12px; color: #d63031; font-size: 1.2rem; font-weight: 800; }
.tbch247-product-action-box .stock { width: 100%; }

.tbch247-project-quote {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #1e293b;
  color: #fff !important;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
}

.tbch247-project-quote:visited { color: #fff !important; }
.tbch247-project-quote:hover,
.tbch247-project-quote:focus { background: #159a80; color: #fff !important; transform: translateY(-2px); }

/* WooCommerce product tabs */
.tbch247-product-tabs {
  margin-bottom: 50px;
  padding-top: 35px;
  border-top: 1px solid #e2e8f0;
}

.tbch247-product-tabs .woocommerce-tabs { width: 100%; }
.tbch247-product-tabs .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
  white-space: nowrap;
  list-style: none;
}

.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs::before,
.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li {
  margin: 0 0 -2px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
}

.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li::before,
.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li a {
  padding: 10px 6px 16px;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li:hover a { color: #1e293b; }
.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--color-teal, #1abc9c); }
.woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li.active a { color: var(--color-teal, #1abc9c); }
.woocommerce .tbch247-product-tabs .woocommerce-tabs .panel { margin: 0; color: #475569; font-size: .95rem; line-height: 1.7; }
.woocommerce .tbch247-product-tabs .woocommerce-tabs .panel h2,
.woocommerce .tbch247-product-tabs .woocommerce-tabs .panel h3 { margin: 0 0 14px; color: #1e293b; font-weight: 800; }
.woocommerce .tbch247-product-tabs table.shop_attributes { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 6px; font-size: .94rem; }
.woocommerce .tbch247-product-tabs table.shop_attributes th,
.woocommerce .tbch247-product-tabs table.shop_attributes td { padding: 12px 18px; border-color: #e2e8f0; }
.woocommerce .tbch247-product-tabs table.shop_attributes th { width: 32%; background: #f1f5f9; color: #1e293b; }
.woocommerce .tbch247-product-tabs table.shop_attributes tr:nth-child(even) td { background: #f8fafc; }

.tbch247-product-tabs #reviews #comments ol.commentlist { padding: 0; }
.tbch247-product-tabs #review_form_wrapper { padding: 24px 28px; border: 1px solid #e0e0e0; border-radius: 4px; background: #fff; }
.tbch247-product-tabs #review_form_wrapper .tbch247-review-title { margin: 0 0 6px; color: #222; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.tbch247-product-tabs #review_form_wrapper .tbch247-review-notes { margin: 0 0 20px; color: #777; font-size: .88rem; line-height: 1.55; }
.tbch247-product-tabs #review_form #respond #commentform { display: flex; flex-wrap: wrap; column-gap: 24px; }
.tbch247-product-tabs #review_form #respond #commentform > p { box-sizing: border-box; margin: 0 0 18px; }
.tbch247-product-tabs #review_form #respond #commentform label { display: block; margin-bottom: 6px; color: #333; font-size: .92rem; font-weight: 600; }
.tbch247-product-tabs #review_form #respond #commentform .required { color: #e74c3c; }
.tbch247-product-tabs #review_form #respond .comment-form-rating { order: 1; width: 100%; }
.tbch247-product-tabs #review_form #respond .comment-form-rating select { min-width: 160px; }
.tbch247-product-tabs #review_form #respond .comment-form-rating .stars { display: inline-flex; margin: 0; }
.tbch247-product-tabs #review_form #respond .comment-form-rating .stars a { width: 1.25em; color: #f39c12; font-size: 1.45rem; text-decoration: none; }
.tbch247-product-tabs #review_form #respond .comment-form-comment { order: 2; width: 100%; }
.tbch247-product-tabs #review_form #respond .comment-form-comment textarea { min-height: 142px; resize: vertical; }
.tbch247-product-tabs #review_form #respond .comment-form-author,
.tbch247-product-tabs #review_form #respond .comment-form-email { order: 3; width: calc(50% - 12px); }
.tbch247-product-tabs #review_form #respond .comment-form-cookies-consent { display: flex; order: 4; width: 100%; margin: -2px 0 18px; align-items: flex-start; gap: 9px; }
.tbch247-product-tabs #review_form #respond .comment-form-cookies-consent input { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 16px; accent-color: var(--color-teal, #1abc9c); cursor: pointer; }
.tbch247-product-tabs #review_form #respond .comment-form-cookies-consent label { display: inline; margin: 0; color: #64748b; font-size: .86rem; font-weight: 400; line-height: 1.55; cursor: pointer; }
.tbch247-product-tabs #review_form #respond .form-submit { order: 5; width: 100%; margin: 3px 0 0; }
.tbch247-product-tabs #review_form #respond .form-submit input { min-height: 48px; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.tbch247-product-tabs #review_form #respond .form-submit input:hover { background: #16a085; transform: translateY(-1px); }
.tbch247-product-tabs #review_form #respond textarea,
.tbch247-product-tabs #review_form #respond input[type="text"],
.tbch247-product-tabs #review_form #respond input[type="email"] { width: 100%; padding: 10px 14px; border: 1px solid #dcdde1; border-radius: 3px; font: inherit; }
.tbch247-product-tabs #review_form #respond .form-submit input { padding: 10px 28px; border: 0; border-radius: 4px; background: var(--color-teal, #1abc9c); color: #fff; font-weight: 700; }

/* Related product cards */
.tbch247-related-products { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.tbch247-related-products > h2 { margin: 0 0 24px; color: #1e293b; font-size: 1.85rem; font-weight: 800; }
.tbch247-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tbch247-related-card { display: flex; min-width: 0; min-height: 100%; flex-direction: column; overflow: hidden; border: 1px solid #dbe3ec; border-radius: 5px; background: #fff; }
.tbch247-related-card .thumb { display: flex; height: 195px; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.tbch247-related-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tbch247-related-card:hover .thumb img { transform: scale(1.04); }
.tbch247-related-card .info { display: flex; min-height: 116px; flex: 1; flex-direction: column; padding: 12px 14px 14px; }
.tbch247-related-card .category { margin-bottom: 5px; color: #8a8f98; font-size: .76rem; }
.tbch247-related-card h3 { margin: 0 0 12px; font-size: .88rem; font-weight: 700; line-height: 1.45; }
.tbch247-related-card h3 a { color: #1e293b; text-decoration: none; }
.tbch247-related-card h3 a:hover { color: var(--color-teal, #1abc9c); }
.tbch247-related-card .bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.tbch247-related-card .price { color: #e62929; font-size: .96rem; font-weight: 800; }
.tbch247-related-card .price del { color: #94a3b8; font-size: .76rem; font-weight: 400; }
.tbch247-related-card .price ins { text-decoration: none; }
.tbch247-related-card .add {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--color-teal, #1abc9c);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.tbch247-related-card .add:hover { background: #159a80; color: #fff; }

/* Lightbox */
.tbch247-product-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: rgba(15, 23, 42, .94);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity .25s ease;
}

.tbch247-product-lightbox.active { display: flex; opacity: 1; }
.tbch247-product-lightbox img { max-width: 86vw; max-height: 78vh; padding: 16px; border-radius: 6px; background: #fff; object-fit: contain; box-shadow: 0 25px 60px rgba(0, 0, 0, .6); }
.tbch247-product-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; }
.tbch247-product-lightbox .close { top: 22px; right: 28px; width: 42px; height: 42px; font-size: 1.7rem; }
.tbch247-product-lightbox .prev,
.tbch247-product-lightbox .next { top: 50%; width: 48px; height: 48px; font-size: 2rem; transform: translateY(-50%); }
.tbch247-product-lightbox .prev { left: 25px; }
.tbch247-product-lightbox .next { right: 25px; }
.tbch247-product-lightbox button:hover { border-color: var(--color-teal, #1abc9c); background: var(--color-teal, #1abc9c); }
body.tbch247-lightbox-open { overflow: hidden; }

@media (max-width: 1024px) {
  .tbch247-product-summary { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
  .tbch247-main-image-wrap { height: 380px; }
  .tbch247-product-title { font-size: 1.65rem; }
  .tbch247-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbch247-related-card:nth-child(4) { display: none; }
}

@media (max-width: 767px) {
  .tbch247-single-product-main { padding: 20px 0 42px; }
  .tbch247-single-product-container { padding: 0 14px; }
  .tbch247-product-breadcrumb { margin-bottom: 18px; font-size: .82rem; }
  .tbch247-product-summary { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 36px; }
  .tbch247-product-gallery { position: static; width: 100%; }
  /* Desktop uses align-items:start. Reset it on the column layout so short
     product content cannot shrink the whole information/action column. */
  .tbch247-product-summary-info,
  .tbch247-product-action-box,
  .tbch247-product-action-box form.cart,
  .tbch247-product-action-box .single_variation_wrap,
  .tbch247-product-action-box .woocommerce-variation-add-to-cart {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .tbch247-product-summary-info { align-self: stretch; }
  .tbch247-main-image-wrap { width: 100%; height: 280px; }
  .tbch247-thumbnail-carousel { margin-top: 10px; }
  .tbch247-thumb-item { width: 60px; height: 60px; flex-basis: 60px; }
  .tbch247-thumb-nav { width: 28px; height: 60px; flex-basis: 28px; }
  .tbch247-product-title { margin-bottom: 8px; font-size: 1.35rem; line-height: 1.35; }
  .tbch247-product-price { gap: 8px 12px; margin-bottom: 14px; padding: 13px 15px; }
  .tbch247-product-price .current-price,
  .tbch247-product-price .woocommerce-price-html > .amount,
  .tbch247-product-price .woocommerce-price-html > ins .amount { font-size: 1.45rem; }
  .tbch247-quick-specs ul { grid-template-columns: 1fr; gap: 8px; }
  .tbch247-product-action-box form.cart,
  .tbch247-product-action-box .woocommerce-variation-add-to-cart { flex-direction: column; align-items: stretch; gap: 10px; }
  .tbch247-product-action-box .quantity { width: 100%; justify-content: center; margin-bottom: 4px; }
  .tbch247-product-action-box .quantity .qty { flex: 1; max-width: 90px; }
  .tbch247-product-action-box .single_add_to_cart_button,
  .tbch247-product-action-box .tbch247-buy-now {
    display: flex;
    width: 100% !important;
    max-width: none;
    min-height: 44px;
    flex: 0 0 auto;
    float: none;
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
  }
  .tbch247-product-tabs { margin-bottom: 38px; padding-top: 28px; }
  .tbch247-product-tabs .woocommerce-tabs ul.tabs { gap: 8px; margin-bottom: 22px; padding-bottom: 4px; }
  .woocommerce .tbch247-product-tabs .woocommerce-tabs ul.tabs li a { padding: 10px 14px; font-size: .88rem; }
  .woocommerce .tbch247-product-tabs table.shop_attributes th { width: 40%; }
  .woocommerce .tbch247-product-tabs table.shop_attributes th,
  .woocommerce .tbch247-product-tabs table.shop_attributes td { padding: 10px 12px; font-size: .86rem; }
  .tbch247-product-tabs #review_form_wrapper { padding: 18px 16px; }
  .tbch247-product-tabs #review_form #respond #commentform { display: block; }
  .tbch247-product-tabs #review_form #respond .comment-form-author,
  .tbch247-product-tabs #review_form #respond .comment-form-email { width: 100%; }
  .tbch247-product-tabs #review_form #respond .comment-form-cookies-consent { gap: 8px; margin-bottom: 16px; }
  .tbch247-product-tabs #review_form #respond .comment-form-cookies-consent input { margin-top: 2px; }
  .tbch247-product-tabs #review_form #respond .comment-form-cookies-consent label { font-size: .82rem; line-height: 1.5; }
  .tbch247-product-tabs #review_form #respond .comment-form-comment textarea { min-height: 124px; }
  .tbch247-related-products { margin-top: 38px; padding-top: 24px; }
  .tbch247-related-products > h2 { margin-bottom: 18px; font-size: 1.35rem; }
  .tbch247-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tbch247-related-card:nth-child(4) { display: flex; }
  .tbch247-related-card .thumb { height: 150px; }
  .tbch247-related-card .info { min-height: 120px; padding: 10px 8px 12px; }
  .tbch247-related-card h3 { font-size: .8rem; }
  .tbch247-related-card .price { font-size: .86rem; }
  .tbch247-related-card .add { padding: 7px 10px; font-size: .74rem; }
  .tbch247-product-lightbox { padding: 60px 12px; }
  .tbch247-product-lightbox img { max-width: 94vw; max-height: 76vh; padding: 8px; }
  .tbch247-product-lightbox .prev,
  .tbch247-product-lightbox .next { width: 38px; height: 38px; font-size: 1.5rem; }
  .tbch247-product-lightbox .prev { left: 8px; }
  .tbch247-product-lightbox .next { right: 8px; }
}

@media (max-width: 420px) {
  .tbch247-related-grid { grid-template-columns: 1fr; }
  .tbch247-related-card .thumb { height: 220px; }
}
