body{
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}
header {
    background-color: #333;
    color: white;
    padding: 0;
    text-align: center;
    width: 100vw;
    min-height: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.product-list{
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.product{
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 400px;
    
    margin-bottom: 20px;
    max-width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.product img{
    width:60%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.product img:hover{
    transform: scale(1.05);
}
button{
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
button:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
    transition: all 0.2s;
}
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 0 20px 0;
    width: 100vw;
    min-height: 60px;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.cart {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 15px 25px;
    margin: 0 auto 30px auto;
    width: fit-content;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-count {
    background: #007BFF;
    color: #fff;
    border-radius: 50%;
    padding: 3px 10px;
    margin: 0 6px;
    font-weight: bold;
    font-size: 1em;
    display: inline-block;
}
.cart-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    min-width: 250px;
    z-index: 10;
    padding: 15px 10px;
    font-size: 1em;
    color: #222;
    max-height: 300px;
    overflow-y: auto;
}
.cart.show .cart-dropdown {
    display: block;
    animation: fadeIn 0.2s;
}
.cart-dropdown h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #007BFF;
}
.cart-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 8px;
}
.cart-dropdown li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.cart-dropdown li:last-child {
    border-bottom: none;
}
.cart-dropdown li span:first-child {
    flex: 1;
    text-align: left;
    padding-right: 10px;
    word-break: break-word;
}
.cart-dropdown li span:last-child {
    min-width: 80px;
    text-align: right;
    color: #007BFF;
    font-weight: bold;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
    header, footer {
        min-height: 70px;
        height: auto;
        padding: 10px 0;
    }
    .product-list {
        flex-direction: column;
        align-items: center;
    }
    .product {
        width: 95%;
        min-width: 0;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .cart {
        width: 95vw;
        min-width: 0;
        font-size: 1em;
        padding: 10px 5vw;
    }
    .cart-dropdown {
        min-width: 180px;
        max-width: 95vw;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.98em;
        padding: 10px 5px;
    }
    button {
        width: 40%;
        font-size: 1em;
        padding: 12px 0;
    }
}
@media (max-width: 400px) {
    .cart, .cart-dropdown {
        font-size: 0.92em;
        padding: 7px 2vw;
    }
    .product {
        padding: 8px;
    }
    .cart-dropdown {
        min-width: 120px;
        padding: 7px 2px;
    }
}