/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --main-color: #f0f0f0;
    --second-color: #ffb4a2;
    --third-color: #e5989b;
    --fourth-color: #b5838d;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--main-color);
    background-image: url(https://images.pexels.com/photos/2824173/pexels-photo-2824173.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2);
    background-attachment: fixed;

}

header {
    background-color: black;
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    transition: 0.3s ease;
    margin-left: 10px
}
.logo:hover{
    transform: scale(1.1);

}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1rem;
}
nav ul li a:hover{
    text-decoration: underline;
    transform: scale(2);
    color: var(--second-color);

}

nav ul li a {
    text-decoration: none;
    color: white;
    transition: 0.3s ease;

}

/* Main content styles */
main {
    padding: 2rem;
}

#hero {
    text-align: center;
    margin-bottom: 2rem;
    transition: 0.3s ease-in-out;
    animation:  0.5s  boue infinite alternate;
}
@keyframes boue {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-20px);
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero:hover{
    transform: scale(1.1);

}
.products h2 {
    text-align: center;
    margin-bottom: 1rem;
    transition: 0.3s ease-in-out;
    animation: bounce 0.5s infinite alternate;
}
.products h2:hover {
    transform: translateY(10px);
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }

}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease-in-out;
}

.product-card:hover{
    transform: scale(1.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.product-card p {
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-card button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #007bff, #0056b3, #6904f6);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.product-card button:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg,#6904f6,#0056b3 #007bff);

}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0;
        margin-right: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
footer a{
    color: #fff;
    text-decoration: none;
}
footer a:hover{
    color: var(--second-color);
}
.contact{
    text-align: center;
    margin-top: 2rem;
    background-image:url(https://images.pexels.com/photos/3616764/pexels-photo-3616764.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2) , url(https://images.pexels.com/photos/2824173/pexels-photo-2824173.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2);
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-blend-mode:lighten;
    background-attachment: fixed;



}
.contact-form{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
#contact-{
    text-decoration: underline;
}
.input-group {
    margin-bottom: 1rem;
    text-align: left;

}
.contact-btn{
    background-color: var(--third-color);
    color: white;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-form {
    flex-direction: column;
    align-items: stretch;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.input-group textarea {
    resize: vertical;
    height: 150px;
}

.contact-btn {
    align-self: center;
    width: 100%;
    max-width: 200px;
    margin-top: 1rem;
    margin-bottom: 50px;
}

.contact-btn:hover {
    background-color: var(--fourth-color);
}

.contact {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}



.cart {
    height:100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    background-image:url(https://images.pexels.com/photos/3616764/pexels-photo-3616764.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2) , url(https://images.pexels.com/photos/2824173/pexels-photo-2824173.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2);
    background-size:cover;
    background-position: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-blend-mode:multiply;
    background-attachment: fixed;
}

.cart h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.cart-items {
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: bold;
}

.cart-item-price {
    font-size: 1rem;
    color: var(--third-color);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
}

.cart-checkout {
    background-color: var(--third-color);
    color: white;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.cart-checkout:hover {
    background-color: var(--fourth-color);
}