.top-banner{
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
}
.book-title{
    font-size: 28px;
    font-weight: 600;
    color: #000;
}
.book-text{
    line-height: 2.5;
    font-size: 14px;
    width: 100%;
    white-space: normal;    /* متن اجازه داره به خط بعدی بره */
    overflow-wrap: break-word; /* اگر کلمه خیلی طولانی بود، می‌شکنه */
    word-wrap: break-word;
    overflow: hidden;
}
.book-text video{
    width: 100%;
    height: auto;
}
.book-text img{
    width: 100%;
    height: auto;
}
.card-book{
    display: flex;
    align-items: center;
    border-radius: 3px;
    padding: 20px;
    background-color: #f4f4f4;
    margin-bottom: 20px;
}
.product-book{
    margin-top: 30px;
    border-radius: 3px;
    padding: 20px;
    background-color: #f4f4f4;
}
.comment-card{
    display: flex;
    border-radius: 3px;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 20px;
}
.line-book {
    height: 1px;
    border: 1px solid #e7e7e7;
}
.product-info-btn button {
    background: transparent;
    border: 0;
    font-size: 16px;
    color: #808080;
    transition: 0.3s;
}
.book-details img{
    width: 100%;
    border-radius: 3px;
}
.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    padding-top: 12px;
}

.product-row-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-order-count {
    display: flex;
    align-items: center;
    max-width: 188px;
    height: 50px;
    border: 1px solid #00000033;
    border-radius: 14px;
    padding: 5px 7px;
}
.product-order-count button {
    width: 100%;
    text-align: center;
    border: 0;
    padding-top: 5px;
    font-size: 14px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    background: #A6A6A6;
    border-radius: 8px;
    color: #fff;
}
.product-order-count input {
    width: 100%;
    text-align: center;
    height: 100%;
    border: 0;
    outline: none;
    cursor: unset;
    font-size: 21px;
    font-weight: 600;
}
.product-price-body {
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center; /* وسط‌چین کل آیتم‌ها */
    align-items: center;     /* عمودی وسط */
    gap: 15px;               /* فاصله بین آیتم‌ها */
    flex-wrap: wrap;         /* در صورت کوچک شدن صفحه، سطر بعدی */
}

.product-price {
    font-size: 30px;
    font-weight: 600;
    color: #151313;
}

.product-price-off {
    font-size: 22px;
    color: #949494;
    text-decoration: line-through;
}

.card-product-discount {
    font-size: 18px;
    background: #e22d26;
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: 600;
}
.product-btn-add {
    height: 60px;
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
    width: 100%;
    transition: 0.3s;
    margin-top: 20px;
    border: 0;
    background: var(--color1);
    color: #fff;
    border-radius: 60px;
}

.product-btn-add:hover {
    background: var(--color2);
    color: #fff;
}
.discount-code{
    border-radius: 30px;
    background-color: #ecebeb;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    font-size: 18px;
    border: 2px solid #a6a6a6;
}
.discount-code button {
    border-radius: 0 30px 30px 0;
    background-color: #a6a6a6;
    height: 100%;
    width: 60px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.5s;
}
.discount-code button:hover {
    background: var(--color1);
}

.discount-code input {
    flex: 1;
    outline: none;
    height: 100%;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 5px;
    padding-right: 15px;
    font-size: 16px;
}


@media (max-width: 767px) {
    .top-banner {
        margin-top: 25px;
    }
}

/*comment */
.comment-box-card {
    margin-top: 20px;
    border-radius: 3px;
    padding: 20px;
    background-color: #f4f4f4;
    margin-bottom: 20px;
}
.product-comment-title {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}
.comment-item {
    margin-top: 25px;
    border-bottom: 1px solid #DBDBDB;
    padding-bottom: 20px;
}

.comment-item:last-child {
    border: 0;
    padding-bottom: 0;
}

.comment-item-info {
    display: flex;
    align-items: center;
}

.comment-item-info i {
    background: #C9C9C9;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    margin-left: 15px;
}

.comment-item-user {
    font-size: 16px;
    font-weight: 600;
    color: #7A7A7A;
    margin-left: 10px;
}

.comment-item-date {
    font-size: 14px;
    color: #7A7A7A;
}

.comment-item-text {
    font-size: 14px;
    margin-top: 15px;
}


/*  purchase-type  */
.purchase-type {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: space-around;
    margin-top: 20px;
}

.purchase-option {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

/* حالت فعال (جزئی یا عمده) */
.purchase-option.active {
    border-color: var(--color2);
    background-color: var(--color2);
    color: #fff;
}

/* اگر بخوای رنگ عمده فرق کنه */
.purchase-option.wholesale.active {
    border-color: #28a745;
    background-color: #28a745;
}

/* پنهان کردن رادیو */
.purchase-type input[type="radio"] {
    display: none;
}