/* Estilos generales */
body {
    background-color: #f7f7f7; /* Fondo suave */
    font-family: 'Montserrat', 'Arial', sans-serif;
    color: #333;
}

/* Estilo para el precio tachado */
.product-page .text-muted .text-decoration-line-through {
    font-size: 1.2em; 
    color: #f44336 !important;  
}

/* Estilo para el precio final */
.product-page .text-success {
    font-size: 1.6em; 
    color: #4caf50 !important;   
}

/* Estilo general para el título */
h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

/* Estilos de los precios */
h3, h4 {
    margin-bottom: 20px;
    
}

.product-page h3 {

    color: #4caf50 !important;
}

.product-page h4 span {
    font-size: 1.2rem;
    color: #f44336 !important; 
}

/* Estilos para los botones */
.btn-success {
    font-size: 1.2em;
}

/* Estilos para las descripciones y categorías */
p {
    font-size: 1.1em;
    color: #555;
}

/* Estilo para las reseñas */
.alert-info {
    font-size: 1.1em;
}

/* Estilo para las estrellas de calificación */
.stars span {
    font-size: 1.8em;
}

/* Estilo para el área de comentarios */
textarea {
    font-size: 1.1em;
    height: 100px;
}

/* Contenedor principal de imagen */
.main-image-container {
    position: relative;
    width: 630px; 
    height: 420px; 
    overflow: visible;
    background-color: #f7f7f7; 
    border: 1px solid #dcdcdc; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin: 0 auto; 
    border-radius: 10px;
}

.main-image-container .badge-condition {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999; /* siempre arriba */
    background: #111 !important;
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    pointer-events: none; /* no interfiere con hover */
    text-transform: uppercase;
    font-weight: 600;
}

/* Colores según tipo de producto */
.main-image-container .badge-condition.nuevo {
    background: #ffe0ac !important;
    color: #5a3e00 !important;
}

.main-image-container .badge-condition.usado {
    background: #ffd6f0 !important;
    color: #6a0555 !important;
}

.main-image-container .badge-condition.reacondicionado {
    background: #c7f0ff !important;
    color: #05455a !important;
}


/* Imagen principal */
.main-image {
    max-width: 100%;  
    max-height: 80%; 
    object-fit: contain; 
    transition: transform 0.3s ease; 
    position: relative;
    z-index: 1;
    top: 10px;
}

/* Efecto de zoom en hover */
.main-image-container:hover .main-image {
    transform: scale(1.2);
    z-index: 1;
}

.main-image-container:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Thumbnails */
.thumbs {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb:hover {
    border: 2px solid #a5d8ff; 
}

/* Estilo de las estrellas */
.stars span {
    font-size: 30px;
    cursor: pointer;
    color: #ddd;
}

.stars span.active {
    color: #f39c12; 
}

/* Rating */
.rating {
    color: #f5b301;
    font-size: 20px;
}

/* Calificación pequeña */
.rating-small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.star {
    color: #ddd;
}

.star.filled {
    color: #f5b301;
}

/* Reseñas */
.reviews-count {
    font-size: 12px;
    color: #777;
    margin-left: 5px;
}

/* Botones */
.btn-dark {
    background-color: #34495e; 
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-dark:hover {
    background-color: #2c3e50; 
}

.btn-success {
    background-color: #28a745; 
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838; 
}

/* PRODUCT CARDS*/
.vendedor-card{
    min-width:240px;
    max-width:240px;
    /*height:340px; */ 
    flex-shrink:0;
    background:white;
    border-radius:14px;
    overflow:hidden;
    transition:.2s;
    margin-top: 20px;
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    pointer-events: auto;
    z-index: 1;
    margin-bottom: 20px;
} 

.vendedor-card-link {
    display: block;
    text-decoration: none; 
    color: inherit; 
    width: 100%;
    cursor: default;
}

.vendedor-card::after{
    content:"♡";
    position:absolute;
    top:10px;
    right:10px;
    font-size:18px;
    opacity:0;
    transition:.3s;
    color:#555;
    pointer-events:none;
    display:none;
}


.vendedor-card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    transform: scale(1.05);
}


/* Botones de producto */
.vendedor-slider .vendedor-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.vendedor-slider .vendedor-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); 
}

/* Carrusel - Slider */
.p-btn {
    background-color: transparent;
    border: none;
    font-size: 30px;
    color: #3498db;
    cursor: pointer;
}

.p-btn:hover {
    color: #1abc9c; 
}

.vendedor-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: smooth;
}

.vendedor-slider img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

/* PRODUCT BOX */
.vendedor-box{
    margin: 0 auto;
    /* padding: 20px; */
    
}

