
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

main {
    margin: 20px auto;
    padding: 20px;
    background: #c22d2d;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: white;

}

h1 {
    text-align: center;
    color: #dfd408;
    margin-bottom: 2rem;
}

#bag-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

#bag-items {
    flex: 2;
    min-width: 300px;
}

.bag-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bag-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 1rem;
}

.bag-item-details {
    flex: 1;
}

.bag-item-name {
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #007bff;
}

.bag-item-price {
    color: #007bff;
    font-weight: bold;
}

.bag-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.quantity-btn:hover {
    background: #0056b3;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 1rem;
}

.remove-btn:hover {
    background: #c82333;
}

#bag-summary {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background: #0056b3;
}

.empty-bag {
    text-align: center;
    color: #dfd408;
    font-size: 1.2rem;
    margin: 2rem 0;
}


.bag-link {
    position: relative;
    text-decoration: none;
    color: #333;
}

.bag-icon {
    font-size: 1.2rem;
}

.bag-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    #bag-container {
        flex-direction: column;
    }
    
    .bag-item {
        flex-direction: column;
        text-align: center;
    }
    
    .bag-item img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
