@import url('../home/home-base.css');

.pdp-page {
  width: 100%;
  color: #343737;
}

.pdp-container {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 26px 24px 48px;
}

.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 35px;
  font-size: 12px;
  color: var(--ICO-texto-mate);
  text-align: center;
  font-family: "Avenir Next LT Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.pdp-breadcrumb a {
  color: var(--ICO-texto-mate);
}

.pdp-breadcrumb .active {
  color: var(--ICO-texto-mate);
}

.pdp-hero {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}

.pdp-gallery {
  display: grid;
  grid-template-columns: 56px 470px;
  gap: 32px;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid var(--ICO-Gris-transparente);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-thumb.active {
  border: 4px solid var(--ico-celeste, #459CD6);
  box-shadow: 0 0 0 1px rgba(69, 156, 214, 0.15);
}

.pdp-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdp-main-image {
  min-height: 420px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0;
}

.pdp-main-image img {
  width: 100%;
  max-width: 470px;
  height: 470px;
  object-fit: contain;
}

.pdp-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdp-title {
  color: var(--ICO-Azul, #0B4460);
  font-family: "Avenir Next LT Pro";
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
}

.pdp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.pdp-meta {
  font-size: 14px;
  line-height: 1.5;
}

.pdp-brand-share {
  font-size: 14px;
  line-height: 1.5;
}

.pdp-tags {
  font-size: 14px;
  line-height: 1.5;
}

.pdp-tabs {
  font-size: 14px;
  line-height: 1.5;
}

.pdp-tab-panel p {
  font-size: 14px;
  line-height: 1.5;
}

.pdp-tab-panel li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ICO-texto-mate, #343737);
  font-family: "Avenir Next LT Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.pdp-benefit-text {
  color: var(--ICO-texto-mate, #343737) !important;
  font-family: "Avenir Next LT Pro";
  font-size: 13px !important;
  font-style: normal;
  font-weight: 400;
  line-height: 150% !important;
}

.pdp-video-copy {
  font-size: 14px;
  line-height: 1.5;
}

.pdp-tab-panel .pdp-brand-share span {
  color: var(--Gray-Scale-Gray-900, #1A1A1A);
  font-family: "Avenir Next LT Pro";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.pdp-meta-sku {
  color: #808080;
  font-weight: 400;
}

.pdp-meta strong,
.pdp-tags strong,
.pdp-meta-label,
.pdp-brand-label,
.pdp-share-label,
.producto-info .producto-attr,
.producto-info .producto-name {
  color: var(--ico-azul, #0B4460);
  font-weight: 600;
}

.pdp-meta-dot {
  color: #c1c1c1;
}

.pdp-pricing {
  margin-top: 2px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp-price-current {
  color: #F00;
  font-family: "Avenir Next LT Pro";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.pdp-price-old {
  color: var(--Gray-Scale-Gray-300, #B3B3B3);
  font-family: "Avenir Next LT Pro";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-decoration-line: line-through;
}

.pdp-price-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 24px;
  background: rgba(234, 75, 72, 0.1);
  color: #EA4B48;
  font-weight: 600;
}

.pdp-brand-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #EAEAEA;
  border-bottom: 1px solid #EAEAEA;
}

.pdp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdp-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icons a,
.social-icons .pdp-share-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #EAEAEA;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-icons .pdp-share-button {
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.pdp-brand-share .social-icons a:hover,
.pdp-brand-share .social-icons .pdp-share-button:hover {
  background: #8DBF3E;
  border-color: #8DBF3E;
  transform: translateY(-1px);
}

.social-icons img,
.social-icons .pdp-share-button img {
  width: 18px;
  height: 18px;
}

.pdp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #E6E6E6;
}

.pdp-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 118px;
  height: 48px;
  padding: 0 8px;
  border: 1px solid #EAEAEA;
  border-radius: 170px;
}

.pdp-quantity-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #F2F2F2;
  color: #1A1A1A;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
  flex: 0 0 30px;
}

.pdp-quantity-btn[data-pdp-qty-minus] {
  padding-bottom: 2px;
}

.pdp-quantity-btn[data-pdp-qty-plus] {
  padding-bottom: 1px;
}

.pdp-quantity-value {
  min-width: 18px;
  text-align: center;
  color: #1A1A1A;
}

.pdp-add-cart {
  flex: 1;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 170px;
  background: var(--ico-celeste, #459CD6);
  color: #fff;
  font-size: 16px;
  font-family: "Avenir Next LT Pro";
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.pdp-add-cart img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.pdp-favorite {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #459CD6;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.pdp-favorite .tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: var(--ico-azul, #0B4460);
  color: var(--ICO-Blanco, #FFF);
  text-align: center;
  font-family: "Avenir Next LT Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  padding: 10px 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 30;
  pointer-events: none;
}

.pdp-favorite .tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--ico-azul, #0B4460) transparent;
}

.pdp-favorite:hover .tooltip,
.pdp-favorite:focus-visible .tooltip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdp-favorite img {
  width: 18px;
  height: 18px;
}

.pdp-favorite.active {
  background: var(--ico-celeste, #459CD6);
}

.pdp-favorite.active img {
  filter: brightness(0) invert(1);
}

.pdp-tags {
  margin-top: 6px;
  color: #808080;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-tags a {
  color: #808080;
  text-decoration: underline;
}

.pdp-details {
  margin-top: 40px;
}

.pdp-tabs {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid #EAEAEA;
}

.pdp-tab {
  border: none;
  background: transparent;
  color: var(--Gray-Scale-Gray-500, #808080);
  font-family: "Avenir Next LT Pro" !important;
  font-size: 16px !important;
  font-style: normal;
  font-weight: 600 !important;
  line-height: 150% !important;
  font: inherit;
  padding: 0 0 14px;
  cursor: pointer;
  position: relative;
}

.pdp-tab.active {
  color: var(--ico-azul);
  font-family: "Avenir Next LT Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.pdp-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ico-azul);
}

.pdp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 81px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid #EAEAEA;
}

.pdp-tab-panel {
  display: none;
}

.pdp-tab-panel.active {
  display: block;
}

.pdp-tab-panel-full {
  width: 100%;
  padding-top: 28px;
}

.pdp-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.pdp-specs-column {
  display: grid;
  gap: 8px;
}

.pdp-spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 165px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  min-height: 38px;
  padding: 8px 24px;
}

.pdp-spec-row:nth-child(odd) {
  background: #F4F4F4;
}

.pdp-spec-label {
  color: var(--ico-azul, #0B4460);
  font-weight: 600;
}

.pdp-spec-value {
  color: var(--ICO-texto-mate, #343737);
  text-align: justify;
  font-family: "Avenir Next LT Pro";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 17.5px;
}

.pdp-tab-panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pdp-tab-panel li {
  position: relative;
  padding-left: 28px;
}

.pdp-tab-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #33B864;
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdp-highlight-note {
  margin-top: 24px;
  color: #F00;
  font-family: "Avenir Next LT Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.pdp-description {
  color: var(--ICO-texto-mate, #343737);
  font-family: "Avenir Next LT Pro";
  font-size: 16px !important;
  font-style: normal;
  font-weight: 400;
  line-height: 150% !important;
}

.pdp-side-card {
  display: grid;
  gap: 18px;
}

.pdp-video-card {
  display: grid;
  gap: 14px;
}

.pdp-video-thumb {
  position: relative;
  min-height: auto;
  border-radius: 8px;
  overflow: hidden;
}

button.pdp-video-thumb {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
}

.pdp-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 68, 96, 0.04) 0%, rgba(11, 68, 96, 0.26) 100%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pdp-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.25s ease, filter 0.25s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;}

.pdp-video-play svg {
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  width: 50px;
  height: 50px;
}

.pdp-video-thumb:hover::after {
  opacity: 0.78;
}

.pdp-video-thumb:hover .pdp-video-play,
.pdp-video-play:hover,
.pdp-video-play:focus-visible {
  transform: scale(1.08);
}

.pdp-video-thumb:hover .pdp-video-play svg,
.pdp-video-play:hover svg,
.pdp-video-play:focus-visible svg {
  filter: drop-shadow(0 10px 24px rgba(11, 68, 96, 0.35));
}

.pdp-video-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

body.pdp-video-modal-open {
  overflow: hidden;
}

.pdp-video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10010;
}

.pdp-video-modal.active {
  display: flex;
}

.pdp-video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.pdp-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(86vw, 1180px);
}

.pdp-video-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(11, 68, 96, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #0B4460;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pdp-video-modal-close:hover {
  background: #f5fbff;
  transform: scale(1.04);
}

.pdp-video-modal-close:focus-visible {
  outline: 2px solid #0B4460;
  outline-offset: 2px;
}

.pdp-video-modal-close-icon {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: currentColor;
  margin-top: -2px;
}

.pdp-video-modal-frame {
  border: 5px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  background: #a7c74a;
  aspect-ratio: 16 / 9;
}

.pdp-video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdp-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pdp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
}

.pdp-benefit img {
  width: 32px;
  height: 32px;
  align-self: center;
  flex-shrink: 0;
}

.pdp-benefit-title {
  color: var(--ICO-texto-mate, #343737);
  font-family: "Avenir Next LT Pro";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.pdp-benefit-text {
  color: #808080;
}

.pdp-carousel-section {
  margin-top: 40px;
}

.pdp-carousel-section:first-of-type {
  position: relative;
  padding-bottom: 40px;
  margin-bottom: 48px;
}

.pdp-carousel-section:first-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #EAEAEA;
}

.pdp-carousel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.pdp-carousel-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ico-azul, #0B4460);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdp-carousel-badge img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.pdp-carousel-title {
  color: var(--ico-azul, #0B4460);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.pdp-carousel-frame {
  position: relative;
}

.pdp-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--ico-azul, #0B4460);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.pdp-carousel-arrow img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.pdp-carousel-arrow.prev {
  left: -22px;
}

.pdp-carousel-arrow.next {
  right: -22px;
}

.pdp-carousel-frame .ultimos-productos-wrapper {
  margin: 0;
}

.pdp-carousel-frame .ultimos-productos-wrapper::after {
  display: none;
}

.pdp-carousel-frame .producto-card:first-child,
.pdp-carousel-frame .producto-card:last-child {
  margin: 0;
}

.pdp-carousel-frame .ultimos-productos-grid {
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.pdp-carousel-frame .producto-card {
  width: calc((100% - 64px) / 5);
  min-width: 0;
}

.pdp-carousel-frame .ultimos-productos-slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  gap: 8px;
}

.pdp-carousel-frame .up-dot {
  width: 10px;
  height: 10px;
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 1px solid var(--ICO-Azul, #0B4460);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.pdp-carousel-frame .up-dot.active {
  background: var(--ICO-Azul, #0B4460);
}

@media (max-width: 1100px) {

  .pdp-hero,
  .pdp-detail-grid {
    grid-template-columns: 1fr;
  }

  .pdp-title {
    font-size: 34px;
  }

  .pdp-carousel-frame .ultimos-productos-grid {
    gap: 12px;
  }

  .pdp-carousel-frame .producto-card {
    width: calc(50% - 6px);
    min-width: 0;
    padding: 12px;
  }

  .pdp-carousel-arrow {
    display: none;
  }

  .pdp-carousel-frame .ultimos-productos-wrapper {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 1024px) {
  .pdp-breadcrumb {
    margin-bottom: 0px;
  }

  .pdp-main-image img {
    width: 100%;
    max-width: 327px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
  }

  .pdp-container {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .pdp-hero {
    gap: 24px;
  }

  .pdp-gallery {
    grid-template-columns: 1fr;
  }

  .pdp-thumbs {
    order: 2;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .pdp-add-cart {
    font-size: 14px;
  }

  .pdp-main-image {
    min-height: auto;
    padding: 26px 0 16px;
    justify-self: center;
  }

  .pdp-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .pdp-brand-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
  }

  .pdp-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .pdp-add-to-cart {
    flex: 1;
    justify-content: center;
    padding: 0 16px;
    height: 48px;
    font-size: 15px;
  }

  .pdp-favorite {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .pdp-tabs {
    gap: 24px;
    justify-content: flex-start;
    white-space: nowrap;
    padding-bottom: 0;
  }

  .pdp-tab {
    padding-bottom: 10px;
    font-size: 14px !important;
  }

  .pdp-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .pdp-benefits {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .pdp-benefit {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .pdp-benefit:not(:last-child)::after {
    content: "";
    height: 24px;
    width: 1px;
    background: #A4A4A4;
    margin-left: 8px;
  }

  .pdp-benefit-info {
    text-align: left;
  }

  .pdp-benefit-title {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
  }

  .pdp-benefit-text {
    display: none;
  }

  .pdp-video-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pdp-video-copy {
    display: none;
  }

  .pdp-video-modal-dialog {
    width: min(92vw, 1180px);
  }

  .pdp-video-modal-close {
    top: -10px;
    right: -10px;
  }

  .pdp-video-thumb img {
    width: 100%;
    max-width: none;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
  }

  .pdp-specs-grid {
    grid-template-columns: 1fr;
  }

  .pdp-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 16px;
  }

  .pdp-carousel-title {
    font-size: 24px;
  }

  .pdp-carousel-arrow {
    display: none;
  }

  .pdp-carousel-frame .ultimos-productos-grid {
    padding-bottom: 24px;
    margin-bottom: -24px;
  }
  .pdp-carousel-section:first-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .pdp-carousel-section:first-of-type::after {
    display: none;
  }
}

/* --- Fixes de fidelidad PDP B2B --- */
.woocommerce-breadcrumb {
  display: none !important;
}

.icofoods-pdp-b2b input.qty,
.icofoods-pdp-b2b .quantity,
.icofoods-pdp-b2b .qty {
  display: none !important;
  visibility: hidden !important;
}

.icofoods-pdp-b2b .pdp-breadcrumb a,
.icofoods-pdp-b2b .pdp-breadcrumb a:visited {
  color: var(--ICO-texto-mate, #343737);
  text-decoration: none;
}

.icofoods-pdp-b2b .social-icons a:visited,
.icofoods-pdp-b2b .social-icons a:visited img,
.icofoods-pdp-b2b .social-icons .pdp-share-button:visited,
.icofoods-pdp-b2b .social-icons .pdp-share-button:visited img {
  color: inherit;
}

.icofoods-pdp-b2b .producto-badges a,
.icofoods-pdp-b2b .producto-badges a:visited,
.icofoods-pdp-b2b .badge-cyber,
.icofoods-pdp-b2b .badge-cyber:visited,
.icofoods-pdp-b2b .badge-nuevo,
.icofoods-pdp-b2b .badge-nuevo:visited {
  color: #FFF !important;
  text-decoration: none !important;
}

.icofoods-pdp-b2b .producto-name a,
.icofoods-pdp-b2b .producto-name a:visited,
.icofoods-pdp-b2b .producto-name,
.icofoods-pdp-b2b .producto-name:visited {
  color: var(--ico-celeste, #459CD6) !important;
  text-decoration: none !important;
}

.icofoods-pdp-b2b .producto-attr,
.icofoods-pdp-b2b .producto-attr:visited,
.icofoods-pdp-b2b .producto-attr a,
.icofoods-pdp-b2b .producto-attr a:visited {
  color: var(--ico-azul, #0B4460) !important;
}

.icofoods-pdp-b2b .producto-card a,
.icofoods-pdp-b2b .producto-card a:visited {
  text-decoration: none;
}

.icofoods-pdp-b2b .pdp-carousel-arrow {
  color: #fff;
  font-size: 0;
}

.icofoods-pdp-b2b .pdp-carousel-arrow img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) invert(1);
}




/* Ajustes visuales slider productos PDP */
.icofoods-pdp-b2b .producto-price-old {
  display: block !important;
  color: #999 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 150% !important;
  text-decoration: line-through !important;
}

.icofoods-pdp-b2b .pdp-carousel-frame .ultimos-productos-slider-dots {
  display: flex !important;
}

/* Fix fuerte: precio regular de cards siempre gris y tachado */
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old,
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old .amount,
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old .woocommerce-Price-amount,
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old bdi,
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old .woocommerce-Price-currencySymbol,
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old * {
  color: #999 !important;
}

.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old {
  text-decoration: line-through !important;
  text-decoration-color: #999 !important;
  text-decoration-thickness: 1px !important;
}

.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old .amount,
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old .woocommerce-Price-amount,
.icofoods-pdp-b2b .producto-card .producto-prices .producto-price-old bdi {
  text-decoration: inherit !important;
}


/* Estado sin stock PDP / cards */
.icofoods-pdp-b2b .pdp-add-cart.is-disabled,
.icofoods-pdp-b2b .pdp-add-cart:disabled,
.icofoods-pdp-b2b .action-btn.cart-btn.is-disabled,
.icofoods-pdp-b2b .action-btn.cart-btn:disabled,
.icofoods-pdp-b2b .pdp-quantity.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.icofoods-pdp-b2b .pdp-cart-form.is-out-of-stock .pdp-add-cart {
  background: #C9D1D6 !important;
  color: #fff !important;
}

.icofoods-pdp-b2b button.action-btn.cart-btn {
  border: 1px solid #D8D8D8;
  background: #fff;
}


/* Toast PDP: agregado al carrito / sin stock */
.icofoods-pdp-toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.icofoods-pdp-toast {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  width: min(430px, calc(100vw - 32px));
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(11, 68, 96, 0.12);
  border-left: 5px solid var(--ICO-Azul, #0B4460);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(11, 68, 96, 0.18);
  color: var(--ICO-Azul, #0B4460);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.icofoods-pdp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.icofoods-pdp-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ICO-Azul, #0B4460);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.icofoods-pdp-toast.is-warning .icofoods-pdp-toast__icon,
.icofoods-pdp-toast.is-error .icofoods-pdp-toast__icon {
  background: #E53935;
}

.icofoods-pdp-toast.is-warning,
.icofoods-pdp-toast.is-error {
  border-left-color: #E53935;
}

.icofoods-pdp-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.icofoods-pdp-toast__body strong {
  color: var(--ICO-Azul, #0B4460);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.icofoods-pdp-toast__body span {
  color: #5E6A70;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.icofoods-pdp-toast__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ico-celeste, #459CD6);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.icofoods-pdp-toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9BA5AA;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.icofoods-pdp-b2b .pdp-add-cart.is-added {
  background: var(--ICO-Azul, #0B4460) !important;
  color: #fff !important;
}

.icofoods-pdp-b2b .pdp-stock-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.08);
  color: #E53935;
  font-size: 13px;
  font-weight: 700;
}

.icofoods-pdp-b2b .pdp-stock-alert span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E53935;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 767px) {
  .icofoods-pdp-toast-root {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .icofoods-pdp-toast {
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) 26px;
  }

  .icofoods-pdp-toast__action {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 6px;
  }
}


/* PDP B2C visual variants --------------------------------------------------
   El PDP comparte estructura con B2B, pero B2C usa verde en CTA y play. */
.ico-variant-b2c .pdp-page .pdp-add-cart,
.icofoods-pdp-b2c .pdp-add-cart {
  background: var(--ico-verde-b2c, #8CC63F) !important;
  border-color: var(--ico-verde-b2c, #8CC63F) !important;
  color: #fff !important;
}

.ico-variant-b2c .pdp-page .pdp-add-cart:hover,
.ico-variant-b2c .pdp-page .pdp-add-cart:focus-visible,
.icofoods-pdp-b2c .pdp-add-cart:hover,
.icofoods-pdp-b2c .pdp-add-cart:focus-visible {
  background: #7FB832 !important;
  border-color: #7FB832 !important;
  color: #fff !important;
}

.ico-variant-b2c .pdp-page .pdp-add-cart.is-added,
.icofoods-pdp-b2c .pdp-add-cart.is-added {
  background: var(--ico-verde-b2c, #8CC63F) !important;
  border-color: var(--ico-verde-b2c, #8CC63F) !important;
  color: #fff !important;
}

.ico-variant-b2c .pdp-page .pdp-video-play svg circle,
.icofoods-pdp-b2c .pdp-video-play svg circle {
  fill: var(--ico-verde-b2c, #8CC63F) !important;
}

.ico-variant-b2c .pdp-page .pdp-video-thumb:hover .pdp-video-play svg,
.icofoods-pdp-b2c .pdp-video-thumb:hover .pdp-video-play svg {
  filter: drop-shadow(0 10px 24px rgba(140, 198, 63, 0.35));
}

.ico-variant-b2b .pdp-page .pdp-add-cart,
.icofoods-pdp-b2b-active .pdp-add-cart {
  background: var(--ico-celeste, #459CD6);
  border-color: var(--ico-celeste, #459CD6);
}

.ico-variant-b2b .pdp-page .pdp-video-play svg circle,
.icofoods-pdp-b2b-active .pdp-video-play svg circle {
  fill: var(--ico-celeste, #459CD6);
}
