/**
 * Single product styles.
 * Loaded only on WooCommerce single product pages.
 *
 * Performance-first:
 * - no template overrides
 * - no JavaScript
 * - keeps Botiga quantity controls and native gallery behavior
 * - uses CSS-only product tabs with no additional requests
 * - no product-card/loop styling
 * - uses Pocket Monster global CSS variables from pm-global.css
 */

/* =========================================================
   Single product base
   ========================================================= */

body.single-product div.product {
  color: var(--pm-text-light);
}

/* A single image needs no slider setup before it can be shown.
 * Limit this to simple products and the initial one-image gallery structure.
 * Multi-image/variable galleries and the native zoom behaviour stay untouched.
 */
body.single-product div.product.product-type-simple .product-gallery-summary > .woocommerce-product-gallery--with-images:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child) {
  opacity: 1 !important;
  transition: none !important;
}

body.single-product div.product .product-gallery-summary {
  margin-bottom: 64px;
}

body.single-product div.product .summary.entry-summary {
  color: var(--pm-text-light);
}

/* Compact product identity: expansion plus the assigned Pokémon attribute. */
body.single-product .summary .pm-product-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
  margin: 0 0 20px;
}
body.single-product .summary .pm-product-identity .br_brand_product_container {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
body.single-product .summary .pm-product-pokemon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
  max-width: 100%;
}
body.single-product .summary .pm-product-pokemon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  max-width: 100%;
  color: var(--pm-text-light);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
body.single-product .summary .pm-product-pokemon__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: transparent;
}
body.single-product .summary .pm-product-pokemon__image {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  object-fit: contain;
  background: transparent;
}
body.single-product .summary .pm-product-pokemon__name {
  overflow-wrap: anywhere;
}
body.single-product .summary .pm-product-pokemon:hover {
  color: var(--pm-yellow);
  text-decoration: underline;
  text-underline-offset: .2em;
}
body.single-product .summary .pm-product-pokemon:focus-visible {
  outline: 2px solid var(--pm-yellow);
  outline-offset: 4px;
}

/* Linked expansion logo, rendered by BeRocket in Botiga's product order. */
body.single-product .summary .br_brand_product_container {
  display: block;
  margin: 0 0 20px;
}
body.single-product .summary .br_brand_product_container a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 160px;
  max-width: 100%;
  color: var(--pm-yellow);
  text-align: center;
  text-decoration: none;
}
body.single-product .summary .br_brand_product_container img {
  flex: 0 0 auto;
}
body.single-product .summary .berocket_brand_post_image_name {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
body.single-product .summary .br_brand_product_container a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}
body.single-product .summary .br_brand_product_container a:focus-visible {
  outline: 2px solid var(--pm-yellow);
  outline-offset: 5px;
}


/* =========================================================
   Product title and price
   ========================================================= */

body.single-product div.product .product_title {
  margin: 0 0 22px;
  color: var(--pm-white);
  font-family: var(--pm-font-main);
  font-size: clamp(30px, calc(26px + 0.55vw), 38px);
  font-weight: 900;
  line-height: 1.12;
}

body.single-product div.product p.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0 0 26px;
  color: var(--pm-yellow);
  font-family: var(--pm-font-main);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

body.single-product div.product p.price ins {
  order: 1;
  color: var(--pm-yellow);
  font-weight: 900;
  text-decoration: none;
}

body.single-product div.product p.price ins bdi {
  color: var(--pm-yellow);
  font-weight: 900;
}

body.single-product div.product p.price del {
  order: 2;
  color: var(--pm-text-muted);
  font-size: 16px;
  font-weight: 400;
  opacity: 1;
}

body.single-product div.product p.price del bdi {
  color: var(--pm-text-muted);
  font-weight: 400;
}

/* =========================================================
   Short description
   ========================================================= */

body.single-product div.product .woocommerce-product-details__short-description {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--pm-white);
  font-family: var(--pm-font-main);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.45;
}

body.single-product div.product .woocommerce-product-details__short-description p {
  margin: 0 0 20px;
}

body.single-product div.product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

body.single-product div.product .woocommerce-product-details__short-description a {
  color: var(--pm-yellow);
  text-decoration: none;
}

body.single-product div.product .woocommerce-product-details__short-description a:hover {
  text-decoration: underline;
}

