/* ==========================================================
   TeeStyle — WooCommerce Single Product Page Skin
   Scoped under body.ts-product-page
   ========================================================== */

body.ts-product-page{
  --ts-ink:#14161a;
  --ts-gold:#E8A33D;
  --ts-gold-dark:#C98A2E;
  --ts-gold-soft:#FBEBD3;
  --ts-muted:#767676;
  --ts-line:#ECECEC;
  --ts-bg-soft:#F7F7F5;
}

body.ts-product-page .woocommerce,
body.ts-product-page div.product{
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color:var(--ts-ink);
  -webkit-font-smoothing:antialiased;
}
body.ts-product-page div.product *{ box-sizing:border-box; }
body.ts-product-page .woocommerce-breadcrumb{
  font-size:12.5px; color:var(--ts-muted); margin:24px 5vw 22px; max-width:1280px; margin-left:auto; margin-right:auto;
  padding:0 20px;
}
body.ts-product-page .woocommerce-breadcrumb a{ color:var(--ts-muted); text-decoration:none; }
body.ts-product-page .woocommerce-breadcrumb a:hover{ color:var(--ts-ink); }

body.ts-product-page div.product{
  display:grid !important;
  grid-template-columns:minmax(0,540px) 1fr !important;
  gap:64px !important;
  align-items:start !important;
  max-width:1280px !important;
  width:auto !important;
  float:none !important;
  margin:0 auto 50px !important;
  padding:0 20px !important;
}

/* ===== GALLERY ===== */
body.ts-product-page .woocommerce-product-gallery{
  display:flex !important; flex-direction:row-reverse; gap:16px; position:relative;
  width:100% !important; max-width:none !important;
}
body.ts-product-page .woocommerce-product-gallery__wrapper{ flex:1; min-width:0; margin:0 !important; width:auto !important; }
body.ts-product-page .woocommerce-product-gallery__image{ border-radius:12px; overflow:hidden; background:#f2f2f2; width:100% !important; }
body.ts-product-page .woocommerce-product-gallery__image img{
  width:100% !important; max-width:100% !important; height:auto !important;
  display:block; object-fit:cover; aspect-ratio:1/1;
}
body.ts-product-page .flex-control-thumbs{
  display:flex; flex-direction:column; gap:12px;
  list-style:none; margin:0; padding:0; width:76px; flex:0 0 76px;
}
body.ts-product-page .flex-control-thumbs li{ margin:0; }
body.ts-product-page .flex-control-thumbs img{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px;
  border:1.5px solid var(--ts-line); cursor:pointer; opacity:.85;
}
body.ts-product-page .flex-control-thumbs img.flex-active,
body.ts-product-page .flex-control-thumbs img:hover{ border-color:var(--ts-gold); opacity:1; }

body.ts-product-page span.onsale{
  position:absolute; top:16px; left:16px; z-index:3;
  min-height:0; min-width:0; line-height:1;
  background:var(--ts-ink); color:#fff;
  font-size:12px; font-weight:700; text-transform:none;
  padding:7px 12px; border-radius:6px;
}
body.ts-product-page .woocommerce-product-gallery__trigger{
  position:absolute; top:16px; right:16px; z-index:3;
  width:34px; height:34px; border-radius:50%;
  background:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.12); font-size:0;
}
body.ts-product-page .woocommerce-product-gallery__trigger::before{
  content:""; width:16px; height:16px;
  background:var(--ts-ink);
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3H3v6M15 3h6v6M9 21H3v-6M15 21h6v-6" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3H3v6M15 3h6v6M9 21H3v-6M15 21h6v-6" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
}

/* ===== SUMMARY ===== */
body.ts-product-page .summary{ padding-top:2px; width:auto !important; max-width:none !important; float:none !important; margin:0 !important; }

body.ts-product-page .ts-pd-badge{
  display:inline-block; background:var(--ts-gold-soft); color:var(--ts-gold-dark);
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  padding:6px 14px; border-radius:20px; margin-bottom:14px;
}

