/* style.css
body {
  font-family: 'Arial', sans-serif;
  background-color: Pink;
  margin: 0;
  padding: 0;
}
 
header {
  background-color: #1a1a1a;
  color: white;
  padding: 20px;
  text-align: center;
}
 
h1 {
  font-size: 36px;
} */
/* style.css */

/* Override Bootstrap's primary button color */
.btn-primary {
    background-color: purple;
    border-color: purple;
}

.btn-primary:hover {
    background-color: darkpurple;
    border-color: darkpurple;
}

/* Customize a Bootstrap component */
.navbar {
    background-color: #333;
}

/* Add your own custom styles */
h1 {
    color: steelblue;
}

/* Basic Resets & Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 20px;
    background-image: url("https://images.unsplash.com/photo-1677279150226-67d306ecdc80?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    color: #333;
}
.container my-5{
    background-image: url("https://images.unsplash.com/photo-1677279150226-67d306ecdc80?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
}
/* Shopping Cart Container */
.shopping-cart {
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.shopping-cart h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Cart Items Section */
.cart-items {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none; /* No border for the last item */
    padding-bottom: 0;
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
    border: 1px solid #ddd;
}

.item-details {
    flex-grow: 1; /* Allows details to take up remaining space */
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    align-items: center;
    justify-content: space-between;
}

.item-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #34495e;
    flex-basis: 100%; /* Takes full width on small screens */
    margin-bottom: 5px;
}

.item-price {
    font-size: 1.1em;
    color: #27ae60; /* A nice green for prices */
    font-weight: bold;
    margin-right: 20px;
}

/* Quantity Controls */
.item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 20px;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1em;
    color: #555;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 8px 0;
    /* -moz-appearance: textfield; Remove number input arrows in Firefox */
}

/* Hide arrows for Chrome, Safari, Edge */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Button */
.remove-item {
    background-color: #e74c3c; /* Red for remove */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.remove-item:hover {
    background-color: #c0392b;
}

/* Cart Summary */
.cart-summary {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 30px;
    text-align: right;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.summary-line.total {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 15px;
}

.summary-value {
    font-weight: bold;
    color: #27ae60;
}

.checkout-btn {
    background-color: #3498db; /* Blue for checkout */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.2s ease;
    width: 100%; /* Full width on smaller screens */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.checkout-btn:hover {
    background-color: #2980b9;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .shopping-cart {
        margin: 20px;
        padding: 20px;
    }

    .cart-item {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start;
        text-align: left;
    }

    .item-image {
        margin-bottom: 15px;
        margin-right: 0;
        width: 80px;
        height: 80px;
    }

    .item-details {
        width: 100%; /* Take full width */
        flex-direction: column;
        align-items: flex-start;
    }

    .item-name {
        margin-bottom: 8px;
    }

    .item-price {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .item-quantity {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .remove-item {
        width: 100%; /* Full width button */
        text-align: center;
        padding: 10px;
    }

    .summary-line {
        font-size: 1em;
    }

    .summary-line.total {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .shopping-cart h2 {
        font-size: 1.8em;
    }

    .item-name {
        font-size: 1.1em;
    }

    .item-price {
        font-size: 1em;
    }

    .quantity-btn, .quantity-input {
        padding: 6px 10px;
        font-size: 0.9em;
    }

    .remove-item {
        font-size: 0.8em;
    }

    .checkout-btn {
        font-size: 1em;
        padding: 10px 20px;
    }
}