/* Single product page, in the gmc-platform look. Uses the tokens from gmc-brand.css. */

body.single-product .site-content > .customify-container {
  max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box;
}

/* The summary has its own breadcrumb; the bar under the header repeats it */
body.single-product #page-breadcrumb { display: none; }
body.single-product .site-content { padding-top: 32px; }

/* Image */
body.single-product .woocommerce-product-gallery {
  border-radius: var(--gmc-radius); overflow: hidden; border: 1px solid var(--gmc-border); box-shadow: var(--gmc-shadow); background: #fff;
}
body.single-product .woocommerce-product-gallery img { display: block; width: 100%; }
body.single-product .woocommerce-product-gallery__trigger { border-radius: 999px; }

/* Summary panel */
body.single-product .entry-summary .entry-summary-inner {
  background: #fff; border: 1px solid var(--gmc-border); border-radius: var(--gmc-radius); box-shadow: var(--gmc-shadow); padding: 28px;
}
body.single-product .woocommerce-breadcrumb { font-size: .7rem; letter-spacing: .06em; color: var(--gmc-muted); margin-bottom: 12px; }
body.single-product .woocommerce-breadcrumb a { color: var(--gmc-green); font-weight: 600; text-decoration: none; }
body.single-product .product_title {
  font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--gmc-navy); margin: 0 0 12px;
}
body.single-product .entry-summary .price, body.single-product .entry-summary .price .amount {
  font-size: 1.6rem; font-weight: 700; color: var(--gmc-navy);
}
body.single-product .entry-summary .price { margin: 0 0 20px; }
body.single-product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
body.single-product form.cart .quantity { margin: 0 !important; }
body.single-product form.cart .single_add_to_cart_button {
  background: var(--gmc-green) !important; border: 1px solid var(--gmc-green) !important; color: #fff !important;
  border-radius: 999px !important; padding: 12px 28px !important; height: 44px; line-height: 1 !important;
  font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: 0;
}
body.single-product form.cart .single_add_to_cart_button:hover { background: var(--gmc-navy) !important; border-color: var(--gmc-navy) !important; }
body.single-product .product_meta { border-top: 1px solid var(--gmc-border); padding-top: 16px; font-size: .85rem; color: var(--gmc-muted); }
body.single-product .product_meta a {
  display: inline-block; margin-left: 4px; padding: 3px 10px; border-radius: 999px; background: var(--gmc-green-soft);
  color: var(--gmc-green); font-weight: 600; text-decoration: none;
}
body.single-product .wc-product-nav a { border-color: var(--gmc-border); border-radius: 999px; color: var(--gmc-navy); }
body.single-product .wc-product-nav a:hover { border-color: var(--gmc-green); color: var(--gmc-green); }

/* Description */
body.single-product .woocommerce-tabs {
  background: #fff; border: 1px solid var(--gmc-border); border-radius: var(--gmc-radius); box-shadow: var(--gmc-shadow);
  padding: 8px 28px 24px; margin-top: 32px;
}
body.single-product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--gmc-border); margin: 0 0 20px; padding: 0; }
body.single-product .woocommerce-tabs ul.tabs li a { color: var(--gmc-muted); font-weight: 600; padding: 14px 0; text-decoration: none; }
body.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--gmc-navy); box-shadow: inset 0 -2px 0 var(--gmc-green); border-color: transparent; }
body.single-product .woocommerce-Tabs-panel { color: var(--gmc-ink); line-height: 1.7; max-width: 78ch; }
body.single-product .woocommerce-Tabs-panel > h2:first-child { display: none; }

/* Related */
body.single-product .related.products { margin-top: 48px; }
body.single-product .related.products > h2 {
  position: relative; font-size: 1.4rem; font-weight: 700; letter-spacing: -.015em; color: var(--gmc-navy);
  padding-bottom: .5rem; margin: 0 0 20px;
}
body.single-product .related.products > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gmc-green), var(--gmc-green-2));
}

/* Added-to-cart notice */
.woocommerce-notices-wrapper .woocommerce-message {
  background: var(--gmc-green-soft); border: 1px solid var(--gmc-border); border-left: 3px solid var(--gmc-green);
  border-radius: var(--gmc-radius); color: var(--gmc-ink);
}

@media (max-width: 768px) {
  body.single-product .site-content > .customify-container { padding-left: 16px; padding-right: 16px; }
  body.single-product .entry-summary .entry-summary-inner { padding: 20px; margin-top: 16px; }
  body.single-product .product_title { font-size: 1.5rem; }
  body.single-product .woocommerce-tabs { padding: 4px 20px 20px; }
  body.single-product form.cart .single_add_to_cart_button { flex: 1; }
}

/* Room for the prev/next arrows beside the title */
body.single-product .product_title-wrapper { position: relative; padding-right: 72px; }
body.single-product .product_title-wrapper .wc-product-nav { position: absolute; top: 4px; right: 0; }

/* The product title is in the hero; keep only the prev/next arrows in the summary */
body.single-product .product_title-wrapper .product_title { display: none; }
body.single-product .product_title-wrapper { min-height: 0; padding-right: 0; margin-bottom: 8px; }
body.single-product .site-content { padding-top: 32px; }

/* Space between the hero and the product content */
body.single-product .site-content { padding-top: 48px !important; }