/* =========================================================
   Stock
   ========================================================= */

body.single-product div.product .stock {
  margin: 0 0 22px;
  color: var(--pm-stock-color);
  font-family: var(--pm-font-main);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
}

body.single-product div.product .stock.in-stock,
body.single-product div.product .stock.out-of-stock {
  color: var(--pm-stock-color);
}

/* =========================================================
   Stock + estimated delivery
   Plugin: estimate delivery date.
   Plugin output is placed before add-to-cart form via plugin settings.
   ========================================================= */

body.single-product div.product .summary.entry-summary p.stock {
  display: inline-block;
  width: auto;
  margin: 0 14px 22px 0;
  vertical-align: middle;
}

body.single-product div.product .summary.entry-summary > .pi-edd {
  display: inline-block;
  width: auto;
  max-width: max-content;
  margin: 0 0 22px;
  padding: 3px 8px;
  border-radius: var(--pm-radius-small);
  background: var(--pm-grey-dark);
  color: var(--pm-white);
  font-family: var(--pm-font-main);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

/* =========================================================
   Variable products
   Keep WooCommerce behavior and make Botiga's native selector clear.
   ========================================================= */

body.single-product div.product form.variations_form table.variations {
  width: 100%;
  margin: 0 0 20px;
  border: 0;
}

body.single-product div.product form.variations_form table.variations th.label,
body.single-product div.product form.variations_form table.variations td.value {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}

body.single-product div.product form.variations_form table.variations th.label {
  margin-bottom: 8px;
  color: var(--pm-white);
  font-weight: 900;
}

body.single-product div.product form.variations_form .botiga-custom-product-attribute {
  width: 100%;
}

body.single-product div.product form.variations_form select.botiga-variation-item {
  width: 100%;
  min-height: 52px;
  padding: 0 46px 0 14px;
  border: 1px solid var(--pm-grey);
  border-radius: var(--pm-radius-small);
  background-color: var(--pm-surface);
  color: var(--pm-white);
  font-family: var(--pm-font-main);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.single-product div.product form.variations_form select.botiga-variation-item:hover {
  border-color: var(--pm-text-light);
}

body.single-product div.product form.variations_form select.botiga-variation-item:focus,
body.single-product div.product form.variations_form select.botiga-variation-item:focus-visible {
  outline: none;
  border-color: var(--pm-yellow);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pm-yellow) 18%, transparent);
}

body.single-product div.product form.variations_form select.botiga-variation-item option {
  background: var(--pm-surface);
  color: var(--pm-white);
}

/* Condition buttons use Botiga's native variation selection and stock logic. */
body.single-product .botiga-variations-wrapper:has(> #pa_stand) > .botiga-variation-type-button {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-product .botiga-variations-wrapper:has(> #pa_stand) .botiga-variation-item {
  min-height: 44px;
  padding: 10px 16px;
  margin: 0;
  border: 1px solid var(--pm-grey);
  border-radius: var(--pm-radius-small);
  background: var(--pm-grey-dark);
  color: var(--pm-white);
  font-weight: 700;
}

