body {
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
    width: 70%;
    height: auto;
    margin: auto;
    margin-top: 30px;
    cursor: default;
    user-select: none;
}

#header-top {
    text-align: right;
    font-size: 14px;

}

#header-top>a {
    color: black;
    text-decoration: none;
    white-space: 10px;

}

#header-top a+a {
    margin-left: 10px;
}

#header-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;

}

#header-mid>.logo {
    flex-basis: 20%;
}

#header-mid>input {
    flex-basis: 50%;
    padding: 15px;
    border: 1px solid orange;
    border-radius: 5px;
    gap: 10px;
}

#header-mid>button {

    flex-basis: 18%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid orange;
    background-color: white;
    transform: transform 0.2s ease;
    gap: 10px;
}

button:hover:not(:disabled) {
    transform: scale(1.03);
}

#header-bot {
    Justify-content: Space-evenly;
    background-color: orange;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
    padding: 10px;
}

#header-bot>a {
    font-weight: bold;
    text-decoration: none;
    color: white;
    text-align: center;
    flex-grow: 1;
}

.banner img {
    width: 100%;
    height: auto;
}

main {
    display: flex;
    gap: 20px;
    padding: 0 40px 40px;
}

.product-section {
    flex: 3;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-category {
    margin-bottom: 40px;
}

.product-category h2 {
    background: orange;
    color: white;
    padding: 8px 16px;
    display: inline-block;
    font-size: 18px;
    margin-bottom: 16px;

}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.product-item {
    text-align: center;
    padding: 12px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-decoration: none;
    color: black;
}

.product-item:hover {
    transform: translateY(-3px);
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-item p {
    font-weight: bold;
    margin: 8px 0 4px;
}

.product-item span {
    color: #000;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.product-item button {
    border: 1px solid orange;
    color: orange;
    background: white;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.product-item button:hover {
    background: orange;
    color: white;
}

.hot-products {
    flex: 1.2;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.hot-products h2 {
    background: orange;
    color: white;
    padding: 8px 16px;
    display: inline-block;
    font-size: 18px;
    margin-bottom: 16px;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hot-item {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    text-decoration: none;
    color: black;
}

.hot-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.hot-item p {
    font-weight: bold;
}

.promotions {
    padding: 40px;
}

.promotions h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: black;
}

.promo-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.promo-grid img {
    width: 300px;
    height: 150px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.promo-text {
    background-color: orange;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.login-form {
    color: black;
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid orange;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form button {
    width: 100%;
    padding: 10px;
    border: 1px solid orange;
    background: orange;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.login-form button:hover {
    background: white;
    color: orange;
}

.login-form a {
    color: orange;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
}

footer {
    background-color: white;
    box-shadow: 0 0 10px #eeeeee;
    color: black;
    padding: 40px 0;
    margin-top: 40px;

}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 220px;
}

.footer-column h3 {
    margin-bottom: 15px;
    color: black;
    font-size: 18px;
}

.footer-column p,
.footer-column li {
    font-size: 14px;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column .logo {
    width: 140px;
    margin-bottom: 10px;
}

.footer-column a {
    text-decoration: none;
    color: black;
}

/* demo mobile */
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        margin: 10px;
        padding: 0 10px;
    }

    #header-mid {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #header-mid>.logo,
    #header-mid>input,
    #header-mid>button {
        flex-basis: auto;
        width: 100%;
    }

    #header-top {
        text-align: center;
        font-size: 12px;
    }

    #header-bot {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #header-bot>a {
        flex: none;
        width: 100%;
    }

    main {
        flex-direction: column;
        padding: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .hot-products {
        width: 100%;
        order: -1;
    }

    .promotions {
        padding: 20px 10px;
    }

    .promo-grid img {
        width: 100%;
        height: auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .footer-column {
        width: 100%;
    }

    .hot-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hot-item img {
        width: 100px;
        height: 100px;
    }

    .login-form {
        margin: 20px 10px;
        padding: 15px;
    }
}