body.ts-product-page .product_title{
  font-size:30px; font-weight:800; color:var(--ts-ink); margin:0 0 10px; letter-spacing:-0.01em;
}

body.ts-product-page .ts-pd-rating{ display:flex; align-items:center; gap:8px; margin:0 0 16px; }
body.ts-product-page .ts-pd-rating .star-rating{ color:var(--ts-gold); font-size:14px; }
body.ts-product-page .ts-pd-rating__count{ font-size:13px; color:var(--ts-muted); }

body.ts-product-page .ts-pd-price-row{ display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 18px; }
body.ts-product-page .ts-pd-price .price{ font-size:26px; font-weight:800; color:var(--ts-ink); }
body.ts-product-page .ts-pd-price .price del{ font-size:17px; font-weight:400; color:var(--ts-muted); opacity:.85; margin-right:8px; }
body.ts-product-page .ts-pd-price .price ins{ text-decoration:none; color:var(--ts-ink); }
body.ts-product-page .ts-pd-save{
  background:var(--ts-gold-soft); color:var(--ts-gold-dark);
  font-size:12.5px; font-weight:700; padding:6px 12px; border-radius:20px;
}

body.ts-product-page .woocommerce-product-details__short-description{
  font-size:14.5px; line-height:1.7; color:var(--ts-muted); margin:0 0 22px; max-width:520px;
}

/* Color / Size swatch blocks */
body.ts-product-page .ts-pd-swatch-block{ margin:0 0 20px; position:relative; }
body.ts-product-page .ts-pd-swatch-block__label{ display:inline-block; font-size:14px; font-weight:700; color:var(--ts-ink); margin-bottom:12px; }
body.ts-product-page .ts-size-guide{
  float:right; font-size:12.5px; color:var(--ts-gold-dark); text-decoration:none; font-weight:600;
}
body.ts-product-page .ts-size-guide:hover{ text-decoration:underline; }
body.ts-product-page .ts-pd-swatch-list{ display:flex; flex-wrap:wrap; gap:12px; clear:both; }

