/* Scoped to WooCommerce single-product pages; archive, cart, checkout and other pages are untouched. */
body.single-product .ast-woocommerce-container > div.product {
  display: grid;
  /* Existing site CSS already sets a 52% / 44% grid with a 4% gap;
     the available-width ratio is approximately 54% / 46%. */
  align-items: start;
  width: 100%;
  margin: 0;
}

body.single-product .ast-woocommerce-container > div.product::before,
body.single-product .ast-woocommerce-container > div.product::after {
  display: none;
  content: none;
}

body.single-product .ast-woocommerce-container > div.product > .woocommerce-product-gallery,
body.single-product .ast-woocommerce-container > div.product > .summary {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

body.single-product .ast-woocommerce-container > .woocommerce-breadcrumb {
  margin: 0 0 10px;
  color: #777;
  font-size: 14px;
  line-height: 1.55;
}

body.single-product .ast-woocommerce-container > .agp-product-category {
  margin: 0 0 14px;
  color: #c99b45;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

body.single-product .agp-product-category a,
body.single-product .agp-product-meta a {
  color: inherit;
  text-decoration: none;
}

body.single-product .ast-woocommerce-container div.product .product_title {
  margin: 0 0 14px;
  color: #171717;
  font-size: clamp(24px, 2vw, 29px);
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

body.single-product .ast-woocommerce-container div.product .summary .price {
  margin: 0 0 20px !important;
  color: #c99b45;
  font-size: clamp(27px, 2.3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

body.single-product .ast-woocommerce-container div.product .summary .price del {
  color: #888;
  font-size: .7em;
  font-weight: 400;
  opacity: .8;
}

body.single-product .ast-woocommerce-container div.product .summary .price ins {
  color: #c99b45;
  text-decoration: none;
}

body.single-product .ast-woocommerce-container div.product .summary form.cart,
body.single-product .ast-woocommerce-container div.product .summary .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

body.single-product .ast-woocommerce-container div.product .summary form.cart.variations_form {
  display: block;
}

body.single-product .ast-woocommerce-container div.product .summary form.cart.variations_form .variations {
  margin-bottom: 12px;
}

body.single-product .ast-woocommerce-container div.product .summary form.cart .quantity,
body.single-product .ast-woocommerce-container div.product .summary .woocommerce-variation-add-to-cart .quantity {
  flex: 0 0 auto;
  margin: 0;
}

body.single-product .ast-woocommerce-container div.product .woocommerce-product-gallery {
  max-width: 100%;
}

body.single-product .ast-woocommerce-container div.product .woocommerce-product-gallery__wrapper,
body.single-product .ast-woocommerce-container div.product .woocommerce-product-gallery__image {
  background: #fff;
}

body.single-product .ast-woocommerce-container div.product .woocommerce-product-gallery__image img,
body.single-product .ast-woocommerce-container div.product .woocommerce-product-gallery img.wp-post-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

body.single-product .ast-woocommerce-container div.product .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

body.single-product .ast-woocommerce-container div.product .flex-control-thumbs li {
  flex: 0 0 clamp(64px, 15%, 112px);
  width: auto;
  margin: 0;
}

body.single-product .ast-woocommerce-container div.product .flex-control-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  object-fit: contain;
}

body.single-product .agp-product-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 20px;
}

body.single-product .agp-product-benefit {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e7e7e7;
  border-radius: 7px;
  background: #fff;
}

body.single-product .agp-benefit-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #c99b45;
}

body.single-product .agp-product-benefit-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.35;
}

body.single-product .agp-product-benefit-copy strong {
  color: #222;
  font-size: 13px;
  font-weight: 700;
}

body.single-product .agp-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

body.single-product .agp-product-meta > span + span {
  padding-left: 14px;
  border-left: 1px solid #dedede;
}

body.single-product .agp-product-meta strong {
  color: #555;
  font-weight: 600;
}

body.single-product .agp-product-description {
  padding-top: 2px;
  border-top: 1px solid #e8e8e8;
}

body.single-product .agp-product-description h2 {
  position: relative;
  margin: 14px 0 12px;
  padding: 0 0 10px;
  color: #191919;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

body.single-product .agp-product-description h2::after,
body.single-product .related.products > h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: #c99b45;
  content: "";
}

body.single-product .agp-product-description-content {
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.single-product .agp-product-description-content > :first-child {
  margin-top: 0;
}

body.single-product .agp-product-description-content > :last-child {
  margin-bottom: 0;
}

body.single-product .agp-product-description-content img,
body.single-product .agp-product-description-content video,
body.single-product .agp-product-description-content iframe {
  max-width: 100%;
  height: auto;
}

body.single-product .agp-product-description-content ul,
body.single-product .agp-product-description-content ol {
  padding-left: 1.35em;
}

body.single-product .agp-product-description-content a {
  overflow-wrap: anywhere;
}

body.single-product .ast-woocommerce-container div.product .related.products {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 28px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

body.single-product .ast-woocommerce-container div.product .related.products > h2 {
  position: relative;
  margin: 0 0 18px !important;
  padding: 0 0 10px;
  color: #191919;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

body.single-product .ast-woocommerce-container div.product .related.products > h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: #c99b45;
  content: "";
}

body.single-product .ast-woocommerce-container div.product .related.products ul.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px;
  margin: 0;
}

body.single-product .ast-woocommerce-container div.product .related.products ul.products li.product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  float: none;
  width: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
}

body.single-product .ast-woocommerce-container div.product .related.products ul.products li.product a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

body.single-product .ast-woocommerce-container div.product .related.products ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 3.9em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #292929;
  font-size: 14px;
  line-height: 1.3;
}

