/* TG Print Edition — frontend labels */
:root { --tg-edition-ink: #20231d; --tg-edition-pale: #e8e8e8; }
.tg-edition-product-label { display:flex; align-items:center; gap:0; margin: 8px 0 24px; font-family: inherit; max-width:100%; }
.tg-edition-badge { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; font-family:inherit; font-weight:700; line-height:1; }
.tg-edition-burst { flex:0 0 auto; width:43px; height:43px; padding:0; background:transparent; }
.tg-edition-burst img { width:100%; height:100%; display:block; object-fit:contain; }
.tg-edition-pill { display:inline-flex; padding:10px 26px; justify-content:center; align-items:center; gap:10px; background:rgba(255,255,255,.60); color:var(--tg-edition-ink); border-radius:50px; font-size:11px; font-weight:600; letter-spacing:.035em; }
.tg-edition-caption { margin-left:-3px; background:var(--tg-edition-pale); border-radius:0 100px 100px 0; padding:10px 19px 10px 18px; color:var(--tg-edition-ink); font-size:11px; line-height:1.25; font-weight:600; letter-spacing:.025em; text-transform:uppercase; }
.tg-edition-product-label:has(.tg-edition-pill) .tg-edition-caption { margin-left:6px; border-radius:100px; }
.tg-edition-grid-badge { display:block; position:absolute; z-index:5; top:18px; right:18px; pointer-events:none; }
.tg-edition-grid-badge .tg-edition-burst { width:39px; height:39px; padding:0; }
.tg-edition-grid-badge .tg-edition-pill { box-sizing:border-box; height:30px; min-height:30px; padding:0 26px; font-size:10px; }
/* Position relative to the WooCommerce product card (works with classic loop and Elementor product loop) */
.woocommerce ul.products li.product, .woocommerce .products .product, .elementor-widget-woocommerce-products .product { position:relative; }
.tg-edition-details { color:inherit; font-size:inherit; }
@media(max-width:767px) { .tg-edition-grid-badge { top:10px; right:10px; } .tg-edition-grid-badge .tg-edition-burst { width:39px; height:39px; } .tg-edition-grid-badge .tg-edition-pill { height:30px; min-height:30px; padding:0 26px; font-size:9px; } .tg-edition-caption { font-size:10px; padding-right:13px; } }

/* Retain the existing burst/bubble treatment in Elementor title widget contexts. */
body.single-product .elementor-widget-woocommerce-product-title .tg-edition-product-label { display:flex; align-items:center; margin:8px 0 24px; }

/* v1.0.8 — Single-product Edition of One: controlled spacing and 34px burst/pill. */
body.single-product .tg-edition-product-label:has(.tg-edition-burst) {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 28px !important;
  margin-bottom: 26px !important;
  min-height: 34px;
  width: fit-content;
  max-width: 100%;
}
body.single-product .tg-edition-product-label .tg-edition-burst {
  position: relative;
  z-index: 2;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: visible;
}
body.single-product .tg-edition-product-label .tg-edition-burst img {
  display: block;
  width: 34px;
  height: 34px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
body.single-product .tg-edition-product-label:has(.tg-edition-burst) .tg-edition-caption {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  height: 34px;
  /* The capsule begins at the burst's left edge, fully behind its silhouette. */
  margin-left: -34px;
  padding: 0 20px 0 54px;
  border-radius: 999px;
  background: #e8e8e8;
  white-space: nowrap;
  line-height: 1;
}

/* All-caps edition labels: +4% tracking. Applies to both shop and product pages. */
.tg-edition-pill, .tg-edition-caption,
body.single-product .tg-edition-product-label .tg-edition-caption {letter-spacing:0.04em !important;}

/* v1.1.3 — Single-product STANDARD editions match the Edition of One spacing.
   Keep the frosted white badge on Shop cards only. */
body.single-product .tg-edition-product-label.tg-edition-product-label--standard,
body.single-product .elementor-widget-woocommerce-product-title .tg-edition-product-label.tg-edition-product-label--standard {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 28px !important;
  margin-bottom: 26px !important;
  min-height: 34px;
}
body.single-product .tg-edition-product-label--standard .tg-edition-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 26px;
  background: var(--tg-edition-pale, #e8e8e8);
  border-radius: 999px;
}
/* Shop/grid badges deliberately remain translucent white. */
