/* Book Details Page Styles */
.book-details-main {
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #4F5FE8;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.book-image-container {
    display: flex;
    justify-content: center;
}

.book-image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.book-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.badge.category {
    background-color: rgba(79, 95, 232, 0.1);
    color: #4F5FE8;
}

.badge.subject {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.book-info h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .book-info h1 {
        font-size: 28px;
    }
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating .star {
    color: #ffc107;
    font-size: 20px;
}

.rating .star.empty {
    color: #e5e7eb;
}

.rating-text {
    color: #6b7280;
    margin-right: 8px;
}

.price-box {
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 12px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
    color: #4F5FE8;
}

.price-currency {
    color: #6b7280;
}

.price-note {
    font-size: 14px;
    color: #6b7280;
}

.description-box h3,
.features-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.description-box p {
    color: #6b7280;
    line-height: 1.8;
}

.features-box {
    background-color: #eff6ff;
    padding: 32px;
    border-radius: 12px;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.features-list .check {
    color: #10b981;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.btn-order {
    width: 100%;
    padding: 20px;
    background-color: #4F5FE8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
}

.btn-order:hover {
    background-color: #3d4bc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 95, 232, 0.3);
}

.related-section {
    margin-top: 80px;
}

.related-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.related-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover img {
    transform: scale(1.1);
}

.related-card-content {
    padding: 20px;
}

.related-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #4F5FE8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #1a1a1a;
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: #6b7280;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4F5FE8;
}

.order-summary {
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #4F5FE8;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #4F5FE8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #3d4bc7;
}

.success-message {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.success-message h2 {
    margin-bottom: 16px;
}

.success-message p {
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}
