/* ================================================================= */
/* KOSZYK - shopping.php                                             */
/* ================================================================= */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    color: #222;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.cart-table tbody tr:hover {
    background-color: #f4f4f4;
    transition: background 0.2s;
}

.cart-table img {
    border-radius: 4px;
    max-width: 60px;
    vertical-align: middle;
}

.cart-table input[type="number"].qty {
    width: 60px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.2s;
}

.cart-table input[type="number"].qty:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.cart-table a {
    text-decoration: none;
    color: #d32f2f;
    font-weight: 600;
    transition: color 0.2s;
}

.cart-table a:hover {
    color: #b71c1c;
}

.buy-button {
    display: inline-block;
    padding: 10px 18px;
    background: #111;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.buy-button:hover {
    background: #222;
}

.buy-button:active {
    background: #000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .update-cart-btn {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .update-cart-btn {
        width: 100%;
    }
}


#total {
    font-weight: bold;
    font-size: 16px;
    color: #000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cart-table th,
    .cart-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .cart-table img {
        max-width: 50px;
    }

    button[name="update"] {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .cart-table th,
    .cart-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .cart-table img {
        max-width: 40px;
    }

    .cart-table input[type="number"].qty {
        width: 50px;
        padding: 4px;
    }
}
