body {
    font-family: "Cinzel", serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: #333;
}

header {
    background-color: black;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

#header_logo {
    width: 150px;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

#cart-count {
    font-size: 0.9rem;
}

.cart-link {
    position: absolute;
    right: 2rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 1rem;
}

.category-card {
    background-color: black;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: #555;
}

.category-card h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    width: 100%;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

@keyframes pulse {
    0% {
        background-color: rgba(0, 0, 0, 0.1);
    }
    50% {
        background-color: rgba(0, 0, 0, 0.3);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.1);
    }
}

.slide-image.loading {
    animation: pulse 1.5s infinite;
    background-color: #eee;
    min-width: 200px;
    min-height: 200px;
}

footer {
    background-color: black;
    padding: 1rem;
    color: white;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: baseline;
    font-size: 14px;
    font-weight: 300;
    border-top: 1px solid #333;
}

.footer-section {
    flex: 1 1 200px;
    min-width: 200px;
    margin: 1rem;
}

.footer-section h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: white;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 0.3rem 0;
}

.footer-section a:hover {
    text-decoration: underline;
    color: #ccc;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffbe6;
    border-top: 1px solid #ccc;
    padding: 1rem;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookie-banner span {
    font-size: 0.95rem;
    color: #333;
}

#cookie-banner a {
    color: #0077cc;
    text-decoration: none;
}

#cookie-banner a:hover {
    text-decoration: underline;
}

#cookie-banner button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0077cc;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
}

#cookie-banner button:hover {
    background-color: #005fa3;
}

#accept_button{
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
    }

    .cart-link {
        position: static;
        margin-top: 0.5rem;
        flex-direction: row;
        gap: 0.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        height: 100px;
        padding: 1rem;
    }

    .slideshow-container {
        height: 300px;
        max-width: 95%;
        margin: 1.5rem auto;
    }

    .slide-image {
        max-width: 85%;
        max-height: 85%;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (min-width: 1025px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}