* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/*------------ Header Styling Start ------------*/

header {
    background-color: #227BFF;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}

header .logo a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bolder;
}

header nav ul {
    list-style-type: none;
    display: flex;
}

header nav ul li {
    margin: 5px 15px;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    margin: 5px;
}

#active,
header nav ul li a:hover {
    text-decoration: underline;
}

/*------------ Header Styling End ------------*/


/*------------ Cart Styling Start ------------*/

.cart {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.cart h2 {
    text-align: center;
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.cart-item img {
    max-width: 100px;
    margin-right: 20px;
}

.item-details {
    flex-grow: 1;
}

.price {
    font-weight: bold;
    font-size: 1.2rem;
}

.remove-item {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.remove-item:hover {
    background-color: #ff1a1a;
}

/*------------ Cart Styling End ------------*/


/*------------ Cart Summary Styling Start ------------*/

.cart-summary {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.summary-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-item {
    font-size: 1.1rem;
    margin: 5px;
}

.total {
    font-weight: bold;
    font-size: 1.3rem;
}

.checkout {
    background-color: #227BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.checkout:hover {
    background-color: #1a5bb8;
}

/*------------ Cart Summary Styling Start ------------*/


/*------------ Footer Section Styling Start ------------*/

footer {
    background-color: #007bff;
    color: white;
    padding: 5px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact h3, p {
    margin: 10px;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h3 {
    margin-top: 15px;
}

.footer-social ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.footer-social ul li a i {
    color: white;
    margin: 15px;
}

.footer-bottom {
    margin-top: 20px;
}

@media (max-width: 768px) {

    .cart-items {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img {
        margin-bottom: 10px;
    }

    .summary-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout {
        width: 100%;
    }
}

@media (max-width: 630px) {
    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}

/*------------ Footer Section Styling End ------------*/
