/* ==========================================================================
   NOBI FASHION - TAG PAGE STYLES
   Tối ưu hiển thị danh sách sản phẩm và bài viết theo thẻ Tag
   ========================================================================== */

.nobifashion_tag_page {
    background-color: #fafbfc;
    min-height: 60vh;
    padding-bottom: 50px;
}

.nobifashion_tag_container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

/* ==========================================================================
   1. BREADCRUMB
   ========================================================================== */
.nobifashion_tag_breadcrumb {
    margin-bottom: 20px;
}

.nobifashion_tag_breadcrumb_list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 13.5px;
}

.nobifashion_tag_breadcrumb_item a {
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nobifashion_tag_breadcrumb_item a:hover {
    color: #e62e5c;
}

.nobifashion_tag_breadcrumb_item a svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.nobifashion_tag_breadcrumb_separator {
    color: #bbb;
    display: inline-flex;
    align-items: center;
}

.nobifashion_tag_breadcrumb_separator svg {
    width: 12px;
    height: 12px;
}

.nobifashion_tag_breadcrumb_item.active span {
    color: #e62e5c;
    font-weight: 600;
}

/* ==========================================================================
   2. TAG HEADER BANNER
   ========================================================================== */
.nobifashion_tag_header {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
    border: 1px solid #ffe0e5;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(230, 46, 92, 0.05);
    position: relative;
    overflow: hidden;
}

.nobifashion_tag_header::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(230, 46, 92, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nobifashion_tag_header_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffe6ec;
    color: #e62e5c;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.nobifashion_tag_header_badge svg {
    width: 13px;
    height: 13px;
}

.nobifashion_tag_header_title {
    font-size: 26px;
    font-weight: 700;
    color: #1e1e2f;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.nobifashion_tag_header_desc {
    color: #666;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    max-width: 800px;
}

.nobifashion_tag_header_meta {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nobifashion_tag_header_meta strong {
    color: #e62e5c;
    font-weight: 700;
}

/* ==========================================================================
   3. PRODUCT GRID
   ========================================================================== */
.nobifashion_tag_product_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nobifashion_tag_product_card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.nobifashion_tag_product_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(230, 46, 92, 0.12);
    border-color: #ffd2d2;
}

.nobifashion_tag_product_thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f7f7f7;
    overflow: hidden;
    display: block;
}

.nobifashion_tag_product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.nobifashion_tag_product_card:hover .nobifashion_tag_product_thumb img {
    transform: scale(1.06);
}

.nobifashion_tag_product_discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e62e5c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(230, 46, 92, 0.3);
}

.nobifashion_tag_product_info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nobifashion_tag_product_category {
    font-size: 11.5px;
    text-transform: uppercase;
    color: #8a8a8a;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.nobifashion_tag_product_name {
    font-size: 14px;
    font-weight: 600;
    color: #232629;
    line-height: 1.45;
    margin: 0 0 8px 0;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nobifashion_tag_product_name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nobifashion_tag_product_name a:hover {
    color: #e62e5c;
}

.nobifashion_tag_product_rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.nobifashion_tag_product_stars {
    display: inline-flex;
    gap: 2px;
}

.nobifashion_tag_product_stars svg {
    width: 12px;
    height: 12px;
    fill: #ffb800;
}

.nobifashion_tag_product_review_count {
    font-size: 11.5px;
    color: #999;
}

.nobifashion_tag_product_bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f2f2f2;
}

.nobifashion_tag_product_pricing {
    display: flex;
    flex-direction: column;
}

.nobifashion_tag_product_price_sale {
    font-size: 16px;
    font-weight: 700;
    color: #e62e5c;
    line-height: 1.2;
}

.nobifashion_tag_product_price_original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-top: 2px;
}

.nobifashion_tag_product_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    background: #ffffff;
    border: 1px solid #e62e5c;
    color: #e62e5c;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nobifashion_tag_product_btn:hover {
    background: #e62e5c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 46, 92, 0.25);
}

/* ==========================================================================
   4. POST GRID
   ========================================================================== */
.nobifashion_tag_post_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.nobifashion_tag_post_card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nobifashion_tag_post_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #ffd2d2;
}

.nobifashion_tag_post_thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f5f5f5;
    display: block;
}

