/* Punch Hug — Escentual-style single product (PDP) */

body.ph-pdp.single-product .site-content,
body.ph-pdp.single-product #content {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.ph-pdp.single-product .ast-container {
  max-width: 1180px;
}

/* Two-column product shell */
body.ph-pdp.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem 3.25rem;
  align-items: start;
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

body.ph-pdp.single-product div.product::before,
body.ph-pdp.single-product div.product::after {
  display: none !important;
  content: none !important;
}

body.ph-pdp.single-product .woocommerce-product-gallery,
body.ph-pdp.single-product div.product > .summary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.ph-pdp.single-product .woocommerce-product-gallery {
  position: sticky;
  top: 5.5rem;
}

body.ph-pdp.single-product .woocommerce-product-gallery__wrapper {
  background: #f7f5f3;
}

body.ph-pdp.single-product .woocommerce-product-gallery__image {
  background: #f7f5f3;
}

body.ph-pdp.single-product .woocommerce-product-gallery__image img {
  background: transparent !important;
  object-fit: contain !important;
  width: 100% !important;
  max-height: min(72vh, 720px);
  margin: 0 auto;
  display: block;
  padding: 1.5rem;
}

body.ph-pdp.single-product .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem !important;
  padding: 0;
}

body.ph-pdp.single-product .flex-control-thumbs li {
  width: 4.5rem !important;
  float: none !important;
  margin: 0 !important;
}

body.ph-pdp.single-product .flex-control-thumbs img {
  border: 1px solid transparent;
  background: #f7f5f3;
  opacity: 1 !important;
  padding: 0.25rem;
}