body.single-product .ast-woocommerce-container div.product .related.products ul.products li.product .price {
  margin-top: auto;
  color: #c99b45;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  body.single-product .ast-woocommerce-container > div.product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 24px;
  }

  body.single-product .ast-woocommerce-container div.product .related.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.single-product .ast-woocommerce-container > div.product {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body.single-product .ast-woocommerce-container > .woocommerce-breadcrumb {
    margin-bottom: 8px;
    font-size: 12px;
  }

  body.single-product .ast-woocommerce-container > .agp-product-category {
    margin-bottom: 10px;
    font-size: 14px;
  }

  body.single-product .ast-woocommerce-container div.product .product_title {
    margin-bottom: 10px;
    font-size: clamp(20px, 5.6vw, 22px) !important;
    line-height: 1.3;
  }

  body.single-product .ast-woocommerce-container div.product .summary .price {
    margin-bottom: 14px;
    font-size: clamp(24px, 6.5vw, 27px);
  }

  body.single-product .ast-woocommerce-container div.product .summary form.cart,
  body.single-product .ast-woocommerce-container div.product .summary .woocommerce-variation-add-to-cart {
    gap: 8px;
  }

  body.single-product .agp-product-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 16px 0;
  }

  body.single-product .agp-product-benefit {
    min-height: 58px;
    padding: 9px 12px;
  }

  body.single-product .agp-product-meta {
    gap: 4px 10px;
    margin-bottom: 16px;
    font-size: 13px;
  }

  body.single-product .agp-product-meta > span + span {
    padding-left: 10px;
  }

  body.single-product .agp-product-description h2,
  body.single-product .ast-woocommerce-container div.product .related.products > h2 {
    font-size: 18px;
  }

  body.single-product .agp-product-description-content {
    font-size: 14px;
    line-height: 1.6;
  }

  body.single-product .ast-woocommerce-container div.product .related.products {
    margin-top: 20px !important;
    padding-top: 16px;
  }

  body.single-product .ast-woocommerce-container div.product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.single-product .ast-woocommerce-container div.product .related.products ul.products li.product {
    padding: 9px;
  }
}

@media (max-width: 360px) {
  body.single-product .ast-woocommerce-container div.product .summary form.cart,
  body.single-product .ast-woocommerce-container div.product .summary .woocommerce-variation-add-to-cart {
    align-items: stretch;
  }

  body.single-product .ast-woocommerce-container div.product .summary form.cart .quantity,
  body.single-product .ast-woocommerce-container div.product .summary .woocommerce-variation-add-to-cart .quantity {
    flex: 0 0 100%;
  }
}
