/* ABC Pedagógico — página individual controlada v0.10.6 */

body.single-product .abc-container.abc-content {
  width: min(
    var(--abc-product-page-max-width, 1180px),
    calc(100% - (var(--abc-product-page-side-margin, 16px) * 2))
  );
}
body.single-product .woocommerce div.product.abc-single-product {
  padding: var(--abc-product-page-top-spacing, 22px) 0 var(--abc-product-page-bottom-spacing, 54px);
}
body.single-product .abc-single-product__top {
  display: grid;
  grid-template-columns: minmax(0, var(--abc-product-gallery-width, 480px)) minmax(0, 1fr);
  align-items: start;
  gap: var(--abc-product-column-gap, 42px);
}
body.single-product .abc-single-product__gallery-column,
body.single-product .abc-product-summary {
  min-width: 0;
}
body.single-product .abc-product-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}
body.single-product .woocommerce div.product .product_title,
body.single-product .abc-product-summary h1.product_title,
body.single-product .summary.entry-summary h1.product_title,
body.single-product .summary.entry-summary > h1:first-child {
  margin: 0 0 14px;
  color: var(--abc-product-title-color, #223047);
  font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: var(--abc-product-title-size-desktop, 48px) !important;
  font-weight: 700;
  line-height: var(--abc-product-title-line-height-desktop, 1.06) !important;
}
body.single-product .woocommerce-product-details__short-description {
  margin: 0;
  color: #46556b;
  font-size: var(--abc-product-short-description-size, 16px);
  line-height: 1.65;
}
body.single-product .woocommerce-product-details__short-description > :first-child { margin-top: 0; }
body.single-product .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }

/* Galeria aprovada: quadro A4 horizontal e imagem inteira. */
body.single-product .abc-product-gallery { width: 100%; margin: 0; }
body.single-product .abc-product-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 297 / 210;
  max-height: 340px;
  overflow: hidden;
  border: 2px solid var(--abc-product-gallery-border-color, #ffd64b);
  border-radius: 16px;
  background: #fff;
}
body.single-product .abc-product-gallery__slides,
body.single-product .abc-product-gallery__slide {
  width: 100%;
  height: 100%;
  margin: 0;
}
body.single-product .abc-product-gallery__slide { display: none; }
body.single-product .abc-product-gallery__slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}
body.single-product .abc-product-gallery__main-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
body.single-product .abc-product-gallery__placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 2px solid var(--abc-product-gallery-border-color, #ffd64b);
  border-radius: 16px;
  background: #fff;
}
body.single-product .abc-product-gallery__main-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #223047;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(34,48,71,.18);
  cursor: pointer;
}
body.single-product .abc-product-gallery__main-nav--prev { left: 12px; }
body.single-product .abc-product-gallery__main-nav--next { right: 12px; }
body.single-product .abc-product-gallery__main-nav:hover,
body.single-product .abc-product-gallery__main-nav:focus-visible { background: #fff; color: #1f73d8; }

/* Quatro miniaturas por página. */
body.single-product .abc-product-gallery__thumbs-shell {
  position: relative;
  width: 100%;
  margin-top: 12px;
  padding: 0 32px;
}
body.single-product .abc-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  overflow: hidden;
}
body.single-product .abc-product-gallery__thumb {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--abc-product-gallery-border-color, #ffd64b);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}
body.single-product .abc-product-gallery__thumb[hidden],
body.single-product .abc-product-gallery__thumb-nav[hidden] { display: none !important; }
body.single-product .abc-product-gallery__thumb.is-active {
  border-color: #2f8cff;
  box-shadow: 0 0 0 2px rgba(47,140,255,.16);
}
body.single-product .abc-product-gallery__thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: #fff;
}
body.single-product .abc-product-gallery__thumb-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #f5dea2;
  color: #223047;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(34,48,71,.12);
  cursor: pointer;
}
body.single-product .abc-product-gallery__thumb-nav--prev { left: 2px; }
body.single-product .abc-product-gallery__thumb-nav--next { right: 2px; }
body.single-product .abc-product-gallery__thumb-nav[disabled] { opacity: .35; cursor: default; }

