body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
}

/* 🔹 Contenedor principal */
.view-post {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
}

/* 🔹 Botones arriba */
.view-post-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.view-post-buttons button,
.view-post-buttons a {
    padding: 10px 18px;
    background-color: #9f2241;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: background-color .3s, transform .2s;
    cursor: pointer;            /* 👈 ahora el cursor cambia */
    z-index: 10;                /* evita que algo lo tape */
}


.view-post-buttons button:hover,
.view-post-buttons a:hover {
    background-color: #7c1a34;
    transform: scale(1.04);
}

/* 🔹 Detalles principales arriba */
.view-post-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.view-post-header h2 {
    font-size: 28px;
    color: #9f2241;
    font-weight: 700;
    margin: 10px 0 5px;
}

.view-post-header p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.view-post-meta {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

/* 🔹 Galería */
.view-post-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Imagen principal */
.view-post-main {
    margin-bottom: 10px;
}

#mainImage {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Miniaturas */
.view-post-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery-thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    opacity: 1;
}

.gallery-thumbnail.selected {
    opacity: 1;
    border: 2px solid #9f2241;
}

/* 🔹 Lista de atributos */
.product-details {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.product-details li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
}

/* 🔹 Fancybox */
.fancybox__container {
    z-index: 9999;
}

/* 🔹 Responsive */
@media (max-width: 768px) {
    .view-post {
        padding: 20px;
    }

    .view-post-buttons {
        justify-content: center;
    }

    .view-post-gallery {
        gap: 10px;
    }

    .gallery-thumbnail {
        width: 70px;
        height: 70px;
    }

    #mainImage {
        max-width: 90vw;
    }

    .view-post-header {
        text-align: center;
    }
}
