html,body{
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: greenyellow;
    text-shadow: rgba(0,0,0,0.1) 1px 1px 2px;
    height: 100%;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main{
    flex: 1;
    
}
/*Header*/
header{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
    position: relative;
    background: green;
    height: 200px;
    max-width: 100%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.icon{
    display: flex;
    float: left;
    width: 250px;
    height: 207px;
}
.cart-icon{
    width: 250px;
    height: 207px;
    float: right;
    margin-right: 20px;
}
header h1{
    color: white;
    font-size: 50px;
    margin-left:20px;
    float: right;
    text-decoration: none;
    padding-left: 20px;
    
}
/*Footer*/
footer{
    background: green;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
/*Home Page*/
.shop-now{
    background: green;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    ;
}
.shop-now a{
    text-decoration: none;
    color: white;
    text-align: center;
}
.shop-now:hover{
    background-color: darkgreen;
    color: white;
}

.home-text{
    text-align: center;
    
}
.home-text p{
    font-size: 25px;
    margin-top: 20px;
    }
    .home-text h1{
        font-size: 50px;
        margin-top: 20px;
    }
    .home-text h2{
    font-size: 40px;
    margin-top: 20px;
    }
    h4,h5{
        font-size: 50px;
        margin-top: 20px;
        text-align: center;
    }
.home-pics-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
}
.home-pics-container img{
    width: 100%;
    height: 600px;
    border-radius: 10px;
    object-fit: cover;
}
.info-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
    margin: 20px;
    padding: 10px;
}


/*Cart page*/
.checkout-button{
    width: 100%; 
    height: 100px;
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
}


/*Shop page*/
.shop-container{
display: grid;
grid-template-columns: 400px 400px 400px 400px;
justify-content: center;
gap: 20px;
border-radius: 20px;
padding: 10px;
margin: 20px;

}
.product-card{
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}
.product-card img{
    width: 100%;
    height: auto;
    border-radius: 10px;
}

button{
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
}
button:hover{
    background-color: darkgreen;
    color: white;
    transition: all ease 0.3s;
    transform: matrix(1,2);
}
.checkout-button{
    font-size: 30px;
}
.border{
    border: 2px solid black;
    border-radius: 10px;
}
.cart-summary {
    margin-top: 20px;
    padding: 15px;
    border-top: 2px solid #ccc;
    text-align: right;
}

.cart-summary h3 {
    margin: 0;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
}
@media (max-width: 1084px) {
    /* Header */
    header {
        grid-template-columns: 1fr 1fr;
        height: auto;
        padding: 10px;
        text-align: center;
        text-decoration: none;
        max-width: 100%;
    }
    .icon, .cart-icon {
        width: 150px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    header h1 {
        font-size: 24px;
        margin: 10px 0;
        float: none;
        padding-left: 0;
        
    }
    header a{
        text-decoration: none;
    }
    .home-text h1{
        font-size: 24px;
       
    }
    

    /* Cart buttons */
    .checkout-button {
        height: 60px;
        font-size: 20px;
    }

    /* Cart summary */
    .cart-summary {
        text-align: center;
        padding: 10px;
    }
}

/* For tablets */
@media (max-width: 768px) {
    .shop-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .home-pics-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-pics-container img {
        height: 300px;
    }
}

/* For phones */
@media (max-width: 480px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    .home-pics-container {
        grid-template-columns: 1fr;
    }
    .home-pics-container img {
        height: 200px;
    }
    
    h4,h5 {
        font-size: 24px;
    }
    button, .checkout-button {
        font-size: 18px;
        height: 50px;
    }
    .cart-summary {
        font-size: 1.2rem;
    }
}