/* Description inside the summary card */
body.single-product .gmc-product-desc { border-top: 1px solid var(--gmc-border); margin-top: 20px; padding-top: 20px; color: var(--gmc-ink); line-height: 1.7; }
body.single-product .gmc-product-desc h2 { font-size: 1.1rem; font-weight: 700; color: var(--gmc-navy); margin: 0 0 10px; }
body.single-product .gmc-product-desc p { margin: 0 0 12px; }
body.single-product .gmc-product-desc ul { margin: 0 0 12px; padding-left: 20px; }
body.single-product .gmc-enquire-wrap { margin: 0 0 8px; }

/* Related courses: full-bleed carousel */
body.single-product .related.products {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; margin-top: 56px; padding: 0 0 8px; box-sizing: border-box; overflow: hidden;
}
body.single-product .related.products .gmc-car-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  max-width: 1280px; margin: 0 auto 20px; padding: 0 24px; box-sizing: border-box;
}
body.single-product .related.products .gmc-car-head > h2 { margin: 0; }
.gmc-car-nav { display: flex; gap: 8px; }
.gmc-car-nav button {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--gmc-border); background: #fff; color: var(--gmc-navy);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 3px; transition: border-color .15s, color .15s, opacity .15s;
}
.gmc-car-nav button:hover:not(:disabled) { border-color: var(--gmc-green); color: var(--gmc-green); }
.gmc-car-nav button:disabled { opacity: .35; cursor: default; }
body.single-product .related.products ul.products {
  display: flex !important; flex-wrap: nowrap; gap: 20px; margin: 0 !important; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 6px max(24px, calc((100vw - 1280px) / 2 + 24px)) 18px;
  scroll-padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}
body.single-product .related.products ul.products::-webkit-scrollbar { display: none; }
body.single-product .related.products ul.products > li {
  flex: 0 0 min(280px, 78vw); width: auto !important; max-width: none !important; margin: 0 !important; scroll-snap-align: start; float: none;
}
body.single-product .related.products ul.products > li::after { display: none; }
@media (max-width: 768px) {
  body.single-product .related.products .gmc-car-head { padding: 0 16px; }
  body.single-product .related.products ul.products { padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
}

/* Carousel header: restore the heading style (h2 is no longer a direct child) and round the arrows */
body.single-product .related.products .gmc-car-head > h2 {
  position: relative; font-size: 1.4rem; font-weight: 700; letter-spacing: -.015em; color: var(--gmc-navy); padding-bottom: .5rem; text-transform: none;
}
body.single-product .related.products .gmc-car-head > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gmc-green), var(--gmc-green-2));
}
body.single-product .gmc-car-nav button, body.single-product .gmc-car-nav button:focus {
  width: 40px !important; height: 40px !important; min-width: 0; padding: 0 0 3px !important; border-radius: 999px !important;
  background: #fff !important; color: var(--gmc-navy) !important; border: 1px solid var(--gmc-border) !important; box-shadow: none; outline: none;
}
body.single-product .gmc-car-nav button:hover:not(:disabled) { border-color: var(--gmc-green) !important; color: var(--gmc-green) !important; background: #fff !important; }
body.single-product .gmc-car-nav button:disabled { opacity: .35; }

/* Keep the photo in view while the description scrolls */
@media (min-width: 769px) {
  body.single-product .media-product-media { align-self: flex-start; position: sticky; top: 96px; }
}

/* Category is already shown above the title; Enquire spans the card */
body.single-product .entry-summary .product_meta { display: none !important; }
body.single-product .gmc-enquire-wrap { display: block; margin: 0 0 8px; }
body.single-product .gmc-enquire-wrap .gmc-enquire, body.single-product a.gmc-enquire--lg {
  display: block; width: 100%; box-sizing: border-box; text-align: center; padding: 14px 24px !important;
}
body.single-product .gmc-product-desc { margin-top: 24px; }

/* Related cards: two-line titles so cards stay compact */
body.single-product .related.products .wc-product__title, body.single-product .related.products .wc-product__title a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.single-product .related.products .wc-product__title { min-height: 2.7em; }
body.single-product .related.products .wc-product__price { margin-top: 0; }
body.single-product .related.products .wc-product-contents { gap: 8px; }
body.single-product .related.products .wc-product__add_to_cart { margin-top: auto; }

/* Prev / next course arrows: larger and readable */
body.single-product .wc-product-nav { display: flex; gap: 8px; }
body.single-product .wc-product-nav a { display: inline-flex; border: 0 !important; }
body.single-product .wc-product-nav .nav-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px;
  background: var(--gmc-navy); border: 1px solid var(--gmc-navy); transition: background .15s, border-color .15s;
}
body.single-product .wc-product-nav .nav-btn svg { width: 14px; height: 14px; fill: #fff; }
body.single-product .wc-product-nav .nav-btn svg path { fill: #fff; }
body.single-product .wc-product-nav a:hover .nav-btn { background: var(--gmc-green); border-color: var(--gmc-green); }
body.single-product .wc-product-nav, body.single-product .wc-product-nav a, body.single-product .wc-product-nav .nav-btn { opacity: 1 !important; }
body.single-product .product_title-wrapper { margin-bottom: 16px; }
body.single-product .product_title-wrapper { min-height: 46px !important; margin-bottom: 8px; }
body.single-product .product_title-wrapper .wc-product-nav { top: 0; }
body.single-product .product_title-wrapper { min-height: 0 !important; height: 0; margin: 0 !important; padding: 0; }
body.single-product .product_title-wrapper .wc-product-nav { top: 0; right: 0; }
body.single-product .entry-summary .price { min-height: 38px; display: flex; align-items: center; margin-bottom: 16px; padding-right: 96px; }
body.single-product .entry-summary .price { margin-bottom: 22px !important; }