body.ts-product-page .ts-pd-swatch-list--swatch .ts-swatch{
  width:30px; height:30px; border-radius:50%;
  background:var(--ts-swatch-color,#ddd);
  border:1px solid rgba(0,0,0,.12); padding:0; cursor:pointer;
}
body.ts-product-page .ts-pd-swatch-list--swatch .ts-swatch.is-active{
  box-shadow:0 0 0 2px #fff, 0 0 0 3.5px var(--ts-ink);
}

body.ts-product-page .ts-pd-swatch-list--pill .ts-pill{
  min-width:44px; height:38px; padding:0 14px;
  border:1px solid var(--ts-line); border-radius:6px;
  background:#fff; font-size:13px; font-weight:600; color:var(--ts-ink); cursor:pointer;
}
body.ts-product-page .ts-pd-swatch-list--pill .ts-pill:hover{ border-color:var(--ts-ink); }
body.ts-product-page .ts-pd-swatch-list--pill .ts-pill.is-active{
  background:var(--ts-ink); border-color:var(--ts-ink); color:#fff;
}

/* Hide the native variation <select> table but keep it functional */
body.ts-product-page table.variations{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; padding:0; margin:0;
}
body.ts-product-page .woocommerce-variation-add-to-cart .quantity,
body.ts-product-page .single_variation_wrap .quantity{ display:inline-flex; }
body.ts-product-page .woocommerce-variation{ margin:0 0 16px; font-size:13px; color:var(--ts-muted); }
body.ts-product-page .woocommerce-variation-price .price{ font-weight:700; color:var(--ts-ink); }
body.ts-product-page a.reset_variations{ font-size:12px; color:var(--ts-muted); margin-left:10px; }

/* Quantity + Add to Cart + Buy Now row */
body.ts-product-page form.cart{
  display:flex !important; flex-wrap:wrap; align-items:center; gap:14px; margin:0 0 22px;
  width:100% !important; max-width:none !important;
}
body.ts-product-page .quantity{
  display:inline-flex !important; align-items:center;
  border:1px solid var(--ts-line); border-radius:8px; overflow:hidden;
  float:none !important; margin:0 !important;
}
body.ts-product-page .quantity .ts-qty-btn{
  width:38px; height:46px; border:none; background:#fff; color:var(--ts-ink);
  font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
body.ts-product-page .quantity .ts-qty-btn:hover{ background:var(--ts-bg-soft); }
body.ts-product-page .quantity input.qty{
  width:44px !important; height:46px !important; border:none !important; border-left:1px solid var(--ts-line) !important; border-right:1px solid var(--ts-line) !important;
  text-align:center; font-size:14px; -moz-appearance:textfield; margin:0 !important; padding:0 !important;
}
body.ts-product-page .quantity input.qty::-webkit-inner-spin-button,
body.ts-product-page .quantity input.qty::-webkit-outer-spin-button{ -webkit-appearance:none; margin:0; }

body.ts-product-page .single_add_to_cart_button,
body.ts-product-page .ts-buy-now{
  flex:1 1 180px;
  height:50px !important;
  border-radius:8px !important;
  font-size:13.5px !important; font-weight:800 !important; text-transform:uppercase !important; letter-spacing:.03em;
  display:inline-flex !important; align-items:center; justify-content:center; gap:10px;
  cursor:pointer; text-decoration:none !important;
  min-width:150px;
  line-height:normal !important;
}
body.ts-product-page.woocommerce-page div.product form.cart .single_add_to_cart_button,
body.ts-product-page div.product form.cart button.single_add_to_cart_button,
body.ts-product-page div.product form.cart a.single_add_to_cart_button,
body.ts-product-page .single_add_to_cart_button{
  background:var(--ts-gold) !important; background-color:var(--ts-gold) !important;
  border:1px solid var(--ts-gold) !important; color:var(--ts-ink) !important;
  box-shadow:none !important; text-shadow:none !important;
}
body.ts-product-page .single_add_to_cart_button::after{
  content:""; width:16px; height:16px;
  background:currentColor;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 6h2l1.6 9.2a2 2 0 0 0 2 1.6h6.6a2 2 0 0 0 2-1.6L21 9H8" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="20" r="1.4"/><circle cx="18" cy="20" r="1.4"/></svg>') no-repeat center / contain;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 6h2l1.6 9.2a2 2 0 0 0 2 1.6h6.6a2 2 0 0 0 2-1.6L21 9H8" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="20" r="1.4"/><circle cx="18" cy="20" r="1.4"/></svg>') no-repeat center / contain;
}
body.ts-product-page .single_add_to_cart_button:hover{ background:var(--ts-gold-dark) !important; background-color:var(--ts-gold-dark) !important; border-color:var(--ts-gold-dark) !important; }
body.ts-product-page .single_add_to_cart_button.disabled{ opacity:.5; cursor:not-allowed; }

body.ts-product-page .ts-buy-now{
  background:#fff !important; border:1.5px solid var(--ts-ink) !important; color:var(--ts-ink) !important;
  box-shadow:none !important;
}
body.ts-product-page .ts-buy-now:hover{ background:var(--ts-ink) !important; color:#fff !important; }
body.ts-product-page .ts-buy-now svg{ flex-shrink:0; }

/* Delivery info row */
body.ts-product-page .ts-pd-delivery{
  display:flex; flex-wrap:wrap; gap:24px;
  padding:20px 0; border-top:1px solid var(--ts-line); border-bottom:1px solid var(--ts-line);
  margin:0 0 16px;
}
body.ts-product-page .ts-pd-delivery__item{ display:flex; align-items:flex-start; gap:10px; flex:1 1 150px; }
body.ts-product-page .ts-pd-delivery__item svg{ color:var(--ts-ink); flex-shrink:0; margin-top:2px; }
body.ts-product-page .ts-pd-delivery__item div{ display:flex; flex-direction:column; gap:2px; }
body.ts-product-page .ts-pd-delivery__item strong{ font-size:12.5px; font-weight:700; color:var(--ts-ink); }
body.ts-product-page .ts-pd-delivery__item span{ font-size:11.5px; color:var(--ts-muted); }

/* Wishlist + Share row */
body.ts-product-page .ts-pd-meta-row{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
}
body.ts-product-page .ts-pd-wishlist{
  display:inline-flex; align-items:center; gap:8px;
  background:none; border:none; padding:0; cursor:pointer;
  font-size:13px; font-weight:600; color:var(--ts-ink);
}
body.ts-product-page .ts-pd-wishlist:hover,
body.ts-product-page .ts-pd-wishlist.is-active{ color:var(--ts-gold-dark); }
body.ts-product-page .ts-pd-share{ display:inline-flex; align-items:center; gap:12px; }
body.ts-product-page .ts-pd-share__label{ font-size:13px; color:var(--ts-ink); font-weight:600; }
body.ts-product-page .ts-pd-share a{
  width:30px; height:30px; border-radius:50%;
  background:var(--ts-bg-soft); color:var(--ts-ink);
  display:flex; align-items:center; justify-content:center; text-decoration:none;
}
body.ts-product-page .ts-pd-share a:hover{ background:var(--ts-ink); color:#fff; }

/* ===== TABS + FEATURE GRID ROW =====
   div.product (gallery+summary) is a 2-column CSS grid. The tabs row,
   upsells, and related-products sections that WooCommerce prints are
   ALSO direct children of that same div.product element (WooCommerce
   fires woocommerce_after_single_product_summary before div.product
   closes) — without an explicit grid-column, they'd get auto-placed
   into the 2-column track and squeezed. Force them to span full width. */
body.ts-product-page div.product > .ts-pd-tabs-row,
body.ts-product-page div.product > .related.products,
body.ts-product-page div.product > .upsells.products,
body.ts-product-page div.product > .woocommerce-tabs{
  grid-column: 1 / -1 !important;
  width:100% !important;
}

body.ts-product-page .ts-pd-tabs-row{
  display:flex; gap:40px; align-items:flex-start;
  max-width:1280px; margin:10px auto 60px; padding:0 20px;
}
body.ts-product-page .woocommerce-tabs{ flex:1 1 62%; min-width:0; }
body.ts-product-page ul.tabs{
  display:flex; gap:28px; list-style:none; margin:0 0 26px; padding:0 0 0;
  border-bottom:1px solid var(--ts-line);
}
body.ts-product-page ul.tabs li{ margin:0; padding:0; border:none !important; background:none !important; }
body.ts-product-page ul.tabs li a{
  display:inline-block; padding:0 0 14px; font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  color:var(--ts-muted); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px;
}
body.ts-product-page ul.tabs li.active a{ color:var(--ts-ink); border-bottom-color:var(--ts-gold); }
body.ts-product-page .woocommerce-Tabs-panel{ font-size:14px; line-height:1.8; color:var(--ts-muted); }
body.ts-product-page .woocommerce-Tabs-panel h2{ display:none; }
body.ts-product-page .woocommerce-Tabs-panel--description ul{
  display:grid; grid-template-columns:1fr 1fr; gap:8px 24px;
  list-style:none; margin:16px 0 0; padding:0;
}
body.ts-product-page .woocommerce-Tabs-panel--description ul li{
  font-size:13.5px; color:var(--ts-ink); display:flex; align-items:center; gap:8px;
}
body.ts-product-page .woocommerce-Tabs-panel--description ul li::before{
  content:"✓"; color:var(--ts-gold-dark); font-weight:700; flex-shrink:0;
}

body.ts-product-page #reviews .woocommerce-Reviews-title{ font-size:16px; font-weight:700; margin:0 0 16px; }
body.ts-product-page #reviews #comments ol.commentlist{ list-style:none; margin:0; padding:0; }
body.ts-product-page #reviews .star-rating{ color:var(--ts-gold); }
body.ts-product-page #review_form input,
body.ts-product-page #review_form textarea{
  border:1px solid var(--ts-line); border-radius:6px; padding:10px 12px; font-size:13.5px;
}
body.ts-product-page #review_form #submit,
body.ts-product-page .form-submit input[type="submit"]{
  background:var(--ts-ink); color:#fff; border:none; border-radius:6px; padding:10px 22px;
  font-size:12.5px; font-weight:700; text-transform:uppercase; cursor:pointer;
}

body.ts-product-page .ts-pd-features{
  flex:0 0 320px; width:320px;
  background:var(--ts-bg-soft); border-radius:12px; padding:24px;
  display:grid; grid-template-columns:1fr 1fr; gap:22px 16px;
}
body.ts-product-page .ts-pd-features__item{ display:flex; flex-direction:column; gap:8px; }
body.ts-product-page .ts-pd-features__item svg{ color:var(--ts-gold-dark); }
body.ts-product-page .ts-pd-features__item strong{ font-size:12.5px; font-weight:700; color:var(--ts-ink); }
body.ts-product-page .ts-pd-features__item span{ font-size:11px; color:var(--ts-muted); line-height:1.4; }

/* ===== RELATED PRODUCTS ===== */
body.ts-product-page .related.products{
  max-width:1280px; margin:0 auto 60px; padding:0 20px;
}
body.ts-product-page .related.products > h2{
  font-size:22px; font-weight:800; color:var(--ts-ink); margin:0 0 24px;
}
body.ts-product-page .related.products ul.products{
  display:grid !important; grid-template-columns:repeat(3,1fr) !important;
  gap:24px !important; list-style:none !important; padding:0 !important; margin:0 !important;
}
body.ts-product-page .related.products ul.products::before,
body.ts-product-page .related.products ul.products::after{ display:none !important; }
body.ts-product-page .related.products li.product{ width:100% !important; margin:0 !important; float:none !important; text-align:left !important; }
body.ts-product-page .related.products li.product a img{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; margin:0 0 12px; background:#f2f2f2;
}
body.ts-product-page .related.products li.product .woocommerce-loop-product__title{ font-size:13.5px; font-weight:600; color:var(--ts-ink); margin:0 0 6px; }
body.ts-product-page .related.products li.product .star-rating{ color:var(--ts-gold); font-size:11px; margin-bottom:6px; }
body.ts-product-page .related.products li.product .price{ font-size:13.5px; font-weight:700; color:var(--ts-ink); }
body.ts-product-page .related.products li.product .price del{ color:var(--ts-muted); font-weight:400; opacity:.8; margin-right:6px; }
body.ts-product-page .related.products li.product .price ins{ text-decoration:none; color:var(--ts-gold-dark); }
body.ts-product-page .related.products li.product a.button{
  display:inline-block; margin-top:10px; padding:9px 18px; border-radius:20px;
  border:1px solid var(--ts-ink); background:transparent; color:var(--ts-ink) !important;
  font-size:11.5px; font-weight:600;
}
body.ts-product-page .related.products li.product a.button:hover{ background:var(--ts-ink); color:#fff !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px){
  body.ts-product-page div.product{ grid-template-columns:1fr; gap:36px; }
  body.ts-product-page .ts-pd-tabs-row{ flex-direction:column; }
  body.ts-product-page .ts-pd-features{ width:100%; }
}
@media (max-width: 560px){
  body.ts-product-page .related.products ul.products{ grid-template-columns:1fr !important; }
  body.ts-product-page .woocommerce-product-gallery{ flex-direction:column-reverse; }
  body.ts-product-page .flex-control-thumbs{ flex-direction:row; width:100%; flex:none; }
}
