/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f1f2f6;
}

/* Header and Navigation */
.navbar {
    background-color: #ff4757;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f1f2f6;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-container h1 {
    color: #2f3542;
    margin-bottom: 2rem;
    text-align: center;
}

/* Cart Content Layout */
.cart-content {
    display: flex;
    gap: 2rem;
}

/* Cart Items */
.cart-items {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    color: #2f3542;
    margin-bottom: 0.5rem;
}

.price {
    color: #57606f;
    font-weight: 500;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background-color: #f1f2f6;
    color: #2f3542;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.quantity-controls button:hover {
    background-color: #dfe4ea;
}

.quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

/* Item Total and Remove Button */
.item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.item-total span {
    font-weight: bold;
    color: #2f3542;
}

.remove-btn {
    padding: 0.5rem 1rem;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #ff6b81;
}

/* Cart Summary */
.cart-summary {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.cart-summary h2 {
    color: #2f3542;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dfe4ea;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #57606f;
}

.summary-item.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dfe4ea;
    font-weight: bold;
    color: #2f3542;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background-color: #ff6b81;
}

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-cart img {
    width: 150px;
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    color: #2f3542;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #57606f;
    margin-bottom: 1.5rem;
}

.browse-btn {
    padding: 0.8rem 1.5rem;
    background-color: #ff4757;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.browse-btn:hover {
    background-color: #ff6b81;
}

/* Footer */
footer {
    background-color: #2f3542;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cart-content {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item img {
        width: 100%;
        height: 200px;
    }

    .item-details {
        margin: 1rem 0;
    }

    .quantity-controls {
        justify-content: center;
        margin: 1rem 0;
    }

    .item-total {
        align-items: center;
    }
} 