/* Knjige — korpa i izbor paketa na stranicama knjiga (#order) */

.order-section.white-background {
    background-color: #ffffff;
    color: #000000 !important;
}

.cart {
    margin-top: 30px;
    margin-bottom: 30px;
}

.cart .title {
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.cart .empty {
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    color: #7d7d7d;
    text-align: center;
    padding: 20px;
}

.cart .cart_items table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.cart .cart_items th,
.cart .cart_items td {
    border: 1px solid #ccc;
    padding: 10px 12px;
    text-align: left;
}

.cart .cart_items th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.cart .cart_items tr.cart-total-row td {
    font-weight: bold;
    background-color: #f9f9f9;
}

.cart .cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart .cart-qty-controls .qty-value {
    min-width: 28px;
    text-align: center;
    display: inline-block;
}

.cart .cart-qty-controls .btn-qty {
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
}

.cart .cart-qty-controls .btn-qty:hover {
    background-color: #eee;
}

.cart .cart-item-img {
    max-width: 50px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.cart .cart-order-link {
    margin-top: 15px;
}

.book_options .book {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

.book_options .title {
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.book_options .book img {
    width: 70%;
}

.book_options .book.featured img {
    width: 90%;
}

.book_options .book .book-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 20px;
}

.book_options .book .book-price {
    font-size: 18px;
    margin-bottom: 20px;
}

.book_options .book .book-discount {
    font-size: 16px;
    margin-bottom: 20px;
}

.book_options .book.featured .book-title {
    font-size: 25px;
}

/* Dugmići po knjizi – boje iz featuredBook, sva Bootstrap stanja */
/* biznis_bukvar: teal #51a8b4 */
.order-section.biznis_bukvar .btn-primary {
    background-color: #51a8b4;
    color: #ffffff;
    border-color: #51a8b4;
}
.order-section.biznis_bukvar .btn-primary:hover,
.order-section.biznis_bukvar .btn-primary:focus,
.order-section.biznis_bukvar .btn-primary.focus {
    background-color: #4599a3;
    color: #ffffff;
    border-color: #3d8a93;
    box-shadow: 0 0 0 0.2rem rgba(81, 168, 180, 0.5);
}
.order-section.biznis_bukvar .btn-primary:active,
.order-section.biznis_bukvar .btn-primary.active {
    background-color: #3d8a93;
    color: #ffffff;
    border-color: #357a83;
}

/* zenska_snaga: peach #f7c8a5 */
.order-section.zenska_snaga .btn-primary {
    background-color: #f7c8a5;
    color: #ffffff;
    border-color: #f7c8a5;
}
.order-section.zenska_snaga .btn-primary:hover,
.order-section.zenska_snaga .btn-primary:focus,
.order-section.zenska_snaga .btn-primary.focus {
    background-color: #e5b894;
    color: #ffffff;
    border-color: #d9a97e;
    box-shadow: 0 0 0 0.2rem rgba(247, 200, 165, 0.5);
}
.order-section.zenska_snaga .btn-primary:active,
.order-section.zenska_snaga .btn-primary.active {
    background-color: #d9a97e;
    color: #ffffff;
    border-color: #c9986a;
}

/* finansijska_nezavisnost: teal #51a8b4 */
.order-section.finansijska_nezavisnost .btn-primary {
    background-color: #51a8b4;
    color: #ffffff;
    border-color: #51a8b4;
}
.order-section.finansijska_nezavisnost .btn-primary:hover,
.order-section.finansijska_nezavisnost .btn-primary:focus,
.order-section.finansijska_nezavisnost .btn-primary.focus {
    background-color: #4599a3;
    color: #ffffff;
    border-color: #3d8a93;
    box-shadow: 0 0 0 0.2rem rgba(81, 168, 180, 0.5);
}
.order-section.finansijska_nezavisnost .btn-primary:active,
.order-section.finansijska_nezavisnost .btn-primary.active {
    background-color: #3d8a93;
    color: #ffffff;
    border-color: #357a83;
}

/* Tablet */
@media (max-width: 991px) {
    .cart .cart_items table {
        font-size: 14px;
    }
    .cart .cart_items th,
    .cart .cart_items td {
        padding: 8px 10px;
    }
    .book_options .book .row {
        flex-wrap: wrap;
    }
    .book_options .book .col-2:first-child {
        flex: 0 0 80px;
        max-width: 80px;
    }
    .book_options .book .col-8 {
        flex: 1;
        min-width: 0;
    }
    .book_options .book .col-2:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 15px;
    }
    .book_options .book .col-2:last-child .btn {
        width: 100%;
    }
    .cart-order-link {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Mobilni – korpa u kartici, knjige u stacku */
@media (max-width: 767px) {
    .order-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .cart .title,
    .book_options .title {
        font-size: 18px;
    }
    .cart .cart_items thead {
        display: none;
    }
    .cart .cart_items tbody tr {
        display: block;
        border: 1px solid #ccc;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        border-radius: 6px;
    }
    .cart .cart_items tbody tr.cart-total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-radius: 4px;
    }
    .cart .cart_items tbody tr.cart-total-row td {
        border: none;
        padding: 4px 0;
    }
    .cart .cart_items tbody tr.cart-total-row td::before {
        display: none;
    }
    .cart .cart_items tbody tr.cart-total-row td:first-child {
        flex: 1;
    }
    .cart .cart_items tbody tr.cart-total-row td:last-child {
        text-align: right;
    }
    .cart .cart_items td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: none;
        padding: 8px 0;
        gap: 12px;
    }
    .cart .cart_items td::before {
        content: attr(data-label);
        font-weight: bold;
        flex-shrink: 0;
        min-width: 70px;
    }
    .cart .cart_items td:first-child::before {
        content: none;
    }
    .cart .cart_items td:first-child {
        justify-content: flex-start;
    }
    .cart .cart-item-img {
        max-width: 60px;
        max-height: 75px;
    }
    .cart .cart-qty-controls .btn-qty {
        width: 36px;
        height: 36px;
        font-size: 20px;
        min-width: 36px;
        min-height: 36px;
    }
    .cart-order-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    .book_options .book {
        margin-top: 20px;
        padding-bottom: 20px;
    }
    .book_options .book .row {
        display: flex;
        flex-wrap: wrap;
    }
    .book_options .book .col-2:first-child {
        flex: 0 0 25%;
        max-width: 25%;
        text-align: left;
        margin-bottom: 0;
    }
    .book_options .book .col-8 {
        flex: 0 0 75%;
        max-width: 75%;
        min-width: 0;
    }
    .book_options .book img {
        width: 100%;
        max-width: none;
    }
    .book_options .book.featured img {
        width: 100%;
        max-width: none;
    }
    .book_options .book .book-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    .book_options .book .book-price {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .book_options .book .col-2:last-child {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }
    .book_options .book .btn-add-to-cart {
        width: 100%;
        padding: 12px 20px;
    }
}