/* Preço amarelo. */
body.single-product .abc-single-price-block {
  width: 100%;
  margin: 18px 0 0;
}
body.single-product .abc-price-promo-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}
body.single-product .abc-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
body.single-product .abc-price-regular {
  margin-left: 2px;
  color: #1f2430;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.1;
}
body.single-product .abc-price-regular del,
body.single-product .abc-price-regular .woocommerce-Price-amount {
  color: #1f2430;
  opacity: 1;
}
body.single-product .abc-price-regular del,
body.single-product .abc-price-regular del .woocommerce-Price-amount,
body.single-product .abc-price-regular del .woocommerce-Price-amount bdi {
  text-decoration: line-through !important;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: currentColor !important;
}
body.single-product .abc-price-current {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px 9px;
  border-radius: 4px;
  background: var(--abc-product-price-background, #ffde21);
  color: var(--abc-product-price-text, #223047);
  line-height: 1;
}
body.single-product .abc-price-current,
body.single-product .abc-price-current * { color: var(--abc-product-price-text, #223047); }
body.single-product .abc-price-current del {
  margin-right: 6px;
  opacity: .72;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: currentColor !important;
}
body.single-product .abc-price-current ins { text-decoration: none !important; }
body.single-product .abc-price-prefix { margin-bottom: 2px; font-size: 1rem; font-weight: 500; }
body.single-product .abc-price-value,
body.single-product .abc-price-value .woocommerce-Price-amount {
  font-size: clamp(2rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: .95;
}
body.single-product .abc-price-current--regular .abc-price-value,
body.single-product .abc-price-current--regular .abc-price-value .woocommerce-Price-amount {
  font-size: clamp(1.9rem, 2.8vw, 2.1rem);
}

/* Contador promocional. */
body.single-product .abc-promo-timer-wrap { display: flex; flex-direction: column; gap: 7px; }
body.single-product .abc-promo-timer-title { color: #223047; font-size: .94rem; line-height: 1.2; }
body.single-product .abc-promo-countdown { display: flex; align-items: flex-start; gap: 7px; }
body.single-product .abc-countdown-unit { min-width: 55px; text-align: center; }
body.single-product .abc-countdown-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 5px 7px;
  border-radius: 6px;
  background: #f0f1f4;
  color: #17243a;
  font-size: 1.45rem;
  line-height: 1;
}
body.single-product .abc-countdown-label { display: block; margin-top: 4px; color: #223047; font-size: .64rem; }

/* Área de compra fixa dentro da coluna direita. */
body.single-product .abc-product-buy-area {
  width: 100%;
  margin-top: var(--abc-product-price-button-spacing, 22px);
}
body.single-product .abc-product-buy-area form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  clear: none;
  float: none;
}
body.single-product .abc-product-buy-area .quantity {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 12px;
}
body.single-product .abc-product-buy-area .quantity input.qty {
  width: 74px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #ccd7e5;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
body.single-product .abc-product-buy-area form.cart .single_add_to_cart_button,
body.single-product .abc-product-buy-area form.cart button[type="submit"],
body.single-product .abc-product-buy-area form.cart input[type="submit"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: var(--abc-product-button-height, 56px) !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: var(--abc-product-button-radius, 50px) !important;
  background: var(--abc-product-button-background, #ff3b9d) !important;
  background-color: var(--abc-product-button-background, #ff3b9d) !important;
  background-image: none !important;
  color: var(--abc-product-button-text, #fff) !important;
  font-size: var(--abc-product-button-font-size, 18px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 10px 22px rgba(255,59,157,.24) !important;
  cursor: pointer;
  appearance: none;
}
body.single-product .abc-product-buy-area form.cart .single_add_to_cart_button:hover,
body.single-product .abc-product-buy-area form.cart button[type="submit"]:hover,
body.single-product .abc-product-buy-area form.cart input[type="submit"]:hover {
  background: var(--abc-product-button-hover, #e82483) !important;
  background-color: var(--abc-product-button-hover, #e82483) !important;
  color: var(--abc-product-button-text, #fff) !important;
}
body.single-product .abc-product-buy-area form.cart table.variations {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
}
body.single-product .abc-product-buy-area form.cart table.variations th,
body.single-product .abc-product-buy-area form.cart table.variations td {
  display: block;
  padding: 0 0 8px;
  text-align: left;
}
body.single-product .abc-product-buy-area form.cart table.variations select {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #ccd7e5;
  border-radius: 10px;
  background: #fff;
}
body.single-product .abc-product-buy-area .abcpi-order-bumps { margin-bottom: 18px; }

/* Botões flutuantes do plugin permanecem independentes. */
body.single-product .abc-buy-now-float {
  background: #19c968 !important;
  border-color: #19c968 !important;
  color: #fff !important;
}
body.single-product .abc-buy-now-float:hover { background: #12ad57 !important; }

/* Descrição e recomendações. */
body.single-product .abc-product-description {
  width: 100%;
  padding-top: var(--abc-product-description-top-spacing, 40px);
}
body.single-product .abc-product-description__content {
  color: var(--abc-product-description-text-color, #344257);
  font-size: var(--abc-product-description-body-size, 16px);
  line-height: 1.75;
}
body.single-product .abc-product-description__content > :first-child { margin-top: 0; }
body.single-product .abc-product-description__content h2 {
  margin: 34px 0 16px;
  color: #223047;
  font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: var(--abc-product-description-heading-size, 35px);
  font-weight: 700;
  line-height: 1.2;
}
body.single-product .abc-product-description__content h3 {
  margin: 26px 0 12px;
  color: #223047;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}
body.single-product {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body.single-product { overflow-x: clip; }
}
/* A recomendação antiga do plugin é substituída pela vitrine configurável do tema. */
body.single-product .abcpi-recommendations {
  display: none !important;
}
body.single-product .abc-product-recommendations,
body.single-product .abcpi-recommendations,
body.single-product .related.products,
body.single-product .up-sells,
body.single-product .upsells,
body.single-product .cross-sells {
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 38px 0 0;
}
body.single-product .abc-product-recommendations ul.products,
body.single-product .abcpi-recommendations ul.products,
body.single-product .related.products ul.products,
body.single-product .up-sells ul.products,
body.single-product .upsells ul.products,
body.single-product .cross-sells ul.products {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.single-product .abc-product-description__content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.single-product .abc-product-description__content img,
body.single-product .abc-product-description__content video,
body.single-product .abc-product-description__content iframe,
body.single-product .abc-product-description__content table,
body.single-product .abc-product-description__content pre {
  max-width: 100%;
}
body.single-product .abc-product-description__content table,
body.single-product .abc-product-description__content pre {
  overflow-x: auto;
}
body.single-product .abc-product-recommendations > h2,
body.single-product .abcpi-recommendations > h2,
body.single-product .related.products > h2,
body.single-product .up-sells > h2,
body.single-product .upsells > h2,
body.single-product .cross-sells > h2 {
  display: block;
  width: 100%;
  margin: 0 auto var(--abc-related-title-bottom-spacing, 32px);
  color: var(--abc-related-title-color, #223047);
  font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(var(--abc-related-title-size-mobile, 34px), 4vw, var(--abc-related-title-size-desktop, 58px));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-align: var(--abc-section-text-align, center);
}
body.single-product .abc-product-recommendations .section-subtitle,
body.single-product .abcpi-recommendations .section-subtitle,
body.single-product .related.products .section-subtitle,
body.single-product .up-sells .section-subtitle,
body.single-product .upsells .section-subtitle,
body.single-product .cross-sells .section-subtitle {
  display: block;
  width: 100%;
  margin: 0 auto 8px;
  text-align: var(--abc-section-text-align, center);
}
body.single-product .abc-product-recommendations__link {
  display: table;
  margin: -14px auto 28px;
  color: #223047;
  font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
body.single-product .abc-product-recommendations__link:hover,
body.single-product .abc-product-recommendations__link:focus-visible {
  color: #ff3b9d;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.single-product .abc-product-recommendations .abc-admin-note {
  margin-top: 20px;
}

@media (max-width: 782px) {
  body.single-product .abc-container.abc-content {
    width: calc(100% - (var(--abc-product-page-mobile-side-margin, 11px) * 2));
  }
  body.single-product .abc-product-recommendations,
body.single-product .abcpi-recommendations,
  body.single-product .related.products,
  body.single-product .up-sells,
  body.single-product .upsells,
  body.single-product .cross-sells {
    width: calc(100% - (var(--abc-related-mobile-side-margin, 0px) * 2));
    margin-inline: auto;
    padding-top: var(--abc-related-mobile-top-spacing, 38px);
  }
  body.single-product .abc-product-recommendations > h2,
body.single-product .abcpi-recommendations > h2,
  body.single-product .related.products > h2,
  body.single-product .up-sells > h2,
  body.single-product .upsells > h2,
  body.single-product .cross-sells > h2 {
    margin-bottom: var(--abc-related-mobile-title-bottom-spacing, 24px);
    text-align: var(--abc-related-title-align-mobile, center);
  }
  body.single-product .abc-product-recommendations ul.products,
body.single-product .abcpi-recommendations ul.products,
  body.single-product .related.products ul.products,
  body.single-product .up-sells ul.products,
  body.single-product .upsells ul.products,
  body.single-product .cross-sells ul.products {
    gap: var(--abc-related-mobile-grid-gap, 10px);
  }
  body.single-product .woocommerce div.product .product_title,
  body.single-product .abc-product-summary h1.product_title,
  body.single-product .summary.entry-summary h1.product_title,
  body.single-product .summary.entry-summary > h1:first-child {
    font-size: var(--abc-product-title-size-mobile, 32px) !important;
    line-height: var(--abc-product-title-line-height-mobile, 1.06) !important;
  }
  body.single-product .abc-single-product__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.single-product .abc-single-product__gallery-column {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  body.single-product .abc-product-gallery__stage { max-height: none; border-radius: 13px; }
  body.single-product .abc-product-gallery__main-nav { width: 34px; height: 34px; min-height: 34px; font-size: 1.6rem; }
  body.single-product .abc-product-gallery__thumbs-shell { padding: 0 28px; }
  body.single-product .abc-product-gallery__thumbs { gap: 6px; }
  body.single-product .abc-product-description { padding-top: var(--abc-product-description-top-spacing, 40px); }
}

@media (max-width: 560px) {
  body.single-product .abc-product-recommendations ul.products,
body.single-product .abcpi-recommendations ul.products,
  body.single-product .related.products ul.products,
  body.single-product .up-sells ul.products,
  body.single-product .upsells ul.products,
  body.single-product .cross-sells ul.products {
    grid-template-columns: repeat(var(--abc-related-mobile-columns, 2), minmax(0, 1fr));
  }
}
