/* Estilo general para la lista de opiniones */
.container {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

/* Estrellas de calificación */
.star-rating {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.star {
    color: #ddd;
    font-size: 1.5rem;
    margin-right: 2px;
}

.star.active {
    color: #FFD700;
}

/* Imagen del producto en el comentario */
.comment-product-img-container {
    text-align: center;
    margin-top: 15px;
}

.comment-product-img {
    max-width: 100%; /* Asegura que la imagen no exceda el tamaño del contenedor */
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Grid de comentarios */
.comments-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr); /* 4 opiniones por fila en pantallas grandes */
}

/* Estilo del comentario */
.comment-card {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Encabezado del comentario */
.comment-header {
    display: flex;
    flex-direction: column;
    align-items: start;
}

/* Nombre del usuario y fecha del comentario */
.comment-user {
    font-weight: bold;
}

.comment-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Acciones del comentario (Editar/Eliminar) */
.comment-actions {
    margin-top: 10px;
}

.comment-actions a {
    margin-left: 5px;
}

/* Diseño en dispositivos móviles */
@media (max-width: 767px) {
    .comments-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 opiniones por fila */
    }

    .comment-header {
        text-align: center;
    }

    .comment-date {
        margin-top: 10px;
    }
}

/* Diseño en tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .comments-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 opiniones por fila */
    }

    .comment-header {
        text-align: center;
    }

    .comment-date {
        margin-top: 10px;
    }
}

/* Diseño en pantallas grandes */
@media (min-width: 1025px) {
    .comments-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 opiniones por fila */
    }
}

/* Estilo de los controles de paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-links {
    display: flex;
    align-items: center;
}

.step-links a,
.step-links span {
    margin: 0 5px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    background-color: #f8f9fa;
}

.step-links a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.step-links .current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}