.nobifashion_tag_post_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.nobifashion_tag_post_card:hover .nobifashion_tag_post_thumb img {
    transform: scale(1.05);
}

.nobifashion_tag_post_info {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nobifashion_tag_post_meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.nobifashion_tag_post_meta_category {
    background: #ffe6ec;
    color: #e62e5c;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.nobifashion_tag_post_title {
    font-size: 16px;
    font-weight: 700;
    color: #232629;
    line-height: 1.45;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nobifashion_tag_post_title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nobifashion_tag_post_title a:hover {
    color: #e62e5c;
}

.nobifashion_tag_post_excerpt {
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nobifashion_tag_post_footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nobifashion_tag_post_author {
    font-size: 12.5px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nobifashion_tag_post_readmore {
    font-size: 13px;
    font-weight: 600;
    color: #e62e5c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.nobifashion_tag_post_readmore:hover {
    gap: 8px;
}

.nobifashion_tag_post_readmore svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* ==========================================================================
   5. EMPTY STATE
   ========================================================================== */
.nobifashion_tag_empty {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    border: 1px solid #ebebeb;
    max-width: 500px;
    margin: 40px auto;
}

.nobifashion_tag_empty_icon {
    width: 64px;
    height: 64px;
    background: #fff0f3;
    color: #e62e5c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.nobifashion_tag_empty_icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

.nobifashion_tag_empty_title {
    font-size: 18px;
    font-weight: 700;
    color: #232629;
    margin-bottom: 8px;
}

.nobifashion_tag_empty_text {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
    line-height: 1.5;
}

.nobifashion_tag_empty_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e62e5c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(230, 46, 92, 0.25);
}

.nobifashion_tag_empty_btn:hover {
    background: #cc2a55;
    box-shadow: 0 6px 18px rgba(230, 46, 92, 0.35);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. PAGINATION
   ========================================================================== */
.nobifashion_tag_pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.nobifashion_tag_pagination .pagination,
.nobifashion_tag_pagination .blog-pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nobifashion_tag_pagination .page-item {
    margin: 0;
}

.nobifashion_tag_pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nobifashion_tag_pagination .page-link:hover {
    border-color: #e62e5c;
    color: #e62e5c;
    background: #fff5f7;
}

.nobifashion_tag_pagination .page-item.active .page-link {
    background: #e62e5c;
    border-color: #e62e5c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(230, 46, 92, 0.25);
}

.nobifashion_tag_pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7f7f7;
    border-color: #e5e5e5;
    color: #aaa;
}

.nobifashion_tag_pagination .page-item-dots .page-link {
    border-color: transparent;
    background: transparent;
    min-width: 24px;
    padding: 0 4px;
    color: #aaa;
    cursor: default;
}

.nobifashion_tag_pagination .page-link svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .nobifashion_tag_product_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .nobifashion_tag_post_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nobifashion_tag_container {
        padding: 16px 12px;
    }

    .nobifashion_tag_header {
        padding: 18px 20px;
        margin-bottom: 20px;
    }

    .nobifashion_tag_header_title {
        font-size: 22px;
    }

    .nobifashion_tag_product_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .nobifashion_tag_product_info {
        padding: 10px 10px 12px;
    }

    .nobifashion_tag_product_name {
        font-size: 13px;
        height: 38px;
    }

    .nobifashion_tag_product_price_sale {
        font-size: 14.5px;
    }

    .nobifashion_tag_product_btn {
        padding: 5px 8px;
        font-size: 11.5px;
    }

    .nobifashion_tag_post_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .nobifashion_tag_header_title {
        font-size: 20px;
    }

    .nobifashion_tag_product_grid {
        gap: 8px;
    }

    .nobifashion_tag_product_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nobifashion_tag_product_btn {
        width: 100%;
        text-align: center;
    }

    .nobifashion_tag_pagination .pagination,
    .nobifashion_tag_pagination .blog-pagination-list {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nobifashion_tag_pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 13px;
        border-radius: 6px;
    }

    .nobifashion_tag_pagination .page-item-dots {
        display: none !important;
    }

    .nobifashion_tag_pagination .page-item-first:not(.active),
    .nobifashion_tag_pagination .page-item-last:not(.active) {
        display: none !important;
    }
}
