
/* ==========================================================
   TARJETA DE PRODUCTO
========================================================== */

.product-card {
  max-width: 300px;
  margin: auto;
  margin-bottom: 1rem;
  border: none!important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-weight: normal;
  text-overflow: ellipsis;
  font-size: 1rem;
}

.product-card .card-img-top {
  width: 100%;
  height: auto;
}

.product-card .card-body {
  padding-top: 0.2rem;
  padding-left: 5px;
  padding-right: 5px;
}

.product-card .card-text {
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* margin-bottom: 0.1rem; */
}

.product-card .fw-bold {
  margin-bottom: 1rem;
}

.price {
  color: #cc0000;
  font-size: 30px;
}

/* ==========================================================
   CUADRO "NOVEDAD" AL HOVER
========================================================== */
.cuadrado-negro {
  position: absolute;
  top: 2px;
  left: 10px;
  padding: 5px;
}

.novedad {
  font-size: 15px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  padding: 5px 10px;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.cuadrado-negro:hover .novedad {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================
   DISTINTIVOS Y BADGES
========================================================== */
.distribuidor-element,
.badge-distribuidor {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
}

.badge-distribuidor {
  width: 50px;
}

.badge-personalizado {
  font-size: 30px;
  background: linear-gradient(to right, #00bcd4, #8e44ad);
  -webkit-background-clip: text;
  color: transparent;
}

/* Responsivo para badges y distintivos */
@media (max-width: 768px) {
  .distribuidor-element {
    top: 5px;
    right: 5px;
    padding: 3px;
    font-size: 12px;
  }

  .badge-personalizado {
    font-size: 25px;
  }
}

/* ==========================================================
   EFECTO HOVER EN IMÁGENES
========================================================== */
.image-hover-effect {
  overflow: hidden;
  position: relative;
}

.image-hover-effect img {
  transition: all 0.3s ease;
}

.image-hover-effect:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* ==========================================================
   OTROS ELEMENTOS
========================================================== */
.br-mobile {
  display: none;
}

.colores-container {
  opacity: 0;
  margin-bottom: 0.50rem;
}

.sin-stock-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 30px;
  border-radius: 10px;
  z-index: 2;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.referencia-producto {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  color: #525252;
  background-color: rgb(255 255 255 / 85%);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid #66666614;
}
.referencia-gramaje {
  position: absolute;
  left: 2%;
  top: 2%;
  font-size: 18px;
  font-weight: 500;
  z-index: 10;
  color: #525252;
  background-color: rgb(255 255 255 / 85%);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid #66666614;
}
/* ==========================================================
   OPTIMIZACIÓN GENERAL PARA MÓVILES
========================================================== */

.image-container {
    position: relative;
    align-items: center;
    justify-content: center;
    display: flex;
}


#productMain .price {
    text-align: center;
    font-size: 2.5rem;
    margin: 30px 0;
    color: #cc0000;
}

#productMain .price, .product .price {
color: #cc0000;
}

  /* ==========================================================================
    RIBBON SYSTEM
    ========================================================================== */

  .ribbon {
      width: 80px;
      height: 32px;
      line-height: 32px;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: .1em;
      font-weight: 700;
      margin-bottom: 20px;
      position: absolute;
   
      text-align: center;
      z-index: 1;
      font-size: .8rem !important;
  }

  .ribbon:nth-of-type(2) {
      top: 82px;
  }

  .ribbon.sale {
      background: #467fbf;
  }
  .ribbon.proveedor {
    right: 0;
    left: auto;
    width: 34px;
    height: 26px;
    line-height: 26px;
    padding: 0;
    background: #467fbf;
    opacity: 0.85;
    font-size: 0 !important;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    position: absolute; /* necesario para el tooltip */
}

/* Segundo proveedor */
.ribbon.proveedor:nth-of-type(2) {
    top: 35px;
}

/* Icono carrito */
.ribbon.proveedor i {
    font-size: 0.85rem;
    color: #fff;
}

/* =======================
   TOOLTIP ribbon
   ======================= */

.ribbon.proveedor::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 10;
}

.ribbon.proveedor.almacen1 {
    background: #2d37d0!important;
}
.ribbon.proveedor.almacen2 {
    background: #fd3636!important;
}

.ribbon.proveedor::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0,0,0,0.85);
    opacity: 0;
    transition: opacity .2s ease;
}

/* Mostrar tooltip */
.ribbon.proveedor:hover::after,
.ribbon.proveedor:hover::before {
    opacity: 1;
}


  .ribbon.new {
      background: #c32d00 !important;
  }

  .ribbon.sold {
      background: #f0ad4e;
  }

  .ribbon.sold::after {
      content: '';
      border-top: 15px solid #b06d0f;
  }

  .ribbon.gift {
      background: #5cb85c;
  }

  .ribbon.gift::after {
      content: '';
      border-top: 15px solid #2d672d;
  }

/* =======================
   MOBILE
   ======================= */
@media (max-width: 768px) {
    .ribbon.proveedor {
        width: 28px;
        height: 22px;
        line-height: 22px;
        top: 18px;
    }

    .ribbon.proveedor:nth-of-type(2) {
        top: 46px;
    }

    .ribbon.proveedor i {
        font-size: 0.75rem;
    }

    /* ocultamos tooltip en móvil */
    .ribbon.proveedor::after,
    .ribbon.proveedor::before {
        display: none;
    }
}



  @media (max-width: 768px) {
      .ribbon {
          width: 60px;
          height: 24px;
          line-height: 24px;
          font-size: .6rem !important;
          margin-bottom: 15px;
          top: 20px;
      }
  }

/* Stars/rating images */
.text-center span img {
    height: 16px;
    width: 16px;
}

.text-center[class*="EstrellasMedia"] img,
.text-center[class*="EstrellasIndividual"] img {
    width: 14px;
    height: 14px;
}

.faq-checkbox:checked + .faq-question {
    background-color: #f8f9fa;
}

.faq-checkbox:checked + .faq-question-title .faq-icon {
    transform: rotate(45deg);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 1rem;
}

.faq-question-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background-color: #fff;
    width: 100%;
    text-align: left;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-decoration: none;
}

.faq-question:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.faq-question:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #007bff;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.categoria-header {
    margin-bottom: 2rem;
}

.faqs-section {
    margin-top: 3rem;
}

.faq-column {
    margin-bottom: 1rem;
}

/* Navegación por teclado nativa del navegador */
.faq-question:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Animación del icono con CSS puro */
.faq-checkbox:focus + .faq-question-title .faq-question {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.pass {
    text-align: center;
    margin-top: 20px;
}