body.single-product .botiga-variations-wrapper:has(> #pa_stand) .botiga-variation-item.active,
body.single-product .botiga-variations-wrapper:has(> #pa_stand) .botiga-variation-item:not(.disabled):hover {
  border-color: var(--pm-yellow);
  background: var(--pm-yellow);
  color: var(--pm-black);
}

body.single-product .botiga-variations-wrapper:has(> #pa_stand) .botiga-variation-item:focus-visible {
  outline: 2px solid var(--pm-yellow);
  outline-offset: 3px;
}

body.single-product .botiga-variations-wrapper:has(> #pa_stand) .botiga-variation-item.disabled {
  cursor: not-allowed;
}

body.single-product div.product form.variations_form .reset_variations {
  display: inline-flex;
  margin-top: 8px;
  color: var(--pm-yellow);
  font-size: 13px;
}

body.single-product div.product form.variations_form .reset_variations:hover {
  color: var(--pm-white);
}

body.single-product div.product form.variations_form .single_add_to_cart_button.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================================================
   Add to cart
   ========================================================= */

body.single-product div.product form.cart {
  margin: 0 0 30px;
}

/*
 * Keep quantity and add-to-cart on one line.
 * Quantity internals are handled by Botiga.
 */
body.single-product div.product form.cart .botiga-single-addtocart-wrapper {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

/* Only control the quantity block width, not plus/minus internals */
body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .quantity {
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  margin: 0;
}

/* Primary product CTA */
body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 58px;
  padding: 0 86px 0 42px;
  border: 0;
  border-radius: var(--pm-radius-button);
  background-color: var(--pm-yellow);
  background-image: url("../img/pokeball.svg");
  background-position: right 10px center;
  background-size: 44px 44px;
  background-repeat: no-repeat;
  color: var(--pm-dark);
  font-family: var(--pm-font-main);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .single_add_to_cart_button:hover,
body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .single_add_to_cart_button:focus {
  background-color: var(--pm-yellow);
  color: var(--pm-dark);
  opacity: 0.92;
  text-decoration: none;
  box-shadow: none;
}

body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .single_add_to_cart_button:focus {
  outline: none;
}

body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .single_add_to_cart_button:focus-visible {
  outline: 2px solid var(--pm-yellow);
  outline-offset: 4px;
}

/* =========================================================
   Product meta
   ========================================================= */

body.single-product div.product hr.divider {
  margin: 30px 0 20px;
  border: 0;
  border-top: 1px solid var(--pm-grey);
}

body.single-product div.product .product_meta {
  display: grid;
  gap: 10px;
  color: var(--pm-text-light);
  font-family: var(--pm-font-main);
  font-size: 13px;
  line-height: 1.45;
}

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

body.single-product div.product .product_meta a {
  color: var(--pm-white);
  text-decoration: none;
}

body.single-product div.product .product_meta a:hover {
  color: var(--pm-yellow);
  text-decoration: none;
}

/* =========================================================
   Single product layout spacing
   ========================================================= */

/*
 * Reduce default Botiga/WooCommerce top spacing on single product pages.
 * Keep this page-specific, not global.
 */
body.single-product .container.content-wrapper {
  margin-top: 32px;
}

/*
 * Product page breadcrumb spacing only.
 * Visual breadcrumb styling is global in pm-global.css.
 */
body.single-product .woocommerce-breadcrumb.pm-breadcrumb {
  margin: 0 0 28px;
}

@media (max-width: 767px) {
  body.single-product .container.content-wrapper {
    margin-top: 22px;
  }

  body.single-product .woocommerce-breadcrumb.pm-breadcrumb {
    margin-bottom: 20px;
  }
}

/* =========================================================
   Product tabs section divider
   CSS-only full-width divider around native WooCommerce tabs.
   ========================================================= */

body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  --pm-product-tabs-overhang: 132px;
  margin: 110px 0 calc(var(--pm-product-tabs-overhang) + 32px) -50vw;
  padding: 76px max(24px, calc((100vw - 1180px) / 2)) 88px;
  box-sizing: border-box;
  background: var(--pm-grey-dark);
  color: var(--pm-white);
  overflow: visible;
  border: 0;
  box-shadow: none;
}

body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper::before,
body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  background: var(--pm-grey-dark);
  border: 0;
}

/* Top jagged divider */
body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper::before {
  top: -104px;
  height: 106px;
  clip-path: polygon(
    0 86%,
    8% 54%,
    18% 76%,
    31% 28%,
    44% 82%,
    59% 18%,
    74% 72%,
    88% 38%,
    100% 80%,
    100% 100%,
    0 100%
  );
}

/* Bottom jagged divider - extra wild */
body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper::after {
  bottom: calc(-1 * var(--pm-product-tabs-overhang));
  height: calc(var(--pm-product-tabs-overhang) + 2px);
  clip-path: polygon(
    0 0,
    100% 0,

    100% 50%,
    97% 38%,
    94% 78%,
    91% 84%,
    88% 28%,
    84% 20%,
    80% 72%,
    76% 82%,
    71% 34%,
    67% 90%,
    63% 96%,
    58% 40%,
    54% 28%,
    49% 88%,
    45% 96%,
    39% 42%,
    34% 18%,
    29% 70%,
    25% 82%,
    19% 26%,
    15% 14%,
    11% 76%,
    7% 68%,
    3% 34%,
    0 58%
  );
}

