body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}
header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}
header .cart-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}
.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}
.product img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}
.product h3 {
    color: #333;
}
.product p {
    color: #666;
}
.product button {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.product button:hover {
    background-color: #ff6347;
}
#cart-link {
    text-align: center;
    margin: 20px 0;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    position: relative;
    width: 100%;
}
#success-message {
    color: green;
    font-weight: bold;
    text-align: center;
}
#cart-link a {
    color: gold;
    text-decoration: none;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}
#cart-count {
    color: yellow;
    font-weight: bold;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 24px;
    height: 24px;
    padding: 2px 4px;
    border-radius: 50%;
}
.popup-message {
    display: none;
    position: fixed;
    right: 20px;
    top: 20px;
    background-color: green;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}
/* Mobile optimization */
@media (max-width: 600px) {
    header {
        padding: 10px;
    }
    .container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .product {
        padding: 5px;
    }
    .product button {
        padding: 8px;
        font-size: 14px;
    }
    #cart-icon {
        font-size: 18px;
        right: 10px;
        top: 10px;
    }
    .popup-message {
        font-size: 14px;
        padding: 8px;
    }
    #cart-count {
        font-size: 16px;
        min-width: 20px;
        height: 20px;
        padding: 1px 3px;
    }
}
