/*
 THEGROWNS PDP 2.0 — PRECISION LUXURY
 Phase 1: gallery, summary, purchase experience
 Scoped to single-product pages.
*/

body.single-product {
  --tg-lux-ink:#171b26;
  --tg-lux-muted:#626a78;
  --tg-lux-border:rgba(32,38,54,.10);
  --tg-lux-surface:#fff;
  --tg-lux-gradient:var(
    --tg-pdp-heading-gradient,
    linear-gradient(110deg,#303744,#747d8b)
  );
}

/* Product gallery — luxury frame */
body.single-product div.product
.woocommerce-product-gallery {
  box-sizing:border-box;
  border:1px solid var(--tg-lux-border);
  border-radius:24px;
  padding:clamp(12px,2vw,26px);
  background:
    radial-gradient(ellipse at 50% 30%,
      rgba(229,231,239,.34),transparent 70%),
    #fff;
  box-shadow:0 18px 55px rgba(24,29,43,.055);
  overflow:hidden;
}

body.single-product div.product
.woocommerce-product-gallery__wrapper {
  border-radius:16px;
  overflow:hidden;
}

body.single-product div.product
.woocommerce-product-gallery img {
  border-radius:12px;
}

/* Purchase panel */
body.single-product div.product .summary.entry-summary {
  box-sizing:border-box;
  padding:clamp(22px,3vw,42px);
  background:var(--tg-lux-surface);
  border:1px solid var(--tg-lux-border);
  border-radius:24px;
  box-shadow:0 20px 65px rgba(24,29,43,.065);
  color:var(--tg-lux-ink);
}

/* Brand signature above product title */
body.single-product div.product .summary.entry-summary
.product_title::before {
  content:"THEGROWNS  /  RESEARCH COLLECTION";
  display:block;
  margin:0 0 16px;
  font-size:10px;
  line-height:1.5;
  font-weight:800;
  letter-spacing:.21em;
  color:#737987;
  -webkit-text-fill-color:#737987;
  background:none;
}

/* Preserve approved gradient product title */
body.single-product div.product .summary.entry-summary
.product_title {
  line-height:1.08;
  letter-spacing:-.035em;
  margin-bottom:22px;
}

/* Price hierarchy */
body.single-product div.product .summary.entry-summary
> .price {
  padding:0 0 22px;
  margin:0 0 24px;
  border-bottom:1px solid var(--tg-lux-border);
  font-weight:750;
}

/* Product short description */
body.single-product div.product .summary.entry-summary
.woocommerce-product-details__short-description {
  color:var(--tg-lux-muted);
  line-height:1.8;
  margin-bottom:25px;
}

/* Variation selectors */
body.single-product div.product .summary.entry-summary
table.variations {
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}

body.single-product div.product .summary.entry-summary
table.variations th,
body.single-product div.product .summary.entry-summary
table.variations td {
  vertical-align:middle;
}

body.single-product div.product .summary.entry-summary
table.variations label {
  color:var(--tg-lux-ink);
  font-size:12px;
  font-weight:800;
  letter-spacing:.055em;
}

body.single-product div.product .summary.entry-summary
table.variations select {
  min-height:49px;
  border:1px solid #dce0e9;
  border-radius:9px;
  background-color:#fff;
  color:var(--tg-lux-ink);
  padding:10px 14px;
  box-sizing:border-box;
}

body.single-product div.product .summary.entry-summary
table.variations select:focus {
  outline:2px solid rgba(111,119,146,.3);
  outline-offset:2px;
}

/* Quantity */
body.single-product div.product .summary.entry-summary
.quantity .qty {
  min-height:46px;
  border:1px solid #dce0e9;
  border-radius:9px;
}

/* Add to cart: preserve disabled state and WooCommerce behavior */
body.single-product div.product .summary.entry-summary
.single_add_to_cart_button:not(:disabled):not(.disabled) {
  background:var(--tg-lux-gradient) !important;
  background-image:var(--tg-lux-gradient) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border:0 !important;
  border-radius:10px !important;
  min-height:52px;
  font-weight:800;
  letter-spacing:.055em;
  box-shadow:0 10px 25px rgba(26,30,43,.12);
  transition:filter .2s ease,transform .2s ease;
}

body.single-product div.product .summary.entry-summary
.single_add_to_cart_button:not(:disabled):not(.disabled):hover {
  filter:brightness(1.08);
  transform:translateY(-1px);
}

body.single-product div.product .summary.entry-summary
.single_add_to_cart_button:disabled,
body.single-product div.product .summary.entry-summary
.single_add_to_cart_button.disabled {
  background:#898989 !important;
  background-image:none !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:.7;
  box-shadow:none;
  cursor:not-allowed;
}

/* Refined quality section, without changing its content */
body.single-product div.product .summary.entry-summary
ul {
  line-height:1.85;
}

/* Tablet */
@media(max-width:1024px) {
  body.single-product div.product .summary.entry-summary {
    padding:clamp(18px,3vw,30px);
    border-radius:20px;
  }
  body.single-product div.product
  .woocommerce-product-gallery {
    border-radius:20px;
  }
}

/* Mobile */
@media(max-width:767px) {
  body.single-product div.product
  .woocommerce-product-gallery {
    margin-bottom:20px;
    padding:10px;
    border-radius:17px;
  }

  body.single-product div.product .summary.entry-summary {
    padding:22px 18px;
    border-radius:18px;
    margin-bottom:28px;
  }

  body.single-product div.product .summary.entry-summary
  .product_title::before {
    font-size:9px;
    letter-spacing:.15em;
    margin-bottom:12px;
  }

  body.single-product div.product .summary.entry-summary
  table.variations select {
    max-width:100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  body.single-product div.product .summary.entry-summary
  .single_add_to_cart_button {
    transition:none !important;
  }
}