.vendedor-container {
    position:relative;
    width:100%;
    /* max-width:1100px; */
    background:rgba(255,255,255,.75);
    backdrop-filter: blur(12px);
    border-radius:18px;
    padding:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    margin-bottom: 50px;
    backdrop-filter:none;
}

/* Estilo general para preguntas y respuestas */
form textarea {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 20px;
    width: 100%;
    resize: vertical;
    font-size: 14px;
}

form button {
    background-color: #3498db;
    color: white;
    border-radius: 8px;
    padding: 10px;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #2980b9;
}


h3, h4, h5, h6 {
    color: #333;
}

.vendedor-badge {
    position: absolute;
    top: 18px;
    left: 12px;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Colores pastel por tipo */
.nuevo { background: #ffe0ac; color: #5a3e00; }
.usado { background: #ffd6f0; color: #6a0555; }
.reacondicionado { background: #c7f0ff; color: #05455a; }

.img-wrap {
    height: 260px; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    position: relative;
    /* background: #f5f5f5; */
}

.img-wrap img {
    max-height: 60%;
    max-width: 100%;
    object-fit: contain 
}

/* INFO PRODUCTO */
.info {
    padding: 12px 15px;
}

.info h4 {
    font-family: 'Manrope', sans-serif; 
    font-size: 18px;
    font-weight: normal; 
    color: #2d2d2d; 
    margin-bottom: 8px;
    transition: color 0.3s;
}

.info strong {
    font-size: 16px;
    font-weight: normal; 
    color: #333; 
    margin-bottom: 8px;
}

/* PRECIOS CON DESCUENTO */
.vendedor-card .info .old-price {
    text-decoration: line-through;
    color: #ff3b3b; 
    font-size: 16px; 
}

/* PRECIO FINAL CON DESCUENTO */
.vendedor-card .info .new-price {
    font-size: 18px;
    font-weight: normal; 
    color: #88d498; /* 
    margin-top: 6px;
}

/* ESTILO PARA EL PRECIO REGULAR */
.vendedor-card .info .regular-price {
    font-size: 18px;
    font-weight: normal;
    color: #333; 
    margin-bottom: 8px;
}

/* REMOVER EL BOTÓN DE VER PRODUCTO */
.info a.btn-ver {
    display: none; 
}

/* PRECIOS CON DESCUENTO */
.vendedor-card .info strong[style*="line-through"] {
    text-decoration: line-through;
    color: #999; 
}

.vendedor-card .info strong[style*="color:#e60023"] {
    color: #ff6b6b; 
}

.vendedor-card .info span {
    color: #ff3b3b; 
    font-size: 18px;
    font-weight: normal; 
    margin-left: 8px;
    transition: color 0.3s;
}

.vendedor-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    /* scrollbar-width: none; */
    scroll-behavior: smooth;
    /* padding-bottom: 10px; */
}

.vendedor-slider::-webkit-scrollbar {
    display: none;
}


/* AGREGAR AL CARRITO */
.vendedor-card .btn-add-cart {
    position: absolute;
    bottom: 90px;
    left: 190px;
    padding: 6px 10px;
    border-radius: 6px;
    /* background: #c7f0ff; */
    color: #2d2d2d;;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;

}

/* Efecto de hover solo para el ícono "+" */
.vendedor-card .btn-add-cart:hover::before {
    background: #88d498; 
    color: white; 
}


.vendedor-card .btn-add-cart::before {
    content: "+"; 
    font-weight: bold;
    position: absolute;
    bottom: 15px; 
    left: 15px; 
    color: #555; 
    background: rgba(255, 255, 255, 0.7); 
    padding: 6px 10px; 
    border-radius: 6px; 
    z-index: 2;
    transition: 0.3s; 
}

.btn-add-cart::before {
    content: "+";
    font-weight: bold;
}

.badge-condition {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999; 
    background: #111;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* Colores según tipo solo para badge-condition */
.badge-condition.nuevo { background: #ffe0ac !important; color: #5a3e00 !important; }
.badge-condition.usado { background: #ffd6f0 !important; color: #6a0555 !important; }
.badge-condition.reacondicionado { background: #c7f0ff !important; color: #05455a !important; }


/* Estilo para el contenedor del zoom */
.zoom-container {
    position: relative;
    display: inline-block;
}

/* Lupa  */
.zoom-lens {
    position: absolute;
    border: 2px solid #ccc;
    width: 75px; 
    height: 75px; 
    cursor: pointer;
    display: none; /* No se ve por defecto */
    background-color: rgba(255, 255, 255, 0.5); 
}

.thumb.selected {
    border: 2px solid #5a3e00; 
    opacity: 0.8; 
}
}