/* Estilos limitados a catálogo y ficha; la landing, Mi cuenta y checkout no se modifican. */
body.woocommerce-shop,
body.single-product,
body.tax-product_cat,
body.tax-product_tag {
  --bpn-ink: #11213a;
  --bpn-muted: #52647d;
  --bpn-blue: #246bfe;
  --bpn-line: #e4eaf2;
  --bpn-paper: #f7f9fc;
  color: var(--bpn-ink);
  background: #fff;
}

body.woocommerce-shop .wp-site-blocks > header,
body.single-product .wp-site-blocks > header,
body.tax-product_cat .wp-site-blocks > header,
body.tax-product_tag .wp-site-blocks > header {
  border-bottom: 1px solid var(--bpn-line);
  padding-block: 14px;
}

body.woocommerce-shop .wp-block-navigation__container,
body.single-product .wp-block-navigation__container,
body.tax-product_cat .wp-block-navigation__container,
body.tax-product_tag .wp-block-navigation__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(12px, 2vw, 26px) !important;
  row-gap: 8px !important;
}

body.woocommerce-shop .wp-block-navigation-item__content,
body.single-product .wp-block-navigation-item__content,
body.tax-product_cat .wp-block-navigation-item__content,
body.tax-product_tag .wp-block-navigation-item__content {
  color: var(--bpn-muted);
  text-decoration: none;
}

body.woocommerce-shop .wp-block-navigation-item__content:hover,
body.single-product .wp-block-navigation-item__content:hover,
body.tax-product_cat .wp-block-navigation-item__content:hover,
body.tax-product_tag .wp-block-navigation-item__content:hover {
  color: var(--bpn-blue);
}

body.woocommerce-shop main,
body.single-product main,
body.tax-product_cat main,
body.tax-product_tag main {
  width: min(1160px, calc(100% - 40px));
  max-width: 1160px;
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 52px) 72px;
}

body.woocommerce-shop .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb {
  margin: 0 0 22px;
  color: #718096;
  font-size: 13px;
}

body.woocommerce-shop .woocommerce-breadcrumb a,
body.single-product .woocommerce-breadcrumb a,
body.tax-product_cat .woocommerce-breadcrumb a,
body.tax-product_tag .woocommerce-breadcrumb a {
  color: var(--bpn-blue);
}

body.woocommerce-shop .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_tag .woocommerce-products-header__title {
  margin: 0 0 14px;
  color: var(--bpn-ink);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.035em;
  line-height: 1.12;
}

body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
  color: var(--bpn-muted);
  font-size: 14px;
}

body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
  margin: 0 0 18px;
}

body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #d8e0eb;
  border-radius: 9px;
  background: #fff;
  color: var(--bpn-ink);
}

body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 330px));
  gap: 22px;
  clear: both;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-shop ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
  display: flex !important;
  width: auto !important;
  float: none !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--bpn-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 33, 58, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

body.woocommerce-shop ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(17, 33, 58, .10);
}

body.woocommerce-shop ul.products li.product a img,
body.tax-product_cat ul.products li.product a img,
body.tax-product_tag ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 14px !important;
  border-radius: 12px;
  background: var(--bpn-paper);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  color: var(--bpn-ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.woocommerce ul.products li.product .price {
  margin: 5px 0 14px;
  color: var(--bpn-ink);
  font-size: 20px;
  font-weight: 750;
}

.woocommerce ul.products li.product .price .subscription-details {
  display: inline-block;
  color: var(--bpn-muted);
  font-size: 13px;
  font-weight: 500;
}

body.woocommerce-shop ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button,
body.single-product .single_add_to_cart_button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--bpn-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

body.woocommerce-shop ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .button:hover,
body.tax-product_tag ul.products li.product .button:hover,
body.single-product .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  background: #1554dc;
  color: #fff;
}

body.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 38px;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product div.product div.images img {
  border-radius: 18px;
  background: var(--bpn-paper);
}

body.single-product div.product .product_title {
  margin: 0 0 14px;
  color: var(--bpn-ink);
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -.035em;
  line-height: 1.12;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  color: var(--bpn-ink);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 750;
}

body.single-product .woocommerce-product-details__short-description {
  color: #40516a;
  font-size: 16px;
  line-height: 1.65;
}

body.single-product .woocommerce-product-details__short-description ul {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

body.single-product form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.single-product form.cart .quantity .qty {
  min-height: 46px;
  border: 1px solid #d8e0eb;
  border-radius: 9px;
}

body.single-product .product_meta {
  margin-top: 20px;
  color: var(--bpn-muted);
  font-size: 13px;
}

body.single-product .woocommerce-tabs,
body.single-product .related,
body.single-product .up-sells {
  grid-column: 1 / -1;
}

body.single-product .woocommerce-tabs ul.tabs {
  padding-left: 0;
}

body.single-product .woocommerce-tabs ul.tabs li {
  border-radius: 9px 9px 0 0;
}

body.single-product .woocommerce-tabs .panel {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--bpn-line);
  border-radius: 0 12px 12px 12px;
  background: #fff;
  line-height: 1.7;
}

body.single-product .woocommerce-tabs .panel h2 {
  margin-top: 0;
  color: var(--bpn-ink);
}

body.single-product .related ul.products,
body.single-product .up-sells ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

body.woocommerce-shop .wp-site-blocks > footer,
body.single-product .wp-site-blocks > footer,
body.tax-product_cat .wp-site-blocks > footer,
body.tax-product_tag .wp-site-blocks > footer {
  margin-top: 30px;
  border-top: 1px solid var(--bpn-line);
}

@media (max-width: 760px) {
  body.woocommerce-shop main,
  body.single-product main,
  body.tax-product_cat main,
  body.tax-product_tag main {
    width: min(100% - 28px, 560px);
  }

  body.single-product div.product {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  body.single-product .woocommerce-tabs,
  body.single-product .related,
  body.single-product .up-sells {
    grid-column: 1;
  }

  body.woocommerce-shop ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-shop *, body.single-product *, body.tax-product_cat *, body.tax-product_tag * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
