/* Product */
.woocommerce ul.products li.product {
    border: 1px solid #F5F5F5;
    border-radius: 8px;
    background: #fff;
}

.woocommerce ul.products li.product .ct-media-container {
    margin-bottom: 16px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-bottom: 8px;
}

.woocommerce ul.products li.product .price {
    display: block;                    /* Trở về block bình thường */
    margin-bottom: 16px;
    line-height: 150%;
    padding: 0 16px;
             /* Căn giữa toàn bộ giá */
}

.woocommerce ul.products {
    gap: 24px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .ct-woo-card-actions {
    padding-left: 16px;
    padding-right: 16px;
}

.woocommerce ul.products li.product .ct-woo-card-actions {
    padding-bottom: 16px;
}

.woocommerce ul.products li.product .price .price {
    padding-left: 0;
    padding-right: 0;
}

/* Khối giá chi tiết: nằm ngang, chỉ wrap khi cần */
.price.custom-sale-order {
    display: flex;
    gap: 12px;                        
    width: 100%;
    max-width: 100%;
    overflow: hidden;          
}

/* Giá mới - nổi bật nhất */
.custom-sale-order ins {
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Giá cũ */
.custom-sale-order del {
    opacity: 0.5;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px;
}

/* Phần trăm giảm */
.woo-discount-percent {
    padding: 4px 8px;
    background: #FEFEE8;
    color: #212121;  
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    line-height: 145%;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive: cho phép xuống dòng chỉ trên mobile/tablet nhỏ */
@media (max-width: 768px) {
    .price.custom-sale-order {
        flex-wrap: wrap;               /* Bắt đầu cho phép wrap */
        gap: 8px;
    }
    
    .custom-sale-order ins {
        font-size: 1.2em;

    }
    
    .custom-sale-order del,
    .woo-discount-percent {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .price.custom-sale-order {
        gap: 6px;
    }
    
    .woo-discount-percent {
        padding: 3px 6px;
        font-size: 13px;
    }
}

/* Nút hành động - giữ nguyên hoàn toàn */
.woocommerce ul.products li.product .button {
    background: transparent;
    border: 1.5px solid #D1D5DB;
    color: #757575;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    transition: all .25s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--theme-palette-color-4);
    color: #ffffff;
    border-color: var(--theme-palette-color-4);
}

.woocommerce ul.products li.product .ct-woo-card-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.woocommerce ul.products li.product .ct-woo-card-actions .button {
    flex: 1;
    text-align: center;
    border-radius: 12px;
}

.btn-view-detail {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    color: #757575;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-decoration: none;
    transition: all .25s ease;
}

.btn-view-detail:hover {
    color: #757575;
}