.book_detail_top {
    display: grid;
    grid-template-columns: 448px minmax(0, 1fr);
    gap: var(--space-64);
}
.book_detail_img {
    width: 448px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.book_detail_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book_detail_header {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding-bottom: var(--space-16);
}
.book_detail_genre {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-3);
    color: var(--primary-500);
}
.book_detail_title {
    font-size: var(--font-size-heading-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-1);
    color: var(--gray-800);
    word-break: keep-all;
}
.book_detail_author {
    font-size: var(--font-size-title-md);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-2);
    color: var(--gray-700);
}
.book_detail_meta {
    padding: var(--space-24) 0;
}
.list_meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.item_meta {
    display: flex;
    align-items: center;
}
.meta_label {
    width: 40px;
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-regular);
    color: var(--gray-600);
    line-height: var(--line-height-3);
}
.meta_value {
    flex: 1;
    font-size: var(--font-size-body-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-4);
    color: var(--gray-800);
}
.book_detail_hashtag {
    padding-bottom: var(--space-32);
}
.list_hashtag {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}
.item_hashtag {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--space-16);
    height: 30px;
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-3);
    color: var(--gray-600);
    background-color: var(--color-subtle);
    border-radius: var(--space-12);
}
.book_detail_purchase {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

/* 가격 영역 */
.book_detail_price {
    display: flex;
    align-items: center;
    gap: var(--space-64);
}
.price_info {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    flex-direction: column;
}
.price_info_tit {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-1);
    color: var(--gray-600);
}

/* 할인율 */
.rate_num {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444; /* 빨강 */
}

/* 판매가 */
.price {
    font-size: 28px;
    font-weight: 800;
    color: #111;
}

/* 정가 */
.custom_price {
    font-size: 16px;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* 구매 버튼 */
.btn_purchase {
    display: flex;
    align-items: center;
    justify-content: center;
    /*max-width: 520px;*/
    height: 56px;
    border-radius: 12px;

    background: var(--color-accent);
    color: #fff;

    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

/* hover */
.btn_purchase:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

/* 클릭 */
.btn_purchase:active {
    transform: scale(0.98);
}

.book_detail_bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.detail_left {
    display: flex;
    flex-direction: column;
    gap: var(--space-48);
    width: 790px;
}
.detail_section_content {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}
.detail_section_title {
    font-size: var(--font-size-heading-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-1);
    color: var(--gray-800);
}
.list_guide {
    margin-top: var(--space-16);
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}
.list_guide li {
    display: flex;
    flex-direction: column;
}
.list_guide h5 {
    font-size: var(--font-size-body-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-4);
    color: var(--gray-800);
}
.list_guide p {
    padding: var(--space-12);
    font-size: var(--font-size-body-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-4);
    color: var(--gray-800);
}

.detail_right {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    position: sticky;
    top: var(--space-24);
    width: 360px;
}
.book_purchase {
    border: 1px solid var(--color-border);
    border-radius: var(--space-16);
    overflow: hidden;
    background: #fff;
}

.book_purchase_head {
    padding: var(--space-24);
    background-color: var(--primary-100);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-title-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-2);
    color: var(--primary-700);
    word-break: keep-all;
}

.book_purchase_body {
    padding: var(--space-24);
}

.book_purchase_meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin: 0;
    padding: 0;
    list-style: none;
}

.book_purchase_meta_item {
    display: flex;
    justify-content: space-between;
    gap: var(--space-16);
}

.book_purchase_meta_label {
    flex: 0 0 auto;
    font-size: var(--font-size-body-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-4);
    color: var(--gray-600);
}

.book_purchase_meta_value {
    min-width: 0;
    text-align: right;
    font-size: var(--font-size-body-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-4);
    color: var(--gray-800);
}

.book_purchase_foot {
    padding: var(--space-20) var(--space-24) var(--space-24);
    border-top: 1px solid var(--color-border);
}

.book_purchase_price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    margin-bottom: var(--space-24);
}
.book_purchase_price h6 {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-1);
    color: var(--gray-600);
}
.book_purchase_price_origin {
    font-size: var(--font-size-body-lg);
    font-weight: var(--font-weight-regular);
    color: var(--gray-500);
    text-decoration: line-through;
}

.book_purchase_price_current {
    font-size: var(--font-size-heading-md);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-1);
    color: var(--gray-800);
}

.book_purchase_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border-radius: var(--space-12);
    background-color: var(--color-accent);
    color: #fff;
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.book_purchase_btn:hover {
    background-color: var(--color-accent-hover);
}

.book_notice {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-16) var(--space-24);
    background-color: var(--color-subtle);
    border-radius: var(--space-16);
}

.book_notice_icon {
    flex: 0 0 auto;
    width: 22px;
}

.book_notice_icon img {
    display: block;
    width: 100%;
}

.book_notice_text {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-3);
    color: var(--gray-800);
}

@media screen and (max-width: 1024px) {
    .book_detail_top {
        gap: var(--space-32);
        grid-template-columns: 1fr;
    }
    .book_detail_img {
        width: 100%;
        box-sizing: border-box;
    }
    .list_meta {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .meta_label {
        font-size: var(--font-size-body-md);
        width: 100px;
    }
    .book_detail_bottom {
        flex-direction: column;
    }
    .detail_left {
        width: 100%;
    }
    .detail_right {
        position: relative;
        width: 100%;
    }
    .list_guide p {
        word-break: keep-all;
    }
}