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

body {
    padding-top: 120px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0 0;
}

.logo-container {
    text-align: center;
    padding: 1rem 0;
}

.logo {
    max-width: 200px;
}

nav {
    text-align: center;
    padding: 1rem 0;
    background:#f4f4f4;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #d2a357;
}

.burger-menu {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.seo-text {
    font-size:20px;
    text-align: center;
    margin-top:0.5rem; 
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left:auto;
    margin-right:auto;
}

/* Banner Section */
.banner {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(0,51,94,0.95), rgba(250,107,250,0.35)), 
                url('bg.jpg');
    background-size: cover;
    background-position: center;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height:3.5rem;
}

.banner h1 strong {
    display:block;
}

.banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    color: #fff;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #000;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    text-transform:uppercase;
    font-weight:bold;
    font-size:0.80rem;
}

.cta-button:hover {
    background-color: #ff6aff;
}

/* USP Section */
.usp-section {
    padding: 4rem 2rem;
    background:#242424;
}

.usp-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color:#fff;
}

.usp-section .seo-text {
    color:#fff;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.usp-box {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    border:1px solid #03c3df;
    transition: transform 0.3s;
    box-shadow: 0 0 10px #d778d7, 0 0 5px #d778d7, 0 0 10px #d778d7, 0 0 10px #d778d7;
}

.usp-box:hover {
    transform: translateY(-5px);
}

.usp-box .icon {
    margin-bottom:0.5rem;
}

.usp-box .icon svg {
    max-height:64px;
    width:auto;
    filter: drop-shadow(0 0 1px #09c8df) 
    drop-shadow(0 0 1px #09c8df) 
    drop-shadow(0 0 1px #09c8df) 
    drop-shadow(0 0 1px #09c8df);    
}

.usp-box .icon svg path,
.usp-box .icon svg circle,
.usp-box .icon svg rect,
.usp-box .icon svg polygon {
    stroke: #00446e;
    stroke-width: 5;
}

.usp-box h3 {
    color:#fff;
    margin-bottom: 1rem;
    line-height:1.5rem;
}

.usp-box p {
    color: #fff;
    font-size: 0.9rem;
}

/* Products Section */

.products-section {
    padding-top:3.5rem;
}

.products-section .seo-text {
    margin-bottom:1.5rem;
}

.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
}

.products-nav {
    position: sticky;
    background: white;
    padding: 1rem 0 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 900;
}

.products-nav.sticky {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding:0.5rem 0;
}

.products-nav button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #000;
    color:#fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size:1.2rem;
    font-weight:Bold;
    position:relative;
}

.products-nav button.active {
    background: #e7ff00;
    color:#002d5e;
}

.products-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid.active {
    display: grid;
    padding:3.5rem 0;
}

.product-item {
    text-decoration: none;
    color: inherit;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    padding-top:20px;
    position:relative;
    padding-bottom:55px;
}

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

.product-item img {
    width: 100%;
    max-height:200px;
    aspect-ratio: 4/3;
    object-fit: contain;
    margin:0 auto;
    display:block;
    padding:10px;
}

.product-item * {
    text-align:center;
}

.product-item h3 {
    padding:1rem 1rem 0.5rem;
    font-size: 0.9rem;
    line-height:1.1rem;
}

.product-item p {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height:1.1rem;
}

.product-item .product-link {
    display: block;
    margin-top:1rem;
    padding:0.5rem 1rem;
    background:#000;
    font-weight: 500;
    color:#fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.product-item:hover .product-link {
    background:#ff6aff;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #242424;
    color: #666;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #14cde2;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(100%);
    z-index: 1000;
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

.back-to-top:hover {
    background: #ff6aff;
    transform: translateY(0) scale(1.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Weryfikacja wieku */

.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.57);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.age-popup-content {
    background: white;
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.age-popup h2 {
    color: #333;
}

.age-popup p {
    margin-bottom: 1rem;
    color: #666;
    font-size:1.2rem;
}

.age-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.age-btn {
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
    font-size:1.6rem;
}

.age-btn:hover {
    opacity:0.75;
}

.age-yes {
    background: #28a745;
    color: white;
}

.age-no {
    background: #dc3545;
    color: white;
}

.blurry {
    filter: blur(6px);
    transition: filter 0.3s ease;
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}
/* Responsive Styles */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Mniejszy padding dla mobile */
    }

    /* Header Mobile */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        margin-bottom:-10px;
    }

    .logo-container {
        padding: 0;
        text-align: left;
    }

    .logo {
        max-width: 150px;
    }

    .burger-menu {
        display: block;
    }

    nav {
        position: fixed; /* Zmiana z absolute na fixed dla mobile menu */
        top: 80px; /* Wysokość mobile header */
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    section:not(#Products), #Products h2, #Products p, #Products .products-grid {
        padding-left:1.5rem;
        padding-right:1.5rem;
    }

    /* Banner Mobile */
    .banner h1 {
        font-size: 2rem;
        line-height:2.2rem;
    }

    section h2, section h3 {
        line-height:2.2rem;
        margin-bottom:1.5rem;
    }

    .banner p {
        font-size: 1rem;
    }

    /* Products Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid.active {
        padding-top:2rem;
    }

    .products-nav {
        display: grid;
        gap:30px;
        grid-template-columns: repeat(2, 1fr);
        top: 80px; /* Mniejsza wartość dla mobile */
        align-items: stretch;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .products-nav button {
        font-size:1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .seo-text {
        font-size:0.9rem;
    }

}

@media (max-width: 480px) {
    .usp-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}