/* Keep tab content aligned with the main site container */
body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper > .tabs,
body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper > .woocommerce-Tabs-panel {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Product tabs typography
   Typography only. Colors are controlled by Botiga.
   ========================================================= */

body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper ul.tabs li a {
  font-family: var(--pm-font-main);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

/* =========================================================
   Product USPs
   Content is inserted through Botiga HTML content.
   ========================================================= */

body.single-product .pm-product-usps {
  display: grid;
  gap: 18px;
  max-width: 680px;
  margin: 34px 0 30px;
  padding: 0;
  list-style: none;
  color: var(--pm-white);
}

body.single-product .pm-product-usps__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  column-gap: 18px;
  margin: 0;
  padding: 0;
  color: var(--pm-white);
  font-family: var(--pm-font-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

body.single-product .pm-product-usps__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body.single-product .pm-product-usps__item--trustpilot .pm-product-usps__icon {
  background-image: url("../img/product-trustpilot.svg");
}

body.single-product .pm-product-usps__item--price .pm-product-usps__icon {
  background-image: url("../img/product-price-match.svg");
}

body.single-product .pm-product-usps__item--return .pm-product-usps__icon {
  background-image: url("../img/product-return.svg");
}

body.single-product .pm-product-usps__text {
  display: block;
}

body.single-product .pm-product-usps__text strong,
body.single-product .pm-product-usps__text a {
  color: var(--pm-yellow);
  font-weight: 900;
  text-decoration: none;
}

body.single-product .pm-product-usps__text a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  body.single-product .pm-product-usps {
    gap: 14px;
    margin: 28px 0 26px;
  }

  body.single-product .pm-product-usps__item {
    grid-template-columns: 38px 1fr;
    column-gap: 14px;
    font-size: 15px;
    line-height: 1.35;
  }

  body.single-product .pm-product-usps__icon {
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   Product wishlist
   Botiga wishlist styled as a product USP row.
   ========================================================= */

body.single-product .summary.entry-summary .botiga-wishlist-wrapper {
  max-width: 680px;
  margin: -8px 0 30px;
}

body.single-product .summary.entry-summary .botiga-wishlist-button {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  column-gap: 18px;
  width: max-content;
  max-width: 100%;
  padding: 0;
  color: var(--pm-white);
  font-family: var(--pm-font-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}

body.single-product .summary.entry-summary .botiga-wishlist-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

body.single-product .summary.entry-summary .botiga-wishlist-icon {
  width: 34px;
  height: 34px;
}

body.single-product .summary.entry-summary .botiga-wishlist-icon path {
  stroke: var(--pm-yellow);
  stroke-width: 2;
}

body.single-product .summary.entry-summary .botiga-wishlist-button:hover {
  color: var(--pm-yellow);
  text-decoration: none;
}

/* =========================================================
   Product gallery size
   Reduce product image area on desktop.
   ========================================================= */

@media (min-width: 992px) {
  body.single-product div.product .product-gallery-summary {
    align-items: flex-start;
    column-gap: clamp(24px, 1.5vw, 36px);
  }

  body.single-product div.product .product-gallery-summary .woocommerce-product-gallery {
    flex: 0 0 44%;
    width: 44%;
    max-width: 580px;
  }

  body.single-product div.product .product-gallery-summary .summary.entry-summary {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  body.single-product div.product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 2000px) {
  body.single-product .container.content-wrapper {
    max-width: 1600px;
  }
}

/* =========================================================
   Tablet add to cart
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {
  body.single-product div.product form.cart .botiga-single-addtocart-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    max-width: 100%;
  }

  body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .quantity {
    flex: 0 0 100px;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .single_add_to_cart_button {
    width: auto;
    min-width: 0;
    min-height: 54px;
    padding: 0 58px 0 22px;
    background-position: right 8px center;
    background-size: 36px 36px;
    font-size: 17px;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
  body.single-product .woocommerce-breadcrumb.pm-breadcrumb {
    margin-bottom: 22px;
  }

  body.single-product div.product .product-gallery-summary {
    margin-bottom: 46px;
  }

  body.single-product div.product .summary.entry-summary {
    margin-top: 28px;
  }

  body.single-product div.product .product_title {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.12;
  }

  body.single-product div.product p.price {
   margin-bottom: 22px;
   font-size: 20px;
  }

  body.single-product div.product p.price del {
   font-size: 15px;
  }

  body.single-product div.product .woocommerce-product-details__short-description {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.55;
  }

  body.single-product div.product .stock {
    margin-bottom: 20px;
    font-size: 15px;
  }

  /*
   * Keep Botiga quantity styling.
   * Keep quantity and CTA on one line on mobile.
   */
  body.single-product div.product form.cart .botiga-single-addtocart-wrapper {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
  }

  body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .quantity {
    flex: 0 0 96px;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  body.single-product div.product form.cart .botiga-single-addtocart-wrapper > .single_add_to_cart_button {
    width: auto;
    min-width: 0;
    min-height: 52px;
    padding: 0 50px 0 16px;
    background-position: right 7px center;
    background-size: 34px 34px;
    font-size: 17px;
  }

  body.single-product div.product hr.divider {
    margin: 28px 0 18px;
  }

  body.single-product div.product .product_meta {
    font-size: 12px;
  }

  /* Keep the Botiga wishlist aligned with the USP rows. */

  body.single-product .summary.entry-summary .botiga-wishlist-button {
  grid-template-columns: 38px 1fr;
  column-gap: 14px;
  font-size: 15px;
}

body.single-product .summary.entry-summary .botiga-wishlist-icon-wrapper {
  width: 34px;
  height: 34px;
}

body.single-product .summary.entry-summary .botiga-wishlist-icon {
  width: 21px;
  height: 21px;
}

   /** Product tabs section divider
   CSS-only full-width divider around native WooCommerce tabs.*/

    body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 78px;
    --pm-product-tabs-overhang: 58px;
    margin-bottom: calc(var(--pm-product-tabs-overhang) + 32px);
    padding: 54px 20px 62px;
    border: 0;
    box-shadow: none;
  }

  body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper::before {
    top: -58px;
    height: 60px;
  }

}

/* =========================================================
   Product tab contrast
   Botiga has no separate setting for inactive tab text.
   ========================================================= */

body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper ul.tabs li:not(.active) a {
  color: var(--pm-product-tab-muted);
}

body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper ul.tabs li:not(.active) a:hover,
body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper ul.tabs li:not(.active) a:focus-visible {
  color: var(--pm-white);
}

/*
 * Allow third-party actions to move to a new line instead of squeezing
 * WooCommerce's quantity and add-to-cart controls.
 */
@media (max-width: 1199px) {
  body.single-product div.product form.cart .botiga-single-addtocart-wrapper {
    flex-wrap: wrap;
  }
}

/*
 * Mobile breadcrumb: show only the nearest clickable category.
 * The complete WooCommerce breadcrumb remains in the DOM and on desktop.
 */
@media (max-width: 767px) {
  body.single-product .pm-breadcrumb__inner {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  body.single-product .pm-breadcrumb__inner > * {
    display: none !important;
  }

  body.single-product .pm-breadcrumb__inner > .pm-breadcrumb__item:nth-last-child(3) {
    display: inline-flex !important;
    align-items: center;
    min-width: 0;
    max-width: 100%;
  }

  body.single-product .pm-breadcrumb__inner > .pm-breadcrumb__item:nth-last-child(3)::before {
    content: "‹";
    flex: 0 0 auto;
    margin-right: 8px;
    color: var(--pm-text-light);
    font-size: 22px;
    line-height: 1;
  }

  body.single-product .pm-breadcrumb__inner > .pm-breadcrumb__item:nth-last-child(3) a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}



/* Review spacing: native Botiga form has fixed padding; keep changes on product reviews only. */
body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper:has(#tab-title-reviews.active) {
  padding-top: 40px;
  padding-bottom: 40px;
}
body.single-product div.product #reviews #review_form_wrapper {
  margin-top: 24px;
  padding: 24px;
}
body.single-product div.product #reviews #review_form p {
  margin-bottom: 20px;
}
body.single-product div.product #reviews #review_form .stars {
  margin-bottom: 16px;
}
body.single-product div.product #reviews #review_form .form-submit {
  margin-bottom: 0;
}
body.single-product div.product #reviews #comment {
  display: block;
  box-sizing: border-box;
  height: 132px;
  min-height: 112px;
  max-height: none;
  resize: vertical;
}
@media (max-width: 767px) {
  body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper:has(#tab-title-reviews.active) {
    padding-top: 28px;
    padding-bottom: 32px;
  }
  body.single-product div.product #reviews #review_form_wrapper {
    padding: 20px;
  }
}
