body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #800020;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible;
}

.header-logo {
    height: 170px;
    width: 225px;
    margin: -30px 0;
    position: relative;
    z-index: 1;
}

.cart-icon {
    height: 70px;
    width: 70px;
    cursor: pointer;
    margin: -15px 0;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 1.8em;
    margin: 0;
    text-align: center;
}

.announcement-bar {
    background-color: #ffd700;
    color: #800020;
    padding: 10px;
    font-weight: bold;
    font-size: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    position: sticky;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: 0;
}

.announcement-wrapper {
    display: inline-block;
    white-space: nowrap;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    animation: scroll 30s linear infinite;
    animation-play-state: running;
}

.announcement-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

#product {
    padding: 20px;
    background: white;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 10px #800020;
    font-size: 1.1em;
}

img {
    width: 100%;
    border-radius: 10px;
}

.price {
    font-size: 1.5em;
    color: #800020;
}

button {
    background-color: #800020;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #a52a2a;
}

.content {
    flex: 1;
}

footer {
    background-color: #333;
    color: white;
    padding: 5px;
    margin-top: auto;
}

@media screen and (max-width: 768px) {
    header {
        justify-content: center;
        padding: 5px;
        position: relative;
    }

    header h1 {
        display: none;
    }

    .cart-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-logo {
        margin: -20px 0;
        height: 140px;
        width: 185px;
    }
}

@media screen and (max-width: 480px) {
    .header-logo {
        height: 120px;
        width: 160px;
    }

    .cart-icon {
        height: 70px;
        width: 70px;
        padding: 5px;
        margin: 0;
    }

    #product {
        margin: 10px;
        padding: 10px;
    }
}

.ingredient-section {
    padding: 40px;
    background: rgb(241, 241, 241);
    margin: 20px auto;
    max-width: 100%;
    display: flex;
    gap: 30px;
    border-radius: 20px;
    align-items: stretch;
}

.ingredient-image {
    flex: 1;
    max-width: 100%;
}

.ingredient-image img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.ingredient-content {
    flex: 1;
    text-align: center;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
    max-width: 300px;
}

.ingredient-content h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #800020;
}

.ingredient-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

@media screen and (max-width: 1024px) {
    .ingredient-section {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ingredient-image,
    .ingredient-content {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .ingredient-section {
        flex-direction: column;
        margin: 20px;
        padding: 20px;
    }

    .ingredient-image,
    .ingredient-content {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .ingredient-content {
        min-height: auto;
        padding: 20px;
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #4b4b4b8f;
    border-top: 8px solid #800020;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}