/* Ogólne */
form {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Segoe UI", sans-serif;
}

/* Tabela koszyka */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background-color: #f4f4f4;
}

th,
td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 16px;
}

td input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 14px;
}

/* Przycisk usuń i aktualizuj */
.btn {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-remove {
    background-color: #dc3545;
}

.btn-remove:hover {
    background-color: #b02a37;
}

/* Style dla koszyka */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.total {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Przycisk Zamawiam */
.actions .btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 150px;
    text-align: center;
}

.actions .btn:hover {
    background: linear-gradient(135deg, #218838, #1cc88a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

/* Responsywność dla działań koszyka */
@media (max-width: 768px) {
    .actions {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .total {
        font-size: 20px;
    }

    .actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Style dla tabeli koszyka */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background: #f8f9fa;
}

/* Style dla przycisków w tabeli */
.btn-remove {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-remove:hover {
    background: #c82333;
    transform: translateY(-1px);
}

table .btn {
    background: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

table .btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Style dla pól ilości */
input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Sekcja lewa w działaniach */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Przycisk Kontynuuj zakupy */
.btn-continue {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.btn-continue:hover {
    color: #007bff;
}

/* Responsywność dla sekcji lewej */
@media (max-width: 768px) {
    .left-section {
        order: 2;
        align-items: center;
        gap: 10px;
    }

    .btn-continue {
        align-self: center;
    }
}

/* Responsywność dla tabeli */
@media (max-width: 768px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
        background: white;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #495057;
    }

    td:last-child {
        border-bottom: none;
    }
}

/* Style dla pustego koszyka */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.empty-cart p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

.empty-cart .btn {
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.empty-cart .btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Style dla tytułu koszyka */
.h1.text-center {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.h1.text-center h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}