/* assets/css/paypay-app.css */
.paypay-on-demand-tool {
    font-family: Arial, sans-serif;
    mmax-width: 900px;
    margin: 5px auto;
    bborder: 1px solid #ddd;
    padding: 5px;
    border-radius: 8px;
}
.paypay-form {
    display: flex;
    margin-bottom: 20px;
}
.paypay-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}
.paypay-form button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #d90000; /* PayPay color */
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}
.paypay-loader {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #555;
}
.paypay-error {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #d90000;
    background: #fff0f0;
    border: 1px solid #d90000;
}
/* Danh sách kết quả (Feature 2) */
.paypay-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.paypay-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.paypay-item-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.paypay-image-figure {
    position: relative;
    margin: 0;
}
.paypay-item-sold-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 45px;
    height: 45px;
}
.paypay-item-info {
    padding: 15px;
}
.paypay-item-name {
    font-size: 14px;
    font-weight: bold;
    height: 3em; /* Giới hạn 2 dòng */
    overflow: hidden;
    margin-bottom: 10px;
}
.paypay-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #d90000;
    margin-bottom: 15px;
}
/* Nút Mua (Feature 4) */
.btn-buy-now,
.btn-view-detail {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #00b900;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    font-size: 14px; /* Thêm để đồng bộ */
}
.btn-view-detail:hover {
    background-color: #00a000;
    color: white;
}
.btn-buy-now.loading {
    background-color: #aaa;
    cursor: not-allowed;
}
.btn-buy-now.success {
    background-color: #0073e6;
}
/* Trang chi tiết (Feature 3) */
.paypay-detail h2 {
    font-size: 24px;
}
.paypay-detail-price {
    font-size: 28px;
    font-weight: bold;
    color: #d90000;
    margin: 10px 0;
}
.paypay-detail-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.paypay-detail-seller img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.paypay-detail-images {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.paypay-detail-images img {
    width: 100%;
    border-radius: 4px;
}
.paypay-detail-desc {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    line-height: 1.6;
    margin: 20px 0;
}