﻿/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;

}
a{
    text-decoration: none;
    color: #fcfcfc;
}
footer p{
     color: rgb(0, 0, 0);
}
     .links{
        color: white;
        text-decoration: none;
        margin: 0 15px;
        font-weight: bold;
        transition: color 0.3s;
     }
    
.links{
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.links a{
    color: black;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    background-color: transparent;
}


header,footer {
    background: linear-gradient( rgb(214, 214, 243), rgb(76, 73, 137) );
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.brand{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;  /*add space between logo and text*/
}
.logo {
   width: 80px;
   height: auto;
}
.brand h1{
    margin: 0; /* remove  default spacing around the text*/
    font-size: 24px;
}

nav input, nav select {
    padding: 8px;
    border-radius: 4px;
    border: none;
    margin-right: 10px;
}


/* Product Grid */
#productContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 5%;
}


.product-card {
    background: rgb(212, 212, 235);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
    margin-top: 20px;
}


.product-card:hover { transform: translateY(-5px); }


.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}


/* Buttons */
button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}


button:hover { 
    background-color: #219150;
    transform: translateY(-2px);
    box-shadow:0 4px 8px rgba(0,0,0,0.15);
}


.remove-btn { background-color: #e74c3c; }


/* Cart & Form Layout */
#cartItems, #checkoutForm {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
}


.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}


input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}
/*Responsive grid for home*/
#productContainer{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax (250px,1fr));
    gap: 20px;
    padding: 20px;
}
/*responsive design*/
@media(max-width:768px){
    header{
        flex-direction: column;
        text-align: center;
    }
    nav{
        width: 100%;
        margin-top: 10px;
    }
    nav input,nav select{
        width: 90%;
        margin-bottom: 10px;

    }
    .cart-item{
        flex-direction: column;
        align-items: flex-start;
    }
    #checkoutForm{
        width: 95%;
        padding: 15px;
    }
}
header{
    background-color: #2c3e50;
    padding: 5%;
    color: white;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    }

    .logo{
         font-size: 1.5rem;
         font-weight: bold;
         color: #f1c40f;
         text-transform: uppercase;
         letter-spacing: 1px;
    }
    #logo-img{
        height: 50px;
        width: auto;
        display: block;
    }
    .logo a {
        text-decoration: none;
    }
