* {
    margin: 0;
    padding: 0;
    font-family: Assistant, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    overflow-x: hidden;
}
.header-container {
    display: flex;
    width: 100vw;
    background-color: #29C1C0;
    padding: 10px 4vw;
    height: 20vh;
    align-items: center;
    justify-content: space-between;
}
header {
    color: white;
    text-align: center;
    min-height: 15vh;
}
header h1 {
    margin-top: 20px;
}

.hero-content p {
    margin: 20px 0 0;
    font-size: 1.2em;
}

.content {
    padding: 50px 20px;
    text-align: center;
}

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

.product-item {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
}
.product-item img{
    height: 250px;
    border-radius: 10px;
}

.hero {
    background: url('../images/banner.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    margin: 0;
    font-size: 3em;
}

.hero-content p {
    margin: 20px 0 0;
    font-size: 1.2em;
}
nav {
    background-color: #29C1C0;
    margin-right: 40px;
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}
.hero h1 {
    font-size: 50px;
    margin: 0;
}
.hero p {
    font-size: 20px;
}
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}
.product {
    background-color: white;
    width: 30%;
    margin: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}
.product img {
    width: 100%;
    height: auto;
}
.product h3 {
    margin: 10px 0;
}
.product p {
    color: #777;
}
.product .price {
    font-size: 18px;
    color: #333;
}
.search_icon {
    box-sizing: content-box;
    height: 20px;
    padding: 10px;
    background-color: #f5f5f6;
    color: #282c3f;
    font-weight: 300;
    border-radius: 4px 0 0 4px;
}
.search_input {
    color: #696e79;
    background-color: #f5f5f6;
    flex-grow: 1;
    height: 40px;
    border: 0;
    border-radius: 0 4px 4px 0;
}
.action_bar {
    display: flex;
    min-width: 200px;
    justify-content: space-evenly;
}
.action_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.banner_container {
    margin: 40px 0;
}
.banner_image {
    width: 100%;
}
.category_heading {
    text-transform: uppercase;
    color: #3e4152;
    letter-spacing: .15em;
    font-size: 1.8em;
    margin: 50px 0 10px 30px;
    max-height: 5em;
    font-weight: 700;
}
.category-items, .items-container {
    width: 80%;
    margin: 50px 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.sale_item {
    width: 250px;
}
.footer_container {
    padding: 30px 0px 40px 0px;
    background: #FAFBFC;
    display: flex;
    justify-content: space-evenly;
}
.footer_column {
    display: flex;
    flex-direction: column;
}
.footer_column h3 {
    color: #282c3f;
    font-size: 14px;
    margin-bottom: 25px;
}
.footer_column a {
    color: #696b79;
    font-size: 15px;
    text-decoration: none;
    padding-bottom: 5px;
}
.copyright {
    color: #94969f;
    text-align: end;
    padding: 15px;
}
.items-container {
    width: 80%;
    height: fit-content;
    margin: 40px 10%;
}
.item-container {
    width: 250px;
    margin: 40px 10px;
    padding: 10px;
    border-radius: 10px;
    transform: translate(30px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.item-container:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transform: translate(30px) scale(1.1);
}
.item-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
}
.rating {
    font-size: 12px;
    font-weight: 700;
}
.company-name {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #282c3f;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-name {
    color: #535766;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 0;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    display: block;
}
.price {
    margin-top: 10px;
    font-size: 14px;
    line-height: 15px;
    color: #282c3f;
    white-space: nowrap;
}
.current-price {
    font-size: 14px;
    font-weight: 700;
    color: #282c3f;
}
.original-price {
    text-decoration: line-through;
    color: #7e818c;
    font-weight: 400;
    margin-left: 5px;
    font-size: 12px;
}
.discount {
    color: #ff905a;
    font-weight: 400;
    font-size: 12px;
    margin-left: 5px;
}
.btn-add-bag {
    margin-top: 8px;
    font-size: 18px;
    width: 100%;
    background-color: #DDAB14;
    border: none;
    padding: 5px 15px;
    border-radius: 10px;
    cursor: pointer;
}
.bag-item-count {
    background-color: #f16565;
    white-space: nowrap;
    text-align: center;
    line-height: 18px;
    padding: 0 6px;
    height: 18px;
    position: relative;
    border-radius: 50%;
    font-size: 12px;
    color: #fff;
    left: 13px;
    top: -44px;
    font-weight: 700;
    cursor: pointer;
}
.action_container {
    text-decoration: none;
}
a.action_container:link {
    color: black;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px 2vw;
    }
    nav {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    .nav a {
        display: inline-block;
        margin: 5px 10px;
    }
    .hero {
        height: 300px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 18px;
    }
    .products {
        flex-direction: column;
        align-items: center;
    }
    .product {
        width: 80%;
    }
    .items-container {
        width: 90%;
        margin: 20px 5%;
    }
    .item-container {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 200px;
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero p {
        font-size: 16px;
    }
    .products {
        padding: 10px;
    }
    .product {
        width: 90%;
        margin: 5px;
    }
    .items-container {
        width: 95%;
        margin: 10px 2.5%;
    }
    .item-container {
        width: 180px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 1vw;
    }
    .hero {
        height: 150px;
    }
    .hero h1 {
        font-size: 25px;
    }
    .hero p {
        font-size: 14px;
    }
    .products {
        padding: 5px;
    }
    .product {
        width: 100%;
        margin: 5px 0;
    }
    .items-container {
        width: 100%;
        margin: 5px 0;
    }
    .item-container {
        width: 160px;
    }
    nav a {
        font-size: 16px;
    }
}
