/* =========================
   Hien Beauty PDP - safe MVP
   ========================= */

/* Boxed container */
.single-product .site-main .ct-container,
.single-product .site-main .ct-container-full {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Product area spacing */
.single-product div.product {
  margin-top: 2rem;
}

/* Gallery card */
.single-product .product-entry-wrapper,
.single-product .product-entry-wrapper.is-width-constrained {
  background: #f8f6f7;
  border: 1px solid #eee3ea;
  border-radius: 18px;
  padding: 1.25rem;
  box-sizing: border-box;
}

/* Make image feel smaller and more premium */
.single-product .ct-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 460px; */
}

.single-product .ct-media-container img,
.single-product .woocommerce-product-gallery img {
  max-height: 420px !important;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Summary spacing */
.single-product .summary.entry-summary {
  padding-top: 0.5rem;
}

/* Product meta */
.single-product .product_meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #777;
}

.single-product .product_meta > span {
  display: block;
}

/* Tabs */
.single-product .woocommerce-tabs {
  margin-top: 3rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 1.75rem;
}

/* Related products spacing */
.single-product .related.products {
  margin-top: 3rem;
}

/* Mobile */
@media (max-width: 768px) {
  .single-product .ct-media-container {
    min-height: 340px;
  }

  .single-product .ct-media-container img,
  .single-product .woocommerce-product-gallery img {
    max-height: 320px !important;
  }

  .single-product .woocommerce-tabs {
    padding: 1.25rem;
  }
}

/* =====================================
   Hien Beauty PDP - typography and spacing
   ===================================== */

/* Boxed content width */
/* =====================================
   Hien Beauty PDP - typography and spacing
   ===================================== */

/* Boxed content width - desktop only */
@media (min-width: 769px) {
  .single-product .site-main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Mobile fix */
@media (max-width: 768px) {
  .single-product .site-main {
    max-width: 100%;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Product title */
.single-product .product_title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Price */
.single-product .price {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Short description / excerpt */
.single-product .woocommerce-product-details__short-description,
.single-product .entry-summary p {
  line-height: 1.7;
}

/* Variation selects */
.single-product .variations select {
  min-height: 44px;
  border-radius: 8px;
}

/* Quantity input */
.single-product .quantity .qty {
  min-height: 44px;
  border-radius: 8px;
}

/* Add to cart button */
.single-product .single_add_to_cart_button {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 600;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Product meta */
.single-product .product_meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #777;
}

.single-product .product_meta > span {
  display: block;
}

/* Tabs */
.single-product .woocommerce-tabs {
  margin-top: 3rem;
}

.single-product .woocommerce-tabs ul.tabs li a {
  font-weight: 500;
}

.single-product .woocommerce-tabs .panel {
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Related products spacing */
.single-product .related.products {
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .single-product .product_title {
    font-size: 1.6rem;
  }

  .single-product .site-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Remove Blocksy width constraint on single product (normal) content */
.single-product .product-entry-wrapper.is-width-constrained {
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .single-product .product-entry-wrapper.is-width-constrained {
    width: min(70rem, calc(100vw - 3rem)) !important;
  }
}

/* Mobile thumbnails fix */
@media (max-width: 768px) {

  .single-product .flexy-pills li {
    height: 84px !important;
    max-height: 84px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .single-product .flexy-pills .ct-media-container {
    height: 84px !important;
    min-height: 84px !important;
    width: 72px !important;
    padding: 8px 0 14px !important; /* air top and bottom */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .single-product .flexy-pills .ct-media-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
  }
}

/* Main product card */
.single-product .product-entry-wrapper {
  background: #ffffff !important;
  border-radius: 16px;
  padding: 2rem;
}

/* Margin under tabs block over footer */
.woocommerce-tabs.wc-tabs-wrapper {
  margin-bottom: 30px;
}