/* Knjige — stranica porudžbine (books/order) */

.order-section .cart { margin-top: 20px; margin-bottom: 30px; }
.order-section .cart .title { font-size: 20px; font-weight: bold; border-bottom: 1px solid #ccc; margin-bottom: 10px; padding-bottom: 10px; }
.order-section .cart .empty { border: 1px solid #ccc; background-color: #f4f4f4; color: #7d7d7d; text-align: center; padding: 20px; }
.order-section .cart .cart_items table { width: 100%; border-collapse: collapse; }
.order-section .cart .cart_items th,
.order-section .cart .cart_items td { border: 1px solid #ccc; padding: 10px 12px; text-align: left; }
.order-section .cart .cart_items th { background-color: #f4f4f4; font-weight: bold; }
.order-section .cart .cart_items tr.cart-total-row td { font-weight: bold; background-color: #f9f9f9; }
.order-section .cart .cart-item-img { max-width: 50px; max-height: 60px; object-fit: contain; display: block; }
.order-form-wrapper { margin-top: 30px; padding-top: 20px; border-top: 1px solid #ccc; }
.order-form-wrapper h3 { font-size: 18px; margin-bottom: 15px; }
.book-order-form .form-row { display: flex; flex-wrap: wrap; margin-bottom: 15px; gap: 15px; }
.book-order-form .form-item { flex: 1 1 200px; min-width: 0; }
.book-order-form .form-item-full { flex: 1 1 100%; }
.book-order-form .form-item input { width: 100%; max-width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; }

.book-order-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: 4px;
}
.book-order-message--error { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.book-order-message--success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }

/* Tablet */
@media (max-width: 991px) {
    .order-section .cart .cart_items table { font-size: 14px; }
    .order-section .cart .cart_items th,
    .order-section .cart .cart_items td { padding: 8px 10px; }
}

/* Mobilni – korpa u kartici */
@media (max-width: 767px) {
    .order-section .container { padding-left: 15px; padding-right: 15px; }
    .order-section .cart .title { font-size: 18px; }
    .order-section .cart .cart_items thead { display: none; }
    .order-section .cart .cart_items tbody tr {
        display: block;
        border: 1px solid #ccc;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        border-radius: 6px;
    }
    .order-section .cart .cart_items tbody tr.cart-total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-radius: 4px;
    }
    .order-section .cart .cart_items tbody tr.cart-total-row td {
        border: none;
        padding: 4px 0;
    }
    .order-section .cart .cart_items tbody tr.cart-total-row td::before { display: none; }
    .order-section .cart .cart_items tbody tr.cart-total-row td:first-child { flex: 1; }
    .order-section .cart .cart_items tbody tr.cart-total-row td:last-child { text-align: right; }
    .order-section .cart .cart_items td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: none;
        padding: 8px 0;
        gap: 12px;
    }
    .order-section .cart .cart_items td::before {
        content: attr(data-label);
        font-weight: bold;
        flex-shrink: 0;
        min-width: 70px;
    }
    .order-section .cart .cart_items td:first-child::before { content: none; }
    .order-section .cart .cart_items td:first-child { justify-content: flex-start; }
    .order-section .cart .cart-item-img {
        max-width: 60px;
        max-height: 75px;
    }
}
