/* Estilos para la página de producto */
.object-fit-cover {
    object-fit: cover;
}

.cursor-pointer {
    cursor: pointer;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating > input {
    display: none;
}

.rating > label {
    position: relative;
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
}

.rating > label:hover,
.rating > label:hover ~ label,
.rating > input:checked ~ label {
    color: #ffc107;
}

/* Estilos para el botón de cantidad */
.input-group {
    max-width: 130px;
}

.input-group .btn {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para las pestañas */
.nav-tabs .nav-link {
    color: #5d4037;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.nav-tabs .nav-link.active {
    color: #5d4037;
    background: none;
    border: none;
    border-bottom: 3px solid #5d4037;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #5d4037;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tabs .nav-link.active::after {
    transform: scaleX(1);
}

/* Estilos para los botones de color */
.btn-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    padding: 0;
    margin-right: 8px;
    position: relative;
}

.btn-color.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Efecto hover para las miniaturas */
.product-thumbnail {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-thumbnail:hover, 
.product-thumbnail.active {
    border-color: #5d4037;
}

/* Estilos para el badge de oferta */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Estilos para números en la página de producto */
/* Asegura que todos los números se muestren correctamente */
body {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* Estilos específicos para números */
.review-count,
.product-price,
.discount-percentage,
.quantity-input,
.rating-count,
.product-sku,
.spec-value {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: inherit;
}

/* Asegura que los precios se muestren correctamente */
.h3, .h4, .h5, .h6, h3, h4, h5, h6 {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}
















/* --- Forzar tachado fino y eliminar cualquier fondo/sombra que lo tape --- */

/* Objetivo: selector lo más específico posible para el precio anterior */
.previous-price,
.previous-price * {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  text-shadow: none !important;
}

/* Quitar cualquier text-decoration nativo conflictivo */
.previous-price {
  text-decoration: none !important;
  position: relative !important;
  display: inline-block !important;
  color: #6c757d !important;       /* gris */
  font-weight: 400 !important;     /* normal para que no parezca línea gruesa */
  line-height: 1 !important;       /* evitar offsets raros por line-height */
  padding: 0 2px !important;       /* pequeño padding para que la línea no toque bordes */
}

/* Dibujar la línea fina mediante pseudo-elemento (control total) */
.previous-price::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  height: 1px !important;                     /* grosor de la línea */
  background-color: rgba(0,0,0,0.45) !important; /* color de la línea */
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Asegurar que el símbolo $ no quede atravesado si está separado */
.previous-price .currency-sign {
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
  z-index: 3;
  position: relative;
}
