/* css page archive */
/* Card tổng */
.post_card_horizontal {
    display: grid;
    grid-template-columns: 45% 55%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
}

/* Ảnh */
.post_card_horizontal .post_featured {
    position: relative;
}

.post_card_horizontal .post_thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Nội dung phải */
.post_card_horizontal .post_content_wrap {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badge category */
.post_category_badge {
    display: inline-block;
    background: #f3a2cf;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Title */
.post_card_horizontal .post_title {
    font-size: 25px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.post_card_horizontal .post_title a {
    color: #000;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post_card_horizontal .post_title a:hover {
    color: #dd3333;
}

/* Excerpt */
.post_card_horizontal .entry-content {
    font-size: 16px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 24px;
}

.post_content p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sp_bchay {
    margin-top: 10px;
}

/* Meta */
.post_card_horizontal .post_meta {
    font-size: 16px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post_card_horizontal .post_meta a {
    color: #000;
}

.post_header_cate .post_category .post_meta a {
    color: #fff;
}

.post_header_cate .post_category .post_meta {
    border-radius: 15px;
    background-color: #df0024;
    color: #ffffff;
    text-transform: uppercase;
    padding: 6px 17px 5px;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.6px;
    width: fit-content;
}

.mt_cts {
    position: relative;
}

.post_header_cate .post_category {
    margin-bottom: 15px;
}

.mt_cts:before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    margin-bottom: 20px;
    background-color: #111111;
    position: absolute;
    top: -12px;
}

.post_meta_separator i {
    font-size: 5px;
}

/* Wrapper ảnh */
.post_card_horizontal .post_featured {
    overflow: hidden;
}

/* Ảnh */
.post_card_horizontal .post_thumbnail {
    transition: transform 0.6s ease;
    will-change: transform;
}

/* Hover zoom */
.post_card_horizontal:hover .post_thumbnail {
    transform: scale(1.08);
}

/* Responsive */
@media (max-width: 768px) {
    .post_card_horizontal {
        grid-template-columns: 1fr;
    }

    .post_card_horizontal .post_content_wrap {
        padding: 25px;
    }

    .post_card_horizontal .post_title {
        font-size: 22px;
    }
}

.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f3f5;
    color: #555;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #dd3333;
    color: #fff;
}

.pagination .page-numbers.current {
    background: #dd3333;
    color: #fff;
}

/* Product Loop Variations */
.product-loop-variations {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    align-content: flex-start;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.loop-variation-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.loop-variation-label {
    color: #666;
    font-weight: 500;
}

.loop-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* Swatches styling */
.loop-variation-option {
    display: inline-block;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Color swatch (circle) */
.loop-variation-option.swatch-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.loop-variation-option.swatch-color:hover {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Text swatch (size / badge) */
.loop-variation-option.swatch-text {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
}

.loop-variation-option.swatch-text:hover {
    background-color: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-1px);
}

/* Active / Selected states */
.loop-variation-option.swatch-color.active,
.loop-variation-option.swatch-color.is-selected {
    outline: 2px solid #dd3333;
    outline-offset: 1px;
}

.loop-variation-option.swatch-text.active,
.loop-variation-option.swatch-text.is-selected {
    background-color: #dd3333;
    color: #fff;
    border-color: #dd3333;
}

/* Button Loading & Success States for AJAX Add to Cart */
.add_to_cart_button.loading,
.product_type_simple.loading {
    opacity: 0.7;
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.add_to_cart_button.loading::after,
.product_type_simple.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: loop-btn-spin 0.6s linear infinite;
}

@keyframes loop-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/**/
.archive .category-page-row {
    padding-top: 25px;
}