/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 2rem;
    flex: 1;
}

/* Header */
.top-nav {
    background: #ffffff;
    color: #000000;
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 180px;
    height: 90px;
    transition: all 0.3s;
}

.logo p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000000;
}

/* Top Menu */
.top-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-left: auto;
}

.top-menu li {
    position: relative;
}

.top-menu li a {
    color: #000000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s;
}

.top-menu li a:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

/* Submenu - Desktop */
.top-menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.top-menu li:hover>.submenu {
    display: block;
}

/* Side Navigation */
.side-nav {
    width: 250px;
    background: #f5f5f5;
    padding: 1rem;
}

.side-menu {
    list-style: none;
    padding: 0;
}

.side-menu li {
    position: relative;
    margin-bottom: 0.5rem;
}

.side-menu li a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s;
}

.side-menu li a:hover {
    background: #e0e0e0;
}

/* Submenu - Desktop */
.side-menu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #e0e0e0;
    min-width: 200px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.side-menu li:hover>.submenu {
    display: block;
}

/* Obrazek w sekcji content */
.content-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.content-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    animation: zoomPan 10s infinite ease-in-out;
}

@keyframes zoomPan {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Main Content */
.content {
    flex: 1;
    padding: 2rem 0;
}

.content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white;
    padding: 10px;
    box-sizing: border-box;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.price {
    color: #c00;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* Przycisk Szczegóły produktu */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: 2px solid #000;
    font-weight: 500;
}

.btn:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu li a {
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-menu li a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.footer-right {
    text-align: right;
}

/* Utility Classes */
.notice-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.cleaner {
    clear: both;
}

/* Paginacja */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination .btn {
    background: #000;
    color: #fff;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .logo {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo img {
        width: 120px;
        height: 60px;
        margin: 0 auto;
    }

    .logo p {
        display: none;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        padding: 1rem;
        background: #f5f5f5;
        border-bottom: 1px solid #ddd;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
    }

    /* Side Navigation - Mobile */
    .side-nav {
        display: none;
        width: 100%;
        background: #f5f5f5;
        padding: 0;
    }

    .side-nav.active {
        display: block;
    }

    .side-menu li {
        margin: 0;
    }

    .side-menu li a {
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }

    .side-menu .submenu {
        display: none !important;
        position: static;
        background: #e0e0e0;
        box-shadow: none;
    }

    .side-menu .submenu.active {
        display: block !important;
    }

    /* Top Menu - Mobile */
    .top-menu {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        text-align: center;
    }

    .top-menu .submenu {
        display: none !important;
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .top-menu .submenu.active {
        display: block !important;
    }

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

    .footer-right {
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Galeria produktu */
.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Główny obrazek */
.main-image {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Galeria miniatur */
.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    width: 100%;
    max-width: 640px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
}

.thumbnail-gallery img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
    flex-shrink: 0;
}

/* Styl dla urządzeń mobilnych */
@media (max-width: 768px) {
    .thumbnail-gallery img {
        width: 60px;
        height: 60px;
    }

    .thumbnail-gallery {
        gap: 0.3rem;
        padding: 0.5rem 0;
    }
}

.thumbnail-gallery img:hover {
    transform: scale(1.1);
}

/* Modal do powiększonych zdjęć */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Pasek miniatur w modalnym oknie */
.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
}

@media (max-width: 768px) {
    .modal-thumbnail {
        width: 40px;
        height: 40px;
    }

    .modal-thumbnails {
        gap: 0.3rem;
    }
}

.modal-thumbnail:hover {
    transform: scale(1.1);
}

/* Wymiary produktu */
.product-dimensions {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.product-dimensions h3 {
    margin-bottom: 1rem;
    color: #333;
}

.product-dimensions ul {
    list-style: none;
    padding: 0;
}

.product-dimensions li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Cena produktu */
.product-price {
    background: #000;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}
.footer-middle a {
    color: #888;
    /* Domyślny kolor linków */
    text-decoration: none;
    /* Usunięcie podkreślenia */
}

.footer-middle a:hover {
    color: #555;
    /* Kolor linków po najechaniu myszką */
}

.white-link {
    color: white !important;
    /* Kolor biały dla linku "Kontakt" */
}
.kontakt a {
    color: #888; /* Kolor linków */
    text-decoration: none; /* Usunięcie podkreślenia */
}
.kontakt a:hover {
    color: #555; /* Kolor linków po najechaniu myszką */
}

/* Dodatkowe style dla formularza i odstępów */
        .content h2 {
            margin-top: 40px;
            margin-bottom: 20px;
            font-size: 24px;
            color: #333;
        }
        .contact-form {
            max-width: 600px;
            margin: 0;
            padding: 20px;
            background: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #555;
        }
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
        }
        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }
        .form-group button {
            padding: 12px 24px;
            background: #333;
            color: #fff;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
        }
        .form-group button:hover {
            background: #555;
        }

        /* Styl dla listy podkategorii */
.subcategories {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.subcategories h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

.subcategories ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.subcategories ul li {
    margin-bottom: 10px;
}

.subcategories ul li a {
    color: #888; /* Domyślny kolor linków */
    text-decoration: none; /* Usunięcie podkreślenia */
    font-size: 1.2em;
    transition: color 0.3s ease; /* Płynna zmiana koloru */
}

.subcategories ul li a:hover {
    color: #555; /* Kolor linków po najechaniu myszką */
}



.product-description {
    white-space: normal;
}
.product-description p {
    margin-bottom: 1em;
}
.product-description ul, 
.product-description ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.new-products-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.new-products-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
}

.product-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title-link:hover {
    color: #000;
    text-decoration: underline;
}

.product-image a {
    display: block;
    height: 100%;
}

/* Grid dla 4 kolumn */
.products-grid-four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Responsywność */
@media (max-width: 1200px) {
    .products-grid-four-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-four-col {
        grid-template-columns: 1fr;
    }
}

.product-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    text-align: center;
}

.price {
    color: #c00;
    font-weight: bold;
    margin: 10px 0;
    font-size: 1.1em;
}