
:root{
    --background-verde: #A7D30C;
    --background-marron: #3E261A;
    --font: "KlinicSlabLight", cursive;
}


.container5 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {    
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.filter-scroll-container {
    position: relative;
    margin-bottom: 30px;
    padding: 15px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    /*    z-index: 100; */
}

.filter-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--background-marron);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: #6d3710;
}

.scroll-left {
    left: 5px;
}

.scroll-right {
    right: 5px;
}

.filter-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    font-family: var(--font);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--background-marron);
    color: white;
    border-color: var(--background-marron);
}

.filter-btn .count {
    background: var(--background-marron);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.filter-btn.active .count {
    background: white;
    color: var(--background-marron);
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

.menu-item {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background-color: #ededed;
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.menu-item:hover img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--background-verde);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font);
    z-index: 1;
}

.menu-item h3 {
    color: #2c3e50;
    margin: 10px 0;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--font);
}

.menu-item p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--font);
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 1.1rem;
    font-family: var(--font);
}

.price {
    font-weight: bold;
    color: var(--background-marron);
    font-size: 1.4rem;
    font-family: var(--font);
}

.offer-tag {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    font-family: var(--font);
}

.add-to-cart {
    background-color: #3E261A;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
}

.add-to-cart:hover {
    background-color: #6d3710;
    transform: translateY(-2px);
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.ingredients-list {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
}

.ingredients-list h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.ingredients-list ul {
    list-style: none;
    padding-left: 0;
}

.ingredients-list li {
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ingredients-list li::before {
    content: "•";
    color: var(--background-marron);
    font-weight: bold;
    margin-right: 5px;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

.loading-indicator {
    display: none;
    justify-content: center;
    padding: 20px;
}

.loading-indicator.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--background-marron);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .menu-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-container {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .menu-container {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .image-container {
        width: 150px;
        height: 150px;
    }
}
