* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #fff;
}


/* Header Styles */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #000;
    position: relative;
}

.logo img {
    height: 50px;
}


/* Hamburger Menu */

.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #00c3ff;
}


/* Navigation Dropdown Styles */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropbtn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 160px;
    z-index: 1;
}

.nav-dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropbtn:hover,
.nav-dropdown-content a:hover {
    color: #00c3ff;
}


/* Main Section Styles */

main {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero {
    background: url('pozadieWebu.jpg') no-repeat center center/cover;
    padding: 20px 50px;
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}


/* Dropdown Styles */

.dropdown-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #00d5ff;
    color: #000;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-btn {
    background-color: #009de6;
}


/* Product Grid Styles */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
}

.product {
    background-color: #fff;
    color: #000;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.product img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.product h3 {
    margin: 10px 0;
    font-size: 16px;
    text-transform: uppercase;
}

.detail-btn {
    background-color: #f0f0f0;
    color: #000;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
}

.detail-btn:hover {
    background-color: #d0d0d0;
}


/* Popup Styles */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
}

.popup-images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.popup-images img {
    width: 48%;
    max-height: 200px;
    object-fit: contain;
}

.zoomable {
    cursor: pointer;
    border: 2px solid #00d5ff;
    border-radius: 5px;
}

.zoomable:hover {
    border-color: #009de6;
}

.popup-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.popup-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff0000;
}


/* Zoom Viewer Styles */

.zoom-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.zoom-container img {
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
    cursor: grab;
}

.zoom-container img:active {
    cursor: grabbing;
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.close-zoom:hover {
    color: #ff0000;
}


/* Footer Styles */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #000;
    font-size: 12px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #00e5ff;
}


/* Mobile Styles */

@media (max-width: 768px) {
    /* Header */
    header {
        padding: 15px 20px;
    }
    .hamburger {
        display: flex;
    }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 20px;
        z-index: 10;
    }
    .nav-toggle:checked~nav {
        display: block;
    }
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    nav ul li a {
        font-size: 16px;
    }
    .nav-dropdown-content {
        position: static;
        background-color: #222;
        padding-left: 20px;
    }
    /* Hero Section */
    .hero {
        padding: 20px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .dropdown-container {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .dropdown-btn {
        width: 100%;
        text-align: left;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        background-color: #444;
    }
    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        padding: 20px;
    }
    .product img {
        max-height: 120px;
        /* Smaller images on mobile */
    }
    /* Popup */
    .popup-content {
        width: 95%;
        padding: 15px;
    }
    .popup-images {
        flex-direction: column;
        gap: 10px;
    }
    .popup-images img {
        width: 100%;
        max-height: 150px;
    }
    .popup-content h3 {
        font-size: 20px;
    }
    .popup-content p {
        font-size: 14px;
    }
    /* Zoom Viewer */
    .zoom-container {
        max-width: 95%;
        max-height: 85%;
    }
    .close-zoom {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
    /* Footer */
    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }
}