body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    background-color: #240f0e;
    color: #ec2327;
    padding: 1rem;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center; /* Horizontálne centrovanie */
    margin-bottom: 20px; /* Vytvorí priestor medzi logom a navigáciou */
}

.logo {
    width: 200px; /* Nastavte veľkosť loga */
    height: auto;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 2rem;
}

nav .menu-toggle {
    display: none;
    background-color: #240f0e;
    color: #ec2327;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.lorem {
    padding: 1rem;
    background-color: #f4f4f4;
    text-align: center;
    border: 1px solid #ccc;
    margin: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: #ec2327;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #240f0e;
}

.products {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product img {
    width: 100%;
    height: auto;
    display: block;
}

.product h3 {
    margin: 1rem 0;
}

button {
    background-color: #240f0e;
    color: #ec2327;
    border: none;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #240f0e;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #240f0e;
    padding: 2rem;
    border-radius: 8px;
    max-width: 950px;
    /* Increase the maximum width of the popup */
    width: 90%;
    text-align: center;
    position: relative;
    max-height: 80vh;
    /* Limit height of popup content */
    overflow-y: auto;
    /* Enable vertical scroll if content overflows */
}

.popup-content h4 {
    margin-top: 0;
}

.popup-content p {
    margin-bottom: 1rem;
}


/* Slider Styling */

.slider {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #240f0e;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ec2327;
}

footer {
    background-color: #240f0e;
    color: #ec2327;
    padding: 1rem;
    text-align: center;
}

/* Hamburger Menu Icon Styles */
.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ec2327;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ec2327;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* When menu is active */
.menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 0;  /* Position the menu at the top */
        left: 0;
        background-color: #240f0e;
        padding: 1rem 0;
        z-index: 10;  /* Ensure the menu appears above the banner */
        margin-top: 60px; /* Adjust this value to move menu items down */
    }
    
    nav ul.active {
        display: flex;
    }
    nav .menu-toggle {
        display: block;
        margin-bottom: 1rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        width: 100%;
        position: relative;
    }
    .logo {
        width: 200px; /* Zmenšenie veľkosti loga na menších obrazovkách */
    }
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination button {
    background-color: #4b0d0d;
    color: white;
    border: none;
    padding: 10px;
    margin: 2px;
    cursor: pointer;
}

.pagination button.active {
    background-color: #f74949;
}

.pagination button:hover {
    background-color: #f74949;
}