/* Estilos personalizados para el Blog - Específicos para evitar conflictos */

/* Contenedor del blog */
.blog-grid-view.posts-list {
    margin-top: 20px;
}

/* Artículos del blog */
.blog-grid-view .post-entry.post-blog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-grid-view .post-entry.post-blog:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Imagen del artículo */
.blog-grid-view .post-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #f8f9fa;
}

.blog-grid-view .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-grid-view .post-entry:hover .post-image img {
    transform: scale(1.05);
}

.blog-grid-view .post-thumbnail {
    display: block;
    height: 100%;
}

/* Contenido del post - Específico para blog */
.blog-grid-view .post-content {
    padding: 30px;
}

/* Meta información - Específico para blog */
.blog-grid-view .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.blog-grid-view .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-grid-view .post-meta i {
    color: #e91e63;
    font-size: 16px;
}

/* Título del post - Específico para blog */
.blog-grid-view .post-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-grid-view .post-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-grid-view .post-title-link:hover {
    color: #e91e63;
    text-decoration: none;
}

/* Extracto - Específico para blog */
.blog-grid-view .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-grid-view .post-excerpt p {
    margin: 0;
}

/* Footer del post - Específico para blog */
.blog-grid-view .post-footer {
    margin-top: 20px;
}

.button.button-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #e91e63;
    color: #e91e63;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button.button-outline:hover {
    background: #e91e63;
    color: #fff;
    text-decoration: none;
}

.button.button-outline i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.button.button-outline:hover i {
    transform: translateX(5px);
}

/* Sidebar - Solo para el blog */
.site-content .sidebar.right-sidebar {
    padding-left: 30px;
}

/* Bloques del sidebar - Solo para widgets del blog */
.sidebar .block.block-post-list,
.sidebar .block.block-product-cats,
.sidebar .block.block-tags {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar .block-post-list .block-title,
.sidebar .block-product-cats .block-title,
.sidebar .block-tags .block-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e91e63;
}

.sidebar .block-post-list .block-title h2,
.sidebar .block-product-cats .block-title h2,
.sidebar .block-tags .block-title h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Lista de posts populares - Específico para sidebar del blog */
.block-post-list .posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.block-post-list .post-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.block-post-list .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.block-post-list .post-item-wrap {
    display: flex;
    gap: 15px;
}

.block-post-list .post-item .post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 5px;
}

.block-post-list .post-item .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-post-list .post-item .post-content {
    flex: 1;
    padding: 0;
}

.block-post-list .post-item .post-title {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.block-post-list .post-item .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.block-post-list .post-item .post-title a:hover {
    color: #e91e63;
}

.block-post-list .post-item .post-time {
    font-size: 12px;
    color: #999;
}

/* Categorías - Específico para sidebar del blog */
.sidebar .block-product-cats .product-cats-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .block-product-cats .product-cats-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar .block-product-cats .product-cats-list li:last-child {
    border-bottom: none;
}

.sidebar .block-product-cats .product-cats-list a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.sidebar .block-product-cats .product-cats-list a:hover {
    color: #e91e63;
}

.sidebar .block-product-cats .product-cats-list .count {
    color: #999;
    font-size: 14px;
}

/* Tags - Específico para sidebar del blog */
.sidebar .block-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.sidebar .block-tags .tag-item {
    display: inline-block;
    padding: 5px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar .block-tags .tag-item:hover {
    background: #e91e63;
    color: #fff;
    text-decoration: none;
}

/* Paginación */
.pagination-wrapper {
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: .25rem;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 10px 15px;
    margin-left: -1px;
    line-height: 1.25;
    color: #666;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #e91e63;
    border-color: #e91e63;
}

.pagination .page-link:hover {
    z-index: 2;
    color: #fff;
    text-decoration: none;
    background-color: #e91e63;
    border-color: #e91e63;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

/* No posts found */
.no-posts-found {
    background: #fff;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.no-posts-found h3 {
    color: #333;
    margin: 20px 0 10px;
}

.no-posts-found .text-muted {
    color: #999;
}

/* Responsive - Específico para blog */
@media (max-width: 991px) {
    .site-content .sidebar.right-sidebar {
        padding-left: 15px;
        margin-top: 40px;
    }

    .blog-grid-view .post-image {
        height: 250px;
    }

    .blog-grid-view .post-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .blog-grid-view .post-content {
        padding: 20px;
    }

    .blog-grid-view .post-image {
        height: 200px;
    }

    .sidebar .block.block-post-list,
    .sidebar .block.block-product-cats,
    .sidebar .block.block-tags {
        padding: 20px;
    }

    .site-content .sidebar.right-sidebar {
        padding-left: 0;
    }
}

/* Utilidades - Específicas para el blog para evitar conflictos */
.blog-grid-view .m-b-60 {
    margin-bottom: 60px !important;
}

.sidebar .m-t-20 {
    margin-top: 20px !important;
}

.sidebar .m-t-40 {
    margin-top: 40px !important;
}

.no-posts-found.p-5 {
    padding: 3rem !important;
}

.blog-grid-view .img-fluid {
    max-width: 100%;
    height: auto;
}

.blog-grid-view .w-100 {
    width: 100% !important;
}

.no-posts-found.text-center {
    text-align: center !important;
}

.no-posts-found .text-muted {
    color: #6c757d !important;
}

.pagination-wrapper .justify-content-center {
    justify-content: center !important;
}