/* Detail Page Styles */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.detail {
    padding: 20px 0;
}

/* Layout chính */
.detail__content__account {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Phần hình ảnh */
.content__image {
    width: 100%;
}

.content__image__header {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.content__img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.content__img:hover {
    transform: scale(1.02);
}

.content__image__footer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.content__image__footer__img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid transparent;
}

.content__image__footer__img:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

/* Phần thông tin tài khoản */
.content__info_account {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Trạng thái */
.account__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.account__status--available {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.account__status--sold {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Giá */
.account__price {
    /* background: #f8f9fa; */
    background: linear-gradient(100deg, rgb(255, 66, 78), rgb(253, 130, 10));
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.account__price__original {
    font-size: 16px;
    text-decoration: line-through;
    color: #ccc;
    margin-bottom: 5px;
}

.account__price__current {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.account__price__discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Buttons */
.account__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.account__btn--buy {
    background: var(--primary-color);
    color: white;
}

.account__btn--buy:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.account__payment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.account__btn--card,
.account__btn--bank {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.account__btn--card:hover,
.account__btn--bank:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Thông tin chi tiết */
.account__info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.account__info__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.detail__info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.detail__info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail__info-item--full {
    flex: 0 0 100%;
}

.detail__info-label {
    color: #6c757d;
    font-size: 14px;
}

.detail__info-value {
    font-weight: 600;
}

.detail__info-value--highlight {
    color: #dc3545;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal__content {
    background-color: #fff;
    border-radius: 10px;
    max-width: 500px;
    margin: 50px auto;
    width: 90%;
    position: relative;
    animation: modalOpen 0.3s;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.modal__close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal__body {
    padding: 20px;
}

.modal__info {
    margin-bottom: 20px;
}

.modal__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.modal__label {
    color: #6c757d;
}

.modal__value--price {
    font-weight: 700;
    color: #dc3545;
}

.modal__input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.modal__btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.modal__btn--check {
    background: #6c757d;
    color: white;
    margin-left: 10px;
}

.modal__notice {
    padding: 15px;
    background-color: #fff3cd;
    border-radius: 5px;
    color: #856404;
    margin-top: 15px;
}

.modal__footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
}

.modal__btn--card {
    background: #198754;
    color: white;
    flex: 1;
}

.modal__btn--wallet {
    background: #0d6efd;
    color: white;
    flex: 1;
}

.modal__btn--close {
    background: #6c757d;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .detail__content__account {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .content__image__footer {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .detail__info-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .detail__content__account {
        padding: 15px;
    }
    
    .content__image__footer {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .account__payment {
        grid-template-columns: 1fr;
    }
    
    .modal__content {
        width: 95%;
        margin: 30px auto;
    }
    
    .modal__footer {
        flex-direction: column;
    }
    .content__image__footer {
        grid-template-columns: repeat(6, auto);
    }
}