body.ph-pdp.single-product .flex-control-thumbs .flex-active,
body.ph-pdp.single-product .flex-control-thumbs img:hover {
  border-color: var(--ph-ink, #1a1512);
}

/* Buy box */
body.ph-pdp.single-product .summary.entry-summary {
  padding-top: 0.25rem;
}

body.ph-pdp.single-product .ph-pdp-brand {
  margin: 0 0 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ph-ink-soft, #5c534c);
}

body.ph-pdp.single-product .ph-pdp-brand a {
  color: inherit !important;
  text-decoration: none !important;
}

body.ph-pdp.single-product .ph-pdp-brand a:hover {
  color: var(--ph-ink, #1a1512) !important;
}

body.ph-pdp.single-product .product_title {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem) !important;
  font-weight: 480 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem !important;
  color: var(--ph-ink, #1a1512) !important;
}

body.ph-pdp.single-product .summary .price,
body.ph-pdp.single-product p.price {
  font-family: "Sora", sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: var(--ph-ink, #1a1512) !important;
  margin: 0 0 0.35rem !important;
}

body.ph-pdp.single-product .ph-pdp-tax-note {
  display: block;
  margin: 0.35rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ph-ink-soft, #5c534c);
}

body.ph-pdp.single-product .woocommerce-product-details__short-description {
  max-width: none;
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ph-ink-soft, #5c534c);
}

body.ph-pdp.single-product .stock {
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

body.ph-pdp.single-product form.cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0.5rem 0 1.25rem !important;
  width: 100%;
}

body.ph-pdp.single-product form.cart .quantity {
  margin: 0 !important;
}

body.ph-pdp.single-product .quantity .qty {
  width: 4.25rem !important;
  height: 3rem !important;
  border: 1px solid var(--ph-line, #e5dfd8) !important;
  border-radius: 0 !important;
  font-family: "Sora", sans-serif !important;
  font-size: 0.95rem !important;
}

body.ph-pdp.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 12rem;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: 0.85rem 1.25rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #111 !important;
  color: #fff !important;
  font-family: "Sora", sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  transition: background 0.2s ease, opacity 0.2s ease;
}

body.ph-pdp.single-product form.cart .single_add_to_cart_button:hover {
  background: #2a2a2a !important;
  color: #fff !important;
}

/* Trust strip */
body.ph-pdp.single-product .ph-pdp-trust {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--ph-line, #e5dfd8);
  display: grid;
  gap: 0.75rem;
}

body.ph-pdp.single-product .ph-pdp-trust__item {
  display: grid;
  gap: 0.1rem;
}

body.ph-pdp.single-product .ph-pdp-trust__label {
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ph-ink, #1a1512) !important;
  text-decoration: none !important;
}

body.ph-pdp.single-product a.ph-pdp-trust__label:hover {
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

body.ph-pdp.single-product .ph-pdp-trust__note {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ph-ink-soft, #5c534c);
}

body.ph-pdp.single-product .product_meta {
  font-size: 0.78rem;
  color: var(--ph-ink-soft, #5c534c);
  border-top: 1px solid var(--ph-line, #e5dfd8);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

body.ph-pdp.single-product .product_meta a {
  color: var(--ph-ink, #1a1512) !important;
}

/* Hide legacy story points if any slip through */
body.ph-pdp.single-product .ph-product-points {
  display: none !important;
}

/* Full-width blocks under the buy grid */
body.ph-pdp.single-product .ph-pdp-accordion,
body.ph-pdp.single-product .related.products,
body.ph-pdp.single-product .upsells.products,
body.ph-pdp.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
}

/* Accordion */
body.ph-pdp.single-product .ph-pdp-accordion {
  margin: 0.5rem 0 2rem;
  border-top: 1px solid var(--ph-line, #e5dfd8);
  max-width: 52rem;
}

body.ph-pdp.single-product .ph-pdp-accordion__item {
  border-bottom: 1px solid var(--ph-line, #e5dfd8);
  padding: 0;
}

body.ph-pdp.single-product .ph-pdp-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ph-ink, #1a1512);
}

body.ph-pdp.single-product .ph-pdp-accordion__summary::-webkit-details-marker {
  display: none;
}

body.ph-pdp.single-product .ph-pdp-accordion__summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -0.2rem;
}

body.ph-pdp.single-product .ph-pdp-accordion__item[open] > .ph-pdp-accordion__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

body.ph-pdp.single-product .ph-pdp-accordion__panel {
  padding: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ph-ink-soft, #5c534c);
}

body.ph-pdp.single-product .ph-pdp-accordion__panel p {
  margin: 0 0 0.85rem;
}

body.ph-pdp.single-product .ph-pdp-accordion__panel a {
  color: var(--ph-ink, #1a1512) !important;
  text-underline-offset: 0.15em;
}

body.ph-pdp.single-product .ph-pdp-accordion__list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

body.ph-pdp.single-product .ph-pdp-accordion__list li {
  margin: 0.35rem 0;
}

body.ph-pdp.single-product .ph-pdp-accordion__panel .woocommerce-Reviews,
body.ph-pdp.single-product .ph-pdp-accordion__panel #reviews {
  margin-top: 0.25rem;
}

/* Related */
body.ph-pdp.single-product .related.products > h2,
body.ph-pdp.single-product .upsells.products > h2 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
  font-weight: 480 !important;
  margin: 1.5rem 0 1.25rem !important;
}

/* Hide noisy express wallets on product */
body.ph-pdp.single-product #wc-stripe-payment-request-wrapper,
body.ph-pdp.single-product #wc-stripe-payment-request-button-separator,
body.ph-pdp.single-product .wcpay-payment-request-wrapper,
body.ph-pdp.single-product .StripeElement--paymentRequestButton {
  display: none !important;
}

/* Breadcrumb quieter */
body.ph-pdp.single-product .woocommerce-breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem !important;
}

@media screen and (max-width: 921px) {
  body.ph-pdp.single-product div.product {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.ph-pdp.single-product .woocommerce-product-gallery {
    position: static;
  }

  body.ph-pdp.single-product .woocommerce-product-gallery__image img {
    max-height: 420px;
    padding: 1rem;
  }

  body.ph-pdp.single-product form.cart .single_add_to_cart_button {
    flex: 1 1 100%;
  }

  body.ph-pdp.single-product .ph-pdp-accordion {
    max-width: none;
  }
}


/* Beat Astra width/float rules inside .ast-woocommerce-container */
body.ph-pdp.single-product .ast-woocommerce-container div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem 3.25rem;
}
body.ph-pdp.single-product .ast-woocommerce-container div.product div.images,
body.ph-pdp.single-product .ast-woocommerce-container div.product div.summary,
body.ph-pdp.single-product .woocommerce #content .ast-woocommerce-container div.product div.images,
body.ph-pdp.single-product .woocommerce .ast-woocommerce-container div.product div.images,
body.ph-pdp.single-product .woocommerce #content .ast-woocommerce-container div.product div.summary,
body.ph-pdp.single-product .woocommerce .ast-woocommerce-container div.product div.summary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  clear: none !important;
}

/* Buy-box visual order when theme dumps leftover hooks late */
body.ph-pdp.single-product .summary.entry-summary {
  display: flex;
  flex-direction: column;
}
body.ph-pdp.single-product .summary .ph-pdp-brand { order: 1; }
body.ph-pdp.single-product .summary .single-product-category { order: 2; }
body.ph-pdp.single-product .summary .product_title { order: 3; }
body.ph-pdp.single-product .summary .price { order: 4; }
body.ph-pdp.single-product .summary .ph-pdp-tax-note { order: 5; }
body.ph-pdp.single-product .summary .ast-stock-detail,
body.ph-pdp.single-product .summary .stock { order: 6; }
body.ph-pdp.single-product .summary .woocommerce-product-details__short-description { order: 7; }
body.ph-pdp.single-product .summary form.cart { order: 8; }
body.ph-pdp.single-product .summary .ph-pdp-trust { order: 9; }
body.ph-pdp.single-product .summary .product_meta { order: 10; }

@media screen and (max-width: 921px) {
  body.ph-pdp.single-product .ast-woocommerce-container div.product {
    grid-template-columns: 1fr !important;
  }
}
