* {
    margin: 0;
    padding: 0; font-family: Arial, sans-serif;
}

.navbar_logo {
    display: flex;
    align-items: center;
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar_logo::before {
    content: "";
    background-image: url('../images/husqlogo.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
    margin-right: 10px;
    display: inline-block;
    border-radius: 10%;
}

.navbar_logo_content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar_logo .navbar_subtitle {
    font-size: 0.5em;
    font-weight: normal;
    color: white;
    margin-top: -5px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0; /* zmiana z 50px na 0 */
    right: 0; /* zmiana z 50px na 0 */
    display: flex;
    align-items: center;
    padding: 10px 50px; /* wewnętrzny padding zamiast marginesu */
    background-color: transparent;
    border-bottom: 3px solid white;
    z-index: 999;
    transition: background-color 0.3s ease, padding 0.3s ease;
}


.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.7); /* Czarne tło 70% przezroczystości */
    backdrop-filter: blur(5px); /* Opcjonalnie: lekkie rozmycie dla efektu szkła */
    transition: background-color 0.3s ease;
}

.navbar_menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
    margin-left: auto;
    margin-right: 50px;
}

.navbar_item {
    margin-left: 20px;
}

.navbar_links {
    color: white;
    text-decoration: none;
    font-size: 21px;
    font-weight: bold;
    position: relative;
    background-color: transparent;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.navbar_menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background-color: #0066cc;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.navbar_menu li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gps_icon {
    height: 24px;
    width: auto;
}

.gps_box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 25%;
    background-color: transparent;
    transition: background-color 0.3s;
}

.gps_box:hover {
    background-color: rgba(0, 119, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
    margin-right: 50px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

@media (max-width: 1050px) {

    .navbar {
        padding: 10px 20px;
        background-color: rgba(0, 0, 0, 0.7); /* lekka przezroczystość */
        border-bottom: none;
    }

    .navbar_menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px; /* niżej, żeby nie nachodziło */
        left: 0;
        right: 0;
        width: calc(100% - 40px);
        max-width: 400px;
        background-color: rgba(30, 30, 30, 0.9); /* ciemne tło */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        margin: 0 auto;
        padding: 20px;
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
        transition: all 0.3s ease;
    }

    .navbar_menu.active {
        display: flex;
    }

    .navbar_item {
        margin: 10px 0;
    }

    .navbar_links:active {
        background-color: rgba(255, 255, 255, 0.1); /* lekko jaśniejsze kliknięcie */
        transform: scale(0.95);
    }

    .navbar_links {
        display: block;
        padding: 12px 20px;
        background-color: transparent;
        color: white;
        font-size: 18px;
        border-radius: 8px;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.3s, transform 0.2s;
    }

    .navbar_links:hover {
        background-color: rgba(255, 255, 255, 0.2); /* lekko jaśniejszy efekt na ciemnym tle */
        color: white; /* napis pozostaje biały */
    }
    

    .gps_box {
        display: inline-flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 600px) {
    .navbar_logo {
        font-size: 2em; /* Mniejsze logo */
    }

    .navbar_logo::before {
        width: 60px;
        height: 60px;
    }

    .hamburger {
        width: 20px;
        height: 15px;
    }

    .hamburger span {
        height: 2px;
    }
}

.image_header {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 300px;
}

.image_header img {
    width: auto;
    height: 100%;
    object-fit: cover;
    margin-right: 5px;
}

.image_header img:last-child {
    margin-right: 0;
}

.product_list {
    padding: 20px;
    text-align: center;
}

.product_list h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.product_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.product_card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: #333;
}

.product_card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.product_card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product_card:hover img {
    transform: scale(1.1);
}

.product_card p {
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
}

.footer p {
    margin: 0;
    color: #ccc;
}
