*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
.container{
    margin: 0 70px 0 70px;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
}
.navContainer{
    align-items: center;
    justify-content: space-between;
    min-height: 10vh;
    background-color: green;
    color: white;
}
.listContainer{
    display: flex;
    justify-content: space-evenly;
}
.logoContainer{
    flex: 1 1 30%;
    margin-left: 70px;
    gap: 7px;
}
.logoContainer a{
    color: white;
}
.links{
    flex: 1 1 10%;
    margin-right: 70px;
}
.links a{
    color: white;
}
.listItem{
    font-size: 1.3em;
}
.searchBox{
    margin-right: 70px; 
    flex: 1 1 60%;
}
.searchBox input{
    position: relative;
    width: 100%;
    padding: 10px;
    border: 1px solid #c7c7c7;
    background: none;
    color: white;
}
.searchBox span{
    position: absolute; 
    top: 27px;
    right: 90px;
    opacity: 0.5;
}
.navContainer, .logoContainer{
    display: flex;
    text-align: center;
}

.logoImage,
.items img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.headerContainer{
    position: relative;
}
.headerTitle h1{
    margin-top: 90px;
    margin-bottom: 30px;
    font-size: 3.4em;
    font-weight: 900;
}
.headerImage{
    position: absolute;
    top: 20px;
    right: 0;
}
.headerButton button{
    padding: 20px 40px;
    background-color: green;
    border-radius: 20px;
    color: white;
    border: none;
    font-size: 1.5em;
}
.mainContainer{
    margin-top: 200px;
    margin-bottom: 40px;
}
.cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.card{
    display: flex;
    height: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background-color: rgba(149, 218, 176, 0.235);
}
.cardbutton button{
    padding: 20px 40px;
    border: none;
    background: green;
    color: white;
    border-radius: 7px;
}
.shopDetails button{
    padding: 10px 15px;
    border: none;
    background-color: green;
    color: white;
    border-radius: 7px;
}
.cardTitle h4{
    font-size: 1.2em;
}
.mainTitle h3{
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7em;
}
.sectionTitle{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 30px 0;
}
.shopCard{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    height: 200px;
    border: 1px solid rgb(201, 201, 201);
}
.shopDetails{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: inherit;
}
.shopDetails h4,
.shopDetails p{
    margin-bottom: 15px;
}
.formContainer{
    background-color: white;
    border: none;
    padding: 30px;
    width: 850px;
    height: 390px;
}
.formContainer input{
    padding: 9px;
    width: 100%;
    border: 1px solid #ddd;
}
.formContainer .button,
.cartForm .button{
    margin-top: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.formContainer .button button,
.cartForm .button button{
    padding: 10px 40px;
    border: none;
    color: white;
    background-color: green;
}
.headerContent{
    margin-top: 50px;
}
.content{
    margin-top: 30px;
}
.content, .headerContent{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.headerContent h2{
    margin-bottom: 10px;
    font-size: 3em;
}
.note{
    margin-top: 10px;
}
.cart{
    position: relative;
    margin-top: 30px;
}
.cartHeader{
    margin-top: 50px;
}
.items {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.items .detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.left{
    width: 600px;
    background-color: white;
}
.buttom{
    margin-top: 30px;
    width: 600px;
    background-color: white;
}
.delivery{
    padding: 17px;
}
.cartForm input{
    width: 100%;
    padding: 7px;
    border: none;
    background-color: #ddd;
}
.right{
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    background-color: white;
}
.top{
    padding: 17px;
}
.subtotal, .total, .fee{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.subtotal, .fee{
    margin-bottom: 10px;
}
.total{
    margin-top: 17px;
}
.top h3{
    margin-bottom: 10px;
}

/* Tablet Media Query (max-width: 768px) */
@media only screen and (max-width: 768px) {
    .container {
        margin: 0 30px 0 30px;
    }
    
    .logoContainer {
        flex: 1 1 100%;
        margin-left: 30px;
    }
    
    .links {
        margin-right: 30px;
    }
    
    .searchBox {
        margin-right: 30px;
        flex: 1 1 100%;
    }
    
    .navContainer {
        flex-direction: column;
        min-height: auto;
        padding: 10px 0;
    }
    
    .listContainer {
        flex-direction: column;
        align-items: center;
    }
    
    .headerTitle h1 {
        font-size: 2.5em;
        margin-top: 50px;
    }
    
    .headerImage {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 20px;
    }
    
    .headerImage img {
        width: 100%;
        max-width: 300px;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shopCard {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .shopDetails {
        height: auto;
    }
    
    .formContainer {
        width: 100%;
        height: auto;
    }
    
    .left, .right, .buttom {
        width: 100%;
        position: relative;
        top: 0;
        right: 0;
    }
    
    .mainTitle h3 {
        font-size: 1.4em;
    }
    
    .sectionTitle {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Mobile Media Query (max-width: 480px) */
@media only screen and (max-width: 480px) {
    .container {
        margin: 0 15px 0 15px;
    }
    
    .logoContainer {
        margin-left: 15px;
    }
    
    .logoContainer a h3 {
        font-size: 1.2em;
    }
    
    .links {
        margin-right: 15px;
    }
    
    .searchBox {
        margin-right: 15px;
    }
    
    .searchBox input {
        padding: 8px;
    }
    
    .listItem {
        font-size: 1em;
    }
    
    .headerTitle h1 {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .headerButton button {
        padding: 15px 30px;
        font-size: 1.2em;
    }
    
    .headerImage {
        display: none;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .card {
        height: auto;
        padding: 20px 0;
    }
    
    .card img {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
    
    .cardTitle h4 {
        font-size: 1em;
    }
    
    .cardbutton button {
        padding: 15px 30px;
        font-size: 1em;
    }
    
    .shopDetails button {
        padding: 8px 12px;
    }
    
    .mainTitle h3 {
        font-size: 1.2em;
    }
    
    .mainContainer {
        margin-top: 100px;
    }
    
    .formContainer {
        padding: 20px;
    }
    
    .formContainer .button button,
    .cartForm .button button {
        padding: 8px 30px;
    }
    
    .headerContent h2 {
        font-size: 2em;
    }
    
    .items {
        flex-direction: column;
        gap: 10px;
    }
    
    .items .detail {
        flex-direction: column;
        text-align: center;
    }
    
    .left, .right, .buttom {
        width: 100%;
    }
    
    .subtotal, .total, .fee {
        font-size: 0.9em;
    }
}
