/* Cart Page Styles */
.cart-section {
    padding: 2rem 1rem;
    padding-bottom: 100px; /* extra for fixed footer */
    max-width: 1200px;
    margin: 0 auto;
}

.cart-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1rem;
    color: #555;
}

.empty-cart .btn {
    margin-top: 1rem;
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.cart-table th, .cart-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

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

.cart-table td input[type="number"] {
    width: 60px;
    padding: 0.3rem 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* Buttons */
.cart-table .btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #059E84;
    color: #fff;
    border: none;
    transition: 0.25s;
}

.btn-primary:hover {
    background-color: #048a72;
}

.btn-secondary {
    background-color: #2d465e;
    color: #fff;
    border: none;
    transition: 0.25s;
}

.btn-secondary:hover {
    background-color: #1e2f45;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    transition: 0.25s;
}

.btn-danger:hover {
    background-color: #b02a37;
}

/* Cart Summary */
.cart-summary {
    text-align: right;
    font-size: 1rem;
    margin-top: 1rem;
}

.cart-summary p {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.cart-summary a, .cart-summary button {
    margin-left: 0.5rem;
}

/* Fixed Footer */
.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8f9fa;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #ddd;
    z-index: 1000;
}

.cart-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cart-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.cart-footer a {
    color: #059E84;
    text-decoration: none;
    font-weight: 500;
}

.cart-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-table th, .cart-table td {
        font-size: 0.85rem;
        padding: 0.5rem 0.3rem;
    }

    .cart-summary {
        text-align: center;
    }

    .cart-footer .container {
        flex-direction: column;
        gap: 0.5rem;
    }
}
